Repository navigation
test(agents): remove orphaned helper code - #201031
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 removes orphaned agent test helpers and imports and makes three internally used exports private. Example: Maintaining the fallback tests after their consolidation
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR provides useful, focused cleanup of unused test support, with no actionable correctness or security findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherAgent test suites use these support modules to construct runner inputs, isolated auth stores, terminal results, and model-catalog fixtures. flowchart TD
A[Agent test suites] --> B[Retained test helpers]
B --> C[Runner and terminal owners]
B --> D[Isolated auth fixtures]
B --> E[Catalog worker fixtures]
C --> F[Test assertions]
D --> F
E --> F
Technical reviewBest possible solution: Remove only unreachable test support and unused export modifiers while preserving every surviving helper and assertion. Do we have a high-confidence way to reproduce the issue? There is no runtime bug to reproduce; source inspection verifies the orphaned definitions and surviving internal callers. Is this the best way to solve the issue? The diff is the smallest complete cleanup: it removes unused implementations and their exclusive imports without adding machinery or modifying surviving assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 75a31ed2854c. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -174. Total -174 across 4 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 18, 2026, 1:16 AM ET / 06:16 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* test(agents): remove orphaned helper code * test(agents): remove orphaned catalog refresh helper
What Problem This Solves
The test consolidation in #198916 removed the last consumers of several agent test helpers but left their exports, implementations, and exclusive imports behind. Full-tree dead-code checks still report those orphaned helpers.
User Impact
No production behavior changes. Existing tests and their assertions remain intact.
Why This Change Was Made
Remove the unused context-engine mock helpers, fallback auth writer and error fixtures, native-catalog assertion and refresh helpers, and terminal stats input types. Keep three helpers/constants that still have same-file callers private. Retain the fallback success-attempt builder, active rate-limit fixture, and real admission/catalog/terminal helpers used by surviving suites.
Evidence
5e677bad; traced the removed consumers to #198916 (ee3e16e).5e677bad..dfac330awith all five files and owning context: no actionable correctness or security findings (confidence 0.97).Current CI qualification
Exact-head CI run 44252454022 completed with five SDK declaration/type failures plus their aggregate; all test jobs and
security-fastpassed. Each failure reports the same six public hook/metrics types missing from their modules. #201044 restored those exports on main. The actual tested merge changes only this PR’s five test-support files; twelve inspected SDK, compiler, workflow, and dependency inputs are byte-identical to its main baseline. This is scoped inherited-failure attribution, not a claim that the failed run was green or that this cleanup repairs the SDK.