Repository navigation
docs(rfc): RFC-0014 — audit-log schema version 1, a project-owned versioned JSON contract - #203
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
APIError: Insufficient Balance (request_id: e95a392b-476f-40ab-a852-e7d427ff2008) |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ccb47745f7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
PR Review: docs(adr): ADR-0044 — freeze the audit-log schema as version 1 (#203)Decision: 🔴 Blocked Executive summaryADR-0044 introduces a versioned, project-owned JSON audit-log schema, correctly satisfying the CLAUDE.md audit-log field mandates ( New findings🔴 Blocking (resolve before merge)[docs/adr/0044-audit-log-schema-v1.md:136,165,276] — CLAUDE.md compliance (confidence: 100)
🟡 Important (should be resolved)[docs/adr/0044-audit-log-schema-v1.md:125,149] — design coherence (confidence: 90)
[docs/adr/0044-audit-log-schema-v1.md:123] — security design (confidence: 88)
[docs/adr/0044-audit-log-schema-v1.md:132] — security design (confidence: 85)
[docs/adr/0044-audit-log-schema-v1.md:155-177] — design coherence (confidence: 85)
Review by Claude Code (claude-code-action) · CLAUDE.md · REVIEW-FORMAT.md |
…ane per review) Codex on #203: the frozen audit log is a new public compatibility contract, an RFC under CLAUDE.md; and the freeze refines two accepted RFCs (RFC-0010's error classes, RFC-0008's authenticated_identity), which an ADR cannot. ADR-0044 becomes RFC-0014 (Draft, 14-day window). Review findings folded in: - server.config_error splits into `class` (RFC-0010's four classes plus the startup ones) and `error`, keeping RFC-0010's stable classes machine-readable (Codex); - successful configuration load is recorded: server.started gains config_file, server.config_override joins the catalogue (Codex, §2.7); - connection.refused keeps `limit`, superseding ADR-0028's `reason` explicitly (Codex); - RFC-0008: authenticated_identity stays the proven key's fingerprint; certificate fields arrive additively, conditional on certificate authentication (Codex); - exec.finished's `command` listed as a change against ADR-0024 (claude-review); - every failed attempt, the budget-exhausting one included, emits auth.failed — fixed in #204 (claude-review); - failure_count is per connection; aggregate by IP (claude-review); - all enumerations are open; changing an event's level is breaking (claude-review); - the SFTP additions cite #194/#195 as proposed, not as existing ADRs (both reviewers). Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
|
APIError: Insufficient Balance (request_id: 2ed8a6ba-3b39-4d33-82bd-3ec200358d6f) |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 30a1c87e39
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codex on #203: a startup failure after a successful config load (host key, authorized_keys, runtime, bind) returns before server.started, so the error record could not name the configuration that produced it. config_file is now on every server.config_error as well (the canonical path once resolved, the path as given if that failed, "" without --config), so each error record stands on its own. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
|
APIError: Insufficient Balance (request_id: 10eabbb4-0793-442c-8fd1-d4dc2190b7ac) |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
APIError: Insufficient Balance (request_id: 5aa795b9-bac4-4c29-bedb-2a0df25b2f58) |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f51a77cbca
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…ride-key formats Codex on #203: - accepted RFCs are not edited in place (docs/rfcs/README.md, "After acceptance"): only ADR-0024 and ADR-0028 gain Status pointers; RFC-0010 and RFC-0008 keep their text and this RFC states what it supersedes; - host_key_fingerprint's representation is frozen: `SHA256:` + unpadded standard base64 of SHA-256 over the public-key blob (OpenSSH's format); - server.config_override's `key` values are the TOML paths (server.listen, server.host_key, auth.authorized_keys, server.handshake_timeout, logging.format); new keys use the same form. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
PR Review: docs(rfc): RFC-0014 — audit-log schema version 1, a project-owned versioned JSON contract (#203)Decision: 🔴 Blocked Executive summaryRFC-0014 is a substantial improvement over the ADR draft: the envelope, catalogue, field semantics, and compatibility rules are coherent, and the previous review's concrete gaps are largely closed. The remaining problems are process and completeness: the RFC changes accepted ADRs without the required superseding ADRs, §6 omits ADR-0029 and RFC-0010's no-new-event clause, and one reference treats an unmerged RFC as settled. The design itself is sound; the blockers are that the authoritative record would be left contradictory. Previous issues
New findings🔴 Blocking (resolve before merge)docs/rfcs/0014-audit-log-schema-v1.md:255-294 — process/ADR supersession (confidence: 90)
docs/rfcs/0014-audit-log-schema-v1.md:188 — dangling reference to an unmerged RFC (confidence: 90)
🟡 Important (should be resolved)docs/rfcs/0014-audit-log-schema-v1.md:255-290 — incomplete supersession of accepted decisions (confidence: 86)
|
|
APIError: Insufficient Balance (request_id: d4f17a28-100d-4853-9681-73d12cf59869) |
…24) (#204) * fix(auth): audit the failure that exhausts the attempt budget (ADR-0024) Every failure branch of Expect::authenticate checked `attempts >= MAX_AUTH_ATTEMPTS` and disconnected before emitting auth.failed, and the probe path checked the budget before looking the key up. The twelfth failure — the one that ends the connection — left no audit record, only the general-tier "post-kex protocol violation" line, which RUST_LOG can suppress. ADR-0024 audits every failed attempt. auth.failed is now emitted before the budget check on every failure path, and an unknown-key probe is counted and audited before it. Tests: the max-attempts test now captures the audit events and expects failure_count 1..=12, for signed requests and for unsigned probes; both fail on main (1..=11). Found by claude-review on #203 (the audit-schema freeze). Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(changelog): the auth.failed fix for the budget-exhausting attempt Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> --------- Signed-off-by: Gonzalo Fleming <[email protected]>
…roject-owned JSON envelope (Proposed) The first item of the 0.1.0 freeze checklist. The JSON log becomes a project-owned, versioned contract: - envelope: one flat object per line — schema_version (1), timestamp, level, event (catalogue) or message (diagnostics), peer_addr, then the event's fields; no target, span name or span list; a FormatEvent in the binary encoding with serde_json (already in the build); - the version-1 catalogue: ADR-0024's events plus rekey.completed, connection.refused and ADR-0038's fields, all on the non-suppressible audit tier (six events move there); - server.config_error's `message` field becomes `error` (today it duplicates the JSON key that holds the event name); - compatibility: additive changes (new event, field or open-enumeration value) keep version 1; anything else bumps it with an ADR and a CHANGELOG migration note. The inventory also found audit events without peer_addr — fixed in #202. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
…ane per review) Codex on #203: the frozen audit log is a new public compatibility contract, an RFC under CLAUDE.md; and the freeze refines two accepted RFCs (RFC-0010's error classes, RFC-0008's authenticated_identity), which an ADR cannot. ADR-0044 becomes RFC-0014 (Draft, 14-day window). Review findings folded in: - server.config_error splits into `class` (RFC-0010's four classes plus the startup ones) and `error`, keeping RFC-0010's stable classes machine-readable (Codex); - successful configuration load is recorded: server.started gains config_file, server.config_override joins the catalogue (Codex, §2.7); - connection.refused keeps `limit`, superseding ADR-0028's `reason` explicitly (Codex); - RFC-0008: authenticated_identity stays the proven key's fingerprint; certificate fields arrive additively, conditional on certificate authentication (Codex); - exec.finished's `command` listed as a change against ADR-0024 (claude-review); - every failed attempt, the budget-exhausting one included, emits auth.failed — fixed in #204 (claude-review); - failure_count is per connection; aggregate by IP (claude-review); - all enumerations are open; changing an event's level is breaking (claude-review); - the SFTP additions cite #194/#195 as proposed, not as existing ADRs (both reviewers). Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
Codex on #203: a startup failure after a successful config load (host key, authorized_keys, runtime, bind) returns before server.started, so the error record could not name the configuration that produced it. config_file is now on every server.config_error as well (the canonical path once resolved, the path as given if that failed, "" without --config), so each error record stands on its own. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
…ride-key formats Codex on #203: - accepted RFCs are not edited in place (docs/rfcs/README.md, "After acceptance"): only ADR-0024 and ADR-0028 gain Status pointers; RFC-0010 and RFC-0008 keep their text and this RFC states what it supersedes; - host_key_fingerprint's representation is frozen: `SHA256:` + unpadded standard base64 of SHA-256 over the public-key blob (OpenSSH's format); - server.config_override's `key` values are the TOML paths (server.listen, server.host_key, auth.authorized_keys, server.handshake_timeout, logging.format); new keys use the same form. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]>
… ADR-0024/0028/0029 docs/adr/README.md allows an accepted ADR to change only through a superseding ADR, so the implementing PR adds one that supersedes the listed parts of ADR-0024, ADR-0028 and ADR-0029, as ADR-0031 does for ADR-0008. ADR-0029's info-level override diagnostic and RFC-0010's "no new audit event names" clause join §6, since server.config_override changes both. RFC-0012 is cited as proposed (#172, TBD). Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]>
… up to date #196 landed the SFTP stack before the freeze, so request_type subsystem and exec.finished's bytes_received and bytes_sent move from the planned additive changes into the version-1 catalogue (§3, §4), with command "sftp" for the subsystem. RFC-0012 is cited as accepted, the two audit gaps as fixed (#202, #204), and ADR-0024's command erratum as landed with #196. Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]>
776b5e0 to
d1bde65
Compare
|
@codex review |
|
@claude review |
|
Claude finished @gonzafg2's task in 28s —— View job Review of RFC-0014 (
|
…SFTP wording kex.failed's reason was "no-hybrid-kex, no-strict-kex, …". §4 now lists the eleven tokens the transport emits with disconnect code 3 and keeps the enumeration open, as for the override keys. The Summary counts five documents, not three decisions, and the SFTP note moves out of the planned-change list. Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]>
|
Thanks. Applied in 4a9b58f:
|
|
@codex review |
|
Claude finished @gonzafg2's task in 21s —— View job Review of 4a9b58f (RFC-0014)Decision: 🟢 No blockers. All three follow-ups are resolved, and I found no new issues.
1.
2. Summary count (line 23). "Accepted decisions in five documents" matches the bullets: ADR-0024, ADR-0028, ADR-0029, RFC-0010 and RFC-0008. 3. SFTP note (§5, lines 249-257). It now sits after the certificate bullet as its own paragraph and reads clearly. It says SFTP is not a planned change, and that Informational: The RFC stays |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…scape, threat-model qualifiers From claude-review on 4a9b58f: - §4 pins exit_status: the exit code, 128 + n for a signal (also with exit-signal on the wire), and 127 when the child could not be started or waited on or no status was recorded. - §2 and §7: the JSON encoder escapes every char::is_control character (C0, DEL, C1) as \u00XX, the set the human formatter escapes; serde_json alone covers only C0. - Three threat-model citations (§2.7, §8.12) carry the qualifier. Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]>
|
@codex review |
|
Claude finished @gonzafg2's task in 22s —— View job Review of 52b828f (RFC-0014)Decision: 🟢 No blockers. All five threads from the last round are resolved, and I found no new issues.
1.
2. Control-character escape (§2, §7)
3. Threat-model qualifiers
Informational: the RFC stays |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
RFC-0014 defines the audit-log schema as version 1, the first item of the
0.1.0freeze checklist (#109,docs/plans/phase2-scoping.md). The JSON log becomes a project-owned, versioned contract.Moved from ADR-0044 to the RFC lane after review. Codex made two points. The frozen log is a new public compatibility contract, which CLAUDE.md sends through the RFC lane. And the freeze refines two accepted RFCs, which an ADR cannot do: RFC-0010 (its configuration-error classes) and RFC-0008 (what
authenticated_identityrecords for certificates).The 14-day comment period closed on 2026-10-28. The
0.1.0tag waits for this RFC and for anml-dsarelease (RFC-0012); the SFTP stack landed with #196. The implementing PR flips this RFC toAcceptedand adds one ADR that supersedes the affected parts of ADR-0024, ADR-0028 and ADR-0029 (§6).Refs #109
What an inventory of
main(312598c) foundI checked against a real OpenSSH 10.3 session and the release binary:
tracing-subscriber's (fields.message,target,span,spans), with no per-record hook for a version.targetis a Rust module path.server.config_errorholds"message"twice, so the event name is lost.RUST_LOG=warndrops every connection and configuration record, although threat model §2.7 lists them as audit content.peer_addr(fix(logging): audit events carry the connection span's peer_addr (ADR-0024) #202);auth.failed(fix(auth): audit the failure that exhausts the attempt budget (ADR-0024) #204, found by claude-review here).The proposal
schema_version1,timestamp,level, thenevent(catalogue) ormessage(diagnostics, not part of the contract), thenpeer_addrand the event's fields. There is notarget, span name or span list.rekey.completed,connection.refused, ADR-0038'srequest_type/pty, ADR-0041'srequest_typesubsystemand ADR-0042'sbytes_received/bytes_sentonexec.finished(landed with feat(sftp): SFTP v3 subsystem in a re-exec helper; exec.finished byte counts (ADR-0041, ADR-0042) #196),server.config_override, andconfig_fileonserver.started.server.config_errorbecomesclass(RFC-0010's four classes plusmissing_setting,invalid_host_key,invalid_authorized_keys,bind_failed,runtime_failedandlistener_failed) anderror.failure_countcounts failures within one connection.config_errorfield, andexec.finished'scommand.limitis kept over thereasonit names.server.config_overrideevent.class, andserver.config_overrideis the one exception to its "no new audit event names" clause.authenticated_identitystays the proven key's fingerprint, and the certificate identity goes in additive fields.Type of change
Checklist
git commit -s).cargo fmt --allandcargo clippy --workspace --all-targets -- -D warningslocally. (Documentation only.)docs/, orREADME.md) where appropriate.CHANGELOG.mdentry under## [Unreleased]if this change is user-visible. (The implementing PR adds it.)cargo deny check. (serde_jsonbecomes a direct dependency of the binary in the implementing PR. It is already compiled in throughtracing-subscriber'sjsonfeature.)Security considerations
RUST_LOGany more, connection and configuration records included (threat model §2.7).authenticated_identityandexecuting_uidstay separate first-class fields (§8.12).Automated reviews
PRs authored by
dependabot[bot](and other bots) do not trigger opencode or Claude Code Review. Codex reviews through the Codex cloud GitHub App (ADR-0037).They are covered by CI (
commit-lint,build (ubuntu-latest)andbuild (macos-latest)— fmt, clippy, tests, release build —,cargo deny,openssh-interop;cargo auditruns weekly, not per PR) and manual review when needed.https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Update 2026-10-28: rebuilt on
mainwith signed commits. RFC-0014 is brought up to date: SFTP's fields join the version-1 catalogue, RFC-0012 is cited as accepted, #202/#204 as merged, and ADR-0024'scommanderratum as landed with #196.