Skip to content

fix(ci): retain group safety when opened proc stat entries disappear - #1838

Merged
EffortlessSteven merged 6 commits into
sync/history-ripr-engineering-20261004from
fix/1837-opened-proc-disappearance
Oct 9, 2026
Merged

EffortlessSteven merged 6 commits into
sync/history-ripr-engineering-20261004from
fix/1837-opened-proc-disappearance

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

When a Linux task disappears after its /proc stat file is opened, the owned-group scanner turns read-time ESRCH into sticky cleanup refusal. This repair treats exact ESRCH with zero collected raw bytes as one absent scan entry. Partial bytes and every other read/parser refusal stay strict; leader identity, qualified lease, signal revalidation, full-scan bounds, survivors and reap order are unchanged.

REVIEW_READY for source 8a0d035, tree 367dc8c639de4d73c1e9cd6f4bdab649fd325304, accepted carrier base 0f09848 on sync/history-ripr-engineering-20261004. Governing issue #1837 is a separate prerequisite for #1832/#1627.

Current Routed37958667066/child113915704648 passed 13,251 executed tests / 13,251 passed / 5 skipped, all six scanner controls at positions11699–11704, and retained original monitor, altered-lease/no-signal, foreign-group, descendant-settlement, original-error and bounded-drop controls. Pinned Rust1.95 fmt/check/Clippy, precommit/honesty/agent/dependency/process/network/golden/fixture gates and actual literal-base/head PR producer/check/review/summary/annotation contracts all completed.

Normalization113947545967 reports actual typed verdict=passed, binding source8a0d035/base0f098/tree367dc8c and synthetic096f7dfcf46194eb3ed30afce6f0c411ea911a67 with the identical tested tree and ordered parents[base,head]. Hosted download digest matches child upload1b12176f4d49a72a57d78df20ca2ae8c86f82c6053842e1bcee063194e452e4f. Root/reviewer inspected logs, not artifact bytes.

Independent exact published-head review5473677845 inspected complete one-file diff, production owners/consumers, strict authority/refusal/cleanup paths and discriminating assertions; no actionable blocker. All25 current checks are terminalsuccess/skipped; skipped lanes receive no execution credit. CodeRabbit explicitly skipped review. Sole Gemini thread has confirmed source-backed reply and resolved readback. Three generic assertion-strengthening annotations lack individual finding IDs/locations through permitted tools; independent inspection establishes the changed oracles, without claiming individual producer attribution/refutation.

Six controls cover native TWO unread descriptor disappearance after direct-owned kill/bounded reap; exact live/dead/foreign identities; malformed/PID/state/UTF8/size refusal; other errno and partial valid/incomplete/invalid bytes+ESRCH with exact original I/O errors; injected zero-byteESRCH versus emptyEOF; exact4096/4097 and UTF8 precedence. Independent plan review rejected empty-String handling because invalid partial bytes can be erased while ESRCH survives. Successful-read diagnostics remain unchanged; the final explicit named UTF8 binding retains pinned lint policy.

Historical preserved-old-reader native RED reached the intended absent-entry assertion after native zero-byteESRCH setup:11,701passed/1intendedfailure/5skipped,exit100. This is instrumented accepted-base proof; unmodified literal-e81 full-suite reproduction remains unestablished, and original PID149735 lifecycle/membership was not retained. 0799 prior repair failure was owned pinned-Clippy wildcard refusal before nextest, zero scanner executions, normalizedfailed; corrected in current successor. No predecessor or skipped-test CI is credited as current GREEN.

Scope/rollback: only xtask/src/run/owned_capture_group.rs; ordinary corrective/revert commit. Raw #1832/#1835 and producer #1836 files remain with their owners. No cap/guard/lint/workflow/toolchain/settings/supervision/security/sandbox/network/runner/credential change, packages/release/deploy or local helper/artifact retry. Complete-route, final carrier landing/reverse/new sync and RC qualification remain separate.

Carrier coordination: the older carrier task message failed with task-path error; active producer owner confirms no carrier write/merge is active and holds its integration while this leaf lands. Exact carrier basis is re-read immediately before normal squash integration; tested-tree and sole-parent receipt will be checked afterward. No history rewrite or bypass. Canonical handoff.

