Repository navigation
fix(ci): retire unused compaction export surfaces - #201497
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 makes internal compaction helpers private, removes unused adapters and re-exports, and moves existing assertions to maintained entry points. Example: A serialization test renders conversation descriptors with a 4,000-character budget.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR provides useful cleanup, and static review found no introduced correctness defects; validation remains pending while it is draft. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherCompaction prepares retained session history, renders bounded summary input, and sends it through the provider transport; Knip checks the source graph for unused exports. flowchart LR
A[Session transcript] --> B[Compaction preparation]
B --> C[Bounded summary rendering]
C --> D[Provider transport]
D --> E[Compaction summary]
Technical reviewBest possible solution: Retain the existing compaction owners and merge this focused export cleanup once the pending validation passes. Do we have a high-confidence way to reproduce the issue? Source references support the unused-surface diagnosis and GitHub confirms the preceding dependency job failed, but the exact Knip diagnostic and an after-change scan were not available. Is this the best way to solve the issue? Removing unused adapters and forwarding exports while testing maintained entry points is the smallest complete fix; no additional production machinery is needed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3eee09d9b462. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -38, Tests -29. Total -67 across 31 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, 5:57 PM ET / 22:57 UTC. |
|
Merged via squash auto-merge.
|
* fix(ci): retire unused compaction export surfaces * fix(ci): complete compaction fixture export cleanup
* fix(ci): retire unused compaction export surfaces * fix(ci): complete compaction fixture export cleanup (cherry picked from commit bf7681d) Release adaptation: omit unrelated new-session UI test-helper cleanup. Retain source compaction stream test, absent on the release baseline, at its canonical owner boundary. Follow-up disposition: paired with #201304; no additional runtime policy changes. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit a115b897eb7bcba23496edc40b73d5b8b9a8640a)
Release adaptation: omit the new before_model_request gate regression from #201497 because its complete feature #193550 (2b7950c) is absent on this release. Keep the transport shaping regression; do not import an unrelated 54-file plugin feature to satisfy a mismatched test. Simplify the prepared alias registration-key comparison while preserving the generation-registry exemption and exact captured resolver. Follow-up disposition: missing gate test is not compaction behavior proof; source extraction and exact replay tests provide the retained boundary coverage. PostgreSQL service qualification remains environment-blocked. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 3045afdafff9a3a21b48732b6c49711fb5fc9b71)
Problem
The long-history compaction migration left unused helper exports and old array adapters. The scheduled dependency check fails in both production and full-tree Knip scans: failed check.
Change
Keep module-local compaction/replay helpers private, remove obsolete re-exports and unused adapters, and move existing assertions to their maintained entry points. The serialization goldens, lazy-read limits, immutable publication checks, and final shaped payload assertions remain. The unused New Session presentation assertion helper is removed.
No package export map, runtime behavior, Knip exception, or baseline changes.
Validation
All local runtime proof used macOS with the pinned Bun runtime. PR CI provides the broader platform checks.