RUSTSEC-2026-0386: tokio AsyncFd unsound; bump tokio and move to owned-fd constructors #255
Open
opened 2026-10-29 12:51:46 +00:00 by kayg
·
16 comments
No Branch/Tag specified
main
j470b-server-mesh-rejoin
mesh-compat-382
j444b-d381-key-wins-flood
j461b-macos-utun-reader-thread
j475b-remove-host-motion
fix-reconnect-new-link
j481-d380
dev
j479-mesh-soak
fix/j476-host-facts
j475-motion-pill-split
j470-mac-node-join
root-upgrade-d376
j474-review-merge
latency-targets-120hz
nightly-suite-shards
gotatun-pin-j469
macos-utun-reader-thread
fix-flood-echo-stall
wip/j416
motion-fast-ease-out
mesh-addhost-j259
takeover-close-terminals-d368
kbd-instant-followups
fix-trust-key-double-click
nightly-suite-partial-report
appwin-icons-j207
rusqlite-slice1
swipe-content-first-d374
mesh-mtu-381
addhost-instant-open
glass-contrast-d365-mock
glass-contrast-d365
signout-followups-442
fix-startup-toast-red
research-gotatun-matrix-j317
themes-sync-j304
fix-load-flakes
fix-nix-zig-patch
fix-compute01-browser-baseline
ratchet-size-baseline-419
predict-auto-d130
revoke-coverage-d367
nightly-suite-queue-timeout
nightly-browser-suite
fix-rustsec-2026-0459
fonts-ioskeley-obel
log-retention-d375
fix-kbd-no-anim-427
fix-dev-red-specs-2
takeover-proof-305-j205
wip/j410-server-pump
ui-consistency-d372
fix-osc52-clipboard
libghostty-vt-1.0
forget-retired-host-d369
j404-merge-426
fix-setup-lock-race
fix-touch-select-426
revoke-access-report-ui
fix-predictive-echo-specs
fix-selinux-agent-exec
wip/j395-checkpoint2
wip/j395
j391-review-scratch
ui-consistency-j195-deferred-rebased
fix-rustc-paths-421
decisions-wording-341
fix-install-suite-red
fix-dev-rtt-specs
fix-pending-removal-align
fix-privileged-skip
fix-install-suite-404
review-j368
mesh-dns-j254
revoke-access-report-d356b
revoke-privilege-round5
fix-removal-confirm
review-j360
gotatun-rotation-367
deps-refresh-340
review-j354
review-J351
review-j350
addhost-takeover-d359
revoke-report-items-347
revoke-end-sessions-d362
review-j348
size-mesh-ssh-346
size-trim-337
revoke-access-diff-d356
j259-pre-rebase-b06c5a6
j305-ended-at-start-spec
addhost-sudo-consent
fix-layout-real-specs-411
fix-shell-open-411
fix-console-hosts-373
fix-shell-exit
fuzz-host-name-353
fix-host-details-410
macos-filter-j197
research-gotatun-tricks
revoke-p3-j216l
stale-state-pill
revoke-followups-j216k
revoke-progress-j216e
backup/macos01-20261106/lume/j197
backup/macos01-20261106/lume/appwin-icons-j207-stash0
backup/macos01-20261106/claude/stash-0
backup/macos01-20261106/claude/stash-1
backup/macos01-20261106/claude/J80-macos-s1
backup/macos01-20261106/claude/J80
backup/macos01-20261106/claude/J80-slice1-20261102
backup/macos01-20261106/claude/J16b-appwin-on-dev
backup/macos01-20261106/claude/appwin-launch-idle-146
backup/macos01-20261106/claude/J80-s1-run
wip/j259
trust-285-p3c
runtime-lock-j216f
mesh-ssh-p3-j175
tun-proof-p3b
trust-285-p3
terminal-polish-j271
tun-proof-p3
ssh-install-flakes-j216i
fuzz-fixes-j264
trust-285-a
trust-285-b
restart-oversized-fixture-j198
backup/macos01-20261106/lume/appwin-icons-j207
restart-bound-j216h
up-preflight-p3-j198
backup/macos01-20261106/lume/j251
up-preflight-j198
wip/up-preflight-j198-j245-p2
wip/up-preflight-j198-j245-p1
agent-fsync-offloop-j196
wip/up-preflight-j198-j245
settings-offscreen-j231
wip/up-preflight-j198-j226-inspection
wip/j103f
themes-j206
wip/up-preflight-j198-j226
flakes-j216c
backup/macos01-20261106/claude/j197
flakes-j216b
backup/macos01-20261106/claude/j197-red
wip/up-preflight-j198-review
flakes-j216
backup/macos01-20261106/claude/appwin-icons-j207
engineering-j208b
appwin-mock-j209
toast-stack-j165
engineering-j208
decisions-d351
decisions-d350
decisions-d349
appearance-presets-mock-j129
decisions-d348
docs-audit-spec
doc-coverage-baseline-raise
decisions-d347
decisions-d346b
decisions-d346
j88h-profile
ui-consistency-j195-deferred
ui-consistency-j195
engineering-practices-j194
preferred-login-ui-j166
signin-pools-263-j174
macos-node-265-s1
decisions-d345
decisions-d344
proxy-cgroup-j164
verify-quick-fuzz-329
proxy-start-io-j168
timing-flakes-j163
up-263-s1
mcp-events-j147
verify-quick-fuzz-j158
proxy-p3-j159
agent-resource-j157-detect
wip/j103d-final
remote-cancel-hang-j155
proxy-traefik-281-j62d
j149-verify-quick
proxy-traefik-281-j62b
j150-drop-unnamed
wip/j79d-red-r4
wip/j103d-d332
rootless-toast-j142
wip/j103d-head
wip/j103d
j125c-mcp
macos-build-j136
backup/macos01-20261106/claude/j136
wip/j79d-red-cli
wip/j79d-red-server
j121-link-liveness
j118c-tracer-failures
wip/j79c-head
release-desktop-j131
j124c-signed-macos
wip/j79c-red-p3
wip/j79c-red-p23
wip/j79c-red-p22
merge-j128-check
perf-deferred-j128
sidebar-toggle-260
j127-shortcut-changed-dot
j125-mcp
j118-tracer-failures
j126-account-summary
settings-sections-mock-j92
j120-pinch-lock
sidebar-292
backup/macos01-20261106/claude/j120
taste-2026-11-03
row-actions-242-215
backup/macos01-20261106/claude/stash-0-untracked
backup/macos01-20261106/claude/J80-265-s1-run
backup/macos01-20261106/claude/J80-macos-s1-20261102
j112-canvas-commands
ui-no-overshoot-scroll
fix-recovery-restart
backup/macos01-20261106/claude/stash-1-untracked
taste-2026-11-02
size-baseline-ratchet
machine-cards-structure-j108
j109-boot-copy-mockups
fix-dev-red
wip/up-263-s1
j95b-settings-rows
proxy-traefik-281
j95-option-rows
docs-human-j91
docs-keys-palette
fix-flood-1013-270-j38d
mesh-ssh-s1
mesh-ssh-s0
addhost-d291-tunnel
test-stability-load
mesh-relay-220
repro-296
shim-thp-off-24
mesh-pins-258-v2
mesh-dns
signin-d311-merged
docs-pages
ui-size-283
fix-ui-batch-specs
wip/j12b-edge-update
gate-on-arm
fix-rename-sync-293
trust-285-j60b
fix-focus-ring-clip
integ-ui-1101
edge-update-v2
signin-d311
taste-2026-11-01
layout-per-tab-250
ui-approved-splitopt-224
ui-approved-splitopt-224-on-dev
icon-text-centre-282
ui-approved-189-212-216
research-reverse-proxy
transfer-budget-320
review-mesh-pins-258-r2
sidebar-pill-259
review-mesh-relay-220
wip/j12-edge-update-v2
nix-package
status-crash-loop-237
fix-dev-test-failures
fix-fixture-socket-path
wip/mesh-relay-220-pre-dev-advance-rebase
fix-canvas-side-clip
research-head-to-head
frosted-real-256
review-mesh-pins-258
wip/mesh-relay-220-pre-final-rebase
review-layout-per-tab-250-r2
broad-suite-triage
nix-devshell
review-status-crash-loop-237-r3
wip/nix-devshell-pre-p3
taste-frosted-real
wip/code-serve-demo-2026-10-30
wip/code-serve-glass-2026-10-30
wip/code-serve-clusters-2026-10-30
wip/code-merge-release94-dev-2026-10-30
wip/rproxy-delta-scratch-2026-10-30
wip/stale-note-257-staged-2026-10-30
wip/d241-size-staged-2026-10-30
review-broad-suite-207
wip/mesh-pins-258-pre-split
wip/mesh-relay-220-pre-rebase
mesh-measure-220
plan-211-update
review-edge-autoupdate-r3
perf24-reconnect
review-stale-note-r2
release-prod-live
d241-shell-marker
review-mesh-pins-server-258
review-revocation-r3
review-setup-token-r2
review-sync-journal-r3
wip/review-mesh-pins-258-prune-review-1995fee46
frosted-scroll-256
sync-journal-r3
revocation-per-account-wip
review-tokio-asyncfd-0386
review-sync-p3s
wip/stash-8by64-stash0-2026-10-30
mesh-drag-r2
setup-token-data-wip
release-9-4
auth-busy-1013
mesh-view-overlap
sync-p3s
review-auth-busy-wake
review-readd-r8-wip
mesh-drag-bounds
audit-auth-93
app-windows-stream-start
review-authority-cap-r3
app-windows-r7-measure
readd-minimal-r6
readd-minimal-r5
app-windows-r7-soak
readd-minimal-r4
app-windows-r7
app-windows-r6
readd-minimal-r3
readd-minimal-r2
readd-minimal
merge-release8-dev
review-busy-page-liveness-r2
review-busy-page-liveness
mesh-view-trim
review-authority-read-retry-r2
review-remove-uninstall-r2
release-retry-reattach
release-retry
review-remove-uninstall
review-authority-read-retry
app-windows-ship
mesh-autoswitch-p2
mesh-ssh
mesh-relay
mesh-macos-node
screen-and-control
session-labels
review-real-logins-r5
review-real-logins-r4
review-real-logins-r3
shim-memory-r2
review-real-logins-r2
shim-memory
shadow-addhost-instant
shadow-real-logins
shadow-same-session-flood
shadow-prod-perf-fix
hosts-from-server
app-windows-real
app-windows-transport
release-prod-6w
mesh-policy-verify
quiet-close-toast
dev-merge-r4
review-mesh-agent-transport
review-app-windows-transport
settings-roundtrip
review-release-pipeline-r4
mesh-agent-transport
ended-strip-fix
review-audit-ca-update-d244
settings-rows
phone-width
signout-clear
fix-restart-tests
dev-merge-rp
signer-hardening
review-audit-ca-update
terminal-fidelity
review-audit-ca-update-wip
mesh-integrate
review-mesh-agent-transport-515d3712
review-mesh-dataplane-feec1988
mesh-dataplane
signout
research-canvas-node
wip/review-renderer-cost
wip/review-terminal-fidelity
padlock-glyph
review-release-pipeline-2e95b689
phone-polish
sidebar-polish
inbox-generic
review-mesh-dataplane-378d4055
prod-batch
ui-inbox
ui-ca-unlock
ui-machine-sections
review-mesh-dataplane-a5f744fb
tls-session-prod
session-bounds-prod
fix-dead-session
session-bounds
tls-session
palette-polish
shortcuts-d222
research-appmeta
phone-gutter
ui-centre-button
wip/ui-centre-button
wip/tls-session
review-addhost-breakit
ui-platform
renderer-cost
remote-agents
mesh-api
ssh-bootstrap
prod-hotfix2
prod-fixes
review-remote-agents
review-mesh-dataplane
session-life
research-browser
review-mesh-api
research-capture
review-mesh-api-round3
review-mesh-api-round1
gate-stability
review-gate-stability
review-relay-direct
review-mesh-api-findings
proto-sessions
font-picker
proto-addhost
proto-windows
mesh-core
latency-gate
research-bsd
research-discovery
keytray-mods
mock-core
ui-tweaks
fix-motion-sel
fix-motion
integrate2
fix-robust
t-web
t-server
vt-ghostty
fix-snap-echo
t-web-auth
review-vt2
t-agent
lane-protocol
lane-shim
lane-auth
s1-base
s1-contracts
s1-workspace
No results found.
No labels
launch-qa
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
kayg/infraternal#255
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
cargo deny check(part ofscripts/verify fast) now fails on every branch: advisory RUSTSEC-2026-0386 (published after 2026-10-22) flags tokio 1.53.2 as unsound.Found by the release 9.4 → dev merge gate on the new build VM (#24, #254). It is independent of that merge:
Cargo.lockis unchanged by it.Scope
AsyncFd::newcall sites become deprecated, and clippy runs with-D warnings:crates/plugins/ssh/src/stdio.rs:38crates/infraternal-agent/src/transport.rs:43crates/infraternal-agent/src/sessions.rs:458,:494crates/infraternal-agent/src/process_exits_linux.rs:55crates/infraternal-agent/src/process_exits_macos.rs:62crates/infraternal/tests/agent_sessions.rs:323unsafeblock gets a// SAFETY:comment that names who owns the descriptor and why it outlives the registration. Where we can't prove ownership, restructure the type so we can (for example, hold anOwnedFd). No#[allow(deprecated)], and no ignore entry indeny.toml.Starting/resuming branch
tokio-asyncfd-0386at clean basef069bb2a9(origin/merge-release94-dev). #255 and the referenced parent #254 have no comments; no previous implementation remains in this checkout.Ownership audit: six registrations retain owned descriptors, but transport::Socket retains only a RawFd. Plan: retain a CLOEXEC duplicate for that socket and test replacement of the caller's descriptor. Keep D40's unsafe boundary in the shim: add a feature-gated, sealed registration wrapper accepting only audited owning descriptor types, with no mutable inner access; migrate the seven sites to it. This avoids weakening workspace unsafe/clippy lints and prevents safe replacement through AsyncFd::get_mut. Tokio 1.53.3 changes only its Cargo.lock entry. Dependency feature addition, registration/migration and size documentation will be separate logical commits. Known VM test exceptions remain unchanged.
Step 1 pushed:
fc4b12c93, optional shimasync-fdfeature. No dependency versions moved; Tokio and nix event features already exist in the workspace. Standalone shim builds keep Tokio absent.cargo fmt --all --checkand shim all-target clippy passed; shim library tests:91 passed; 0 failed; 13 ignored. Feature tree:$HOME/.cache/codex-scratch/tokio-asyncfd-0386/evidence/shim-features.txt. Next: run the safe descriptor-replacement regression before changing transport.Confirmed regression before the fix:
replacing_the_callers_descriptor_cannot_redirect_registered_iofails on the old transport withBrokenPipeat transport.rs:125 after safe dup2 replaces the caller descriptor. This proves the reactor did not own the socket lifetime. The test uses no unsafe descriptor closing or guessed descriptor reuse.The repair uses the patched unsafe constructor only inside the shim’s sealed owning wrapper. It also hides mutable access to prevent safe replacement through AsyncFd::get_mut. Socket retains a fresh CLOEXEC duplicate; existing read/write flags and wire framing stay the same. Tokio is the only version moved (1.53.2 → 1.53.3); unrelated Cargo updater rewrites of Windows dependency edges were reverted and --locked accepts the original edges.
Receipts:
red.log
dependency-gate.log
shim-features.txt
Migration validation: touched-crate all-target clippy passes with
-D warnings; infraternal-agent library69 passed; 0 failed; 7 ignored; transport integration3 passedincluding the formerly failing descriptor-replacement case; real-binary agent_sessions3 passed; shim library91 passed; 0 failed; 13 ignored; both ownership compile-fail documentation tests pass. SSH plugin active suites passed in the targeted run.One targeted native mouse probe failed because the ad-hoc runner lacked
zigon PATH (FileNotFoundError, not a behavioral mismatch); scripts/verify sets its pinned Zig path and the probe will be rechecked there. No source or gate relaxation for this.Read-only independent review found no concrete issues in lifetime, drop/error cleanup, descriptor replacement, or the macOS Kqueue source path. macOS execution was not performed. The safe API now prevents closing/replacing the actual registered owner; the regression replaces and then closes the caller's separate descriptor while the registered socket remains readable. No new task/timer/buffer; one CLOEXEC duplicate per inherited channel. Iteration gate running before the implementation and regression commits, then sequential static builds and exact D243 ratchet.
Iteration interrupted deliberately before disk exhaustion: default workspace debug artifacts reached 34.4 GiB and free disk fell to about 8 GiB. Stopped only this run's process descendants (4035567, 4035571, 4035572, 4035573, 4078075, 4087519, 4087523); ps confirms all gone.
cargo clean --profile devunder this job's CARGO_TARGET_DIR reportedRemoved 39323 files, 34.4GiB total; free disk recovered to 37 GiB. Evidence/logs retained.Rerunning with
CARGO_PROFILE_DEV_DEBUG=0 CARGO_PROFILE_TEST_DEBUG=0 CARGO_INCREMENTAL=0. These change only development/test debug artifacts; the tests, features, warning levels and pinned static release profile/recipe are unchanged. Final gate will use the same low-disk development/test settings. No other job's files or processes touched.Step 2 pushed:
1495c9480. Tokio 1.53.3 plus all seven constructor migrations, sealed owning registration boundary in the shim (D40), and independently owned CLOEXEC socket duplicate. No other dependency version changed; no weaker lint, deprecated allowance or advisory ignore. Bump and migration share a commit because old constructors fail clippy after the bump and the patched constructor does not exist before it.Active requested crate suites, native mouse probe, both compile-fail ownership checks and real-binary agent_sessions (3/3) pass. A short live /proc directory handle keeps temporary test files inside this job’s scratch directory without exceeding Unix socket limits; no fixture/application changes.
Iteration result: only the two failures explicitly named in the brief (daemon timeout; process-per-user constructor SUN_LEN). Other Rust rows including cargo-deny PASS. Type/call-site inspection and read-only independent review found no additional issues; macOS execution remains untested.
iterate-lean.log
migration-gate-5.log
requested-tests-short.log
Step 3 pushed:
371e8e81b, the separate regression-test commit. The test safely replaces the caller descriptor with dup2, supplies distinct bytes on both sockets, verifies the registration reads only the original, closes the caller, then verifies original IO again. Red receipt is above; green transport suite:3 passed; 0 failed. Agent all-target clippy with warnings denied and fmt passed.Both static builds are now running sequentially through the build slot with scripts/static-cargo. Original large debug outputs were removed before this phase; development/test builds use debug=0 and no incremental cache. Release settings remain pinned and unchanged.
regression-gate.log
First static image measured at head
371e8e81b: x86_64-unknown-linux-musl = 21,386,512 bytes, −2,912 bytes versus the supplied merged basef069bb2a9(21,389,424).filereports static-pie linked and stripped. SHA-256c3aba4dc538d0cba60df8dff605aa4c3133ba71b2501a9501836a8992cdfc447.Recipe:
scripts/static-cargo build --locked --release --package infraternal --target x86_64-unknown-linux-musl, through build-slot on 8by64-compute02; release profile unchanged. Receipt in$HOME/.cache/codex-scratch/tokio-asyncfd-0386/evidence/static-build.log. The aarch64 build began only after x86_64 completed. Both exact caps will be updated together once the second image is measured.Step 4 pushed:
05a9d872db11234d54a95423f05d8169d818a29b. Both static ceilings and the PROCESS table now use the exact measured bytes, with a paragraph recording this repair (D243). Pinned recipe, sequential builds on 8by64-compute02; both images stripped and static.f069bb2a9No increase above 16 KiB. Exact-cap acceptance, cap+1 rejection, shrink-ratchet rejection and unsupported-target rejection all pass. Final
scripts/verify fastis running on this head through build-slot with the required CARGO_TARGET_DIR; no more source changes planned.static-build.log
size-gate.log
Finished at pushed head
05a9d872db11234d54a95423f05d8169d818a29bontokio-asyncfd-0386(basef069bb2a9). Four atomic commits: optional dependency featurefc4b12c93, ownership repair and Tokio 1.53.31495c9480, red/green regression371e8e81b, exact size ratchet/docs05a9d872d. Worktree clean; no deployment.Pinned sequential static recipe; both stripped, static, no PT_INTERP. Final artifact hashes equal the measurement receipts above. Native x86_64 key memory:
Key memory initialization=1; locked pages and dump exclusion enabled. Aarch64 runtime and macOS execution were not performed.Required head gate:
scripts/verify fast, through/usr/local/bin/build-slot.sh, withCARGO_TARGET_DIR=$HOME/.cache/codex-scratch/tokio-asyncfd-0386/target. Development/test debug information and incremental caching disabled for disk usage; release recipe unchanged. A live directory handle supplied a short TMPDIR resolving into this job's scratch directory.Exit 1 solely for the documented
real_binary_preserves_input_and_output_across_24_abrupt_stopstimeout. The other named VM test,session_constructor_retains_only_the_bound_socket_path, PASS in this final run (the earlier iteration hit SUN_LEN; its code is unchanged). Final shim process-per-user suite: 199 passed, 0 failed, 19 ignored.The final inode-reuse fixture returned this documented skip; it executed and passed during the earlier iteration:
Verbatim final Rust gate output:
Because the Rust failure stops the dispatcher before TypeScript,
ts_verify_fastwas run separately on this same head through the build slot: exit 0. Metadata 2/2, tracer suites 356/356, connection suites 105/105, terminal-query suites 17/17, protocol suites 39/39; compiler, production build and transfer-size checks PASS.Full unmodified gate transcripts:
final-fast.log
final-ts.log
Author checklist: all seven sites migrated; registered owners remain open/stable until deregistration; mutable owner and raw guard access hidden; inherited socket retains its own atomic CLOEXEC duplicate; unsafe blocks confined to the audited shim with SAFETY comments; other workspace unsafe/clippy settings unchanged; no deprecated allowances/advisory ignores; no other dependency version moved. Requested active agent/shim/SSH suites, both compile-fail ownership checks and real-binary session tests passed (receipts above). Independent read-only lifetime review found no concrete issues. No parser/auth/CLI/UI contract change.
Cleanup: no processes executing this job's target artifacts remained;
cargo cleanremoved 7.9 GiB; target and temporary directory are gone; no baseline worktree was created. Evidence retained outside the checkout:cleanup.log
Independent verification review started. Local branch
review-tokio-asyncfd-0386, detached review target/base05a9d872db11234d54a95423f05d8169d818a29b; merge base with origin/dev is81962ab09a84384abcf1a58814e377ca71e781a4. The merge-base diff includes the release 9.4 integration atf069bb2a9; ownership review focuses on all seven #255 migrations and their surrounding lifecycle/error paths. No implementation changes. Logs and findings are under$HOME/.cache/codex-scratch/review-tokio-asyncfd-0386/.Source/dependency audit complete on unchanged target
05a9d872d: all seven migrations retain an owning Registration; pinned Tokio deregisters before dropping its source. Verified nix 0.30.1 Inotify/Epoll/Kqueue storage and shared-reference APIs, including macOS kqueue error/early-return and process-exit paths. No mutable owner or raw reactor guard is exposed. Socket duplication uses atomic F_DUPFD_CLOEXEC and failed registration drops its duplicate. Cargo.lock changes only Tokio version/checksum plus the shim dependency edge; deny.toml unchanged; no deprecated allowance added. No confirmed finding. macOS runtime remains unexecuted. Full head gate is running; five independent lifecycle scenarios are prepared for the review branch.Independent review evidence pushed on review-tokio-asyncfd-0386 at
5949b6b8b7c37bbbee9c4fbc2ff7aebe02eb9a6b.owned_readiness_lifecycle_reviewpasses: 128 owner/error cycles with unchanged descriptor census, 64 explicit descriptor-number reuses while the old description remains open, CLOEXEC/invalid-fd checks, and real pidfd readiness after original-owner drop. Shim all-target clippy (async-fd,-D warnings), fmt and both ownership compile-fail documentation checks pass. No confirmed finding. Job-head static images independently reproduce exactly 21,386,512 / 19,563,608 bytes; static gate PASS.Independent transport evidence pushed at
a49eb72e316e1031d95f270dc64c51fb2b718c20on review-tokio-asyncfd-0386.inherited_socket_lifecycle_reviewpasses: two registrations of one caller socket retain separate owners; safe caller dup2/close cannot redirect reads or writes; dropping one registration preserves the other; final drop produces EOF; 128 failed registrations release duplicates and preserve the caller. Original transport suite 3/3, infraternal-agent library 69/69 active, SSH active suites, and real-binary agent_sessions 3/3 pass. Affected all-target clippy with warnings denied and fmt pass. No implementation changes or confirmed findings. Final review-branch fast gate running; baseline fixture/size comparison follows.Verdict: merge. Confirmed findings: P0=0, P1=0, P2=0, P3=0.
Reviewed target
05a9d872db11234d54a95423f05d8169d818a29bagainst merge base81962ab09a84384abcf1a58814e377ca71e781a4with origin/dev. That diff includes the prior release 9.4 integration atf069bb2a9; the four #255 commits follow it. Evidence is pushed only toreview-tokio-asyncfd-0386, heada49eb72e31, in two test-only commits (5949b6b8b,a49eb72e3). No implementation changes.All seven migrated sites were audited through normal, error, early-return and drop paths. Verified Tokio's deregister-before-owner-drop implementation and the pinned nix owners, including Kqueue and process-exit watching. Mutable owners and raw readiness guards do not escape. Only Tokio changes dependency version; the shim adds its existing dependency edge. No deprecated allowance, advisory ignore or contract change. The standalone shim tree contains no Tokio without async-fd.
Both new review tests pass across five scenarios: 128 owner/error cycles with zero descriptor growth; 64 reuses of a former registered number while the old description stays open; pidfd readiness after original-owner drop; independent registrations and bidirectional IO after caller dup2/close; and 128 failed inherited registrations without retained duplicates. Both compile-fail ownership checks pass. Affected all-target clippy with warnings denied, fmt, original transport 3/3, agent library 69 active, SSH active suites, and real-binary agent_sessions 3/3 pass. Separate
ts_verify_fast: exit 0 (metadata 2, tracer 356, connection 105, terminal-query 17, protocol 39 tests; compiler/build/transfer checks pass).Both static artifacts independently reproduce 21,386,512 / 19,563,608 bytes (x86_64 / aarch64), exactly matching both caps. Same-recipe stripped static x86_64 merge-base rebuild: 21,389,232 bytes, so the reviewed image is 2,720 bytes smaller. Recipe for both sources:
scripts/static-cargo build --locked --release --package infraternal --target x86_64-unknown-linux-musl, through build-slot with the prescribed target directory and unchanged release settings. Static linkage/cap checks and native locked-key-memory check pass. macOS and aarch64 runtime execution were not performed; macOS ownership was source-audited.Required
scripts/verify faston the untouched job head: exit 1. Repeated on the pushed review head with the same outcome. Both used build-slot, the prescribed target directory, development/test debug=0 and incremental=0; release settings unchanged. Verbatim Rust gate output from the job head:The test row reproduces the daemon timeout explicitly excluded by the brief. Its captured argv uses the configured scratch target; this run does not establish the brief's suggested path explanation. The process-per-user row fails only
session_constructor_retains_only_the_bound_socket_pathwithpath must be shorter than SUN_LEN. Its source is byte-identical to the merge base, where the exact targeted test also exits 101 with that error: the fixture path reaches 108 bytes with seven-digit PIDs. Neither is counted as a #255 finding. Full transcripts are attached below; TypeScript ran separately because the Rust failure stops the dispatcher.Cleanup verified: no live processes executing this review's target artifacts, target directory deleted, temporary baseline worktree removed, review worktree clean, local head equals pushed head. No deployment; issue remains open.
fast.log
review-fast.log
targeted.log
ts.log
audit-checklist.txt
baseline-constructor.log
baseline-classification.txt
baseline-static.log
size-summary.txt
cleanup.log
findings.md
Landed on dev in
4a6202a52(fast-forward, together with the release 9.4 back-merge and test-only fixes). Review verdict: merge, 0 findings.scripts/verify faston dev: PASS, exit 0.