Verified integration: normal squash landed as6cdaee73995e583088aa074b5b40383b2faa0d47 at18:07UTC, sole parent0f09848eae39fed90935e8516072f510f40dde96 and exact testedtree367dc8c639de4d73c1e9cd6f4bdab649fd325304. Carrier readback6cdaee7; public main unchangedab614355. Issue1837 accepted/closed. Raw owner prerequisite receipt recorded onPR1832; direct task delivery failed with path error, no retry. Proof branch retained; no local resources created. Scoped lifecycle repair is landed, full-route/finalsync/RC remains separate.

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 5f1cb71e-249e-4ed4-8f45-9e3dfa4226dc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the process scanning logic in xtask/src/run/owned_capture_group.rs by extracting the /proc/{pid}/stat reading and parsing logic into a new helper function, read_scanned_identity, and adds several unit tests to verify its behavior. Feedback on the changes points out that read_scanned_identity should intercept ESRCH (OS error 3) when no bytes are read and return Ok(None) instead of propagating it as an error, which is required for the newly added tests to pass.

Comment thread xtask/src/run/owned_capture_group.rs Resolved

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

SOURCE_CLEAR / REVIEW_INCOMPLETE — intentional pre-repair native RED candidate.

reviewed_head_sha: bef1350
integration_basis: 0f09848
tree: 480620e0d25e9dcc828cf3e14fb5cecae0c4df8f
claim_boundary: one-file behavior-preserving extraction plus four unignored controls before a process-lifecycle repair.
changed_surfaces_and_semantic_owners_inspected: complete owned_capture_group.rs diff, read_scanned_identity→scan_group→OwnedCaptureGuard members/signal/settle, strict identity/require_owner, capture_owned_group_supervised original-error consumers and OwnedProcess direct kill/try_wait/bounded-drop.
blocking_findings: none in current source/oracle; prior synthetic start-time fixture defect was repaired and all three complete records independently count 20 fields with start[19]=17.
proof_and_ci_observed: exact commit/tree and single-file diff; independent plan/source review; original ESRCH failure log. CI37947737778 reports success, but job113878295076 skipped toolchain and test step, all other Rust jobs skipped: zero intended tests executed.
proof_or_review_missing: fmt/check/Clippy, native ESRCH premises, intended old-reader failure, all four added controls and full normal required evidence.
wrong-behavior challenge: first independent unread descriptor establishes exact zero-byte ESRCH only after direct-owned child termination and bounded successful reap; second invokes the production-used strict old reader and must fail absent-entry assertion. Native setup failure is not RED. Partial valid/invalid bytes plus ESRCH and other I/O errors remain strict controls.
invariants: leader/parent/group/start identity, qualified unreaped lease, byte/entry/deadline bounds, signal revalidation, sticky refusal, survivors and original observation error remain unchanged. Added child uses direct ownership and bounded RAII cleanup.
residual_assumptions_and_non_claims: no compile/fmt/runtime pass, unmodified literal-e81 runtime reproduction, merge readiness or RC qualification claimed. No production repair yet. Revised future repair must collect zero raw bytes, because empty read_to_string alone can erase invalid partial bytes.
disposition: SOURCE_CLEAR / REVIEW_INCOMPLETE. Normal Ready transition may request intentional RED proof; no merge/auto-merge authority.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 9, 2026 14:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T16:24:06.896152Z 8a0d035 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 9, 2026 15:43

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

SOURCE_CLEAR / REVIEW_INCOMPLETE — current repair candidate.

