Technology and software

Specs your coding agents can build from.

Backtale opens the spec as a pull request in your GitHub repository.

Sample data

acme / api Open

Spec: Rate-limit free-tier API keys

Acceptance criteria

Given a free-tier key that has made 100 requests in the last minute, when it sends another, then the API returns 429 with a Retry-After header.

Given a paid key, when it sends requests, then the current limits apply.

src/middleware/rateLimit.ts:42 at 7f3b2c1

A planning call becomes a spec.

In this sample, an API team settles free-tier limits in a planning call. Backtale opens the spec as a pull request in your GitHub repository.

Sam sets the rule in one sentence. Free-tier keys get a hundred requests a minute, and after that the API sends a 429 with a retry header. Jordan keeps paid keys on the current limits. The drafted story is "Rate-limit free-tier API keys," with both paths written as Given/When/Then, including the 429 and the Retry-After header.

The spec also points at the code this would change: src/middleware/rateLimit.ts:42 at 7f3b2c1. That citation exists at the pinned commit of the run. The file is open at line 42 on the right, and both the 429 path and the paid-key exception are in the criteria.

Sample data

Transcript

00:22:10 Sam: Free-tier keys get a hundred requests a minute. After that, send a 429 with a retry header.

00:22:40 Jordan: Paid keys keep the current limits for now.

src/middleware/rateLimit.ts

Line 42 is the cited line.

src/middleware/rateLimit.ts:42 at 7f3b2c1

What lands in front of the agent.

Sample data

Given a free-tier key that has made 100 requests in the last minute, when it sends another, then the API returns 429 with a Retry-After header.

Clarity

Your agent gets testable criteria instead of a page of meeting notes. The 429, the retry header, and the paid-key exception are in the story, in the same form a person would use to review the work.

Sample data

Create 1 in Linear and open the pull request.

Control

A person on your team decides which stories reach Jira, Azure DevOps or Linear. Nothing reaches your tracker until a person on your team ships it.

Sample data

src/middleware/rateLimit.ts:42 at 7f3b2c1

Grounded

Each code citation points at a file and line that exist at the pinned commit of your GitHub repository. In this sample, that citation is src/middleware/rateLimit.ts:42 at 7f3b2c1.

  • Jira
  • Azure DevOps
  • Linear
  • GitHub

Bring a planning call your team already had.

Stories can be filed in Jira, Azure DevOps or Linear, and Backtale opens the spec as a pull request in your GitHub repository.

When you get started, bring the planning call where you set a limit, a status code, or an exception.

You run Backtale on your own infrastructure. The Security page covers how that works.