Repository navigation
fix(ci): remove obsolete transcript path wrappers - #200509
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 obsolete transcript-path wrappers, migrates their remaining test callers, and preserves exports in the cron execution mock. Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it completes a useful internal migration with a focused cleanup, and no actionable introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherSession path resolution takes session identity, stored filename metadata, and agent-directory options and returns a contained artifact path through shared synchronous and asynchronous policy. flowchart TD
A[Session identity and metadata] --> B[Core path resolver]
B --> C[Session ID validation]
B --> D[Containment and fallback policy]
D --> E[Sync or async filesystem probes]
E --> F[Resolved artifact path]
Technical reviewBest possible solution: Remove the retired wrappers and stale mocks while retaining the existing core path resolver, validation, containment, and legacy-artifact behavior. Do we have a high-confidence way to reproduce the issue? Current-main callers and the hard-zero unused-export checker support the reported failure path; GitHub confirms the cited job failed, but its detailed logs were inaccessible and no target code was run. Is this the best way to solve the issue? This is the smallest complete fix: it removes the unused API rather than suppressing the audit, migrates retained fixtures, and repairs the affected mock without adding another owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0ffeebc9df42. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -43, Tests -30, Other -1. Total -74 across 7 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 17, 2026, 4:31 AM ET / 09:31 UTC. |
Baseline-Refresh: d143fdfd6ba891b49aae92e131b390f8530fdf28
|
Merged via squash.
|
* fix(ci): remove obsolete transcript path wrappers * test(cron): preserve execution runtime mock exports (cherry picked from commit bd692e9) Co-authored-by: RomneyDa <[email protected]>
* fix(ci): remove obsolete transcript path wrappers * test(cron): preserve execution runtime mock exports
What Problem This Solves
Scheduled CI fails its unused-export check after archived transcript lookup moved to the shared asynchronous path resolver in #200461. Two older path wrappers remain reachable only from tests.
User Impact
No user-visible behavior change. This completes the internal migration and restores the dependency-check contract without retaining test-only production exports.
Why This Change Was Made
Remove the obsolete wrappers and unused topic-filename branch. Move retained fixtures to
resolveSessionFilePathCore, remove stale mocks, and preserve session ID validation, filename limits, containment, legacy artifact resolution, and existing SDK retirement notices.The touched cron mock preserves actual facade exports through typed
importOriginal. Its obsoleterunEmbeddedAgentoverride and exact grandfathered baseline entry are removed; the separate embedded-runner mock remains intact.The refreshed candidate preserves the exported shared generator and separate async resolver introduced by #200505. That resolves the adjacent declaration conflict without undoing the async split.
Evidence
89a0b189: all 142 tests across five files passed, including shared sync/async containment, Gateway archive/symlink paths, and affected session/transcript consumers.