reviewed_head_sha: 7efcc64
integration_basis: 0f09848
tree: ee42a44e4ce9fb326ff74c0acc6e2f9bbc3711ab
claim_boundary: only read-time ESRCH with zero collected bytes means one disappeared scan entry.
inspected: complete one-file diff against literal carrier basis; read_scanned_identity→scan_group; identity/require_owner; OwnedCaptureGuard qualified/members/signal/settle/wait/abort/drop; actual capture_owned_group_supervised observation failure consumer and OwnedProcess direct ownership fallback. Independent source/oracle review found no actionable candidate defect.
blocking_source_or_oracle_findings: none. bytes retain invalid partial data; successful-read strict UTF8 precedes the original size guard and same parser. Valid/invalid partial bytes+ESRCH, other I/O errors, emptyEOF and malformed/PID/state/oversize remain refusal. Current complete-stat fixture has start at index19.
observed_RED: completed Routed37947962816/job113879188737 on bef1350/synthetic306274fbc/tree480620, literal0f098 base; fmt/check/Clippy succeeded. Actual native first descriptor zero-byteESRCH premise completed; second unchanged production reader failed intended absence assertion for PID149113. Nextest11701passed/1failed/5skipped,11702/13249executed,exit100;1547 not run. Old original monitor and retained ownership/foreign/no-signal/descendant/original-error controls passed. Normalization113896407174 actual typed verdict=failed.
wrong_behavior_oracles: native disappeared descriptor must become None; invalid byteFF→ESRCH must remain Err and rejects proposed empty-String mutant; live/dead/foreign identities remain exact; injected zero-byteESRCH cannot make emptyEOF valid; exact4096 fits,4097 refuses,invalidUTF8 retains its precedence.
invariants: unchanged leader lease/revalidation,parent/group/start,entry/deadline bounds,signal authority,sticky refusal,survivors,reap order,original observation error; no workflow/security/cap/public-schema change.
missing: fresh candidate fmt/check/Clippy and execution of all six unignored scanner controls, full required policies/evidence, substantive current remote finding resolution.
nonclaims: no fresh GREEN, unmodified literal-e81 full-suite reproduction, merge readiness, full route or RC qualification. Local helper remains unavailable and stopped.
disposition: SOURCE_CLEAR / REVIEW_INCOMPLETE. Publish/request ordinary fresh GREEN proof only; do not merge or arm auto-merge until current full proof and published-head review earn REVIEW_READY.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

SOURCE_CLEAR / REVIEW_INCOMPLETE — final candidate after original-I/O oracle strengthening.

reviewed_head_sha: 0799d95
tree: 6f14cbadb8b144bef729071ecc0a0ccb516c9f47
integration_basis: 0f09848
claim_boundary: one-file process-lifecycle repair, zero collected bytes plus exact Linux ESRCH means one disappeared scan entry.
inspected: full candidate scanner diff and source/consumer paths; bounded byte collector, strict UTF8/error precedence/parser; identity/leader lease/revalidation/group signal/fullscan/deadline/sticky refusal/reap/direct fallback; all six unignored tests and source parity with predecessor7ef. Independent exact-head reviewer returned SOURCE_CLEAR / REVIEW_INCOMPLETE.
blocking_source_or_oracle_findings: none. New complete-valid prefix→ESRCH has20fields,start[19]=17,50bytes within bound. Exact diagnostic equality rejects generic refusal/premature parse/UTF8 errors and preserves original errno for partialbytes/permission/EIO/read-timeNotFound.
observed_proof: actual old-reader native RED in Routed37947962816/job113879188737 onbef and same-tree synthetic306274fbc;11701passed/1intendedfailure/5skipped,1547notrun,exit100. Original monitor/ownership controls passed. Result113896407174 actualverdict=failed. Gemini finding reply4231919468 confirmed and resolvedreadback.
wrong_behavior_challenges: native open-two-unread-FDs→ownedkill→boundedreap discriminator; invalidFF→ESRCH refuses emptyString mutant; full valid prefix→ESRCH cannot become identity; emptyEOF refuses; exact4096 fits/4097 refuses/invalidUTF8 precedence; live/dead/foreign field parity.
missing: CURRENT candidate fmt/check/Clippy, executed six scanner controls, ordinary full required policies/evidence and published-head remote review. No predecessor GREEN credit.
invariants: unchanged strict leader identity and lease, unknown numeric entry refusals except evidenced zero-byteESRCH disappearance, signal/revalidation,byte/entry/deadline bounds,sticky refusal,live survivors,reap order,original observation error. No raw/producer owner file,cap/workflow/security/runner/credential/schema change.
nonclaims: unmodified literal-e81 full-suite reproduction, fullroute/RC or merge readiness; local helper remains stopped.
disposition: SOURCE_CLEAR / REVIEW_INCOMPLETE; ready only to request normal current-head hosted GREEN. Do not merge/arm auto-merge before actual complete proof and fresh REVIEW_READY.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 9, 2026 15:48
@EffortlessSteven
EffortlessSteven marked this pull request as draft October 9, 2026 16:17

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

