Skip to content

Working Agreements

How the team of people and agents works together across every stage.

Issues

When an agent is stuck, or finds a problem it can’t settle on its own, it raises an issue: it writes the issue down, stops, and tells the person in the session.

  • Where: in an ## Issues section of the story the agent is working on. Issues raised before a story exists (during epic breakdown) go in the epic’s ## Open Questions section.
  • What: the stage, what the agent was doing, what’s wrong, and the question a person has to answer.
  • Blocking: an open issue stops the work. No agent continues the story, or the epic, until a person writes an answer under the issue and marks it resolved.
## Issues

- [ ] **Redesign System** — `CART-INV-003` says a total can't go below zero, but `CART-E2E-007` expects a refund to make it negative. Which one is right?
  - Answer: _..._

Tools

Tools depend on the language and the project, so the method doesn’t pick them. The commands live in the project’s own agent instructions ( CLAUDE.md or AGENTS.md) next to whatever is already there for running tests and linters.

Specs of Theseus adds a tool requirement for each step of Development: test framework(s), property testing, mutation testing, controls and checks, and the full eval suite. A developer who reviews evals one at a time also records the command that opens a file at a line in their editor, and can record that review style as their default.

When an agent needs to do something and doesn’t know how, it asks a person and records the answer in that file. Asking is raising an issue: the work waits for the answer. The agent never guesses and never skips the step.

Commits and tags

Teams choose their own workflow, but trunk-based development leads to better outcomes, so the method aims for a linear history on main, in git:

  • By default, commit straight to main.
  • If work-in-progress commits help when there is a complex story or task, or an experiment, use a short-lived branch. Before the task is complete, squash it, rebase it onto main, and fast-forward main. Avoid merge commits.
  • Commit messages for a story start with its short ID, e<epic>.s<story>, from the four-digit numbers in the story’s path: e0001.s0010: add the login form. A commit for a whole epic starts with e<epic> alone.

Completing a story tags the final commit with the story’s path:

story/0001-user-authentication/0010-login-form

The tag marks the commit where all of the story’s evals pass. Deploy runs on story tags only, never on plain commits. A tag also gives the team a known-good point to roll back to.

The tag means “ready for acceptance”, not “accepted” — acceptance is checking the story off in its epic. If the product manager rejects the story, its tag is deleted when it goes back into the backlog, and Development tags it again when the next pass is green.

If several stories are in progress at once, a short-lived branch per story keeps them out of each other’s way. The same squash-and-rebase rule applies.