Repository navigation
docs(adr): ADR-0027 — docs/plans/ as a fourth non-authoritative category - #92
Conversation
Resolves the #79 governance gap. docs/plans/ (pre-implementation design notes like the M4/M5 plans) fit none of CLAUDE.md's three lanes; this ADR names them a fourth, explicitly mutable and non-authoritative category (Option 2 — what the repo already does de facto). Contract: non-authoritative post-merge (code/ADRs/RFCs are the source of truth); a mandatory dated Governance-status banner pointing at the authoritative ADRs/RFCs (ADR-0015 errata-banner pattern); and the load-bearing anti-split rule — a plan is NEVER the sole record of a locked-in decision. Declines Option 1's deletion step (destroys retained rationale) and Option 3 (splits the record). - New: docs/adr/0027-docs-plans-governance-category.md (Accepted). - CLAUDE.md: fourth lane in "RFC vs ADR vs plain PR" + repo map. - Regularised the provisional banners on the M4/M5 plans to the mandated format. Closes #79. Claude-Session: https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o Signed-off-by: Gonzalo Fleming <[email protected]>
There was a problem hiding this comment.
Pull request overview
Defines docs/plans/ as an explicit fourth documentation lane (mutable and non-authoritative post-merge) and aligns existing milestone plans and contributor guidance with that governance contract.
Changes:
- Adds ADR-0027 documenting the governance contract for
docs/plans/(including the mandatoryGovernance statusbanner and anti-split rule). - Updates
CLAUDE.mdto include “Plan” as a fourth lane in the governance model and in the repo map. - Regularizes the
Governance statusbanners in the existing M4/M5 plan documents to match the new contract.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| docs/adr/0027-docs-plans-governance-category.md | Introduces ADR-0027 defining docs/plans/ as mutable, non-authoritative, and constrained by an anti-split rule + banner template. |
| docs/plans/m4-authentication.md | Updates the top governance banner to reference ADR-0027 and clarify non-authoritative status post-merge. |
| docs/plans/m5-channels.md | Updates the top governance banner to reference ADR-0027 and clarify non-authoritative status post-merge. |
| CLAUDE.md | Adds “Plan” as a fourth governance lane and documents docs/plans/ in the repo map with an ADR-0027 reference. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I now have the full diff and context. Here's my review. Review: ADR-0027 — docs/plans/ as a fourth document categoryClassification: docs-only governance ADR. No Rust code, no dependency changes, no CI modifications. The review applies CLAUDE.md document-governance rules, ADR-0015 format requirements, and the MANIFIESTO commitment #4 (small surface, sharp edges). Findings1. ADR "Links" section has a minor factual error (non-blocking, correctable as ADR-0015 errata) The ADR's Links section (line 79) states:
The diff shows only the "RFC vs ADR vs plain PR" section was updated (+7 lines). The "What not to do" section (CLAUDE.md:154–167) is untouched. This is a factual misstatement in an accepted ADR. It does not affect the decision's correctness — the "What not to do" section is about code behaviours (unsafe, mocks, legacy crypto), not document categories, so it didn't need updating. But the claim in the ADR body is not what the diff delivers. Per ADR-0015 this qualifies as erratum-level (wrong factual claim at acceptance time) and should be corrected with a Severity: Low. No security impact. The CLAUDE.md clause that matters (the Plan bullet in "RFC vs ADR vs plain PR") is present and correct. Items verified (no findings)
VerdictApprove. The ADR closes a real governance gap (#79), formalizes what the repo already does de facto, and the anti-split rule is well-designed. The one factual error in the Links section is erratum-level and non-blocking. |
The scoping workflow (#42/#43 synthesis) flagged #79's open question: does docs/plans/ cover non-milestone design notes, or only per-milestone plans? Broaden the category to both — a milestone plan OR a scoping note for not-yet-scheduled work (e.g. the Phase-3 privsep scoping note from #43). A scoping note is non-authoritative from the start (records a constraint set + options, never a decision). Banner template gains a scopes/tracked-in variant and an ADRs/RFCs-or-tracking-issue pointer. CLAUDE.md's Plan bullet updated to match. Claude-Session: https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o Signed-off-by: Gonzalo Fleming <[email protected]>
|
Confirmed. The "What not to do" section (CLAUDE.md:155–168) has zero mention of plans or ADR-0027. Now here's my review: Review: ADR-0027 —
|
| Criterion | Result |
|---|---|
| MANIFIESTO #1–3, #5 | N/A — no code, crypto, or license changes |
| MANIFIESTO #4 (small surface) | ADR self-identifies the risk ("more governance surface than three") and mitigates: non-authoritative, mutable, no new review gate |
| ADR format (ADR-0015) | Sections present: Status, Date, Deciders, Related, Context, Decision, Consequences, Alternatives, Links |
| ADR numbering | 0027 — follows 0026, no collision |
| Anti-split rule | Decision §3: a plan is never the sole record of a locked decision — load-bearing and correctly stated |
| Plan banner regularization | Both M4 and M5 banners match the mandated template, point at correct ADRs (0021/0023/0024 for M4; 0016/0020/0023/0024 for M5), carry the non-authoritative disclaimer |
| CLAUDE.md repo map | docs/plans/ row added with ADR-0027 link, matches existing format |
| No dependency changes | Zero Cargo.toml touches |
| Conventional Commits | docs(adr): ADR-0027 — … — valid type+scope |
Verdict
Approve. The ADR closes governance gap #79, formalizes what the repo already does de facto, and the anti-split rule is well-designed. The one factual error in the Links section is erratum-level, non-blocking, and correctable with a post-acceptance errata banner under ADR-0015.
claude-review on #92: - Links section claimed CLAUDE.md's "What not to do" was updated — it was not; only "RFC vs ADR vs plain PR" + the repo map. Corrected. - Consequences/Neutral conflated M4's and M5's ADR sets; now lists each (M4: 0021/0023/0024; M5: 0016/0020/0023/0024) as the banners record. - Aligned the m4/m5 plan banners to the canonical ADR-0027 §2 template ("Authoritative decisions live in ADRs/RFCs:", drop "post-merge"). Claude-Session: https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o Signed-off-by: Gonzalo Fleming <[email protected]>
Review: ADR-0027 —
|
| Criterion | Result |
|---|---|
| ADR Links section (line 80) | Now correctly references only "RFC vs ADR vs plain PR" + Repo map — "What not to do" claim removed |
| Consequences/Neutral | M4 and M5 ADR sets properly separated (M4: 0021/0023/0024; M5: 0016/0020/0023/0024) — matches plan banners |
| M4/M5 plan banners | Match the canonical ADR-0027 §2 template exactly: "Authoritative decisions live in ADRs/RFCs:", no "post-merge", no "Locked-in" |
| ADR-0015 format | Standard sections present, Status Accepted with date/deciders, numbering follows 0026 |
| CLAUDE.md | "RFC vs ADR vs plain PR" Plan bullet + Repo map row added; "What not to do" correctly untouched |
| MANIFIESTO #4 | Surface risk self-identified ("more governance surface than three") and mitigated (weakest lane, no new process) |
| Conventional Commits | All three commits docs(adr):, DCO-signed, signed |
Verdict
Approve. No findings. The ADR closes governance gap #79, formalizes the de-facto practice, and the anti-split rule (Decision §3) is the right load-bearing guard.
claude-review + copilot on #94: the note said it "closes threat-model §8.12", but §8.12's own closure condition is the Phase-3 RFC plus its implementation — a scoping note discharges neither. Reworded both the intro and the References line to "scopes the eventual closure." (The ADR-0027 link the reviewers flagged as dead resolves once #92 lands on main, ahead of this PR in the merge order.) Claude-Session: https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o Signed-off-by: Gonzalo Fleming <[email protected]>
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
* docs(plans): Phase-3 privilege-separation scoping note (#43) Non-normative scoping note (ADR-0027 category) for the Phase-3 privsep RFC — NOT the RFC itself, which is premature: it depends on three Phase-2 artifacts that do not exist (the multi-user identity model, the config schema, the PTY story). Records the one load-bearing constraint worth fixing early: ADR-0022 (multi-threaded Tokio) + ADR-0018 (unsafe forbidden) push the privileged→unprivileged setuid transition OUT of the async process into an isolated single-threaded context (a fork+exec helper or a monitor/ worker split). Any in-process setuid is excluded on those two ADRs alone. Plus an option matrix (A–E) and the Phase-2 gating decisions the RFC waits on. #43 stays open as the tracker. Claude-Session: https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o Signed-off-by: Gonzalo Fleming <[email protected]> * docs(plans): privsep note — "closes §8.12" overstated its role claude-review + copilot on #94: the note said it "closes threat-model §8.12", but §8.12's own closure condition is the Phase-3 RFC plus its implementation — a scoping note discharges neither. Reworded both the intro and the References line to "scopes the eventual closure." (The ADR-0027 link the reviewers flagged as dead resolves once #92 lands on main, ahead of this PR in the merge order.) Claude-Session: https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o Signed-off-by: Gonzalo Fleming <[email protected]> --------- Signed-off-by: Gonzalo Fleming <[email protected]>
Closes #79.
Names
docs/plans/a fourth document category: mutable, non-authoritative design notes that accompany a milestone's implementation — Option 2 from the issue, which is what the repo already does de facto (both existing plans carry a provisional banner deferring to #79).Contract (ADR-0027)
Governance statusbanner pointing at the ADRs/RFCs that hold the locked-in decisions (ADR-0015 errata-banner pattern).Declines Option 1's deletion step (destroys retained rationale; the extraction half is already the anti-split rule) and Option 3 (splits the record — the exact thing the RFC README / ADR-0015 argue against).
Changes (docs-only)
docs/adr/0027-docs-plans-governance-category.md(Accepted).First of the #86-scoping-workflow follow-ups; unblocks the doc-lane the #43 privsep scoping note will live in.
https://claude.ai/code/session_01BRMdwxsqYQPbjrWB1Cek6o