SOURCE_CLEAR / REVIEW_INCOMPLETE

reviewed_head_sha: 8a0d035
integration_basis: sync/history-ripr-engineering-20261004 at 0f09848
candidate_tree: 367dc8c639de4d73c1e9cd6f4bdab649fd325304
claim_boundary: issue1837, one-file opened /proc scanner disappearance repair; author records accountable synthesis of independent read-only lint_review inspection.

Changed surfaces and semantic owners inspected: full one-file inventory against carrier; exact successor one-line |_| -> |_invalid_utf8| delta against sole parent0799; read_scanned_identity/scan_group; strict identity; OwnedCaptureGuard qualified/members/signal/settle/drop; Linux supervised-capture consumers; all six unchanged focused controls and native two-descriptor witness. Parent/group/start identity, live-state filtering, byte/entry/deadline bounds, strict leader lease/revalidation, sticky refusal, survivor/reap ordering and direct-owner fallback are unchanged. No manifests, lint attributes, toolchain/workflow/security/settings or other-owner files changed.

Blocking source findings: none in inspected exact successor. Prior0799 owned source lint defect is repaired in this candidate: pinned rust-1.95.0 map_err_ignore.rs emits only for PatKind::Wild and explicitly supports a named ignored binding. This preserves deliberate read_to_string UTF8 error-message parity and successful-read precedence without appending different Utf8Error text. Utf8Error is Copy, so the binding introduces no destructor side effects. Source: https://github.com/rust-lang/rust-clippy/blob/rust-1.95.0/clippy_lints/src/methods/map_err_ignore.rs .

Oracle challenge: unchanged native witness opens TWO independent unread stat descriptors for live actual direct-owned sleeping child, proves native zero-byteESRCH on one after direct-owner kill and bounded reap, then demands absent entry from the production-used reader on the other. Retained partial valid/incomplete/invalid byte+ESRCH controls demand exact original I/O error; complete-valid prefix is50bytes below readlimit4097. Correct identity fixtures have20post-comm fields/startindex19; exact4096/4097 and UTF8 precedence distinguish relaxed bounds/order. EmptyEOF, other errno, malformed/PID/state failures remain refusal.

Observed CI: prior preserved-old-reader bef Routed37947962816/job113879188737 actually reached intended native assertion:11,701passed/1intendedfailure/5skipped,exit100; other3newcontrols not reached. This is instrumented accepted-base runtime proof; unmodified literal-e81 full-suite reproduction remains NOT_ESTABLISHED. Repair0799 Routed37954462127/job113901414090 passed fmt/workspacecheck, then owned map_err_ignore failed native101/stepexit1. No actual nextest runner invocation and zero scanner test executions. Required PR evidence and remaining Rust gates skipped; normalization113905541056 bound0799/tree6f14/base0f098 and typedverdict=failed. Neither isGREEN.

Proof/review missing: successor pinnedClippy pass, actual all6scanner and retained safeguard controls, full required gates/PR evidence/current normalized receipt, then exact published-head merge review. No local proof or helper recovery inferred; forbidden routes remain stopped.
Affected currentness: candidatehead, explicit lint-safe binding and fresh hosted proof. Native stimulus/oracles and production runtime semantics byte-for-byte preserved from0799.
Refuted/stale findings: Gemini disappearance defect addressed; suggested empty-String remedy remains source-refuted because invalid partial bytes can be discarded whileESRCH survives. Existing reply and resolved thread read back.
Residual non-claims: no separate-owner dependency demonstrated by this lint failure; no inherited literal-base full-suite/complete-route/finalRC qualification.
disposition: SOURCE_CLEAR / REVIEW_INCOMPLETE; ordinary hosted qualification may proceed, REVIEW_READY/merge/auto-merge remain unearned.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 9, 2026 16:22

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

REVIEW_READY — independent exact published-head execution review.

