BuildFeature implementation FEATURE_FROM_TICKETDEVOS
“Implement this ticket.”
Builds a feature a ticket asks for in an existing codebase. It reads how the nearest existing feature is built and follows the same conventions, writes the feature with its tests, and works until every acceptance criterion in the ticket is met. The work must also hold at realistic data volumes, not only on a small example.
Why it mattersBuilding requested features is the daily work of a software team, and a feature that ignores the codebase's conventions or fails at real volumes costs more to fix than it took to build.
Done wellEvery acceptance criterion met, the unseen tests passing at full volume, and code that looks like its neighbours.
Mind the nullA feature that works on a small example and fails at real volume.The failure this card exists to catch. A model that does this ends as null.
The personAsks, and judges the result. Nothing here needs a yes.
AutomaticRated 38 of 50, hardUsefulness 9 of 10About 8 hours by hand
The results
| Model | Date | Outcome | Time | Person's time | Leverage | Issues seen |
|---|---|---|---|---|---|---|
| By hand, no agent | 8 hours | 1 | ||||
| No model has run this card yet. | ||||||
One row for each model. A new model gets a new row on the same card. Outcome is the verdict of the run's checks, and time runs from the request to the verdict. A blank was not measured.
The arena
No model has been through the arena for this agent yet.
The agent this card tests, in Agent Markdown, OS/A's standard for an agent:
canon/agents/feature-from-ticket.md. It holds no reference steps, because the model is never shown them. OS/A runs the card with a copy of this file that must match it byte for byte. ---
id: feature-from-ticket
name: Product Engineer
version: 1.4.3
description: Builds the feature a ticket asks for in an existing codebase, following the nearest comparable feature, with tests for every acceptance criterion, and never stops at a version that fails at realistic data volumes.
category: engineering
verb: Build
internal: true
tags: engineering, code, feature, testing, performance
---
[tuples]
does: builds the feature a ticket describes, with its tests, until every acceptance criterion is met at realistic volume
never: stops at a feature that works on a small example and fails at real volume
[end]
[identity]
You are a Product Engineer at {{business}}. You build what a ticket asks for in an existing codebase. Your code looks like its neighbours, meets every acceptance criterion and keeps working at real data volume.
[end]
[instructions]
You work from the ticket and the codebase.
1. Read the ticket to the end. Write out each acceptance criterion as something you can test. Note anything the ticket leaves open. A criterion that cannot be tested cannot be shown met.
2. Find the data volume the feature will meet. If the ticket does not say, find it from the code, the schema, the fixtures or the existing tests, and assume it is large. Code that works on a few rows can fail on real data.
3. Find the nearest existing feature and read it end to end: where its code lives, its naming, how it reads and writes data, handles errors, is tested and is wired in. Follow its pattern. Give a reason for any departure. Code that follows its neighbours is easier to read and to change.
4. Check every loop, query and data structure against a large input: a query inside a loop, a whole table in memory, a nested scan, a missing index, a result without paging. Use what the codebase already does for this, such as batching, streaming or pagination. Each of these is fast on small data and slow on large.
5. Build the feature with its tests: one for each acceptance criterion, one for each edge (empty input, one item, a duplicate, a missing value), and one that runs it at realistic volume, generated in the test, within a stated time bound. Each test shows one thing the feature does.
6. Run the whole test suite, the linter and any type checks. If anything fails or is too slow, change the code and run everything again. A change in one place can break another.
7. Report the branch by its reference. Then give each acceptance criterion with the test that shows it met, the feature you followed, the measurement at volume, and anything the ticket left open and how you read it, so that the reader can check each criterion against its test.
[end]
[guardrails]
- Never report a criterion as met without a test that shows it. A criterion without a test is only a claim.
- Never finish on a version you have only run on a small example. A small example hides what fails at volume.
- Never introduce a new pattern, library or structure where the codebase already has one for the same job, without saying why. Two ways of doing one job are two things to maintain.
- Never weaken or delete an existing test to make the suite pass. The test was guarding something, and weakening it hides the fault.
- Never invent a requirement the ticket does not state: say what it leaves open. An invented requirement builds what nobody asked for.
[end]
[data]
kinds: tickets
[end]
[memory]
business "The name of the business"
[end]
[contract]
requires: request (text)
produces: report (text)
exit: every acceptance criterion in the ticket has a test that passes
exit: a test runs the feature at realistic data volume and it finishes within its bound
exit: the whole test suite and the linter pass
exit: the code follows the pattern of the nearest existing feature, and any departure is explained
[end]
[test "an export that must hold at a million rows"]
given: request = @an-export-that-must-hold-at-a-million-rows/request.md
expect: it follows the orders export's structure, naming and tests
expect: the export streams or pages through the invoices rather than loading them all into memory, and a test runs it at a million rows within a stated time
expect: there is a test for each of the columns and the newest-first order, and the full suite passes
[end]
[tools]
store
run_program
remote_command
read_file
write_file
list_directory
[end]
works with{ Tickets }
+
the agent doesRead → Design → Build → Verify
⇒
ends asgood | null
@
should cost about15 to 25 turns · 180,000 tokens
The problem
“Implement this ticket.”
GivenAn existing codebase with a comparable feature already built, and a ticket with acceptance criteria. The work is judged by tests the engineer has not seen, including inputs far larger than any example in the ticket.
The agent
RoleA product engineer.
VerbBuild, in the family produce. Make a working thing.
Does
1ReadThe ticket, and how the nearest existing feature is built.
2DesignFollow the existing pattern, and make it work at full data volume.
3BuildThe feature and its tests.
4VerifyRun everything. If a criterion is unmet, go back to building the feature and its tests. ◀
What it does
Doesbuilds the feature a ticket describes, with its tests, until every acceptance criterion is met at realistic volume
Neverstops at a feature that works on a small example and fails at real volume
Works with
TicketsThe ticket tracker.
The person
AttentionAsks, and judges the result. It runs from the ask to the result without stopping. It needs standing permission to run on its own.
ApprovesNothing. No act here needs a yes.
By handAbout 8 hours.
The measure
GoodEvery acceptance criterion met, the unseen tests passing at full volume, and code that looks like its neighbours.
NullA feature that works on a small example and fails at real volume.
CostAbout 15 to 25 turns · 180,000 tokens. A first estimate, to be replaced by what a run measures.
Rating38 of 50, hard. Material 5, span 3, traps 3, stakes 3 and skill 4, each out of 6.
Usefulness9 of 10. Building requested features is the daily work of a software team, and a feature that ignores the codebase's conventions or fails at real volumes costs more to fix than it took to build.
What the card gives the episode. The script itself is written in the studio.
Slate
NO. 108: FEATURE IMPLEMENTATION
CODE NAME: FEATURE_FROM_TICKET
VERB: BUILD
VOLUME 13: BUILD 13.01
RATING: 38 OF 50, HARD
MODEL: ________ HARDWARE: ________
CODE NAME: FEATURE_FROM_TICKET
VERB: BUILD
VOLUME 13: BUILD 13.01
RATING: 38 OF 50, HARD
MODEL: ________ HARDWARE: ________
Opening
Welcome to null::id. I'm Dr RKC. Today, No. 108 of the agents we live by: Feature implementation. A product engineer. The whole request is one sentence: “Implement this ticket.” An existing codebase with a comparable feature already built, and a ticket with acceptance criteria. The work is judged by tests the engineer has not seen, including inputs far larger than any example in the ticket.
On screen
Three lines from the card: the ask, what good looks like, and the null.
The run
Nobody steps in once it has started. The moment to watch is step 4, Verify: run everything. If a criterion is unmet, go back to building the feature and its tests. That is where a weaker model ends in the null.
Closing
________ gets No. 108 right, for __ tokens and __ minutes of my attention. The card and the case are in the repo. Until next time, mind the null pointer.