Repository navigation
fix(ci): remove unused agent runtime exports - #206165
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 makes two unused agent-runtime exports private while preserving their internal callers. Example: CI checks the exports toSimpleContextMessages and SubagentCancellationControl.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is a minimal, useful CI repair with no actionable correctness findings, and its exact-head dependency check passes; draft status and another failing CI check still prevent landing. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe agent runtime prepares conversation context for side questions and defines subagent cancellation contracts; this change narrows module visibility without changing their inputs or results. flowchart LR
A[Side question request] --> B[BTW runtime]
B --> C[Local context conversion]
D[Subagent cancellation] --> E[Exported control contracts]
E --> F[Local cancellation type]
Technical reviewBest possible solution: Keep both declarations private in their existing modules and land the minimal change once the draft and CI gates are resolved. Do we have a high-confidence way to reproduce the issue? Source inspection confirms both unused exports on current main, and GitHub records a failing base dependency job followed by a passing dependency job on this PR's exact head. Is this the best way to solve the issue? Removing the unused export keywords is the smallest complete repair: local references and structural type contracts remain intact without adding exceptions or changing runtime behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c818ae7ea000. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0. Total 0 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:
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 26, 2026, 3:52 PM ET / 20:52 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
What Problem This Solves
Main's dependency check fails because two declarations remain exported after their callers moved into the same modules.
User Impact
Restores the dependency check without changing runtime behavior.
Why This Change Was Made
Keep
toSimpleContextMessagesandSubagentCancellationControlprivate to their existing owners. Their internal callers remain unchanged.Evidence
git diff --checkpassed.8b3cd00f3f05f79f08dda2d12c50e61ae164f398: the original dependency check and production/test typechecks passed.Profile saved; Gateway compaction hot reload refused shutdown because native worker owners had not joined. Neither execution path is changed by these two export modifiers. Their root causes remain unresolved.pnpm buildsuccessfully on this exact head. Its later full check failed on pre-existing line-length violations outside both changed files, before tests ran.c0cd628ee749fb8e6405cb1dd4031b5a24968657, whose ordered parents are main baselinebf298a53334aa01379f52e6fb4f87106f2743a4band this exact PR head. The dependency and production/test typechecks passed.