Skip to content

docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) - #159

Merged
gonzafg2 merged 12 commits into
mainfrom
docs/stale-statements-sweep
Sep 23, 2026
Merged

gonzafg2 merged 12 commits into
mainfrom
docs/stale-statements-sweep

Conversation

@gonzafg2

Copy link
Copy Markdown
Owner

Summary

Docs-only sweep of the statements that no longer match the repository, surfaced by the reviewers of #155/#157 and the verification of 2026-09-22: six documents corrected, and ADR-0015 errata banners on ADRs 0016–0024 for a Links line that was false when they were accepted. No decision changes.

Motivation

Where Said Reality
AGENTS.md §Git workflow, CONTRIBUTING.md §DCO CI rejects unsigned / unsigned-off commits Branch protection rejects unsigned commits; commit-lint rejects non-conventional subjects; nobody automates the DCO sign-off
CONTRIBUTING.md §Code, docs/infrastructure.md §Toolchain unsafe_code = "deny" with a per-block opt-in forbid since M0 (ADR-0018); #[allow] cannot override it
SECURITY.md §Out of scope names russh and liboqs as dependencies neither is in the tree; the primitive crates are named instead
README.md §Related work "We use their [OQS] cryptographic libraries" ADR-0019 chose RustCrypto ml-kem over liboqs-rust
.github/PULL_REQUEST_TEMPLATE.md bot PRs covered by fmt/clippy/test/deny/audit audit runs weekly, never on PRs; commit-lint and openssh-interop (both required) were missing
docs/adr/README.md step 5 "On merge, the ADR is Accepted" true, and the Status line is flipped in a follow-up PR (practice since #86; #158 did it for ADR-0030/0031/0032) — now written down
ADRs 0016–0024 §Links Implementation: TBD (no code has landed yet) false at acceptance (2026-06-30): M0–M5 had merged, as #86's own table records

Each ADR gets a Post-acceptance errata banner (ADR-0022 already had one; extended) and its Links line names the implementing milestone, PR and modules. ADR-0020's Links line also states that the package-version pin its Decision names is not implemented (#98 closed) — a fact, not a decision change; the pin itself is a separate follow-up.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that changes existing behaviour)
  • Documentation only
  • Refactor / chore / CI / build

Checklist

  • My commits are signed off under the
    Developer Certificate of Origin
    (git commit -s).
  • My commit messages follow Conventional Commits.
  • I have run cargo fmt --all and cargo clippy --workspace --all-targets -- -D warnings locally. (N/A: docs only)
  • I have added or updated tests where appropriate. (N/A)
  • I have updated documentation (rustdoc, docs/, or README.md) where appropriate.
  • I have added a CHANGELOG.md entry under ## [Unreleased] if this change is user-visible. (N/A)
  • If this change introduces a new dependency, I have justified it in the PR description and verified it passes cargo deny check. (N/A)

Security considerations

None. SECURITY.md's out-of-scope list now points reporters at the crates actually in Cargo.lock.

Notes for reviewers

The ADR edits are errata under ADR-0015 (wrong at acceptance, banner with date, PR and description); the decision text of every ADR is untouched. The banner cites this PR's number.

Automated reviews

PRs authored by dependabot[bot] (and other bots) do not trigger opencode, Claude Code Review or codex.
They are covered by CI (commit-lint, build, cargo deny, openssh-interop; cargo audit runs weekly) and manual review when needed.

https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa

Six documents said things the code and the CI contradict, and nine
accepted ADRs carried a Links line that was false when they were
accepted. All surfaced by the reviewers of #155 and #157 and by the
verification sweep of 2026-09-22; none changes a decision.

- AGENTS.md and CONTRIBUTING.md claimed CI rejects unsigned and
  unsigned-off commits. Branch protection rejects unsigned commits and
  commit-lint rejects non-conventional subjects; nobody automates the
  DCO sign-off. Said so.
- CONTRIBUTING.md and docs/infrastructure.md described
  unsafe_code = "deny" with a per-block opt-in. The workspace has
  forbid since M0 (ADR-0018), with no #[allow] escape.
- SECURITY.md named russh and liboqs as third-party dependencies;
  neither is in the tree. Named the crates that are.
- README.md said QuantumSSH uses the Open Quantum Safe libraries;
  ADR-0019 chose RustCrypto's ml-kem over liboqs-rust.
- The PR template said bot PRs are covered by cargo audit; it runs
  weekly, never on PRs, and the list omitted commit-lint and
  openssh-interop, both required checks.
- docs/adr/README.md step 5 now describes the Status flip practice
  (Proposed on merge, flipped in a follow-up, since the #86 sweep).
- ADRs 0016-0024: "Implementation: TBD (no code has landed yet)" was
  false at acceptance on 2026-06-30, since M0-M5 had merged (#86's own
  table lists the implementing milestone per ADR). Each gets an
  ADR-0015 errata banner and the Links line now names the implementing
  code; ADR-0020's also states that its package-version pin is not
  implemented (#98 closed).

Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa
Signed-off-by: Gonzalo Fleming <[email protected]>
@github-actions

Copy link
Copy Markdown

Reviewer: Codex (openai/codex-action, model gpt-5.6-terra)

PR Review: docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) (#159)

Decision: 🟡 Minor changes
Iteration: First review
Lenses applied: Design decisions (docs/adr/), documentation accuracy, CI claims

Executive summary

The proposed errata banners and corrected Links entries accurately reflect the implemented Phase 1 milestones. However, several of the same accepted ADRs still contain contradictory claims that the crates or implementation modules do not exist, so this sweep does not yet correct all statements that no longer match the repository.

New findings

🟡 Important (should be resolved)

docs/adr/0021-phase-1-negotiation-profile.md:6 — incomplete factual errata (confidence: 88)

Problem: The new banner says the former “no code has landed” claim was false at acceptance, but the ADR’s Related field still says that kex and transport “do not exist yet” and the first crate has not landed. The same contradiction remains in ADR-0023 and ADR-0024’s Related fields, ADR-0022’s Related and Context text, and ADR-0018/0019’s Context text. These now conflict with both the new errata and the checked-in implementation.

Fix: Extend the existing annotated errata corrections to replace or clearly historicize the remaining stale implementation-status claims:

  • docs/adr/0018-phase-1-unsafe-code-forbid-workspace.md:18
  • docs/adr/0019-phase-1-ml-kem-crate-rustcrypto.md:18
  • docs/adr/0022-phase-1-async-runtime-tokio.md:6,27
  • docs/adr/0023-phase-1-channel-layer-scope.md:6
  • docs/adr/0024-phase-1-log-event-schema.md:6

Anchor: ADR-0015 permits annotated corrections for factual errors in accepted ADRs; CLAUDE.md requires accepted ADR edits to be limited to annotated errata.

@opencode-agent

Copy link
Copy Markdown

PR Review: docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) (#159)

Decision: 🟡 Minor changes
Iteration: Review #2 (0 resolved, 1 open)
Lenses applied: Design decision (ADR-0015 errata; ADRs 0016–0024), documentation accuracy, CI claims. (No Rust lens: no crates/ changes.)

Executive summary

A docs-only sweep correcting stale statements in six top-level documents and adding ADR-0015 errata banners to ADRs 0016–0024. The non-ADR corrections (AGENTS, CONTRIBUTING, SECURITY, README, infrastructure, PR template) all verify against the tree, and the errata banners respect ADR-0015 (only the banner and the Links line changed; decision text untouched; ADR-0022's existing banner was extended, not replaced). One new factual error is introduced in an ADR Links line, and the prior Codex finding — the same "no code has landed" claim surviving in the ADRs' Related fields — remains open.

Previous issues

# Issue Status Notes
1 Codex: incomplete factual errata — the Related fields of ADR-0021/0023/0024 (and ADR-0022) still say the modules "do not exist yet", contradicting the new Links lines and the merged code ❌ open Unchanged since the review. Still present at 0021:6, 0022:6, 0023:6, 0024:6. The Related line now directly contradicts the corrected Links line six lines below it. The ADR-0018/0019 Context lines it also named are historical framing of the pre-decision state, lower priority than the Related contradictions; the actionable part of this finding is still open.

New findings

🟡 Important (should be resolved)

docs/adr/0024-phase-1-log-event-schema.md:97 — factual error introduced by this PR (confidence: 90)

Problem: The new Links line misattributes the audit-event emitters:

`tracing` events throughout `quantumssh-core` (`auth.*` in `src/auth.rs`, `exec.*` in `src/exec.rs`), ...

auth.rs and exec.rs contain zero tracing calls. auth.failed/auth.succeeded are emitted in crates/quantumssh-core/src/transport.rs:729,766,835,856,886,924, and exec.started/exec.finished in crates/quantumssh-core/src/channel.rs:574,760. This is precisely the class of mismatch the PR exists to fix, so shipping a new one is self-defeating.
Fix:

- Implementation: M4 ([#78](...)) and M5 ([#84](...)) — `tracing` events throughout `quantumssh-core` (`auth.*` in `src/transport.rs`, `exec.*` in `src/channel.rs`), `tracing-subscriber` initialisation in `crates/quantumssh/src/main.rs`, and the escape-safe field formatter in `crates/quantumssh/src/log_fields.rs`.

Anchor: ADR-0015 (a factual errata edit must state the correction accurately); CLAUDE.md "What not to do" — do not cite paths as holding what they do not.

💡 Suggestions (nice to have)

  • .github/PULL_REQUEST_TEMPLATE.md:52 (confidence: 85): the list mixes exact check names (commit-lint, cargo deny, openssh-interop) with build, which is the job id — the contexts are build (ubuntu-latest) and build (macos-latest) (ci.yml:59; ADR-0031:44, docs/operations.md:220). Writing the two full names would make the sentence exact.

Verified clean / limitations

  • Non-ADR claims all check out: unsafe_code = "forbid" in Cargo.toml:89 (both crates inherit, no override); every crate named in SECURITY.md (ml-kem, x25519-dalek, ed25519-dalek, chacha20, poly1305, aes-gcm, tokio) is in Cargo.lock; no russh/liboqs anywhere; README.md's ADR-0019 correction is accurate; audit.yml is schedule-only (weekly) with no pull_request trigger; commit-lint, cargo deny, openssh-interop are literal job names and all workflow uses: are SHA-pinned.
  • ADR-0022's 2026-09-22 entry was appended after the existing 2026-07-19 entry, preserving the banner contract.
  • Commit signature: the one commit is verified: true per the GitHub API — no issue there.
  • Not observable from the repo (limitation): live branch-protection required_status_checks/required_signatures; the milestone→PR mappings #62/#64/#65 (shallow clone, and the referenced governance: flip Phase-1 ADRs 0016–0024 from Proposed to Accepted #86 table is not in the tree — #78/#84 are confirmed via docs/plans/); the merged/closed state of PR ci(interop): pin openssh-client to an exact version via snapshot.debian.org #98 (repo evidence is consistent with the claim).

github run

Comment thread docs/adr/README.md Resolved
Comment thread docs/infrastructure.md Resolved
…24 names the real emitters

Two review findings on the sweep:

- The new ADR-0024 Links line placed the auth.* and exec.* events in
  auth.rs and exec.rs, which hold no tracing calls; auth.* is emitted
  in transport.rs and exec.* in channel.rs (raised by opencode).
- The banners said the "no code has landed" claim was false at
  acceptance, but the Related and Context sentences of ADR-0018, 0019,
  0021, 0022, 0023 and 0024 still said the modules did not exist yet
  (raised by Codex). Those sentences now read as of drafting time and
  name the landing milestone; each banner entry says so.

Also writes the two build contexts by their full names in the PR
template, as ADR-0031 and docs/operations.md do.

Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa
Signed-off-by: Gonzalo Fleming <[email protected]>
@gonzafg2

Copy link
Copy Markdown
Owner Author

Re the first round on #159, both findings fixed in the follow-up commit:

  • opencode — ADR-0024 emitters: correct, auth.rs and exec.rs hold no tracing calls; the Links line now says auth.* is emitted in src/transport.rs and exec.* in src/channel.rs. The build contexts in the PR template are now written in full (build (ubuntu-latest), build (macos-latest)).
  • Codex — remaining "does not exist yet" sentences: the Related lines of ADR-0021/0022/0023/0024 and the Context sentences of ADR-0018/0019/0022 now read as of drafting time and name the landing milestone (Implementation: … (M2, #64); at drafting time they did not exist), and each of those six banner entries says the Related/Context sentences were historicised. The decision text is untouched.

@github-actions

Copy link
Copy Markdown

Reviewer: Codex (openai/codex-action, model gpt-5.6-terra)

PR Review: docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) (#159)

Decision: 🔴 Blocked
Iteration: Review #3 (3 resolved, 7 open)
Lenses applied: Design decisions (docs/adr/), documentation accuracy, CI claims

Executive summary

The follow-up resolves the earlier stale-Related wording, incorrect ADR-0024 emitter paths, and ambiguous build-context wording. However, seven previously raised factual and governance issues remain, including an acknowledged deviation from ADR-0020’s required OpenSSH package-version pin without a superseding ADR.

Previous issues

# Issue Status Notes
1 Remaining “does not exist yet” claims in ADR Related/Context fields ✅ resolved ADRs 0018, 0019, 0021–0024 now historicize the drafting-time state. Anchor: ADR-0015.
2 ADR-0024 attributed auth.* and exec.* events to the wrong modules ✅ resolved docs/adr/0024-phase-1-log-event-schema.md:99 correctly names transport.rs and channel.rs. Anchor: ADR-0015.
3 PR template used imprecise build-check names ✅ resolved .github/PULL_REQUEST_TEMPLATE.md:52 names both platform-specific build contexts.
4 ADR-0022 attributes Tokio, manifests, listener, and runtime construction to M3/#65 rather than M0/#62 ❌ open The incorrect M3 attribution remains in docs/adr/0022-phase-1-async-runtime-tokio.md:6, :22, and :109. Anchor: ADR-0015 factual-errata requirement.
5 ADR-0021 attributes transport.rs to M2/#64 rather than M3/#65 ❌ open docs/adr/0021-phase-1-negotiation-profile.md:6, :13, and :114 still need separate M2 and M3 attribution. Anchor: ADR-0015.
6 ADR-0024 backdates log_fields.rs to M4/M5 although it was added post-acceptance ❌ open docs/adr/0024-phase-1-log-event-schema.md:99 includes the formatter in the M4/M5 implementation claim; its banner makes the same overbroad claim. Distinguish the post-acceptance formatter work. Anchor: ADR-0015; threat model §5.4.3/§5.4.4.
7 ADR-0016 attributes the listener to M5/#84 rather than M0/#62 ❌ open docs/adr/0016-phase-1-service-account-uid-model.md:13 and :90 need to split the M0 listener from the M5 exec implementation. Anchor: ADR-0015.
8 ADR README overstates a follow-up status flip as the established practice since #86 ❌ open docs/adr/README.md:117 should describe the documented exceptions rather than generalize the #158 treatment. Anchor: CLAUDE.md requires documentation to remain accurate.
9 Infrastructure says first-party unsafe would require an RFC ❌ open docs/infrastructure.md:348 should say “a superseding ADR,” as required by ADR-0018. Anchor: ADR-0018 Consequences; CLAUDE.md “to change a decision, write a superseding ADR.”
10 ADR-0020’s required frozen-source package-version pin remains unimplemented without a superseding ADR ❌ open docs/adr/0020-phase-1-ci-openssh-interop-gate.md:79 acknowledges the deviation, while its Decision still mandates it. Implement the pin or supersede the decision; an errata note cannot replace a decision change. Anchor: CLAUDE.md accepted-ADR rule; ADR-0015.

@opencode-agent

Copy link
Copy Markdown

PR Review: docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) (#159)

Decision: 🟡 Minor changes
Iteration: Review #3 (3 resolved, 7 open)
Lenses applied: Documentation accuracy (ADR-0015 errata; ADRs 0016–0024; AGENTS/CONTRIBUTING/SECURITY/README/infrastructure/PR template), design & governance lanes. No Rust lens (no crates/ changes); no workflow changes.

Executive summary

A docs-only sweep that corrects stale statements in six top-level documents and adds ADR-0015 errata banners to ADRs 0016–0024. The non-ADR edits verify against the tree and the follow-up commit resolved the first-round Codex and opencode findings, but the new ADR Links lines still carry incorrect milestone attributions that were flagged by Claude Code Review and remain unfixed, and — most seriously — the ADR-0024 errata backdates the §5.4.3/§5.4.4 log-injection formatter past the ADR's acceptance date. One further stale sentence inside an edited ADR is left uncorrected.

Previous issues

# Issue Status Notes
1 Codex: Related/Context fields still claimed the code "does not exist yet", contradicting the new Links lines ✅ resolved Commit e3e3d31 historicised ADR-0018/0019 Context and ADR-0021/0022/0023/0024 Related ("at drafting time…").
2 opencode: ADR-0024 Links misattributed auth.*/exec.* to src/auth.rs/src/exec.rs ✅ resolved Now auth.* → src/transport.rs, exec.* → src/channel.rs — both hold the emitters (transport.rs:644-924, channel.rs:561-760). auth.rs/exec.rs hold none.
3 opencode (suggestion): PR template named the build job id, not contexts ✅ resolved Now build (ubuntu-latest) / build (macos-latest) — matches ci.yml:58-63.
4 Claude: ADR-0022 milestone is M3 (#65), should be M0 (#62) ❌ open 0022:109 and the banner at 0022:22 still say M3. #62 (M0) added Cargo.toml, both crate manifests, crates/quantumssh/src/main.rs and server.rs; #65 never touches crates/quantumssh/Cargo.toml or main.rs.
5 Claude: ADR-0021 attributes transport.rs to M2 (#64), it is M3 (#65) ❌ open 0021:114 still bundles both; #64 added kex.rs, #65 added transport.rs.
6 Claude: ADR-0024 attributes log_fields.rs to M4/M5; it landed in #101 (2026-07-06) ❌ open 0024:99 and banner 0024:10-14. ADR-0024 §Consequences calls this formatter "part of this decision"; the errata's blanket "had merged" by 2026-06-30 backdates the threat-model §5.4.3/§5.4.4 defence, erasing a real gap open in main until #101. (Also: the tracing-subscriber init in main.rs dates to M0 #62, not M4/M5.)
7 Claude: ADR-0016 attributes the listener server.rs to M5 (#84) ❌ open 0016:90; #62 added server.rs, #84 modified it. exec.rs (M5) is correct.
8 Claude: ADR README "the practice since the #86 sweep" overstated ❌ open README:120. ADR-0027 merged already Accepted (#92); ADR-0028/0029 were flipped inside their implementing PRs (#129/#128), not in follow-up PRs. Only ADR-0030/0031/0032 match #158.
9 Claude: docs/infrastructure.md says unsafe "would need an RFC" ❌ open infrastructure.md:348 contradicts ADR-0018:42 ("a superseding ADR") and CLAUDE.md:174 ("to change a decision, write a superseding ADR"). This PR replaced one wrong statement with another.
10 Claude: ADR-0020 errata records the mandated package-version pin as unimplemented while the Decision is untouched ❌ open 0020:79 vs Decision 0020:27-30, which states the pin "is part of this decision, not an implementation detail". interop.yml:36-50 pin the digest only and assert the 10.0p line; #98 is closed. Defensible as an interim factual note, but per ADR-0015/CLAUDE.md the permanent disposition is a superseding ADR.

New findings

🟡 Important (should be resolved)

docs/adr/0023-phase-1-channel-layer-scope.md:46 — stale statement left by the sweep (confidence: 88)

Problem: The Decision text still ends with "…the full event schema is being fixed by ADR-0024 (TBD — in review as PR #50)." ADR-0024 is Status: Accepted (2026-06-30), and PR #50 merged 2026-06-12 — so this was false at acceptance and is false now. This is exactly the class of "statement that no longer matches the repository" the PR exists to fix, in a file the PR edits (it changed only the header/Related and Links lines).
Fix: Point at the accepted ADR, e.g. "…the full event schema is fixed by ADR-0024."
Anchor: PR's stated goal ("correct the statements that no longer match the repository"); ADR-0024 Status: Accepted; CLAUDE.md §What not to do — "mark planned work as TBD" (here obsolete TBD is left in place).

💡 Suggestions (nice to have)

  • ADR-0021/0023/0024 errata banners (:15) all say "the Related and Context sentences … now read as of drafting time", but only the Related line was changed for these three — no Context sentence was touched. Narrowing the boilerplate would keep the banner itself accurate.

Verified clean / limitations

  • Non-ADR corrections verify: unsafe_code = "forbid" (Cargo.toml), SECURITY.md crates all in Cargo.lock, README's ADR-0019/ml-kem correction, audit.yml schedule-only, and the CI check names in the PR template. Both commits are verified: true per the GitHub API. ADR-0022's existing banner was extended (not replaced).
  • Not observable here (limitations): live branch-protection required_status_checks/required_signatures; milestone→PR mappings are confirmed via the GitHub API (#62/#64/#65/#78/#84/#101), not the shallow local clone.

github run

Comment thread docs/adr/README.md Resolved
…each edit touched

Claude checked the Links lines against the milestone PRs' file
lists and found four wrong attributions: server.rs (ADR-0016) and
everything ADR-0022 names landed in M0 (#62), not M5/M3;
transport.rs (ADR-0021) landed in M3 (#65), not M2; and
log_fields.rs (ADR-0024) came with #101 on 2026-07-06, after the
ADR's acceptance. All four corrected, with the banners' milestone
references.

Each banner now says which section the edit touched (Context in
0018/0019, Related in 0021/0023/0024, both in 0022) instead of the
same sentence everywhere. ADR-0020's Links line no longer carries a
note about the unimplemented package pin — that is decision-level
content and lives in ADR-0034 (#161). ADR-0023 no longer points at
"PR #50 in review" for the event schema, and ADR-0021 drops a "(TBD)"
next to the kex module.

docs/adr/README.md step 5 distinguishes the governance state from the
file's Status line and lists what actually happened (ADR-0027 merged
Accepted; 0028/0029 flipped in their implementing PRs; 0030-0032 in
#158) instead of calling one instance the practice.
docs/infrastructure.md says first-party unsafe would need a
superseding ADR, as ADR-0018 states, not an RFC. Findings by Claude
and opencode on #159.

Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa
Signed-off-by: Gonzalo Fleming <[email protected]>
@gonzafg2

Copy link
Copy Markdown
Owner Author

Re the second round on #159 (Claude inline, opencode general):

Each inline thread has a reply and is resolved; the branch-protection rule requires that before merge.

@github-actions

Copy link
Copy Markdown

Reviewer: Codex (openai/codex-action, model gpt-5.6-terra)

PR Review: docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) (#159)

Decision: 🟡 Minor changes
Iteration: Review #4 (10 resolved, 1 open)
Lenses applied: Design decisions (docs/adr/), documentation accuracy, CI claims

Executive summary

The follow-up accurately fixes the milestone attributions, historicizes the affected drafting-time statements, corrects the ADR process wording, and distinguishes the post-acceptance log formatter work. One stale implementation placeholder remains in an accepted ADR that this sweep otherwise corrects.

Previous issues

# Issue Status Notes
1 Stale “does not exist yet” Related/Context claims ✅ resolved Relevant statements are now explicitly framed as drafting-time state.
2 ADR-0024 attributed audit-event emitters to incorrect modules ✅ resolved transport.rs and channel.rs are now named.
3 PR-template build-check contexts were imprecise ✅ resolved Both platform-specific build contexts are named.
4 ADR-0022 incorrectly attributed Tokio/runtime work to M3 ✅ resolved Corrected to M0/#62.
5 ADR-0021 incorrectly attributed transport.rs to M2 ✅ resolved kex.rs is M2; transport.rs is M3.
6 ADR-0024 backdated log_fields.rs to M4/M5 ✅ resolved The post-acceptance #101 formatter work is now distinguished.
7 ADR-0016 incorrectly attributed the listener to M5 ✅ resolved Listener and exec work are correctly split between M0 and M5.
8 ADR README overstated and contradicted the Status-flip practice ✅ resolved It now distinguishes governance effect from the literal Status field and records the actual cases.
9 Infrastructure named an RFC rather than a superseding ADR for first-party unsafe ✅ resolved It now matches ADR-0018.
10 ADR-0020’s required frozen-source package-version pin is unimplemented ❌ open interop.yml:40-50 still installs an unversioned package from a live APT source; ADR-0031 also records the unresolved gap. The removed ADR-0020 annotation avoids an undocumented decision-level edit, but does not implement or supersede the requirement.
11 ADR-0023 retained the obsolete ADR-0024 “TBD / PR #50” statement ✅ resolved It now links to accepted ADR-0024.
12 Errata banners described sections they did not edit ✅ resolved Each banner now identifies the section actually historicized.

New findings

🟡 Important (should be resolved)

[docs/adr/0021-phase-1-negotiation-profile.md:78] — stale implementation placeholder in accepted ADR (confidence: 88)

Problem: This Consequences entry still calls the existing kex module “(TBD)”. M2/#64 is now documented elsewhere in this ADR as having implemented it, and this PR already removed the equivalent stale placeholder from Context. The unqualified marker is false at acceptance and today.

Fix: Remove (TBD) or explicitly historicize it as drafting-time wording.

Anchor: ADR-0015 permits factual errata for accepted ADRs; CLAUDE.md prohibits leaving “not implemented yet” placeholders in merged paths.

@opencode-agent

Copy link
Copy Markdown

PR Review: docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) (#159)

Decision: 🟡 Minor changes
Iteration: Review #4 (13 resolved, 1 partly resolved, 0 fully open from the prior round; 3 new findings)
Lenses applied: Design decision (ADR-0015 errata; ADRs 0016–0024), documentation accuracy, CI claims and governance. No Rust lens (no crates/ changes); no workflow changes.

Executive summary

A docs-only sweep that corrects stale statements in six top-level documents and adds ADR-0015 errata banners to ADRs 0016–0024. The third commit (ccd4ecc) resolves the bulk of the prior round — the milestone attributions, the ADR-0024 emitters, the ADR README overstatement, the infrastructure.md "RFC" wording, and the ADR-0020 note — and the non-ADR edits all verify against the tree. What remains are three completeness gaps in the ADRs the PR itself edits: two present-tense deny/planned forbid claims, a surviving (TBD) next to a module that shipped, and errata banners that do not mention the Context/Decision sentences those same commits changed. One prior issue is still partly open: the tracing-subscriber initialisation is still attributed to M4/M5 although it landed in M0. No decision change, no security or legacy-crypto issue.

Previous issues

# Issue Status Notes
1 Related/Context still claimed the code "does not exist yet", contradicting the new Links ✅ resolved e3e3d31 historicised ADR-0018/0019 Context and ADR-0021/0022/0023/0024 Related ("at drafting time…").
2 ADR-0024 Links misattributed auth.*/exec.* to src/auth.rs/src/exec.rs ✅ resolved Now auth.* → src/transport.rs (transport.rs:729,856), exec.* → src/channel.rs (channel.rs:574,760); verified by grep.
3 PR template named the build job id, not the contexts ✅ resolved build (ubuntu-latest) / build (macos-latest) match ci.yml:58.
4 ADR-0022 milestone M3 (#65) should be M0 (#62) ✅ resolved Related, Links and banner now all M0; #62 did add tokio, both manifests, server.rs and main.rs.
5 ADR-0021 attributed transport.rs to M2 (#64); it is M3 (#65) ✅ resolved Attribution split: kex.rs M2, transport.rs M3.
6 ADR-0016 attributed the listener server.rs to M5 (#84); it is M0 (#62) ✅ resolved Now M0 for server.rs, M5 for exec.rs.
7 Errata banners described edits that were not made (Related and Context) ✅ resolved Each banner now names the section it touched (Context in 0018/0019, Related in 0021/0023/0024, both in 0022) — but see new finding 3 for the sections still unnamed.
8 ADR README "the practice since the #86 sweep" overstated ✅ resolved Now lists ADR-0027 (#92, merged Accepted), ADR-0028/0029 (#129/#128, flipped in the implementing PR), ADR-0030–0032 (#158).
9 docs/infrastructure.md said first-party unsafe "would need an RFC" ✅ resolved Now "a superseding ADR", matching ADR-0018:42.
10 ADR-0023 stale (TBD — in review as PR #50) ✅ resolved Now "fixed by ADR-0024".
11 ADR-0024 log_fields.rs attributed to M4/M5; it landed in #101 🔄 partly resolved The Links line now says the formatter "followed in [#101] (2026-07-06, after acceptance)" — correct. But the same line still attributes tracing-subscriber initialisation in crates/quantumssh/src/main.rs to M4/M5, and that initialisation landed in M0 (#62): at the M0 merge commit 063f83b6b7578a08472335771b7dec02ca002dec, main.rs already contains init_logging and tracing_subscriber::registry().init(). M0 also emitted connection.accepted/connection.closed and server.config_error. The banner at 0024:13 and the Related line at 0024:6 repeat the M4/M5 attribution. (Claude raised the main.rs point at 22:32; it is the remaining open half.)
12 ADR-0020 errata recorded the mandated package-version pin as unimplemented while the Decision was untouched ✅ resolved for this PR The decision-level note was removed; the gap stays recorded in ADR-0031:88-90, and the follow-up is PR #161 (ADR-0034, still open). Removing it from an errata sweep is the right governance call.
13 ADR README step 5 was self-contradictory ("Accepted on merge" vs "merges Proposed") ✅ resolved Now "On merge, the decision is in effect … whatever its Status line says".
14 ADR-0020 banner did not describe the non-implementation edit ✅ resolved The edit it described was removed.

New findings

🟡 Important (should be resolved)

docs/adr/0017-phase-1-workspace-topology-two-crates-flat.md:48 and docs/adr/0019-phase-1-ml-kem-crate-rustcrypto.md:36 — stale deny / planned-forbid claims left in edited ADRs (confidence: 85)

Problem: Both files still carry a present-tense claim that the lint is deny and that forbid is only planned:

0017:48  the workspace `unsafe_code` lint (`"deny"` today; promoted to `"forbid"` by the planned [ADR-0018]…)
0019:36   compatible with the workspace `unsafe_code` lint, including the planned `"forbid"` promotion

unsafe_code = "forbid" has been in Cargo.toml since M0 (#62, merged 2026-06-12); these ADRs were accepted 2026-06-30, so both lines were false at acceptance and are false now. This PR fixes the identical phrasing in ADR-0018:20, ADR-0019:20, CONTRIBUTING.md and docs/infrastructure.md, and it edits both of these files — but left these two. ADR-0019 is internally inconsistent: line 20 now says "forbid since M0" while line 36 still says "planned".
Fix: Historicise both, as the sibling Context edits do — e.g. the workspace unsafe_code lint (\"deny\" at drafting time, \"forbid\" since M0 under ADR-0018).
Anchor: ADR-0015 ("Corrections to factual claims that were wrong at the time of acceptance"); CLAUDE.md:43; the PR's stated goal.

docs/adr/0021-phase-1-negotiation-profile.md:78 — stale (TBD) next to a module that shipped (confidence: 88)

Problem: The Consequences section still reads One authoritative source for the wire profile: the kex module (TBD) and the ADR-0020 interop tests…. crates/quantumssh-core/src/kex.rs was created by M2 (#64, 2026-06-12) and is named by this ADR's own Links line (0021:114). ccd4ecc removed the other (TBD) in the Context (line 22) and its commit message says "ADR-0021 drops a '(TBD)' next to the kex module" — one remains.
Fix: Drop (TBD): the kex module (or the kex module (M2, #64)).
Anchor: CLAUDE.md:171-172 ("mark planned work … as TBD" — the inverse here: landed work still marked planned); ADR-0015; the PR's stated goal.

docs/adr/0023-phase-1-channel-layer-scope.md:14-16 and docs/adr/0021-phase-1-negotiation-profile.md:14-16 — errata banners omit a Context/Decision edit the same commits made (confidence: 84)

Problem: ccd4ecc also changed the Decision body of ADR-0023 (line 46: is being fixed by ADR-0024 (TBD — in review as PR #50) → is fixed by [ADR-0024]) and the Context of ADR-0021 (line 22: removed (TBD)). Both banners name only the Links section and "the Related sentence", so a reader consulting the banner is told those were the only corrections. The ADR-0023 edit is inside the Decision section, which is exactly where ADR-0015's disclosure value is highest.
Fix: Add the missing clause to each banner, e.g. …and the Context sentence that carried a stale (TBD) now names ADR-0024 (ADR-0023) and …and the Context (TBD) on the kex module was dropped (ADR-0021).
Anchor: ADR-0015 §Decision item 3 ("a short description of what was corrected") and §Negative (the un-annotated-edit abuse vector this banner exists to defeat).

💡 Suggestions (nice to have)

Verified clean / limitations

  • Non-ADR edits all verify: unsafe_code = "forbid" (Cargo.toml:89); every crate named in SECURITY.md (ml-kem, x25519-dalek, ed25519-dalek, chacha20, poly1305, aes-gcm, tokio) present in Cargo.lock, with russh/liboqs absent; README.md's ADR-0019 correction accurate; every CI name in the PR template is a real job/context (commit-lint, build (ubuntu-latest), build (macos-latest), cargo deny, openssh-interop) and audit.yml is schedule-only; all workflow uses: remain full-SHA pinned and no workflow changed.
  • Governance: no decision-level change in ADRs 0016–0024 (only ADR-0023:46, a factual pointer correction, touches a Decision section — covered above); all banners carry date, PR and description; no prompt-injection text in the diff, description or commit messages; no newly-added in-tree reference to a non-existent path.
  • Signatures: all three commits report .commit.verification.verified: true via the GitHub API.
  • Limitations: live branch-protection settings are not readable with this token (/branches/main/protection → 403), so the AGENTS.md/CONTRIBUTING.md signature-enforcement wording is unverifiable here and is not reported; ADR-0034 is not in the tree and PR ci(interop): pin openssh-client to the snapshot the image was built from (ADR-0034) #161 is open — its content is out of scope for this PR.

github run

Two sentences still said the unsafe_code lint was deny with forbid
only planned (ADR-0017 Consequences, ADR-0019 Decision), and
ADR-0021's Consequences kept a "(TBD)" next to the kex module that
shipped in M2. All were false at acceptance; now read as of drafting
time or name the milestone, and the ADR-0017 banner records the
Consequences edit. Raised by opencode on #159.

Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa
Signed-off-by: Gonzalo Fleming <[email protected]>
@gonzafg2

Copy link
Copy Markdown
Owner Author

Re opencode review #3: both fixed in the follow-up commit — ADR-0017 §Consequences and ADR-0019 §Decision now say "deny" at drafting time, "forbid" since M0 under ADR-0018 (banners record the Consequences/Decision edits), and ADR-0021 §Consequences names the kex module as M2 (#64) instead of (TBD).

@github-actions

Copy link
Copy Markdown

Reviewer: Codex (openai/codex-action, model gpt-5.6-terra)

PR Review: docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) (#159)

Decision: 🟡 Minor changes
Iteration: Review #5 (12 resolved, 2 open, 1 partly resolved)
Lenses applied: Design decisions (docs/adr/), documentation accuracy, CI governance

Executive summary

The follow-ups resolve the stale implementation placeholders, inaccurate milestone/path claims, and the incorrect unsafe_code and ADR-process wording. The checked-in interop workflow still diverges from ADR-0020’s required frozen package-version pin, and ADR-0024 still attributes subscriber initialization to M4/M5 instead of M0. Two accepted-ADR edits also remain incompletely described by their errata banners.

Previous issues

# Issue Status Notes
1 Stale “does not exist yet” Related/Context claims ✅ resolved Historicized as drafting-time state.
2 ADR-0024 named incorrect modules for auth.* / exec.* emitters ✅ resolved ADR-0024:99 correctly names transport.rs and channel.rs.
3 PR-template build-check names were imprecise ✅ resolved Both platform-specific build contexts are named.
4 ADR-0022 attributed Tokio/runtime work to M3 rather than M0 ✅ resolved ADR-0022:109 names M0/#62.
5 ADR-0021 attributed transport.rs to M2 rather than M3 ✅ resolved ADR-0021:114 splits M2 kex.rs from M3 transport.rs.
6 ADR-0016 attributed the listener to M5 rather than M0 ✅ resolved ADR-0016:90 correctly separates listener and exec work.
7 Errata banners named sections not actually edited ✅ resolved The affected banners now identify the applicable Related, Context, Consequences, or Decision text.
8 ADR README overstated the Status-flip practice ✅ resolved ADR README:117 records the actual cases.
9 Infrastructure required an RFC rather than a superseding ADR for first-party unsafe ✅ resolved It now agrees with ADR-0018.
10 ADR-0020’s frozen-source package-version pin is not implemented ❌ open ADR-0020:24-30 requires an explicit package version from a frozen source, while interop.yml:40-50 uses a live APT source and unversioned package.
11 ADR-0024 backdated log_fields.rs to M4/M5 🔄 partly resolved The formatter is now correctly identified as post-acceptance, but ADR-0024:6 and ADR-0024:99 still attribute tracing-subscriber initialization to M4/M5; it landed with M0/#62.
12 ADR-0023 retained the obsolete ADR-0024 “TBD / PR #50” statement ✅ resolved ADR-0023:46 now links to ADR-0024.
13 ADR-0017/0019 retained deny / planned-forbid claims ✅ resolved Both now distinguish drafting-time state from M0.
14 ADR-0021 retained a (TBD) marker beside shipped kex work ✅ resolved ADR-0021:78 now names M2/#64.
15 Errata banners omitted other accepted-ADR edits made in the same PR ❌ open ADR-0021:10-16 omits its Context edit, and ADR-0023:10-16 omits its Decision edit.

@opencode-agent

Copy link
Copy Markdown

PR Review: docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) (#159)

Decision: 🟡 Minor changes
Iteration: Review #5 (10 resolved, 2 open; 3 new findings)
Lenses applied: Documentation accuracy (ADR-0015 errata; ADRs 0016–0024; AGENTS/CONTRIBUTING/SECURITY/README/infrastructure/PR template), design & governance. No Rust lens (no crates/ changes); no workflow changes.

Executive summary

A docs-only sweep that corrects stale statements in six top-level documents and adds ADR-0015 errata banners to ADRs 0016–0024. The fourth commit (ea88fbc) resolves the last stale deny/planned-forbid sentences and the (TBD) beside the shipped kex module, and the non-ADR corrections all verify against the tree. Two carried-over issues remain: the ADR-0024 Links line still attributes the tracing-subscriber initialisation to M4/M5 although it landed in M0, and the ADR-0021/0023 banners still omit the Context/Decision sentences the same commits changed. Three further stale statements are left in files this PR edits.

Previous issues

# Issue Status Notes
1 Related/Context still claimed the code "does not exist yet" ✅ resolved e3e3d31 historicised ADR-0018/0019 Context and ADR-0021/0022/0023/0024 Related.
2 ADR-0024 Links misattributed auth.*/exec.* to src/auth.rs/src/exec.rs ✅ resolved Now auth.* → src/transport.rs, exec.* → src/channel.rs.
3 PR template named the build job id, not the contexts ✅ resolved build (ubuntu-latest) / build (macos-latest) match ci.yml:59.
4 Milestone misattributions (ADR-0022 M3→M0, ADR-0021 transport.rs M2→M3, ADR-0016 listener M5→M0, ADR-0024 log_fields.rs → #101) ✅ resolved Verified against the GitHub API PR file lists; ccd4ecc.
5 ADR README step 5 overstated/self-contradictory ✅ resolved Now distinguishes the governance state from the Status field and lists the real cases (#92, #129/#128, #158).
6 docs/infrastructure.md said first-party unsafe "would need an RFC" ✅ resolved Now "a superseding ADR", matching ADR-0018:42.
7 ADR-0023 stale (TBD — in review as PR #50) ✅ resolved Now links accepted ADR-0024.
8 ADR-0021:78 stale (TBD) next to the shipped kex module ✅ resolved ea88fbc names M2 (#64).
9 ADR-0017:48 / ADR-0019:36 stale deny/planned-forbid ✅ resolved ea88fbc.
10 ADR-0021/0023 errata banners omit the Context/Decision edits the same commits made ❌ open Still only "the Related sentence". ADR-0021 also omits the Context (TBD) removal at 0021:22 and the Consequences change at 0021:78; ADR-0023 omits the Decision edit at 0023:46. Banner: 0021:10-16, 0023:10-16. Anchor: ADR-0015 §Decision item 3 ("a short description of what was corrected").
11 ADR-0024 Links attributes the tracing-subscriber initialisation to M4/M5; it landed in M0 (#62) ❌ open 0024:99 and the banner at 0024:10-14. main.rs at M0's merge commit 063f83b already contains init_logging + tracing_subscriber::registry()…init(); #78's only main.rs change is the --authorized-keys CLI, and #84 never touches the file. The auth.*/exec.* events did land in M4/M5; the subscriber init did not. Anchor: ADR-0015 (the errata must state the correction accurately).
12 ADR-0020's mandated package-version pin unimplemented ✅ resolved for this PR The decision-level note was removed from the Links line; the gap is tracked by open PR #161 / ADR-0034.

New findings

🟡 Important (should be resolved)

README.md:51 — stale unsafe claim left in an edited file (confidence: 82)

Problem: The vision section still says "No unsafe blocks in the protocol or crypto layers without justification, review, and tests." That implies a justified unsafe is possible, which unsafe_code = "forbid" (Cargo.toml:89, no #[allow] escape) makes impossible. This PR corrected the identical wording in CONTRIBUTING.md:127 and docs/infrastructure.md:345, and README.md:105 already states the forbid posture — so the README now contradicts itself.
Fix: No unsafe blocks in the protocol or crypto layers. The workspace sets unsafe_code = "forbid" ([ADR-0018](docs/adr/0018-phase-1-unsafe-code-forbid-workspace.md)) — there is no #[allow] escape.
Anchor: PR's stated goal ("statements that no longer match the repository"); CLAUDE.md commitment #1 / ADR-0018.

💡 Suggestions (nice to have)

  • docs/adr/0018-phase-1-unsafe-code-forbid-workspace.md:26,28,47: the Decision still says "replacing the current \"deny\"" and the Consequences still say "today's empty workspace" / "the workspace is empty". The PR reframed the parallel Context sentence at 0018:20 but left these; Cargo.toml is already forbid and two crates exist.
  • docs/adr/0022-phase-1-async-runtime-tokio.md:97: Alternative 2 still says "The placeholder in the current Cargo.toml" although the Context was reframed to "At drafting time … carried … a commented placeholder" and the placeholder is gone (Cargo.toml:27).

Verified clean / limitations

  • Non-ADR claims verify: unsafe_code = "forbid" (Cargo.toml:89) inherited by both crates with no override; every crate named in SECURITY.md (ml-kem, x25519-dalek, ed25519-dalek, chacha20, poly1305, aes-gcm, tokio) is in Cargo.lock and russh/liboqs are absent; README.md's ADR-0019 correction is accurate; audit.yml is schedule-only with no pull_request trigger; every CI name in the PR template is a real job/context (commit-lint, build (ubuntu-latest), build (macos-latest), cargo deny, openssh-interop) and all workflow uses: remain full-SHA pinned; commit-lint enforces Conventional Commits and no workflow enforces the DCO sign-off.
  • Governance: no decision-level change beyond the factual pointer in ADR-0023:46; every banner carries date, PR and description; no prompt-injection text in the diff, description or commit messages.
  • All four commits report .commit.verification.verified: true via the GitHub API.
  • Not observable here (limitation): live branch-protection required_status_checks/required_signatures, so the AGENTS.md/CONTRIBUTING.md signature-enforcement wording is documented-only and not verified; milestone→PR mappings were checked against the GitHub API's PR file lists (the local clone is shallow).

github run

@gonzafg2

Copy link
Copy Markdown
Owner Author

Re opencode review #7, both in the follow-up commit: AGENTS.md now describes the transport as it is (M3 type-state machine through user auth, the session/exec channel and ADR-0026 re-keying) and the server as concurrent since Phase 2 (ADR-0028 JoinSet loop, admission control, graceful shutdown); docs/infrastructure.md no longer calls the threat model a skeleton.

@github-actions

Copy link
Copy Markdown

Reviewer: Codex (openai/codex-action, model gpt-5.6-terra)

PR Review: docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) (#159)

Decision: 🟡 Minor changes
Iteration: Review #10 (21 resolved, 3 open)
Lenses applied: Design decisions (docs/adr/), documentation accuracy, CI governance

Executive summary

The latest commit resolves the reported AGENTS architecture drift and infrastructure threat-model wording. The errata changes remain properly annotated and no Rust, dependency, workflow, or cryptographic surface changed.

Three previously raised documentation/governance issues remain open: ADR-0020’s package pin divergence, plus two stale README/infrastructure claims in files this PR edits.

Previous issues

# Issue Status Notes
1 ADR errata omitted or misdescribed implementation status, milestones, paths, or corrected sections across ADRs 0016–0024 ✅ Corrected and banner-documented.
2 ADR-0024 incorrectly attributed event emitters, subscriber initialization, formatter timing, or event scope ✅ Correctly separates M0 subscriber initialization, M4/M5 auth.*/exec.*, and post-acceptance formatter work.
3 ADR README acceptance-process wording was inaccurate ✅ Now distinguishes decision effect from the literal Status field.
4 Stale unsafe_code = "deny" / planned-forbid wording in docs and ADRs ✅ Historicized or corrected to the workspace-wide forbid posture.
5 README named the unused chacha20poly1305 crate ✅ Now names chacha20 plus poly1305.
6 ADR-0016 retained stale future-work references ✅ Corrected and annotated as errata.
7 Infrastructure retained Phase-0-present-tense workspace and skeleton-threat-model claims 🔄 The Phase-0 and threat-model claims are fixed; the workspace-empty claim below remains open.
8 AGENTS architecture summary lagged the type-state transport and concurrent server ✅ Updated for M3–M5 transport/rekeying and ADR-0028 concurrency.
9 README advertises prohibited or unsupported MVP surface ❌ README.md:55-57 still permits password authentication “in the default profile,” narrows the RSA exclusion to RSA-1024, and says PTY/SFTP are supported despite both remaining Phase-2 work.
10 ADR-0020 requires an explicit frozen-source OpenSSH package version, but CI installs an unversioned package from live APT metadata ❌ interop.yml:40-50 still diverges from ADR-0020’s Decision.
11 Infrastructure says CI guards run while the workspace is empty ❌ docs/infrastructure.md:324-326 remains present tense although the workspace has two members.

Decision: 🟡 Minor changes

@opencode-agent

Copy link
Copy Markdown

PR Review: docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) (#159)

Decision: 🟡 Minor changes
Iteration: Review #9 (2 resolved since #8; 3 open carried; 2 new findings)
Lenses applied: Documentation accuracy (ADR-0015 errata; ADRs 0016–0024; AGENTS/CONTRIBUTING/SECURITY/README/infrastructure/PR template), governance and CI claims. No Rust lens (no crates/ changes); no workflow file changed.

Executive summary

A docs-only errata sweep that corrects stale statements in six top-level documents and adds ADR-0015 banners to ADRs 0016–0024. The follow-up 76fb059 resolved the two round-8 findings (the threat-model "skeleton" note and the AGENTS.md transport/server bullets), and every claim this PR adds — milestone→PR attributions, emitter paths, crate names, CI check names, ADR README status-flip cases — verifies against the tree and the GitHub API. What remains are carried items and two same-class misses the sweep did not reach: a false universal claim about CI guards, and a stale #[tokio::main] claim inside an ADR the PR edits. No decision change, no security or legacy-crypto issue, no workflow surface touched.

Previous issues

# Issue Status Notes
1 ADR-0020's mandated frozen-source, explicit OpenSSH package-version pin is unimplemented ❌ open (out of scope) Decision-level, not fixable by errata; the PR correctly dropped its note and it is tracked by open #161 / ADR-0034. Not counted against this PR.
2 docs/infrastructure.md called the threat model a skeleton ✅ resolved 76fb059: now "substantive; structural changes go through the RFC process" (:413-414).
3 AGENTS.md transport/server architecture bullets stale ✅ resolved 76fb059: transport described as the M3 type-state machine through auth/session + ADR-0026 rekey; server as concurrent under ADR-0028.
4 docs/infrastructure.md:326 — "gated by lightweight predicates while the workspace is still empty" ❌ open Cargo.toml:9 declares two members and both crates exist; the guards' predicates are inert. The same file historicises the identical premise at :335 ("During Phase 0 it was members = []").
5 README.md:55-57 advertises an incompatible MVP surface (Codex #9) ❌ open :57 "The MVP supports … interactive PTY shell, and SFTP" contradicts README.md:25 ("Still open before 0.1.0: interactive PTY, SFTP") and README.md:125-126 (both unchecked); channel.rs:734 refuses pty-req/subsystem. :57 also promises forwarding "gated behind feature flags" but no [features] section exists in any manifest. Fix: describe the current MVP as publickey auth + one non-interactive exec channel, and keep PTY/SFTP/forwarding as Phase-2 roadmap items. (The narrower :55 "No RSA-1024" / "No password auth in the default profile" wording is the gap RFC-0009 §"Scope boundary" explicitly defers to a separate concern, so I do not treat it as a violation here.)
6 All earlier-round items (milestone attributions, ADR-0024 emitters/subscriber, banner section names, README unsafe/chacha20poly1305, ADR-0016 forward refs, ADR README step 5, infrastructure.md RFC→ADR and Phase-0 tense) ✅ resolved Verified at HEAD against the tree and the API.

New findings

🟡 Important (should be resolved)

docs/infrastructure.md:359-362 — stale universal claim about CI guards (confidence: 82)

Problem: The note opens with a claim the tree contradicts:

Each CI workflow that runs a Cargo subcommand is gated by a small
predicate, but the predicates are not the same across the three
workflows: they match the actual failure mode of the Cargo command
they protect.

.github/workflows/interop.yml runs cargo build --workspace --release (line 67) and has no guard (grep finds no if:/members/Cargo.lock predicate), and it is a fourth Cargo-running workflow, not one of "the three". It was added by M5 (#84) after the workspace already had members, so it never needed the Phase-0 guard — but the universal sentence was never scoped. This is the same "statement that no longer matches the repository" class the PR exists to fix, in a file it edits.
Fix: Scope the sentence to the Phase-0 guard set, e.g. Each of the three workflows that ran a Cargo subcommand during Phase 0 (ci.yml, deny.yml, audit.yml) is gated by a small predicate…; interop.yml, added once the workspace had members, needs no guard.
Anchor: PR's stated goal; CLAUDE.md "What not to do" — do not describe state that does not match the tree; .github/workflows/interop.yml:67.

🟡 Important (should be resolved)

docs/adr/0022-phase-1-async-runtime-tokio.md:65 (and the feature comment at :49) — stale #[tokio::main] claim (confidence: 82)

Problem: The Decision's "Crate placement" bullet states the binary "is the only crate that constructs the runtime (#[tokio::main])", and the tokio feature list comments "macros" as # #[tokio::main] in the binary. Neither matches the tree: crates/quantumssh/src/main.rs:420 constructs the runtime with tokio::runtime::Builder::new_multi_thread(), and a repo-wide grep finds no #[tokio::main] at all (macros is used only by #[tokio::test]). It was true at acceptance (M0's main.rs did use #[tokio::main]) and was later replaced to size blocking threads per the connection cap; the same ADR's existing 2026-07-19 errata already documents an implementation divergence (sync::broadcast never built), so this belongs in the same errata vehicle. The PR edits ADR-0022 but leaves both lines.
Fix: Add an errata entry and correct the parenthetical, e.g. …is the only crate that constructs the runtime (since Phase 2, via tokio::runtime::Builder::new_multi_thread() to size blocking threads per ADR-0028), and drop # #[tokio::main] in the binary from the feature comment.
Anchor: ADR-0015 (annotated factual errata); CLAUDE.md "What not to do" — no "not implemented yet"/stale framing in a merged path; crates/quantumssh/src/main.rs:420.

💡 Suggestions (nice to have)

  • docs/adr/0021-phase-1-negotiation-profile.md:16-17 (confidence: 62): the banner says "the two (TBD) markers next to the kex module (Context, Consequences) name the milestone instead", but only the Consequences marker was replaced (the kex module (M2, [#64])); the Context marker was deleted (:23 now just "the kex module"). Narrowing the wording keeps the errata description exact.
  • docs/infrastructure.md:66 (confidence: 58): the mermaid node CI["CI workflows<br/>workspace-empty guards"] still labels CI by a Phase-0 function that no longer applies; :337 ("guard … until the first crate lands; the guards self-disable on that event") has the same stale tense.

Verified clean / limitations

github run

…lows

It said every Cargo-running workflow is gated and spoke of "the three
workflows"; interop.yml (M5) runs cargo build with no guard, because
the workspace already had members when it was added. Scoped the
sentence and said so. Raised by opencode on #159.

Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa
Signed-off-by: Gonzalo Fleming <[email protected]>
@gonzafg2

Copy link
Copy Markdown
Owner Author

Re opencode review #8:

@github-actions

Copy link
Copy Markdown

Reviewer: Codex (openai/codex-action, model gpt-5.6-terra)

PR Review: docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) (#159)

Decision: 🟡 Minor changes
Iteration: Review #11 (23 resolved, 3 open)
Lenses applied: Design decisions (docs/adr/), documentation accuracy, CI governance

Executive summary

The follow-ups accurately correct the documented milestone, dependency, unsafe_code, architecture, and errata-banner details. No Rust, dependency, workflow, cryptographic, or license surface changed.

Three earlier issues remain: the README describes unsupported current functionality, infrastructure retains a Phase-0-present-tense CI statement, and the accepted ADR-0020 package-version pin is still absent from the workflow.

Previous issues

# Issue Status Notes
1 Stale “no code has landed” ADR Related/Context claims ✅ Historicized as drafting-time state.
2 ADR-0024 event emitters named wrong modules ✅ Correctly identifies transport.rs and channel.rs.
3 PR-template build contexts were imprecise ✅ Both platform-specific contexts are named.
4 ADR-0022 Tokio/runtime work attributed to M3 rather than M0 ✅ Corrected to M0/#62.
5 ADR-0021 transport.rs attributed to M2 rather than M3 ✅ Separates M2 kex.rs and M3 transport.rs.
6 ADR-0016 listener attributed to M5 rather than M0 ✅ Separates M0 listener and M5 exec work.
7 ADR-0024 formatter/subscriber timing and milestone attribution ✅ Subscriber is M0; formatter is post-acceptance #101.
8 ADR README acceptance-process wording ✅ Now distinguishes decision effect from literal Status.
9 Infrastructure required an RFC rather than a superseding ADR for unsafe ✅ Matches ADR-0018.
10 ADR-0020’s explicit frozen-source OpenSSH package pin is absent ❌ .github/workflows/interop.yml:40 still installs an unversioned package from live APT metadata, contrary to ADR-0020:29.
11 ADR-0023 obsolete ADR-0024 TBD wording ✅ Links to the accepted ADR.
12 Stale deny / planned-forbid wording ✅ Historicized across the affected docs and ADRs.
13 Shipped KEX module marked TBD ✅ Corrected to M2/#64.
14 Errata banners omitted accepted-ADR edits ✅ Corrected banners describe the changed sections.
15 README implied justified first-party unsafe was allowed ✅ Now documents workspace-wide unsafe_code = "forbid".
16 Stale first-crate/current-workspace statements ✅ Historicized and banner-documented.
17 README named unused chacha20poly1305 crate ✅ Corrected to chacha20 plus poly1305.
18 ADR-0016 stale future-work references ✅ Names ADR-0023 and outstanding guidance accurately.
19 Infrastructure Phase-0-present-tense topology claims ✅ Historicized.
20 ADR-0024 M4/M5 event scope was too broad ✅ Scoped to auth.* and exec.*.
21 Infrastructure described the threat model as a skeleton ✅ Now describes it as substantive.
22 AGENTS transport/server architecture summary lagged implementation ✅ Updated for type-state transport, rekeying, and concurrent server operation.
23 ADR-0022’s historical #[tokio::main] wording ✅ Not an ADR-0015 erratum: it was true at acceptance and ADR-0028 records the later runtime-builder change.
24 README advertises prohibited or unsupported MVP surface ❌ Remains at README.md:55.
25 Infrastructure says CI guards operate while the workspace is empty ❌ Remains at docs/infrastructure.md:324.
26 Infrastructure’s universal CI-guard claim ✅ Correctly scoped to the three Phase-0 workflows.

…ace; infrastructure.md guard tense

README's vision bullets said "No RSA-1024" and "no password auth in
the default profile", weaker than the floor CLAUDE.md and the
manifesto set (no RSA, no password authentication, none of it
compiled in), and said the MVP "supports" PTY and SFTP, which are
Phase 2 work; both now match. docs/infrastructure.md said the CI
guards operate while the workspace is still empty; that was Phase 0.
Open items from Codex on #159.

Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa
Signed-off-by: Gonzalo Fleming <[email protected]>
@gonzafg2

Copy link
Copy Markdown
Owner Author

Re Codex's three open items on #159:

@github-actions

Copy link
Copy Markdown

Reviewer: Codex (openai/codex-action, model gpt-5.6-terra)

PR Review: docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) (#159)

Decision: 🟡 Minor changes
Iteration: Review #12 (25 resolved, 1 open)
Lenses applied: Design decisions (docs/adr/), documentation accuracy, CI governance

Executive summary

The final documentation sweep accurately reflects the current transport, server concurrency, crypto/dependency posture, and Phase-1 implementation history. Accepted-ADR changes remain annotated under ADR-0015, and no Rust, dependency, workflow, cryptographic, or licensing surface changed.

The previously identified ADR-0020 package-pin divergence remains in the checkout, though it is not introduced by this docs-only PR.

Previous issues

# Issue Status Notes
1 Stale “no code has landed” claims across ADRs 0016–0024 ✅ Historicized or replaced with verified implementation references.
2 ADR-0024 named incorrect modules for auth.* / exec.* events ✅ Correctly identifies transport.rs and channel.rs.
3 PR-template build-check contexts were imprecise ✅ Names both platform-specific build contexts.
4 ADR-0022 attributed Tokio/runtime work to M3 rather than M0 ✅ Corrected to M0/#62.
5 ADR-0021 attributed transport.rs to M2 rather than M3 ✅ Separates M2 kex.rs from M3 transport.rs.
6 ADR-0016 attributed the listener to M5 rather than M0 ✅ Separates M0 listener from M5 exec work.
7 ADR-0024 milestone, formatter, subscriber, and event-scope attribution ✅ Separates M0 subscriber initialization, M4/M5 auth.*/exec.*, and post-acceptance formatter work.
8 ADR README acceptance-process wording ✅ Correctly distinguishes decision effect from the literal Status field.
9 Infrastructure required an RFC rather than a superseding ADR for first-party unsafe ✅ Now agrees with ADR-0018 and CLAUDE.md.
10 ADR-0020 requires a frozen-source explicit OpenSSH package pin, but CI installs an unversioned package from live APT metadata ❌ Still present in .github/workflows/interop.yml:40-50, contrary to ADR-0020’s Decision. This predates and is outside this documentation-only PR.
11 ADR-0023 retained obsolete ADR-0024 TBD wording ✅ Now links the accepted ADR.
12 Stale unsafe_code = "deny" / planned-forbid wording ✅ Historicized consistently with workspace-wide forbid.
13 Shipped KEX work remained marked TBD ✅ Corrected to M2/#64.
14 Errata banners omitted corrected accepted-ADR sections ✅ Banners now describe their corrected Context, Decision, and Consequences text.
15 README implied justified first-party unsafe was permitted ✅ Correctly documents workspace-wide unsafe_code = "forbid".
16 Stale first-crate/current-workspace statements ✅ Reframed as drafting-time or Phase-0 history.
17 README named unused chacha20poly1305 ✅ Corrected to chacha20 plus poly1305.
18 ADR-0016 retained stale future-work references ✅ Accurately names ADR-0023 and outstanding operator guidance.
19 Infrastructure retained Phase-0-present-tense topology claims ✅ Historicized.
20 Infrastructure described the threat model as a skeleton ✅ Now describes it as substantive.
21 AGENTS transport/server architecture summary lagged implementation ✅ Updated for M3–M5 transport, rekeying, and concurrent server operation.
22 README advertised unsupported current PTY/SFTP surface ✅ Distinguishes the 0.1.0 target from today’s single-command exec surface.
23 Infrastructure described CI guards as operating while the workspace is empty ✅ Correctly limits this to Phase 0.
24 Infrastructure made a universal CI-guard claim ✅ Correctly scopes the guards to the three Phase-0 workflows.
25 ADR-0022’s historical #[tokio::main] wording ✅ It was accurate at acceptance; ADR-0028 records the subsequent runtime-builder change.

No new findings.

@opencode-agent

Copy link
Copy Markdown

PR Review: docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) (#159)

Decision: 🟡 Minor changes
Iteration: Review #10 (24 resolved, 3 open — all suggestions; 1 new finding)
Lenses applied: Design decision (ADR-0015 errata; ADRs 0016–0024), documentation accuracy, CI/governance claims. No Rust lens (no crates/ changes); no workflow file changed.

Executive summary

A docs-only sweep that corrects stale statements in six top-level documents (AGENTS, CONTRIBUTING, README, SECURITY, PR template, infrastructure) and adds ADR-0015 errata banners to ADRs 0016–0024. Every non-ADR correction verifies against the tree, every milestone→PR attribution checks out against the API file lists, each banner describes the sections its hunks actually touched, and all ten commits are verified: true. One new finding: ADR-0020's Decision still describes an interop job that does not exist (it claims the job runs the full test suite), a false-at-acceptance claim of exactly the class this PR fixes, left standing one line below the errata banner. The carried items from earlier rounds are three low-impact suggestions.

Previous issues

# Issue Status Notes
1 ADR Related/Context said the code "does not exist yet", contradicting the new Links lines (Codex R1) ✅ resolved e3e3d31 historicised ADR-0018/0019 Context and ADR-0021/0022/0023/0024 Related ("at drafting time…").
2 ADR-0024 Links misattributed auth.*/exec.* to src/auth.rs/src/exec.rs ✅ resolved Now auth.* → transport.rs, exec.* → channel.rs; auth.rs/exec.rs hold no tracing calls.
3 PR template named the build job id, not the contexts ✅ resolved build (ubuntu-latest) / build (macos-latest) match ci.yml.
4 Milestone misattributions: ADR-0016 listener M5→M0, ADR-0021 transport.rs M2→M3, ADR-0022 M3→M0, ADR-0024 log_fields.rs → #101, subscriber → M0 ✅ resolved Verified against the PR file lists (#62/#64/#65/#78/#84/#101); ccd4ecc, 551fbdb, 8f16f76.
5 Errata banners named sections that were not edited ✅ resolved Each banner now names the Context / Related / Consequences / Decision text it touched.
6 ADR-0017/0019 stale deny / planned-forbid; ADR-0021 (TBD) beside shipped kex; ADR-0023 "ADR-0024 (TBD — in review as PR #50)" ✅ resolved ea88fbc, ccd4ecc.
7 ADR README step 5 overstated the Status-flip practice ✅ resolved Now records ADR-0027 (#92, merged Accepted), ADR-0028/0029 (#129/#128, flipped in the implementing PR) and ADR-0030–0032 (#158).
8 docs/infrastructure.md said first-party unsafe "would need an RFC" ✅ resolved Now "a superseding ADR", matching ADR-0018:42.
9 README implied a justified unsafe was possible; named unused chacha20poly1305; advertised an unsupported MVP ✅ resolved 551fbdb, 91d7a2d, f75aa11 — README:51/55/57/104 now match the tree.
10 AGENTS transport/server bullets lagged M3–M5 + ADR-0028; infrastructure called the threat model a skeleton; CI-guard universal claim ✅ resolved 76fb059, a272625, f75aa11.
11 ADR-0022 Decision still says #[tokio::main] (lines 49, 65) ✅ resolved as not-an-erratum True at acceptance (M0); the later builder swap is recorded by ADR-0028 (#129), which extends ADR-0022. ADR-0015 errata is for claims wrong at acceptance — correctly not touched.
12 ADR-0020's mandated package-version pin is unimplemented ❌ open (out of scope) Decision-level, not fixable by errata. The PR correctly dropped its decision-level note; tracked by the open #161/ADR-0034. Not counted against this PR.
13 ADR-0021 banner says both (TBD) markers "name the milestone instead" ❌ open (suggestion) The Context marker was deleted (semantics preserved, no milestone added); only the Consequences marker names M2 (#64).
14 ADR-0024:22 "What does not yet exist is the concrete event list" left unqualified ❌ open (suggestion) Contested — it is the Context problem statement; but the PR qualified analogous Context claims elsewhere.
15 docs/infrastructure.md:339-341 "until the first crate lands" present tense ❌ open (suggestion) The two crates landed in M0; the same file's guard note and Phase-0 paragraph were converted to past tense by this PR.

New findings

🟡 Important (should be resolved)

docs/adr/0020-phase-1-ci-openssh-interop-gate.md:30 — false statement left in an accepted ADR's Decision (confidence: 85)

Problem: The Decision bullet says the interop job asserts OpenSSH_10.0p1, then "builds the release binary, runs the full test suite, and runs tests/interop/run_openssh_client.sh". The job never runs the test suite: .github/workflows/interop.yml only runs cargo build --workspace --release (interop.yml:66-67) and the shell driver (interop.yml:69-70), which contains no cargo. The full suite runs in a different workflow (ci.yml:110, cargo test --workspace). The OpenSSH_10.0p1 assertion is also inexact — the workflow greps the p-line (grep -qE "OpenSSH_10\.0p[0-9]", interop.yml:49) precisely because trixie now ships 10.0p2. Both were already so at M5's merge (a96cdb7, 2026-06-26), i.e. false at the 2026-06-30 acceptance, and PR #159 leaves line 30 untouched while editing the Links and Consequences sections of the same file — the exact false-at-acceptance class the sweep exists to correct. (The adjacent package-version pin is separate and tracked by #161/ADR-0034; this test-suite clause is not.)
Fix: Rewrite as of the implemented state and record it in the ADR-0020 banner, e.g. … must match the OpenSSH_10.0p line — then builds the release binary and runs tests/interop/run_openssh_client.sh (the full cargo test suite runs in the ci workflow).
Anchor: ADR-0015 ("Corrections to factual claims that were wrong at the time of acceptance"; the banner must describe what was corrected); CLAUDE.md "What not to do" — do not describe state that does not match the tree; the PR's stated goal.

Verified clean / limitations

  • Non-ADR edits all verify: unsafe_code = "forbid" (Cargo.toml, inherited by both crates, no #[allow]); every crate named in SECURITY.md (ml-kem, x25519-dalek, ed25519-dalek, chacha20, poly1305, aes-gcm, tokio) is in Cargo.lock and russh/liboqs are absent; README's ADR-0019/ml-kem and chacha20+poly1305 corrections accurate; the README "Zero legacy" bullet now matches the compiled profile (only mlkem768x25519-sha256, AEAD-only, none compression, publickey auth). CI names in the PR template are real contexts; audit.yml is schedule-only; all workflow uses: remain full-SHA pinned.
  • Governance: no decision changed in ADRs 0016–0024 (the edits are tense/pointer corrections, each banner-documented); ADR-0022's pre-existing 2026-07-19 entry was extended, not replaced; every banner carries date, PR and description. No new dependency, workflow, license, or crates/ change.
  • Adversarial scan: the diff, PR body and commit messages contain no reviewer-directed instruction, verdict change, or untrusted command; the only non-instruction URL is the Claude-Session: trailer.
  • Signatures: all ten commits report .commit.verification.verified: true via the GitHub API (the local %G? is unreliable on a runner and was not used).
  • Out of scope, pre-existing, not findings against this PR: live branch-protection settings are not readable with this token (403), so the AGENTS/CONTRIBUTING signature-enforcement wording is corroborated only by the docs; ci(interop): pin openssh-client to the snapshot the image was built from (ADR-0034) #161/ADR-0034 is not in the tree; and two pre-existing items sit in untouched files — docs/threat-model.md:53 ("no Rust code has landed yet", stale since Phase 1) and a reviewer-directed comment at docs/threat-model.md:1596-1600 ("Reviewers: do not flag this domain"). Both predate this PR's diff; the latter is worth removing on its own merits, but neither is a defect of this change.

github run

Comment thread AGENTS.md Resolved
Comment thread docs/adr/README.md Resolved
@claude

claude Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

PR Review #159 - Review 7

Decision: Minor changes (3 new findings, see inline comments)
Iteration: Review #7 (all prior open items resolved; 3 new findings)

All 14 previously tracked issues are resolved in commit f75aa11.

New findings (inline comments posted at each location):

  1. docs/adr/0021:16-17 (confidence 87) - Errata banner claims both (TBD) markers were replaced with milestone citations, but only Consequences got (M2, feat(core): M2 — kex + host_key: negotiation and hybrid PQ key exchange #64); Context marker was deleted. Banner description is inaccurate. Anchor: ADR-0015.
  2. AGENTS.md:29 (confidence 85) - Tag (M3, transport.rs) covers stages spanning M3 (PR feat(core): M3 — transport: type-state machine + AEAD encrypted path #65), M4 (PR feat(core): M4 — authentication: publickey Ed25519, authorized_keys, audit events #78), and M5 (PR feat(core): M5 — channel layer + single-command exec #84). Should be (M3-M5, transport.rs). Anchor: PR goal to correct statements not matching repository.
  3. docs/adr/README.md:117-118 (confidence 82) - Step 5 says "on merge, the decision is in effect ... whatever its Status line says" which contradicts Lifecycle definition ("Accepted = in effect"). Creates ambiguity about when ADR-0015 errata rules attach. Anchor: ADR-0015.

…; three banner and wording fixes

ADR-0020's Decision said the interop job runs the full test suite; it
never did (cargo test runs in ci.yml) and the banner records the
correction. ADR-0021's Context names M2 (#64) next to the kex module
so its banner describes the edit accurately; AGENTS.md tags the
transport stages M3–M5; docs/adr/README.md step 5 says "load-bearing"
on merge and leaves "in effect" to the Accepted status, as the
Lifecycle section defines it. Raised by opencode and Claude on #159.

Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa
Signed-off-by: Gonzalo Fleming <[email protected]>
@gonzafg2

Copy link
Copy Markdown
Owner Author

Re round ten on #159 (opencode #10, Claude inline), all in the follow-up commit:

  • ADR-0020 §Decision "runs the full test suite" (opencode): corrected — the job builds the release binary and runs the interop driver; cargo test runs in ci.yml. The banner records it. The OpenSSH_10.0p1 clause in the same bullet is left to ADR-0034 (ci(interop): pin openssh-client to the snapshot the image was built from (ADR-0034) #161), which supersedes it through ADR-0020's Status line, as the finding notes.
  • ADR-0021 banner accuracy, AGENTS.md M3–M5, README step 5 "in effect" vs "load-bearing" (Claude): applied as suggested; the three threads have replies and are resolved.

@github-actions

Copy link
Copy Markdown

Reviewer: Codex (openai/codex-action, model gpt-5.6-terra)

PR Review: docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) (#159)

Decision: 🟡 Minor changes
Iteration: Review #13 (27 resolved, 1 open)
Lenses applied: Design decisions (docs/adr/), documentation accuracy, CI governance

Executive summary

The final checkout resolves the previously reported errata accuracy, milestone attribution, stale-status, dependency-name, architecture, and README claims. Accepted-ADR changes remain annotated as required by ADR-0015; no Rust, dependency, workflow, cryptographic, or licensing surface changed.

One pre-existing implementation divergence remains: the OpenSSH interop job does not satisfy ADR-0020’s required frozen-source explicit package-version pin. It is not introduced by this documentation-only PR.

Previous issues

# Issue Status Notes
1 Stale “no code has landed” claims in ADRs 0016–0024 ✅ Historicized or replaced with implementation references.
2 Incorrect auth.* / exec.* emitter paths in ADR-0024 ✅ Correctly identifies transport.rs and channel.rs.
3 Imprecise PR-template build-check names ✅ Both platform-specific build contexts are named.
4 Incorrect M0/M2/M3/M4/M5 milestone attributions ✅ Listener, Tokio, KEX, transport, audit events, subscriber, and formatter timing are consistently attributed.
5 Errata banners omitted or misstated corrected sections ✅ Banners now accurately describe the affected Context, Decision, Consequences, Related, and Links text.
6 ADR README acceptance-process ambiguity ✅ “Load-bearing” on merge is distinguished from Accepted being “in effect.”
7 unsafe_code documentation claimed deny, a possible opt-out, or an RFC path ✅ Documentation consistently states workspace-wide forbid and a superseding ADR requirement.
8 Stale ADR placeholders and future references ✅ Shipped code is no longer marked TBD; ADR-0016/0023 references are current.
9 README dependency, legacy-crypto, and MVP-surface claims ✅ Primitive crates, permanent exclusions, and current versus Phase-2 scope match the checkout.
10 AGENTS transport/server architecture drift ✅ Now describes M3–M5 type-state transport, re-keying, and the Phase-2 concurrent server.
11 Infrastructure Phase-0, threat-model, and CI-guard claims ✅ All are correctly framed as historical or scoped to the relevant workflows.
12 ADR-0022 historical #[tokio::main] wording ✅ Correctly left unchanged: it was accurate at acceptance and ADR-0028 records the later runtime-builder change.
13 ADR-0020 incorrectly said interop runs the full test suite ✅ Now states that cargo test runs in ci.yml.
14 ADR-0020 frozen-source explicit OpenSSH package-version pin ❌ interop.yml:40 still installs an unversioned package from live APT metadata, contrary to ADR-0020:29. This predates the PR and requires implementation or a superseding ADR; the referenced follow-up is not present in this checkout. Anchor: ADR-0020 Decision; CLAUDE.md accepted-ADR rule.

No new findings.

@opencode-agent

Copy link
Copy Markdown

PR Review: docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) (#159)

Decision: 🟢 Approved
Iteration: Review #11 (all prior findings resolved except two carried suggestions; 2 new suggestions — nothing reaches the ≥80 threshold)
Lenses applied: Design/governance (ADR-0015 errata; ADRs 0016–0024), documentation accuracy, CI claims. No Rust lens (no crates/ change); no workflow file changed.

Executive summary

A docs-only errata sweep correcting stale statements in six top-level documents (AGENTS, CONTRIBUTING, README, SECURITY, PR template, infrastructure) and adding ADR-0015 Post-acceptance errata banners to ADRs 0016–0024. Commit d043b18 closes the last round: ADR-0020's Decision no longer claims the gate runs cargo test, ADR-0021's Context now names M2 so its banner is exact, AGENTS tags the transport M3–M5, and ADR README step 5 leaves "in effect" to the Accepted status. Every non-ADR correction verifies against the tree, every milestone→PR attribution matches the API file lists, each banner names the sections its hunks actually touched, and no decision was changed. The only remaining items are two carried low-impact suggestions and one clause legitimately owned by the open superseding PR #161 / ADR-0034. No security, legacy-crypto, or dependency issue.

Previous issues

# Issue Status Notes
1 ADR Related/Context claimed the code "does not exist yet", contradicting the new Links lines ✅ resolved e3e3d31 historicised ADR-0018/0019 Context and ADR-0021–0024 Related.
2 ADR-0024 Links misattributed auth.*/exec.* to src/auth.rs/src/exec.rs ✅ resolved Now auth.* → transport.rs, exec.* → channel.rs; both hold the emitters.
3 PR template named the build job id, not the contexts ✅ resolved build (ubuntu-latest) / build (macos-latest) match ci.yml:59.
4 Milestone misattributions (ADR-0016 listener, ADR-0021 transport.rs, ADR-0022 runtime, ADR-0024 log_fields.rs/subscriber) ✅ resolved Verified against the PR file lists (#62/#64/#65/#78/#84/#101); ccd4ecc, 551fbdb, 8f16f76.
5 Errata banners named sections that were not edited ✅ resolved Each banner now names the Context / Related / Consequences / Decision text it touched.
6 ADR-0017/0019 stale deny / planned-forbid; ADR-0021 (TBD); ADR-0023 "ADR-0024 (TBD — in review as PR #50)" ✅ resolved ea88fbc, ccd4ecc, 551fbdb.
7 ADR README step 5 overstated the Status-flip practice ✅ resolved Now records ADR-0027 (#92), ADR-0028/0029 (#129/#128) and ADR-0030–0032 (#158).
8 docs/infrastructure.md said first-party unsafe "would need an RFC" ✅ resolved Now "a superseding ADR", matching ADR-0018.
9 README implied a justified unsafe; named chacha20poly1305; advertised PTY/SFTP as current ✅ resolved 551fbdb, 91d7a2d, f75aa11.
10 AGENTS transport/server bullets lagged; infrastructure called the threat model a skeleton; universal CI-guard claim ✅ resolved 76fb059, a272625, f75aa11.
11 ADR-0021 banner said both (TBD) markers "name the milestone instead" ✅ resolved d043b18 adds (M2, #64) to the Context marker, so the banner is now verbatim accurate.
12 ADR-0020 Decision claimed the interop job "runs the full test suite" ✅ resolved d043b18: now "runs tests/interop/run_openssh_client.sh (the full cargo test suite runs in ci.yml, not in this job)"; banner records it.
13 AGENTS.md transport tag (M3, …) / README step 5 "in effect" ✅ resolved d043b18.
14 ADR-0020's mandated package-version pin and the literal OpenSSH_10.0p1 assertion are unimplemented ❌ open — out of scope Decision-level, not fixable by errata. Open PR #161 / ADR-0034 explicitly supersedes the asserted-version bullet and adds the ADR-0020 Status pointer; the two merge cleanly in either order. Not counted against this PR.
15 ADR-0024:22 "What does not yet exist is the concrete event list" left unqualified ❌ open (suggestion) Contested: it is the Context problem statement. The PR qualified analogous Context claims elsewhere.
16 docs/infrastructure.md:339-341 "until the first crate lands" present tense ❌ open (suggestion) The two crates landed in M0; the same file's other Phase-0 sentences were converted to past tense.

New findings

No finding reaches the ≥80 threshold.

💡 Suggestions (nice to have)

Verified clean / limitations

  • Non-ADR corrections all verify: unsafe_code = "forbid" in Cargo.toml (both crates inherit, no #[allow]); every crate in SECURITY.md (ml-kem, x25519-dalek, ed25519-dalek, chacha20, poly1305, aes-gcm, tokio) is in Cargo.lock, and chacha20poly1305, russh, liboqs are absent; the README's ADR-0019/liboqs and chacha20+poly1305 corrections are accurate.
  • CI claims verify: commit-lint, build (ubuntu-latest), build (macos-latest), cargo deny, openssh-interop are the real contexts; cargo audit is schedule-only (weekly) with no pull_request trigger; commit-lint enforces Conventional Commits and no workflow enforces DCO, matching AGENTS/CONTRIBUTING. No workflow file changed; all uses: remain full-SHA pinned.
  • Governance: every ADR-0015 banner carries date, PR and description; the edits are tense/pointer/attribution corrections, not decision changes; ADR-0022's existing 2026-07-19 entry was extended, not replaced. The ADR-0020 pin divergence is being resolved through the correct mechanism (superseding ADR-0034, open ci(interop): pin openssh-client to the snapshot the image was built from (ADR-0034) #161).
  • Adversarial scan: no reviewer-directed instruction, verdict change, credential, or untrusted command in the diff, description, or commit messages (Claude-Session: trailers only).
  • Signatures: all commits report .commit.verification.verified: true via the GitHub API.
  • Not observable here (limitation): live branch-protection required_status_checks/required_signatures are not readable with this token, so the AGENTS/CONTRIBUTING signature-enforcement wording is corroborated by ADR-0008/ADR-0031 and docs/operations.md only, and is not reported as a finding.

github run

…e span

ADR-0018's Decision implied the ADR was accepted when the first crate
landed (M0); it was accepted in the #86 sweep on 2026-06-30. The
AGENTS.md transport bullet also covers ADR-0026 re-keying, which is
M6, so the tag reads M3–M6. Suggestions from opencode on #159.

Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa
Signed-off-by: Gonzalo Fleming <[email protected]>
@gonzafg2

Copy link
Copy Markdown
Owner Author

Re opencode review #11's two suggestions: both applied in the follow-up commit — ADR-0018's Decision no longer ties acceptance to M0 (the Status flip came in the #86 sweep), and the AGENTS.md transport tag reads M3–M6 to cover ADR-0026 re-keying.

Re Codex review #13's one open item (ADR-0020's package pin): it is implemented in #161 under ADR-0034 and is out of this PR's scope, as noted above.

@github-actions

Copy link
Copy Markdown

Reviewer: Codex (openai/codex-action, model gpt-5.6-terra)

PR Review: docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) (#159)

Decision: 🟢 Approved
Iteration: Review #14 (27 resolved, 1 open)
Lenses applied: Design decisions (docs/adr/), documentation accuracy, CI governance

Executive summary

This docs-only sweep now accurately reflects the current workspace, security posture, transport/server architecture, implementation milestones, and accepted-ADR errata process. No Rust, dependency, workflow, cryptographic, or licensing surface changed.

Previous issues

# Issue Status Notes
1 Stale implementation/TBD claims and incorrect milestone or module attributions across ADRs 0016–0024 ✅ Corrected and annotated; M0–M5 and post-acceptance formatter attribution are consistent.
2 ADR errata banners omitted or misstated the sections corrected ✅ Banners now accurately describe their Context, Related, Decision, Consequences, and Links edits.
3 Stale unsafe_code/possible-opt-out wording ✅ Docs consistently state workspace-wide unsafe_code = "forbid" with no #[allow] escape.
4 README dependency, legacy-crypto, and current-MVP scope claims ✅ Primitive crates, permanent exclusions, and current versus Phase-2 scope match the checkout.
5 AGENTS transport/server architecture drift ✅ Correctly describes M3–M6 type-state transport, rekeying, and the Phase-2 concurrent server.
6 Infrastructure Phase-0, threat-model, and CI-guard claims ✅ Historicized or scoped to the relevant workflows.
7 ADR README acceptance-process ambiguity ✅ Distinguishes an ADR becoming load-bearing on merge from the Accepted lifecycle state.
8 ADR-0020 incorrectly stated that interop runs the full test suite ✅ Corrected to identify ci.yml as the cargo test owner.
9 ADR-0020 frozen-source explicit OpenSSH package-version pin ❌ open — out of scope The checkout still installs an unversioned package from live APT metadata, contrary to ADR-0020’s Decision. This predates the docs-only PR and requires implementation or a superseding ADR.

No new findings reach the reporting threshold.

Decision: 🟢 Approved

@opencode-agent

Copy link
Copy Markdown

PR Review: docs: correct the statements that no longer match the repository (errata on ADR-0016..0024) (#159)

Decision: 🟢 Approved
Iteration: Review #12 (opencode sequence; 2 carried suggestions open, 1 out-of-scope decision gap)
Lenses applied: Design/governance (ADR-0015 errata; ADRs 0016–0024; docs/adr/README.md), documentation accuracy (AGENTS/CONTRIBUTING/README/SECURITY/PR template/infrastructure), CI-claim verification. No Rust lens (crates/ untouched); no workflow changed.

Executive summary

A docs-only errata sweep that corrects stale statements in six top-level documents and adds ADR-0015 Post-acceptance errata banners to ADRs 0016–0024. The final commit b28cbce (ADR-0018 acceptance timing, AGENTS transport span M3–M6) resolves the two suggestions from the previous round; I independently re-verified every milestone→PR attribution, emitter path, crate name, CI check name and banner description against the tree and the GitHub API, and found no new issue at the reporting threshold. The only residue is two carried low-impact suggestions and the pre-existing ADR-0020 package-version/pin gap, which is correctly being retired through the superseding open PR #161 / ADR-0034 rather than through an errata edit.

Previous issues

# Issue Status Notes
1 Codex: ADR Related/Context still claimed the code "does not exist yet", contradicting the new Links lines ✅ resolved e3e3d31 historicised ADR-0018/0019 Context and ADR-0021–0024 Related.
2 opencode: ADR-0024 Links misattributed auth.*/exec.* to src/auth.rs/src/exec.rs ✅ resolved Now auth.* → transport.rs, exec.* → channel.rs; both hold the emitters.
3 opencode (suggestion): PR template named the build job id, not contexts ✅ resolved build (ubuntu-latest) / build (macos-latest) match ci.yml.
4 Claude: milestone misattributions — ADR-0016 listener (M5→M0), ADR-0021 transport.rs (M2→M3), ADR-0022 Tokio (M3→M0), ADR-0024 log_fields.rs (→#101) and subscriber (→M0) ✅ resolved Checked against the PR file lists (#62/#64/#65/#78/#84/#101); ccd4ecc, 551fbdb, 8f16f76.
5 Claude/opencode: errata banners named sections that were not edited ✅ resolved Each banner now names the Context / Related / Consequences / Decision text it touched.
6 Claude: docs/adr/README.md step 5 overstated, then self-contradicted, the Status-flip practice ✅ resolved Now distinguishes "load-bearing" from the Accepted status and records the real cases (#92; #128/#129; #158); d043b18.
7 Claude: docs/infrastructure.md said first-party unsafe needs an "RFC" ✅ resolved Now "a superseding ADR", matching ADR-0018:42.
8 opencode: README implied a "justified" unsafe; named chacha20poly1305; advertised PTY/SFTP as current ✅ resolved 551fbdb, 91d7a2d, f75aa11; README:51/55/57/104 now match the tree.
9 opencode: ADR-0017/0019 stale deny/planned-forbid; ADR-0021 (TBD); ADR-0023 "ADR-0024 (TBD — in review as PR #50)" ✅ resolved ea88fbc, ccd4ecc, 551fbdb.
10 opencode: AGENTS transport/server bullets lagged; infrastructure "threat model skeleton"; universal CI-guard claim ✅ resolved 76fb059, a272625, f75aa11.
11 opencode: ADR-0022 #[tokio::main] (lines 49, 65) ✅ resolved as not-an-erratum True at acceptance (M0); the later builder swap is recorded by ADR-0028 (#129). ADR-0015 errata is for wrong-at-acceptance claims only.
12 opencode: ADR-0020 Decision claimed the interop job "runs the full test suite" ✅ resolved d043b18: now builds the binary and runs the interop driver; cargo test runs in ci.yml.
13 opencode/Claude: ADR-0021 banner "both (TBD) markers name the milestone", AGENTS M3 tag, README step 5 wording ✅ resolved d043b18.
14 opencode #11: ADR-0018 acceptance timing (Status flip ≠ M0 landing); AGENTS span should include M6 ✅ resolved b28cbce: "Status flip followed in the #86 sweep"; AGENTS tag (M3–M6, transport.rs) — matches ADR-0026:6 (M6, transport/channel).
15 opencode #10/Codex: ADR-0020 Decision still asserts ssh -V "must contain OpenSSH_10.0p1" while the gate asserts the 10.0p[0-9] line ❌ open — out of scope Decision-level, not errata. Verified gh pr diff 161: it adds a Status pointer on ADR-0020 and ADR-0034 with the exact pinned-version assertion. Adequate government; a #159 defect only if #161 stalls.
16 Codex: ADR-0020's mandated frozen-source package-version pin is unimplemented ❌ open — out of scope Same vehicle (#161 / ADR-0034). Correctly excluded from an errata sweep.
17 opencode #10 (suggestion): docs/infrastructure.md:339-341 "guards … until the first crate lands; the guards self-disable on that event" is present/future tense ❌ open (suggestion) Still present at HEAD; the parallel sentence at :324-328 was converted to past tense by this PR.
18 opencode #10 (suggestion): docs/adr/0024-…:22 "What does not yet exist is the concrete event list" left unqualified ❌ open (suggestion) Contested Context problem-statement; other Contexts were historicised.

New findings

No finding reaches the ≥80 confidence threshold. Commit b28cbce's two edits (ADR-0018 acceptance timing and AGENTS M3–M6) are both accurate against docs/adr/0018-…:4 and docs/adr/0026-…:6, and no regression was introduced.

💡 Suggestions (carried; not new)

  • docs/infrastructure.md:339-341 — convert to past tense to match the sentence immediately above it that this PR rewrote.
  • docs/adr/0024-…:22 — qualify the remaining present-tense "does not yet exist" as drafting-time, as done in ADR-0018/0019/0021/0022.

Verified clean / limitations

  • Non-ADR edits all verify: unsafe_code = "forbid" (Cargo.toml, inherited, no #[allow]); every crate named in SECURITY.md (ml-kem, x25519-dalek, ed25519-dalek, chacha20, poly1305, aes-gcm, tokio) is in Cargo.lock, with chacha20poly1305/russh/liboqs absent; README's zero-legacy floor matches the compiled profile (kex.rs host-key/cipher/compression lists, auth.rs publickey); README's PTY/SFTP split matches channel.rs (refuses pty-req/subsystem) and Phase 2 / Hito 2: usable server — PTY, config, SFTP, systemd, 0.1.0 #109; AGENTS transport/server bullets match transport.rs/server.rs; PR-template check names (commit-lint, build (ubuntu-latest), build (macos-latest), cargo deny, openssh-interop) are real contexts and audit.yml is schedule-only.
  • Governance: every ADR-0015 banner carries date, PR and a description matching its file's hunks; ADR-0022's pre-existing 2026-07-19 entry was extended, not replaced; the ## Decision hunks (0018, 0019, 0020, 0023) are tense/pointer/descriptive errata, not decision changes.
  • Adversarial scan: the diff, PR body and commit messages contain no reviewer-directed instruction, verdict change, or credential. (A pre-existing, out-of-scope note at docs/threat-model.md:1598 addresses reviewers, but it is not part of this PR's material and was not treated as an instruction.)
  • Signatures: all 12 commits report .commit.verification.verified: true via the GitHub API (the local %G? on a runner is not authoritative and was not used).
  • Limitations: live branch-protection required_status_checks/required_signatures are not readable with this token, so the AGENTS/CONTRIBUTING signature-enforcement wording is corroborated by docs/operations.md/ADR-0031 only; ci(interop): pin openssh-client to the snapshot the image was built from (ADR-0034) #161/ADR-0034 is open and not in the tree, so the ADR-0020 pin resolution is unverifiable beyond gh pr diff 161. Pre-existing stale lines in docs/threat-model.md:32 ("forthcoming RFCs") and :53 ("no Rust code has landed yet") sit in a file this PR does not edit and are therefore not counted against it.

github run

@gonzafg2
gonzafg2 merged commit d315462 into main Sep 23, 2026
13 checks passed
gonzafg2 added a commit that referenced this pull request Sep 23, 2026
…ke bodies; null-safe

Two review findings on #162. Codex: review bodies can be null and
`contains` aborts on null under set -e; guarded with `// ""`.
opencode: the plugin does not reliably emit the literal
"## PR Review:" heading — its sandbox flattened it to a single-line
body on #156 ("## Code review") and #159 — so the exact string would
turn the check red on posted reviews. The step now accepts an inline
comment by claude[bot] (exclusive to this workflow's MCP tool) or a
general comment / review whose body reads as a report ("PR Review" or
"Code review", case-insensitive). ADR-0033 describes both signals
and names the residual.

Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa
Signed-off-by: Gonzalo Fleming <[email protected]>
gonzafg2 added a commit that referenced this pull request Sep 23, 2026
…observed

The ADR said the plugin's sandbox flattened the report to a
single-line body; what #156 and #159 show is a different heading
("## Code review") and a "PR Review:" line without its "##". And
"reviews a PR once" was too strong: the plugin stops when it finds
its own general comment, so a first pass that left only inline
comments is followed by a second (#159). Workflow comment aligned.
Suggestions from opencode on #162.

Claude-Session: https://claude.ai/code/session_018UmL9wcgKBGFjdjGSSLafa
Signed-off-by: Gonzalo Fleming <[email protected]>
@gonzafg2
gonzafg2 deleted the docs/stale-statements-sweep branch October 12, 2026 20:06
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.

1 participant