Repository navigation
refactor(process): remove private options and unread results - #177134
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 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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR removes unused process options, background enqueue helpers, and unread packet-delivery promises. Example: A background Windows CLI respawn has neither stdin nor stdout attached to a terminal.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-directed cleanup removes unused private contracts while preserving production lifecycle behavior; no actionable introduced bug was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherCLI startup, Workshop reviews, and worker adapters enter existing process and queue owners, which forward signals, schedule work, deliver resource packets, and retain cleanup through completion. flowchart TD
A[CLI startup] --> B[Respawn child runner]
B --> C[Child signal bridge]
D[Workshop reviews] --> E[Command queue]
F[Worker host adapter] --> G[Worker runtime]
G --> H[Spawn broker resource claims]
Technical reviewBest possible solution: Retain this focused cleanup while preserving the existing signal, queue, receipt, and native-resource lifecycle owners. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor rather than a bug report; source inspection confirms the removed alternatives lack production consumers. Is this the best way to solve the issue? The diff is a small complete cleanup using existing owners, with no replacement abstraction or unnecessary production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2d3cb1c426ab. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -61, Tests -33. Total -94 across 20 files. Added test files: 0. View PR surface stats
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 Reviewed October 19, 2026, 4:39 AM ET / 08:39 UTC. |
|
Merged via squash.
|
What Problem This Solves
Internal process and worker APIs still carry test-only alternatives and delivery results that production never uses.
User Impact
No user-visible change, migration or configuration change. Signal forwarding, terminal/process-tree policy, background capacity, FIFO, cancellation, native cleanup and error reporting stay with their existing owners. Public plugin SDK, protocol and persisted shapes are unchanged; the standalone session memory backend is untouched.
Why This Change Was Made
Remove the unread per-packet delivery Promise while retaining receipt tracking, byte/message quotas and failure callbacks. Use canonical platform signals and actual process-stream TTY state instead of private overrides. The remaining Workshop background owner has width one and only consumes its lane; remove its unused enqueue method and specialize that width. Inline the worker dispatcher's sole error factory and require the resource closer its only host already supplies.
This is a process/worker AREA split of the original over-80-path options family. Against base
acb98dbf5bc37b7ae9598615aed158c4144e640e: 61 net production lines and 33 net test lines removed across 20 files. Existing tests now use actual queue publication and quota observations rather than the removed private alternatives; no new test-only production seam is added.Best-effort tradeoffs accepted
Evidence
Whole-tree caller/type/export closure includes
src,extensions,ui/src,packages, scripts and plugin SDK barrels. Author simplify/test audit retained live lifecycle, capacity, ordering and cancellation coverage. Independent isolated P2 review completed on all 20 changed files with no actionable P0–P2 findings.Targeted native typechecks passed. All 144 selected runtime cases passed across worker-native exchange/private retirement (8), worker serving/owned lifecycle (25), real subprocess/resource transport (12), startup respawn (17), compile-cache (23), process/background/resource contracts (47), TUI launch (9), changed Gateway cases (2), and exec bridge integration (1). Four wrapper inventory/source-closure guards also passed. This combines focused runs on unchanged inputs, not a full-suite claim. An initial five-case compile-cache failure exposed a missed old callback-object assertion; migrating only that matcher made all 23 cases pass.
Type-aware lint and formatting passed on all 20 changed files; runtime value cycles are zero, the 20-file line-cap ratchet passed with no new violation/growth, and whitespace checks passed. No source formatting changes were needed.
Known local gap: the lint-suppression guard fails with 99 rows versus 97 expected, naming unchanged
src/agents/native-mcp-connect.tsentries (typescript/unbound-methodandunicorn/prefer-add-event-listener). Neither that source nor its guard is changed here; both are byte-identical between the pinned base and observed main077fcccbdfdee2d755dc4d248d82412222e638d0. No baseline replay or CI-inherited attribution is claimed, and no suppression/baseline was added. Exact-head PR CI remains the broad gate.No broad local build, whole-graph typecheck, standard madge pass, E2E, live-device proof or full-suite result is claimed.
Exact-head CI run 39222314148 (attempt 1) completed successfully for
808f4ca1e69828cafc06735edbc6076c46c5c4c4; the pinned watcher reported GREEN with zero pending checks. No CI rerun or green re-push. Main subsequently reconciled the native-MCP inventory and retired provider-error row inab762397af2f3cce0c3d7c80b7c92e32d1b8997d; the original local failure above remains recorded, not relabeled passing. No failed-CI exception is requested.