Repository navigation
docs(rfc): mark RFC-0012 as Accepted - #214
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: 783c1e45-7130-4dc7-9d96-1194ae2bf151) |
#172 merged on 2026-10-28 (029ff37); per docs/rfcs/README.md step 6 merge is acceptance, and the Status flips in a follow-up as #168 did for RFC-0011. Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]>
0562a6b to
873a12e
Compare
|
APIError: Insufficient Balance (request_id: b7f361cb-0c49-4385-be28-dcb809ab486d) |
PR Review: docs(rfc): mark RFC-0012 as Accepted (#214)Decision: 🟢 Approved Executive summaryThis is a single-line status flip — |
#194 merged on 2026-10-28 (f2ce221). Per docs/rfcs/README.md step 6, the merge is the acceptance, and the Status flips in a follow-up, as #214 did for RFC-0012. ADR-0041's and ADR-0042's Related lines no longer call it a Draft. Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]>
…hed byte counts (Proposed) (#195) * docs(adr): ADR-0041 and ADR-0042 — SFTP v3 server details; exec.finished byte counts (Proposed) Implementing ADRs for RFC-0013 (Draft, #194): - ADR-0041 locks the SFTP server: the subsystem request rules, the helper dispatch and the Config::helper rename, OpenSSH's 256 KiB and read bounds, a 256-handle cap, exactly one response per request, the operation mapping on std::fs/rustix, OpenSSH's RENAME and SYMLINK semantics, the four advertised extensions, fixed status messages, and a numeric, UTC longname. It answers the RFC's open questions 1, 2 and 4. - ADR-0042 adds bytes_received and bytes_sent to exec.finished for every request type, counted at the channel driver, realising threat model §5.4.4's record (the RFC's question 3). Both stay Proposed until RFC-0013 is accepted and the implementation lands. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0041 applies RFC-0013's §5.4.5 entry; ADR-0038 Status pointer for request_type - The threat model's new §5.4.5 entry now comes from RFC-0013 (RFC lane), and the implementation PR adds it verbatim; §5.4.4 gets only a factual pointer to ADR-0042. - The implementation PR also records on ADR-0038's Status that this ADR extends §9's request_type values with "subsystem". From opencode's review of #195. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0041 — APPEND writes, CLOSE errors, OpenSSH's full RENAME, ADR-0038 §1 pointer From the reviews of #195 (Codex, claude-review, opencode), checked against openssh-portable V_10_6_P1 and rustix 1.1.5: - WRITE on an APPEND handle uses write_all, as OpenSSH skips lseek for O_APPEND; positional writes never carry APPEND, since pwrite ignores O_APPEND on macOS (POSIX). - CLOSE syncs a written file with sync_data before dropping it and maps a failure, the only safe way to see a deferred write error: File's Drop ignores close errors and rustix's close is unsafe and returns nothing. The fdatasync per written file is a recorded cost. - RENAME follows OpenSSH fully: the EOPNOTSUPP/ENOSYS/EXDEV fallback to check-then-rename, and removing the spare link when unlink fails. - The planned ADR-0038 Status pointer names §1 (subsystem now honoured) as well as §9. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0041 — OpenSSH's OPEN flags, realpath and expand-path; EPERM link fallback; no sync on special files Codex on #195, each checked against openssh-portable V_10_6_P1: - OPEN builds OpenSSH's flags_from_portable flags with rustix::fs::open: READ|APPEND stays read-only and READ|CREAT is valid, which OpenOptions cannot express; - REALPATH follows OpenSSH's sftp-realpath.c, the final symlink included (32 links), so a dangling final symlink resolves to its target; - expand-path takes ~ from the working directory ($HOME or /), as process_extended_expand uses getcwd; - RENAME's link fallback also covers Linux EPERM (LINK_OPNOTSUPP_ERRNO); - CLOSE syncs written regular files only: fdatasync fails with EINVAL on FIFOs, sockets and devices. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0041 — RENAME's existence check does not follow symlinks; future mtimes show the year Codex on #196: - every RENAME existence check uses symlink_metadata, so a dangling symlink at the destination is never replaced (stricter than OpenSSH's stat, in the direction of the no-overwrite invariant); - the longname uses the time form only for an mtime in the six months up to now; a future mtime gets the year (OpenSSH's sftp-common.c rule). Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0041 — cap checked before OPEN; non-blocking SETSTAT size; READDIR errors and metadata Second review round on #196: - the handle cap is checked before the open: a refused OPEN has no side effect; - SETSTAT's size on a path uses a write-only, non-blocking open and ftruncate, so a FIFO with no reader fails at once (OpenSSH: truncate(2)); - READDIR's metadata comes through the open directory without following symlinks; unreadable entries are skipped (as OpenSSH's failed lstat); a failed directory read is the reply's status, EOF only when exhausted. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0041 — exit 0 only at EOF on a packet boundary (RFC-0013) Follows RFC-0013's clarification from Codex on #194; the implementation already returns 2 for EOF inside a packet (read_packet). Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0041 — Alternative 1 lists every rustix use claude-review on #195: the rationale said rustix is used only for utimensat, but §4 now also uses it for OPEN's flag mapping and for SETSTAT's non-blocking size change on a path. Refs #109 Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW Signed-off-by: Gonzalo Fleming <[email protected]> * docs(adr): ADR-0041 — an empty path is read as "." (RFC-0013 §4) OpenSSH's sftp-server normalizes the empty path only in REALPATH and expand-path; the helper does it for every path argument, as SFTP v3 §6.2 defines, except SYMLINK's target. Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]> * docs(rfc): mark RFC-0013 as Accepted #194 merged on 2026-10-28 (f2ce221). Per docs/rfcs/README.md step 6, the merge is the acceptance, and the Status flips in a follow-up, as #214 did for RFC-0012. ADR-0041's and ADR-0042's Related lines no longer call it a Draft. Claude-Session: https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp Signed-off-by: Gonzalo Fleming <[email protected]> --------- Signed-off-by: Gonzalo Fleming <[email protected]>
Summary
This PR only flips the Status of RFC-0012 from
DrafttoAccepted (2026-10-28). #172 merged on 2026-10-28 (029ff37).docs/rfcs/README.mdstep 6 makes the merge the acceptance, and the Status flips in a follow-up PR, as #168 did for RFC-0011.The 14-day comment period of step 5 ran from 2026-10-08 to 2026-10-22, so the merge came after it closed. Claude and Codex both approved the final head.
No other change.
https://claude.ai/code/session_01QpBZ4qUr3ypV22CvmVwwHp