Repository navigation
refactor(subagents): keep announce cleanup action type private - #206407
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: passed. What this changesThis PR removes two unused forwarding exports and makes two obligation-module declarations private. Example: A child completes with the result ALPHA and the requester consumes it silently.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored cleanup removes unused internal exports without changing runtime logic; no actionable regression was found, and the author’s draft pause remains in effect. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherSubagent announcement code receives child outcomes and requester receipts, applies completion policy, and delegates delivery and cleanup to existing transport and lifecycle owners. flowchart TD
A[Child outcome] --> B[Announcement flow]
B --> C[Completion obligation]
C --> D[Transport adapters]
D --> E[Requester receipts]
E --> C
C --> F[Lifecycle cleanup]
Technical reviewBest possible solution: Keep only consumed exports on the existing obligation owner and complete the author’s pending validation before landing. Do we have a high-confidence way to reproduce the issue? No runtime bug is claimed; source inspection confirms the unused export surfaces, and no target code was executed. Is this the best way to solve the issue? The patch is the smallest complete cleanup: it removes unused visibility while preserving the existing owner, implementation, and consumed import paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ba0201db4c47. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -2. Total -2 across 2 files. 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:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 27, 2026, 12:34 AM ET / 05:34 UTC. |
|
Main CI now reports the retained #206429 completes that CI repair by making the helper private and moving the two Discord-thread assertions to the public completion result. Its patched source passed 21 focused tests and the production, full-tree, and script export scans with zero findings. It overlaps this draft's forwarding/result-builder cleanup; the |
6687951 to
c1dcaf8
Compare
|
Merged via squash.
|
…restoration-ci-189390-20261127 * commit '6feeb50a3f14fbf0aa5167d342f186dc4d67fc18': (9846 commits) fix: stop 2026-11-17 main Git checkouts from half-switching on a schema update (#206341) refactor(codex): centralize native completion delivery (#206447) fix(subagents): finish claimed stops after session rotation (#206405) fix: let owners fork a chat with exec after a subagent or exec completion (#206483) test(cli): gate agent --local cold-start processes and workers (#206466) perf(ci): skip baseline inventory when line-cap debt is empty (#189909) refactor(test): share core process-result fixtures (#174149) refactor(ci): reuse canonical budget flag parsing (#189480) fix: recover Codex chats after oversized requests (#206475) fix(agents): skip the bootstrap ritual in one-shot runs (#206477) fix(test): preserve stack coordinates in redacted failure reports (#152384) fix(gateway): return consistent unavailable response guidance (#191933) fix: preserve emphasis in Markdown table row labels (#205349) fix(nextcloud-talk): keep webhook spool helpers private (#206470) perf(plugins): overlay native receipts once per visible root (#206464) fix: keep GitHub comment approvals alive and skip repeat approval on the session PR (#206129) perf(config): retain one snapshot for unchanged validation results (#206465) refactor(test): reuse canonical secret fixture cleanup (#189492) refactor(subagents): own descendant Stop cancellation (#206444) refactor(subagents): keep announce cleanup action type private (#206407) ...
Related: #206373
Follow-up to #206383 and #206429
What Problem This Solves
The announce cleanup action type is exported even though only its defining module reads it. This finishes the requested L3 export cleanup after the runtime-helper cleanup landed separately.
User Impact
No user-visible change. The type definition, runtime function bodies, delivery decisions, and tests are unchanged.
Why This Change Was Made
Make AnnounceCleanupAction private to the obligation owner. Rebased onto the landed fix in #206429 and dropped all overlapping runtime-helper and forwarding-export changes.
Mechanical caller updates
None required. A full-index git grep finds the type only at its declaration and its local return-type annotation.
Evidence
Base:
33fa6a84cec628168f052414a2cfa023af1956c3Head:
c1dcaf8e686f22190a8c196110f885d0b55b5838