Skip to content

docs(adr): ADR-0027 — docs/plans/ as a fourth non-authoritative category - #92

Merged
gonzafg2 merged 3 commits into
mainfrom
docs/adr-0027-plans-governance
Jul 2, 2026
Merged

gonzafg2 merged 3 commits into
mainfrom
docs/adr-0027-plans-governance

Conversation

@gonzafg2

@gonzafg2 gonzafg2 commented Jul 2, 2026

Copy link
Copy Markdown
Owner

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)

  • Non-authoritative post-merge — code, ADRs, and RFCs are the source of truth, never the plan.
  • Mandatory dated Governance status banner pointing at the ADRs/RFCs that hold the locked-in decisions (ADR-0015 errata-banner pattern).
  • Anti-split rule (load-bearing): a plan is never the sole record of a locked-in decision — that always goes to an ADR/RFC.
  • Mutable without ceremony; no separate review gate.

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)

  • New docs/adr/0027-docs-plans-governance-category.md (Accepted).
  • CLAUDE.md: fourth lane in "RFC vs ADR vs plain PR" + repo-map row.
  • Regularised the M4/M5 plan banners to the mandated format.

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

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]>
Copilot AI review requested due to automatic review settings July 2, 2026 00:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 mandatory Governance status banner and anti-split rule).
  • Updates CLAUDE.md to include “Plan” as a fourth lane in the governance model and in the repo map.
  • Regularizes the Governance status banners 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.

@opencode-agent

opencode-agent Bot commented Jul 2, 2026

Copy link
Copy Markdown

I now have the full diff and context. Here's my review.


Review: ADR-0027 — docs/plans/ as a fourth document category

Classification: 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).


Findings

1. ADR "Links" section has a minor factual error (non-blocking, correctable as ADR-0015 errata)

The ADR's Links section (line 79) states:

CLAUDE.md "RFC vs ADR vs plain PR" and "What not to do" sections updated to name this fourth lane.

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 Post-acceptance errata banner on ADR-0027.

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)

Criterion Result
MANIFIESTO #1–3, #5 N/A — no code, crypto, or license changes
MANIFIESTO #4 (small surface) The ADR self-identifies the surface risk ("A fourth category is more governance surface than three") and mitigates it: non-authoritative, mutable, no new review gate
ADR format (ADR-0015) Standard sections present, Status Accepted, Date, Deciders, Related, Context, Decision, Consequences, Alternatives, Links
ADR numbering 0027 — follows 0026 (phase-1-rekeying-policy), no collision
Anti-split rule The load-bearing guard (Decision §3) correctly prevents plans from being the sole record of locked decisions
Plan banner regularization Both m4-authentication.md and m5-channels.md banners match the mandated template, point at the correct ADRs (0021/0023/0024 for M4; 0023/0024/0016/0020 for M5), and carry the required non-authoritative disclaimer
CLAUDE.md repo map docs/plans/ row added with correct ADR-0027 link, follows existing row format
No dependencies Zero Cargo.toml touches; no cargo deny impact
Conventional Commits docs(adr): ADR-0027 — … — valid type+scope

Verdict

Approve. 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.

github run

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]>
@opencode-agent

opencode-agent Bot commented Jul 2, 2026

Copy link
Copy Markdown

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 — docs/plans/ as a fourth document category

Classification: docs-only governance ADR. No Rust code, no deps, no CI changes. Review applies CLAUDE.md governance rules and ADR-0015 format requirements.


Findings

1. ADR "Links" section has a factual error — erratum-level per ADR-0015

ADR-0027, line 80:

CLAUDE.md "RFC vs ADR vs plain PR" and "What not to do" sections updated to name this fourth lane.

The diff (+8 lines in CLAUDE.md) only touches the "RFC vs ADR vs plain PR" section (adding the Plan bullet). The "What not to do" section (CLAUDE.md:155–168) is untouched — it governs code behaviors (no unsafe, no legacy crypto, no mocks) and legitimately has no reason to mention document categories. But the ADR's claim that it was updated is false. Per ADR-0015, a wrong factual claim at acceptance time qualifies as erratum-level and should be corrected with a Post-acceptance errata banner.

Severity: Low. No security or governance impact. The CLAUDE.md clause that matters (the Plan bullet in the lane definitions) is present and correct.


Items verified (no findings)

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.

github run

Comment thread docs/plans/m4-authentication.md Resolved
Comment thread docs/plans/m5-channels.md Resolved
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]>
@opencode-agent

opencode-agent Bot commented Jul 2, 2026

Copy link
Copy Markdown

Review: ADR-0027 — docs/plans/ as a fourth document category

Classification: docs-only governance ADR. No Rust code, no deps, no CI changes.


All findings raised by prior reviewers are resolved in the final commit 9911a36. The corrected state:

Verified (no findings)

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.

github run

gonzafg2 added a commit that referenced this pull request Jul 2, 2026
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]>
@claude

claude Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@gonzafg2
gonzafg2 merged commit d42b5fe into main Jul 2, 2026
11 checks passed
@gonzafg2
gonzafg2 deleted the docs/adr-0027-plans-governance branch July 2, 2026 01:44
gonzafg2 added a commit that referenced this pull request Jul 2, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

governance: define category for docs/plans/ artifacts

2 participants