feat(productivity): enforce handoff gate for mutating subagents

- feat(cavecrew-octobot): builders require a brief — goal, spec refs, verify command
- docs(jj-atomic): implement commits cite their spec number
This commit is contained in:
Łukasz Boryń 2026-07-19 23:24:12 +02:00
parent f19eb4bfa1
commit 794b25a666
2 changed files with 14 additions and 1 deletions

View File

@ -56,6 +56,14 @@ Surgical ≤2-file edit at a known site:
Run independent calls in **one message** (multiple Agent tool uses) so they Run independent calls in **one message** (multiple Agent tool uses) so they
fan out concurrently. fan out concurrently.
## The handoff gate (mutating subagents)
A **builder** (or any subagent that edits files) spawns only with a
written brief: goal, spec/OKF references by path (`OKF/specs/NNN`, the
pages it needs), constraints, and the **verify command** for its slice.
A locked spec is the default brief ([implement](../../loop/implement/SKILL.md)).
Read-only lookups (**investigator**) are exempt. No brief, no builder.
## octobot conventions ## octobot conventions
- **Default action** when asked to "review": pull the diff with `jj diff` - **Default action** when asked to "review": pull the diff with `jj diff`
(uncommitted) or `jj diff -r @-` (last change), hand the paths + the contracts (uncommitted) or `jj diff -r @-` (last change), hand the paths + the contracts

View File

@ -51,7 +51,12 @@ If the project uses a ticket prefix (e.g. `DRAKE-42`, `JIRA-101`,
If the project has no ticket convention, omit. Don't invent a prefix. If the project has no ticket convention, omit. Don't invent a prefix.
### 5. Docs travel with the code ### 5. Spec citations
A change executing an `OKF/specs/NNN` spec ([implement](../../loop/implement/SKILL.md))
cites it in the body: `implements spec NNN`. Readers trace the diff to
its justification without leaving the log.
### 6. Docs travel with the code
The same `jj describe` must include any of: The same `jj describe` must include any of:
- Updated docstring for a changed public function signature. - Updated docstring for a changed public function signature.
- Updated README / CLAUDE.md for a new CLI flag, script, env var, or - Updated README / CLAUDE.md for a new CLI flag, script, env var, or