“Change the cancellation deadline to 24 hours” sounds fairly specific until you try to write a test for it. If a booking starts at 15:00 tomorrow, can I cancel at 15:00 today? If I booked last week under the old terms, does the deadline change for me?
For our booking service, cancellation is allowed exactly 24 hours before the start, and existing bookings keep their terms. Put those decisions somewhere the implementer, reviewer and next person touching the code can all find them. How much else you preserve depends on what somebody will need to understand later.
Choose how much to specify
| Route | When I’d use it | What I’d leave behind |
|---|---|---|
| Direct | The change explains itself. A label correction, an unambiguous configuration fix or a mechanical refactor. | A short request, a focused diff and the relevant checks. |
| Rapid | The approach is understood, but somebody needs a record of intent, scope and acceptance. Changing the cutoff for new bookings without changing refunds is a good example. | A short proposal and a task list. |
| Full spec-driven | The behaviour or design needs working out. Introducing cancellation across several services, with refunds and an API compatibility question, belongs here. | A proposal, requirements and scenarios, a design where decisions need recording, and a task list. Preserve the requirements that will still matter after this change ships. |
Decide how strongly to check the result separately. A small permission change can warrant substantial verification. A broad mechanical change may need targeted regression checks and a careful diff without a new behavioural specification. Verification and validation
Rapid work
A short proposal needs five things: the reason for the change, what is in and out of scope, observable acceptance criteria, how they will be checked, and any compatibility or rollout detail somebody needs to retain. In the booking example, “old bookings keep their terms” belongs in the proposal. “Open this file first” can go in the task list if it helps the worker.
Keep the task list in the order you can check the work. First establish that new bookings carry the right terms. Then use the stored terms to decide if a cancellation is allowed. Exercise the cutoff, a pre-existing booking and a repeated request. Ask somebody to walk through the customer journey. You can review each part without asking the agent to remember a whole feature at once.
If you use OpenSpec, this is a good fit for a project-local rapid schema with just proposal.md and tasks.md. A schema gives the team the same starting files and drafting order on the next change. It does not approve the contents. The worked OpenSpec example includes the schema, templates, commands and a filled-in proposal and task list.
Full spec-driven work
Say cancellations now need to initiate refunds. Before drawing up a checklist, decide what a customer sees while a refund is pending, what happens if a request is repeated, and what older consumers of the booking API will see. Put the behaviour in a spec with scenarios. Put the awkward engineering decisions and alternatives in the design. For example, the requirement can say a repeated cancellation results in a single refund. The design can explain which operation owns that guarantee and how the system recovers if the payment service is unavailable.
OpenSpec’s built-in spec-driven schema gives this a concrete shape.
| File | What it answers |
|---|---|
proposal.md | Why are we doing this and which capabilities are affected? |
specs/<capability>/spec.md | What behaviour is being added, changed or removed? Use scenarios that a reviewer can check. |
design.md | Which decisions are significant and why? Include compatibility, migration, rollout or recovery where they affect the implementation. |
tasks.md | Which pieces can we build and check in order? |
The proposal comes first. Work through the requirements and design before writing the tasks for this change. Review the agreed behaviour before implementation. After the change is implemented, checked and accepted, archive it so the durable specifications reflect what shipped. OpenSpec’s commands can report whether files exist or are structurally valid. The team still has to decide whether those files describe the right behaviour. OpenSpec’s spec-driven schema · Worked delta spec
Give an unattended worker a task contract
If I’m sitting with the worker, the brief and a conversation might be enough. If I’m sending it away to run, I want the next worker and the scheduler to be able to read the same agreement. A small YAML task contract can carry the approved spec revision, assigned scope, applicable checks, permissions and stop conditions. Generate it from the work record, the approved spec and repository policy where possible. Copying the whole specification into a second file gives you two places to fix it.
Here is the task contract for sending the rapid cancellation change to an unattended worker. The fields and budget values are illustrative. Choose actual limits and permissions under the team’s risk policy.
task:
id: booking-cancellation
objective: Apply the agreed cutoff to new bookings
workflow: rapid
decision_owner: booking-policy-owner
approved_spec:
path: openspec/changes/booking-cancellation/proposal.md
revision: "<approved-git-commit>"
scope:
include: [booking cancellation policy, acceptance checks, customer wording]
exclude: [refund processing, migration of existing bookings]
acceptance: [C01, C02, C03, C04, V01]
permissions:
edit_isolated_workspace: allowed
deploy_to_shared_test_environment: approval-required
deploy_production: prohibited
limits:
max_minutes: 45
max_retries: 2
completion:
command: ./scripts/verify
handoff: code revision, check results and any open decision
verification_contract:
path: verification/booking-cancellation.yaml
revision: "<approved-contract-commit>"
This answers what the worker has been asked and permitted to do. The linked verification contract answers what an independent verifier must check and what evidence it must produce. The verifier reads the approved copy and writes its own result for the exact code and build it checked. Naming a permission in YAML only helps if the runtime enforces it. Use the matching verification contract and the worked result to see the other side of the handoff.
When the brief turns out to be wrong
Suppose you find bookings with no recorded terms, and nobody can say which policy those bookings should use. Pause the affected slice and ask the person who owns the policy. Show a representative record, the options and what customers would see under each. If the decision adds a migration or changes the API contract, take the change through full specification. Preserve the original reasoning and the decision that changed it.
For an unexplained bug, first reproduce it and observe where the behaviour diverges. Form a hypothesis, check it against the running system and turn the failing case into a regression check before fixing it where possible. You can still take the direct route for a small, well-understood fix. Choose the route once you know what you’re changing. If the requirements or approved checks move, record the new revision and verify the implementation against it.