Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: adb1894ead
ℹ️ 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 review: needs maintainer review before merge. What this changesThis PR automatically reclaims abandoned PR dependency caches and anchors while inherited kernel locks protect live consumers. Example: A scripts/pr operation is killed with SIGKILL during dependency installation.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: the earlier findings are addressed and no new actionable source defect was found, but exact-head CI remains red with unresolved smoke-failure attribution. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe maintainer PR wrapper authenticates frozen tooling, prepares dependency installations, and records their consumers in SQLite; its lifetime owner decides when abandoned anchors and installations can be removed. flowchart TD
A[PR command] --> B[Authenticated wrapper]
B --> C[Inherited lifetime locks]
B --> D[SQLite lifetime owner]
C --> E[Operation descendants]
D --> F[Bounded collector]
C --> F
F --> G[Disposable anchors and caches]
Technical reviewBest possible solution: Keep the existing lifetime owner authoritative for crash recovery and finish exact-head CI attribution before landing. Do we have a high-confidence way to reproduce the issue? Current main retains creator-owned holds after abrupt interruption, and supplied regressions exercise installation, hold, and settlement interruption; this read-only review ran no target code. Is this the best way to solve the issue? The repair extends the existing lifetime owner rather than adding a competing collector, with kernel locks protecting descendants and producer-recorded transitions covering interrupted publication and eviction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b21829a4c85f. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +1374, Docs +44, Config +21, Other +1425. Total +2864 across 21 files. Added test files: 3. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)
Reviewed November 10, 2026, 11:21 AM ET / 16:21 UTC (Revision 3). |
|
Addressed all nine checklist items on
Fresh Codex review of this repair delta is scoped-clean through P2. The preceding full CI run 42837213597 passed every job except a test-only restricted-census expectation and its aggregate gate. That test had expected settlement while a hold was retained; the final head now compares the entire pre-sweep state. Actual-owner Linux fixtures prove both restricted retention and complete-census reclamation, and Codex reviewed this correction separately with no actionable P0–P2 findings. Final-head CI is running and remains required before merge. The hosted Python-boundary finding r4526539287 is also fixed: Darwin fixture launches preserve primary and ancestor leases, as do the actual Git owner, publication owner, and Darwin census subprocesses. Real Git-owner plus Node/Bun inheritance qualification passes 100 cases with 20 existing platform skips under enclosing leases; the actual-owner regression fails before the fix. Darwin native suite: 31 cases, one existing skip. Generated workflow projection and workflow checks pass. CI then exposed a fixture tuple shadowing the helper; the final correction loads the actual function and avoids that collision. Both affected cases pass on macOS and their exact embedded Python snippets pass on Linux, without relaxing assertions. Both deltas received separate scoped-clean Codex P2 reviews. Final-head CI run 42849960561 is complete: all cache/tooling jobs and security checks pass. Its three independent reds are now proven inherited on exact main parent The published ClawSweeper review now explicitly reconciles every earlier finding at this exact head, with zero open checklist items and no actionable findings. Its then-pending CI attribution is completed above. The authorized native inherited-failure route will retain the failed CI result; security and review are not waived. |
|
🦞👀 Re-review progress:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c86b8c7588
ℹ️ 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".
|
@clawsweeper re-review — please review exact head |
|
🦞👀 Re-review progress:
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…law#196685) * fix: reclaim PR dependency caches after interrupted operations * fix: recover PR lifetime startup and verify interrupted wrappers * fix: complete PR cache lifetime fixture integration * fix(pr): preserve nested leases and sealed cache recovery * test(pr): preserve unsettled state on restricted procfs * fix(pr): retain lifetime leases across Python launchers * test(ci): avoid shadowing inherited lifetime helper
What Problem This Solves
Fixes unbounded
scripts/prdependency-cache growth when operations are killed during installation or while retaining an anchor.User Impact
Subsequent PR commands automatically reclaim abandoned disposable cache state, with at most four cache/anchor directory removals per collection pass. Live operations and their children retain kernel-backed protection. No manual cache cleanup or configuration is needed.
Legacy holds without kernel evidence and unregistered directories use the approved scratch policy: older than 24 hours, with no current cwd, open descriptor or mapping reference. A dormant legacy child with only a pathname in memory can lose this disposable state and must reinstall on miss. New holds never fall back to age-based collection. Python 3 supplies the POSIX flock/census helper; children must preserve the inherited lifetime descriptor while using operation tooling.
Why This Change Was Made
The lifetime owner previously relied on creator-driven anchor retirement and only collected ledger rows. SIGKILL left permanent holds; installation publication and eviction had filesystem/ledger windows that could leave invisible directories.
The owner now uses an inherited shared flock for future operations, requires a nonblocking exclusive flock for retirement, and records lifetime-creation and installation/detach intent before filesystem changes. Operations register immediately after acquiring the shared lock, including when installed dependencies avoid cache acquisition. Pending startup intent has no dependency consumers yet; recovery requires a dead creator incarnation, no current filesystem references, and an exclusive lock when its file exists. Node child-process APIs preserve the descriptor, including custom environments and execFile. Nested operations retain enclosing leases on additional descriptors while using their own FD7 lifetime. The collector removes dead anchors, settles abandoned installations, and handles legacy orphans under the metadata lock. Same-version additive tables record lifetime and transition evidence; the SQLite version is unchanged. Sealed device recovery includes that state and preserves exact replay and pre-lease v3 compatibility. Recovery commands do not run the startup sweep. Directory and file identity checks continue to refuse aliases.
Production/tooling growth is +1,443 net lines, counting scripts and generated code: 714 in the lifetime owner, 250 in the stdlib kernel/census helper, 168 in child-process inheritance, 31 in the wrapper, 11 in shared Python Git/publication launchers, 10 in their generated CI projection, six declarations and a 253-line synthetic benchmark. Runtime implementation growth is +1,174. This covers child-safe lifetime evidence, producer transitions, process census, bounded interrupted cleanup, nested runtime inheritance and sealed device recovery. Python launchers explicitly preserve declared lifetime descriptors; FD9 retirement authority is separate.
Evidence
scripts/prSIGKILL fixtures pass at installation, hold and settlement. Original orphan and install-wrapper regressions fail against exact parent225afda642e9632775d7cfc520d1862736f50a19.pnpm check:changedcompleted: all selected checks passed except the attributed inherited unused exports. Fresh Codex review of the final repair delta is scoped-clean through P2; the earlier complete patch was reviewed separately. Exact parent reproduces 28 production/eight full-tree unused-export failures, attributed to fix(gateway): avoid unnecessary cold-start initialization #192552, feat(compaction): make compaction summary char cap configurable via maxSummaryChars #196207, improve(tools): let models call listed MCP tools without searching first #196252, fix(config): config writes switch models to API-key billing without a warning #191326, feat(pairing): pair a browser with a short code approved on the host #191513, refactor(auth): isolate provider auth data contracts #190544 and refactor(plugins): forward auth and catalog to their owners #190205; these are main regressions, not ignored noise.Only synthetic disposable fixtures were used; no production cache or data was accessed. No Control UI imports are affected. Final-head CI and ClawSweeper review remain required before landing.
Final landing evidence
Reviewed head:
6b9712fd3435a4f27004a4be6eccc63c8f0e9fd8. CI run 42849960561, attempt 1, tested mergeff9a8491578f4d7ece62748c3a0bafb66931d288against exact main parentd5a021ebabecfdada396c9ac1567e3bbdf04be0a. Every selected job passes except the three proven inherited failures below and their aggregate gate. Security-fast, all seven Security High jobs and precise scanning pass. Failed CI remains failed; the authorized native inherited-failure admission is being used.3686da563c54738b11fac5c9a103ee8b3943b5e6): the introducer's exact parent passes with seven lines of credit; the merge adds 28 lines without credit. Exact final CI main parent reproduces the resulting 21-line deficit (6,629,462 lines / 6,629,441 ceiling). Both intervening commits fully cover their additions. This PR allocates exactly its own 1,152-line growth.e230abd098ed970c30a9812813d2a77b5e80640a): both real mock-provider scenarios reproduce on that exact main parent, each timing out after 60 seconds with the same event sequence and closed plugin invocation scope during completion delivery. An unchanged actual-owner fixture using the real plugin instance, registry and prepared model lease succeeds on immediate parent685f18a41b28b07e93b411b895be1c60dec3fc23and fails at the introducing commit. Ordinary channel calls still work; the delayed callback alone inherits a disposed turn scope. All seven named scenario/owner inputs are byte-identical between the tested main parent and PR merge.These are newly exposed main regressions requiring follow-up, not ignored noise. Exact-parent command logs, scenario results, adjacent-commit observations and source identities are retained by the native admission evidence. The previously documented local unused-export regressions remain separately attributed.
ClawSweeper's published review names this exact head, has zero open checklist items and no actionable findings. All nine earlier items and both hosted Codex findings are reconciled in one numbered response. The review's then-pending smoke attribution is completed above. Both hosted discussion threads are resolved.