Repository navigation
Description
Goal
M18-R7: the doc-synthesizer contract's "Deliver as a task" becomes delivery as a housekeeping PR (R6's light path: reviewed, or operator-confirmed in pure solo; no task, plan, task start or task finish). milestone close's DOC_MISSING gate and milestone evidence are unchanged; the requirement/verdict pair is untouched; the NO_CHECKS gate is out of scope.
Requirements
M18-R7
Adopts
- Backlog capture: the milestone close ceremony is flat — a three-line milestone pays a twenty-task record #349 — Backlog capture: the milestone close ceremony is flat — a three-line milestone pays a twenty-task record
Plan
Covers M18-R7 (adopts #349). Protocol 2.1, additive: no protocol, protocolVersion or SPEC version bump (R8 does that); the CHANGELOG gets an [Unreleased] entry, no flip; contract_history.go records released texts only and is not touched. The embedded contracts are the hub's .codecrew/roles/*.md, so roles diff <role> stays clean for all five and roles sync --dry-run has nothing to write.
Settled by the appraisal on #349 and not reopened: the record stays a reviewed file in docs/milestones/ (operator-confirmed in solo); it takes #343's light path; milestone close's DOC_MISSING gate (condition, code, exit) and milestone evidence are unchanged; options 1 (inline record) and 3 (record on the final task's PR) are rejected; NO_CHECKS is out of scope; the ROADMAP row and any front-door refresh ride the same PR; the requirement/verdict pair is untouched. Settled by R6 (#364) and cited, not reopened: the per-tier approval table in SPEC §4 Housekeeping, text-only enforcement (the chore finish verb is backlog #365), and the author rebase-merges once the tier's approval is on the PR. R6's operator Decision asked that R7 add the record's own clause rather than bend "a tool states the target" — this plan does that.
Items marked [ask N] were ask-the-human points; the operator accepted every recommendation on 2026-09-24 (Decision comment on this issue), and the plan below is that answer. The operator also asked for every fix in the phase-1 "wrong or underspecified" list to be folded in (all are in §3–§7), and for a comment on #365 naming the record as a second consumer of a light-path verb (no separate capture; no capture for extending milestone evidence).
1. How housekeeping admits the record [ask 1, ask 2]
SPEC §4 ### Housekeeping gains a second, closed class after the tool test: the milestone record. The protocol itself states its target — docs/milestones/<n>-<slug>.md, the milestone's ROADMAP.md row, and the front-door claims the milestone changed (§7, the doc-synthesizer) — and its content is a synthesis of Decisions and Deviations already on the trail, so it has no Decision of its own to write. That is the one thing besides a tool's output the path admits; the text says so in as many words, so "the protocol defines the target" cannot be stretched to anything else a contract mentions. The record's test, in place of "the diff is the tool's output": the diff is those three things and nothing else; every claim in the document traces to a link on the trail; nothing in it is a choice the doc-synthesizer made for the project. A record that needs a Decision of its own (a front-door rewrite beyond the milestone's claims, a choice between readings of the trail) falls back to the task path, which remains available and unchanged [ask 2].
2. What it carries [ask 3, ask 4]
- Commits:
docs:conventional commits (as every record to date), each referencing the milestone issue in the subject —docs: the M<n> record — … (#<milestone issue>)— in place of a task; the body says it is the milestone record on the housekeeping path (SPEC §4). SPEC §4### Commitsnames this second exception beside R6'schore:one [ask 3]. - PR: one PR on a branch of the doc-synthesizer's naming, its body naming the milestone issue with no closing keyword (the milestone issue is closed by
milestone close, never by a merge — the doc-synthesizer contract says so explicitly), and reviewed per SPEC §4's existing tier table; its author (the doc-synthesizer seat) rebase-merges once the tier's approval or the solo confirmation is on it and the reported checks are green, deleting the branch on merge —milestone close's sweeps only ever look attask/<n>-…branches, and there is no task [ask 7]. - Where the synthesizer's own notes go: a Deviation the doc-synthesizer records while writing (e.g. an undocumented decision it had to infer), and a Deviation at the close itself, go on the milestone issue —
milestone closealready gathers the milestone issue's own records (M18-R4) andmilestone evidencewalks it; the record PR's comments are read by neither [ask 4]. This answers Backlog capture: the milestone close ceremony is flat — a three-line milestone pays a twenty-task record #349's "where a close-time deviation belongs".
3. The contracts
.codecrew/roles/doc-synthesizer.md— "Deliver as a task" becomes "Deliver as a housekeeping PR": no task issue — the milestone issue is your charter; branch from the default branch, commit per §2, open the PR naming the milestone issue without a closing keyword; the review the reviewer seat's routing requires (SPEC §4's table; in pure solo the operator's confirmation, with a clean-context model review strongly encouraged first); then you rebase-merge it yourself, never before. The End to end under an orchestrator: prove the flow driven by Paperclip (or another platform) #119 finding-27 reasoning ("a document PR with no task has no owner for its review loop and nothing that can merge it") is answered in the text: the owner is the PR's author, and the author merges. "If the record needs a Decision of your own, stop and ask for a task" (ask 2). Deviations to the milestone issue (ask 4). "Landed means done" loses "throughtask finish". "On dispatch, read" item 1 says the milestone issue stands in for a task issue. Never gains: merge the record before its tier's approval is on it; put a closing keyword before the milestone issue's ref..codecrew/roles/reviewer.md— the "Housekeeping PRs" block gains "The milestone record": read the milestone issue where a task issue would be; the claim is checked against §1's record test instead of "The tool" bullet; check the document's citations yourself —milestone evidencewalks the issues, not the file [ask 6]; a record that fails the test gets changes requested naming the task path, never an approval as housekeeping..codecrew/roles/coordinator.md— "Milestone end, in order": "the milestone document as the doc-synthesizer's task" becomes "dispatch the doc-synthesizer for the record — a housekeeping PR, no task"; the review loop's housekeeping sentence gains the record (changes requested → the doc-synthesizer again, unless it says the record needs a task; approved or solo-confirmed → its author merges; nothing for the coordinator to run); "A seat dispatched with no task issue behind it stops and asks for one" gains "— except the doc-synthesizer dispatched for a record, whose charter is the milestone issue"; the hand-back table's "implementer, doc-synthesizer | plan written" row becomes implementer only (the doc-synthesizer's row "document PR merged → hand-back" stays)..codecrew/roles/implementer.md,qa.md— unchanged: the implementer's housekeeping exception is its own tool-defined kind, and QA's verdicts precede the record as before..codecrew/roles/doc-synthesizer.local.md— unchanged ("the record's PR" already reads true).
4. SPEC
- §4 Housekeeping — the record clause (§1 above) and a sentence on the gate, answering Backlog capture: the milestone close ceremony is flat — a three-line milestone pays a twenty-task record #349's question: the looseness is deliberate —
milestone closechecks that the document is on the default branch, not how it got there; the review is held by the contracts, as for every housekeeping PR, and a record committed directly to the default branch is a breach of the doc-synthesizer contract the gate does not see [ask 5]. - §4 Commits — the record's exception (§2).
- §4 Milestone document — "It lands via a normal PR and passes the same review gate as code" becomes: it lands as a housekeeping PR (above), with no task, through the same review gate as code, and its Deviations are on the milestone issue.
- §4 Roadmap — reads true already ("the milestone's document PR"); unchanged.
- §7 — the doc-synthesizer bullet: "compiles … into the milestone document, opens its PR on the housekeeping path (§4) and merges it once the review is on it".
- §8 — layer 2's housekeeping sentence already covers the record; unchanged.
- §10 —
DOC_MISSINGrow: the meaning is unchanged; its trailing clause "the milestone document is delivered as a task before the close" becomes "… delivered as a housekeeping PR (§4) before the close".
5. The DOC_MISSING detail (code; exit and condition unchanged) [ask 5]
internal/cli/milestone.go docMissing detail becomes, subject to ask 5:
docs/milestones/<n>-*.md not on the default branch of <hub> — dispatch the doc-synthesizer: it delivers the record as a housekeeping PR with no task (SPEC §4), reviewed as the reviewer seat's routing requires (in pure solo, the operator confirms on the PR), and its author rebase-merges it; then rerun
The doc comment above it is rewritten (the #119 finding-27 history kept, the new owner named). The raw-material print on a live DOC_MISSING is unchanged. milestone close's other gates are unaffected: OPEN_TASKS never counted a record that has no task, the closing comment's "all N tasks done, milestone document merged" stays true, and the sweeps are task/-branch only.
6. Tests
milestone_test.go:TestDocMissingNamesTheTaskPathbecomesTestDocMissingNamesTheHousekeepingPath— assertsrefused[DOC_MISSING], the glob, the hub,housekeeping,SPEC §4, the author merge; asserts the detail no longer namestask start,Closes #ortask finish(so the advice cannot drift back to the ceremony), and keeps the "merge its PR" guard.- The existing
dryrun_test.go/strike_test.goDOC_MISSINGgate tests pin the code only and stay green. roles diff <role>on the built binary clean for all five;roles sync --dry-runwrites nothing;go test ./...,go vet,gofmtclean.
7. Docs
- CLI.md
milestone close: theDOC_MISSINGrefusal line adds "— the doc-synthesizer's housekeeping PR (SPEC §4)". - docs/first-milestone.md §7: "merge it like any other change (a PR,
--operator-confirmif you like the discipline)" — which names atask finishflag for a PR with no task — becomes the light path in pure solo: a PR, a clean-context review if you like the discipline, your operator confirmation comment on it, then a rebase merge. - CONTRIBUTING.md: the Housekeeping bullet gains the milestone record.
- CHANGELOG.md: a new
### The milestone record takes the housekeeping light pathat the top of[Unreleased], ending(#369). - docs/platform-interop.md and docs/extensions.md read true already ("the document PR's merge"); unchanged. README and docs/introduction.md are R8's.
Commits (planned, each (#369))
fix(cli): the doc-missing refusal names the record's housekeeping path(+ test)docs: the milestone record takes the housekeeping light path in the contracts and SPECdocs: CLI.md, first-milestone and contributing describe the record's light pathdocs: changelog entry for the record's light path
Not in scope
NO_CHECKS; milestone evidence; the DOC_MISSING condition, code or exit; the protocol version; a verb enforcing the light path (#365); the M18 record itself (after R8).
Ask-the-human points
All seven answered by the operator on 2026-09-24 — every recommendation accepted (see the Decision comment).
Settled and not reopened: see the Plan's opening (the appraisal on #349, and R6's per-tier table, text-only enforcement and author merge).
-
How the housekeeping definition admits the record. (a) A named, closed second class in SPEC §4 Housekeeping — "the milestone record", whose target the protocol states (the document, its ROADMAP row, the front-door claims the milestone changed) and whose content synthesizes Decisions already recorded — with its own test; R6's tool sentence untouched. (b) Widen R6's sentence to "a tool or the protocol states the target". (c) A sibling
### The record pathsubsection that borrows Housekeeping's review table without calling the record housekeeping. Recommend (a): R7's text says "delivery as a housekeeping PR", R6's Decision asked for a clause rather than a bent definition, and (b) opens the fence to anything a contract names (a CHANGELOG entry, a label default) — the classification creep Backlog capture: housekeeping needs a light path — a reviewed chore PR, not a milestone — and a roles sync verb #343 warned of. -
A record that needs a Decision of its own. (a) It falls back to the task path, unchanged (the coordinator opens a task; the old ceremony applies). (b) The Decision is recorded on the milestone issue and the record stays on the light path. Recommend (a): it mirrors R6 (a housekeeping PR that fails the test gets a task) and keeps "no Decision to write" as the path's one test; the front-door refresh is the likeliest trigger.
-
The record's commit shape. (a)
docs:commits referencing the milestone issue in the subject(#<milestone issue>), the body saying it is the record on the housekeeping path. (b)chore:like R6's housekeeping, the body naming the milestone. Recommend (a): every record so far isdocs:, and the milestone ref keepsgit loglinking the record to its milestone the way a task ref did; SPEC §4 Commits names it as the second exception. -
Where the doc-synthesizer's own Deviations, and a close-time Deviation, belong. (a) The milestone issue. (b) The record PR. Recommend (a):
milestone closegathers the milestone issue's records (since R4) andmilestone evidencewalks it; neither reads a task-less PR. A Deviation raised at the close, after the record merged, lands there too and stays on the trail even though the record cannot include it. -
The operator's "deliberate looseness vs under-enforcement" question, and the
DOC_MISSINGwording. (a) Deliberate: the gate checks presence, not provenance, exactly as no verb gates a housekeeping merge (R6's 1a); the text says so, names a direct commit of the record as a breach of the doc-synthesizer contract (it already forbids committing to the default branch) that the gate does not see, and the detail now advises the path the contracts require — so advice and requirement agree, and only enforcement is by contract. Proposed detail as in Plan §5. (b) Under-enforcement:milestone closealso checks the document arrived through a merged PR with its tier's approval — a change to theDOC_MISSINGgate, which the appraisal put out of scope; it would be a later capture, or a comment on Backlog capture: the housekeeping light path has no verb enforcing its review gate — a chore finish #365 (a light-path verb would naturally carry it). Recommend (a), plus a comment on Backlog capture: the housekeeping light path has no verb enforcing its review gate — a chore finish #365 noting the record as a second consumer of a light-path verb — say if you want that comment, a separate capture, or neither. -
Who checks the record's citations. The appraisal on Backlog capture: the milestone close ceremony is flat — a three-line milestone pays a twenty-task record #349 says "
milestone evidencechecks the file's citations"; it does not — it walks the milestone issue and its sub-issues, neverdocs/milestones/(internal/cli/evidence.go; the contract's own wording "Quote such URLs the same way in the milestone document" is style, not a check). (a) The reviewer contract's record clause says the reviewer checks the document's citations itself. (b) Extendmilestone evidenceto read the file — out of this requirement's scope ("milestone evidenceunchanged"). Recommend (a) for R7, with (b) as a possible capture; say if you want it filed. -
The record's branch after merge. (a) The author deletes it on merge (
gh pr merge --rebase --delete-branch), said in the doc-synthesizer contract; no code. (b) Arecord/<n>-<slug>naming convention thatmilestone close's sweep learns to reach — a code change to the sweep. Recommend (a): the merge is the author's act already, and the sweep's contract (task/branches of the milestone's tasks) stays as it is.
Activity
radiusred-cody commentedon Sep 24, 2026
Decision: The operator (@davison, 2026-09-24, relayed by the coordination layer) answered the Plan's seven ask-the-human points, accepting every recommendation: "1(a) named closed second class "the milestone record" in SPEC §4 Housekeeping, R6's tool sentence untouched; 2(a) a record needing its own Decision falls back to the task path; 3(a)
docs:commits with the milestone issue as the (#ref); 4(a) doc-synthesizer and close-time Deviations go on the milestone issue; 5(a) DELIBERATE looseness — the gate checks presence, the text says so and names a direct commit of the record as a contract breach the gate does not see, DOC_MISSING's detail rewritten as you proposed (code/exit unchanged); follow-up: post a comment on #365 (as cody) noting the milestone record as a second consumer of a light-path verb — no separate capture; 6(a) the reviewer contract's record clause makes the reviewer check the record's citations — NO capture for extending milestone evidence; 7(a) author deletes the branch on merge." The operator also asked that every fix from the phase-1 "wrong or underspecified" list be folded in: the reviewer contract's record clause, the three coordinator-contract spots (no-task dispatch, the plan-written hand-back row, changes requested on a record PR), SPEC §10's DOC_MISSING row, SPEC §4 Milestone document, first-milestone.md §7's--operator-confirm, and no closing keyword on the milestone issue.Trade-off: Deliberate looseness keeps the close gate as it is and leaves the record's review to the contracts, as for every housekeeping PR, at the cost that a direct commit of the record passes
milestone closeunseen; the reviewer, not a verb, checks the record's citations.Rejected: Widening R6's tool sentence to "or the protocol" (1b) or a sibling record-path section (1c); recording a record's own Decision on the milestone issue and staying on the light path (2b);
chore:record commits (3b); Deviations on the record PR (4b); a provenance check inmilestone close(5b); extendingmilestone evidenceto read the document (6b); arecord/branch convention the sweep learns (7b).radiusred-cody commentedon Sep 24, 2026
Started by @radiusred-cody[bot].
fix(cli): the doc-missing refusal names the record's housekeeping path (
docs: the milestone record takes the housekeeping light path in the c…
docs: CLI.md, first-milestone and contributing describe the record's …
docs: changelog entry for the record's light path (#369)
docs: the cli reference, first-milestone and contributing describe th…
docs: changelog entry for the record's light path (#369)
fix(cli): the doc-missing refusal names the record's housekeeping path (
docs: the milestone record takes the housekeeping light path in the c…
docs: the cli reference, first-milestone and contributing describe th…
docs: changelog entry for the record's light path (#369)