From 794b25a66618df199ac50c6456041ac2ad564f45 Mon Sep 17 00:00:00 2001 From: Lukasz Boryn Date: Sun, 19 Jul 2026 23:24:12 +0200 Subject: [PATCH] feat(productivity): enforce handoff gate for mutating subagents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - feat(cavecrew-octobot): builders require a brief — goal, spec refs, verify command - docs(jj-atomic): implement commits cite their spec number --- skills/productivity/cavecrew-octobot/SKILL.md | 8 ++++++++ skills/productivity/jj-atomic/SKILL.md | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/skills/productivity/cavecrew-octobot/SKILL.md b/skills/productivity/cavecrew-octobot/SKILL.md index bfd3503..4edc562 100644 --- a/skills/productivity/cavecrew-octobot/SKILL.md +++ b/skills/productivity/cavecrew-octobot/SKILL.md @@ -56,6 +56,14 @@ Surgical ≤2-file edit at a known site: Run independent calls in **one message** (multiple Agent tool uses) so they 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 - **Default action** when asked to "review": pull the diff with `jj diff` (uncommitted) or `jj diff -r @-` (last change), hand the paths + the contracts diff --git a/skills/productivity/jj-atomic/SKILL.md b/skills/productivity/jj-atomic/SKILL.md index 986db59..6275e46 100644 --- a/skills/productivity/jj-atomic/SKILL.md +++ b/skills/productivity/jj-atomic/SKILL.md @@ -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. -### 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: - Updated docstring for a changed public function signature. - Updated README / CLAUDE.md for a new CLI flag, script, env var, or