Repository navigation
ci: inventory retained native worker lifecycles - #203835
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: needs maintainer review before merge. What this changesThis PR records lifecycle owners, lazy activation, cleanup policies, and unknown heap estimates for four existing native-worker launch modes. Example: A maintainer reviews the retainedSnapshots launch mode for sqliteSnapshotStaging.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is useful, focused inventory maintenance with no actionable correctness or security findings; the reviewed head’s lifecycle ratchet and aggregate CI gate passed. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe CI lifecycle checker compares the core runtime manifest and declaration registry against a Git base, validates owner paths and memory declarations, and emits validation results without controlling worker execution. flowchart TD
A[Base manifest and registry] --> D[Lifecycle checker]
B[Proposed manifest and registry] --> D
C[Lifecycle owner files] --> D
E[Baseline ratchet lane] --> D
D --> F[CI result and diagnostics]
Technical reviewBest possible solution: Keep these declarations in the existing registry while leaving lifecycle execution and measured memory policy with their existing owners. Do we have a high-confidence way to reproduce the issue? Source inspection confirms that fetched main omits the four declarations; no runtime failure is claimed or requires reproduction. Is this the best way to solve the issue? The additions are the smallest complete inventory repair: they reuse the existing registry and checker without adding runtime machinery, duplicate policy, or test scaffolding. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dc73bd7122c8. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceOther +30. Total +30 across 1 file. Added test files: 0. 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. 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 Reviewed November 22, 2026, 7:28 PM ET / November 23, 2026, 00:28 UTC. |
|
Merged via squash.
|
What Problem This Solves
The runtime lifecycle inventory omits the native worker supervisor and two worker entrypoints that hold resources through it. Maintainers need to see which owner starts those workers and when it releases them.
User Impact
CI's lifecycle registry now records the four existing launch modes and their cleanup owners.
Why This Change Was Made
The native worker supervisor starts on first use. Its default source joins at runtime cleanup, and a retained generation joins its supervisor before releasing the captured runtime. The same registry now tracks cleanup for plugin preparation and SQLite snapshot staging.
The lean admission ledger has executable-level heap estimates for the supervisor and plugin preparation. Per-mode heap expectations are still unmeasured, so the registry uses its supported unknown value.
Evidence
A focused source check verified four modes on three unchanged manifest entrypoints, all owner paths, and preservation of the existing declarations. Scoped autoreview with the owning implementations found no actionable P0–P2 issues. The patch adds 30 registry lines. Hosted CI passed the runtime-process lifecycle ratchet and the full PR gate. CodeQL passed on the same head.