reviewed_head_sha: 8a0d035
integration_basis: sync/history-ripr-engineering-20261004 at 0f09848
candidate_tree: 367dc8c639de4d73c1e9cd6f4bdab649fd325304
tested_subject: 096f7df, identical tree, ordered parents [basis, head]
review_time: 2026-10-09 18:03–18:05 UTC
claim_boundary: issue1837; one-file process-lifecycle scanner repair. Author records accountable synthesis of independent green_review source/oracle/execution inspection plus direct root primary-evidence verification.

Inspected complete one-file diff, bounded raw-byte reader→scan_group→OwnedCaptureGuard qualification/membership/signal/settlement/drop, strict leader identity, parent/group/start lease/revalidation, full scan/byte/entry/deadline bounds, sticky refusal, survivor/reap ordering, supervised-capture original observation-error consumer and direct-owned bounded fallback. Source outside the scanner replacement and six added tests remains byte-identical to base. No blocking source, contract or oracle finding.

Observed actual hosted execution: Routed37958667066 child113915704648 ran pinned1.95 fmt/check/Clippy and all required Rust gates. Nextest summary13251executed/13251passed/5skipped. All SIX scanner controls PASS at11699–11704/13251: injected zero-byteESRCH vs emptyEOF, native TWO opened unread descriptors after direct-owned child kill/bounded reap, exact4096/4097+UTF8precedence, malformed/PID/state/UTF8/size refusal, other errno and partial valid/incomplete/invalid+ESRCH exact original-error fidelity, exact live/dead/foreign identities. Retained original Linux monitor, altered-lease/no-signal, foreign-group sentinel, descendant settlement, original-error and bounded-drop controls all PASS. Remaining precommit/honesty/agent/dependency/process/network/golden/fixture gates completed. Actual literal0f098→8a0d035 PR producer, saved check, review-comments/check, impacted-evidence/check, summary/check and annotations/check all completed; required PR evidence step success.

Normalization113947545967 bound exact source/base/trees/synthetic subject and authoritative github_hosted_rust applicability; actualtypedverdict=passed. Child artifact upload digest1b12176f4d49a72a57d78df20ca2ae8c86f82c6053842e1bcee063194e452e4f matches hosted normalization download. Root/reviewer inspected logs, NOT artifact bytes. Normalized retained result artifact11634403068 digestea667102c866102c83b9cf2d151d537ca54800790ffad8f1cae017542774527d.

Wrong-behavior challenge: independently inspected preserved old-reader native RED atbef/job113879188737; native zero-byteESRCH premise succeeded before intended absent-entry assertion failed. Partial-byte ESRCH controls reject unsafe empty-String remedy; complete-valid prefix (50bytes) rejects premature parsing; correct20post-comm fields/startindex19; exact bounds/UTF8 precedence retain strict failures. This is instrumented accepted-base runtime RED, NOT unmodified literal-e81 full-suite reproduction.

Current checks/reviews: all25 exact-head checkruns terminalsuccess/skipped; skipped lanes receive no execution credit. CodeRabbit explicitly skipped review. Raw PRmergeable_stateclean. Sole Gemini thread has confirmed source-backed reply and resolved readback; no newer substantive finding. Three generated warnings expose only generic assertion-strengthening guidance. Neither logs/checkoutput nor permitted connector expose individual finding IDs/locations; annotation endpoint was rejected and stopped. Complete changed-assertion/source inspection demonstrates actual discriminating oracles; generic prompts do not establish an actionable blocker. Individual producer attribution is UNVERIFIED, not claimed individually refuted.

Protection/currentness: live default-main ruleset applies only~DEFAULT_BRANCH, no bypassactors. Classic protection read403 is unavailable, not absence evidence; ordinary merge API must enforce live requirements. No local helper/artifact retry, settings/lint/guard/security weakening or other-owner edits.
Residual nonclaims: no actual merge yet, unmodified original-base full-suite, complete-route acceptance/full-carrier qualification or RC completion.
disposition: REVIEW_READY for scoped exact-head normal protected integration after coordinating carrier writer, preserving testedtree367dc8c.

@EffortlessSteven
EffortlessSteven merged commit 6cdaee7 into sync/history-ripr-engineering-20261004 Oct 9, 2026
27 checks passed
@EffortlessSteven
EffortlessSteven deleted the fix/1837-opened-proc-disappearance branch October 9, 2026 18:07
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