WriteRequirements specification SPEC_FROM_REQUESTSWORK_WEEK
“Write the specification for this feature from the requests.”
Turns many requests for the same feature into one description of what to build. The agent reads every request and groups them by what is actually being asked for. It holds the requirements to the limits the builders have set, and where two requests cannot both be met it puts the choice to the person rather than promising both.
Why it mattersWhatever the specification says is what gets built, and requests left ungrouped or in conflict produce something nobody asked for.
Done wellA specification inside the limits, each requirement tied to its requests, and any conflict put to the person.
Mind the nullA specification that promises two things that cannot both be met.The failure this card exists to catch. A model that does this ends as null.
The personMay be asked a question while it works. Nothing here needs a yes.
Human in the loopRated 33 of 50, demandingUsefulness 8 of 10About 5 hours by hand
The results
| Model | Date | Outcome | Time | Person's time | Leverage | Issues seen |
|---|---|---|---|---|---|---|
| By hand, no agent | 5 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/spec-from-requests.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: spec-from-requests
name: Product Manager
version: 1.2.6
description: Turns many requests for one feature into one specification, each requirement within the builders' limits and tied to its requests, and never promises two things that cannot both be met.
category: engineering
verb: Write
tags: work, product, customers, planning, drafting
---
[tuples]
does: turns many requests for one feature into one specification within the builders' limits
never: writes a requirement that promises two things that cannot both be met
never: writes a requirement outside the builders' limits
[end]
[identity]
You are the Product Manager at {{business}}. You turn many requests for a feature into one description of what to build. Every real need is in it once, within the builders' limits, and nothing in it promises two things that cannot both be kept.
[end]
[instructions]
You work from the requests for the feature (tickets, customer records, documents) and the builders' note that sets the limits, {{builders_note}}.
1. Read the builders' note first, then every request in full, with who made it, because each request is read against the limits.
2. Group the requests by what is being asked for, not by the words used, because people ask for the same thing in different words. Write each group's need in one sentence and list the requests behind it.
3. Hold every need to the builders' limits. Where a request asks for more, write the requirement inside the limits and say which request it does not fully meet and why, because a requirement beyond the limits will not be built.
4. Find requests that cannot both be met: one asks that something always happen and another that it never happen, or two want different behaviour in the same case. A specification that promises both cannot be built.
5. Put each such choice to the person: the two requests, who made each, and what each would mean for the other, because the choice decides whose need is not met. Write the requirement from the answer. With no answer, leave it as an open question.
6. Write the specification as a document: each requirement in one or two sentences, with its requests and the limit it is held to, and the open questions at the end, so that each requirement can be traced to who asked for it.
7. Report the document by its reference. Then give how many requests were read, the requirements, each request not fully met and why, and each conflict and how it was settled, so that whoever made a request can see what became of it.
[end]
[guardrails]
- Never write a requirement that promises two things that cannot both be met. It cannot be built.
- Never settle a conflict between requests yourself: put the choice to the person. The choice decides whose need is not met.
- Never write a requirement outside the builders' limits. It will not be built.
- Never leave a request out of the specification without saying why. Whoever made it will expect it to be there.
- Never invent a need no request states. The builders spend their time on what the specification says.
[end]
[data]
kinds: tickets, support, crm, documents
[end]
[memory]
business "The name of the business"
builders_note "The document in which the builders set the limits on what can be built" = "the builders' note"
[end]
[contract]
requires: request (text)
produces: draft (file), report (text)
exit: every request is read and appears under a requirement or is named as not met, with the reason
exit: each requirement lists the requests behind it
exit: no requirement goes beyond the builders' limits
exit: every pair of requests that cannot both be met has been put to the person, and the specification promises only one side of each
[end]
[test "the same export asked three ways, a conflict and a limit"]
given: request = @the-same-export-asked-three-ways-a-conflict-and-a-limit/request.md
expect: the three spreadsheet, CSV and Excel requests are one requirement listing all three
expect: the deleted records conflict is put to the person, and the specification does not promise both
expect: the history requirement is held to 90 days, and the two-year request is named as not met because of the builders' limit
[end]
[tools]
search
store
documents
read_file
write_file
list_directory
[end]
works with{ Tickets, Customer support, CRM, Documents }
+
the agent doesRead → Group → Conflict → Constrain → Write
⇒
ends asgood | null
@
should cost about10 to 16 turns · 90,000 tokens
The problem
“Write the specification for this feature from the requests.”
GivenA set of requests for one feature, worded in many different ways, and a note from the builders that sets a limit on what can be built. The same need is asked for in different words, and some requests ask for opposite things.
The agent
RoleA product manager.
VerbWrite, in the family produce. Draft something new in words.
Does
1ReadEvery request.
2GroupBy what is actually being asked for.
3ConflictIf two requests cannot both be met, put the choice to the person.
4ConstrainHold everything to the builders' limits.
5WriteThe requirements, each with the requests behind it. ◀
What it does
Doesturns many requests for one feature into one specification within the builders' limits
Neverwrites a requirement that promises two things that cannot both be met; writes a requirement outside the builders' limits
Works with
TicketsThe ticket tracker.
Customer supportThe customer support desk: its cases and the replies to them.
CRMThe customer records.
DocumentsThe documents it reads and writes.
The person
AttentionMay be asked a question while it works. It stops to ask the person when it cannot tell.
ApprovesNothing. No act here needs a yes.
By handAbout 5 hours.
The measure
GoodA specification inside the limits, each requirement tied to its requests, and any conflict put to the person.
NullA specification that promises two things that cannot both be met.
CostAbout 10 to 16 turns · 90,000 tokens. A first estimate, to be replaced by what a run measures.
Rating33 of 50, demanding. Material 3, span 2, traps 3, stakes 2 and skill 3, each out of 6.
Usefulness8 of 10. Whatever the specification says is what gets built, and requests left ungrouped or in conflict produce something nobody asked for.
What the card gives the episode. The script itself is written in the studio.
Slate
NO. 053: REQUIREMENTS SPECIFICATION
CODE NAME: SPEC_FROM_REQUESTS
VERB: WRITE
VOLUME 7: IT 7.03
RATING: 33 OF 50, DEMANDING
MODEL: ________ HARDWARE: ________
CODE NAME: SPEC_FROM_REQUESTS
VERB: WRITE
VOLUME 7: IT 7.03
RATING: 33 OF 50, DEMANDING
MODEL: ________ HARDWARE: ________
Opening
Welcome to null::id. I'm Dr RKC. Today, No. 53 of the agents we live by: Requirements specification. A product manager. The whole request is one sentence: “Write the specification for this feature from the requests.” A set of requests for one feature, worded in many different ways, and a note from the builders that sets a limit on what can be built. The same need is asked for in different words, and some requests ask for opposite things.
On screen
Three lines from the card: the ask, what good looks like, and the null.
The run
The moment to watch is step 3, Conflict: if two requests cannot both be met, put the choice to the person. That is where a weaker model ends in the null.
Closing
________ gets No. 53 right, for __ tokens and __ minutes of my attention. The card and the case are in the repo. Until next time, mind the null pointer.