Skip to content

fix(ci): remove obsolete transcript path wrappers - #200509

Merged
vincentkoc merged 3 commits into
mainfrom
fix/ci-obsolete-transcript-path-wrappers-20261117
Nov 17, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/ci-obsolete-transcript-path-wrappers-20261117

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

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 obsolete runEmbeddedAgent override 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

  • Original failure: scheduled dependency check.
  • Exact refreshed candidate 89a0b189: all 142 tests across five files passed, including shared sync/async containment, Gateway archive/symlink paths, and affected session/transcript consumers.
  • Knip script and full-tree scans passed. Production exports no longer reports either obsolete wrapper; it retains only the unchanged helper covered by #200534.
  • Config/CLI typecheck and formatting passed. Direct typed lint reports the existing transcript fixture line count (1028 against1000); the supported line-growth ratchet passes, and this change shrinks that file. No suppression was added.
  • Fresh independent review of the full seven-file candidate found no P0–P3 findings.
  • Earlier corrected-head CI passed. The baseline refresh requires new exact-head CI; the earlier run is not claimed as proof of this head.

@vincentkoc vincentkoc self-assigned this Nov 17, 2026
@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review November 17, 2026 08:46
@vincentkoc
vincentkoc enabled auto-merge (squash) November 17, 2026 08:50
@vincentkoc
vincentkoc disabled auto-merge November 17, 2026 08:55
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 17, 2026
@clawsweeper

clawsweeper Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR removes obsolete transcript-path wrappers, migrates their remaining test callers, and preserves exports in the cron execution mock.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, useful patch with no actionable findings; validation rests on reported focused runs and inspected CI checks, with the aggregate still pending.
Proof confidence 🦐 gold shrimp (3/6) This internal cleanup has no user-visible behavior change; supplied validation covers the export audit, existing path-owner tests, and cron consumers, supported by successful exact-head checks.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Scheduled dependency checks reject obsolete production exports that remain referenced only by tests.
Reason: The maintainer-authored direction matches repository policy against test-only production exports and preserves the existing runtime contract.

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
Reviewed head: 5fcff8f1e1f673b09b02205900323aafa6b61c67

Before merge

None.

Findings

None.

Agent review details

How this fits together

Session 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]
Loading

Technical review

Best 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

  • Shared synchronous and asynchronous path policy keeps the original intent (4c79d8f: Share containment and fallback policy while keeping archived usage resolution asynchronous.)
  • Unicode IDs and filename limits keeps the original intent (559ee3a: Preserve canonical path-safe Unicode session IDs during upgrades while rejecting unsafe IDs and oversized filenames; the shared validator and retained tests continue to enforce these constraints.)
  • Cron execution mock isolation keeps the original intent (fix(codex): preserve delivery facts and native approval semantics #151863: Exercise cron orchestration with controlled execution and delivery outcomes; the dedicated embedded-runner mock remains after obsolete facade overrides are removed.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit 4c79d8f adds src/config/sessions/paths.ts:123 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4c79d8f41631; files: src/config/sessions/paths.ts)
  • Vincent Koc: Raw commit 393a1ea adds src/cron/isolated-agent/run.test-harness.ts:18 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 393a1ea66b4d; files: src/cron/isolated-agent/run.test-harness.ts)

PR surface

Source -43, Tests -30, Other -1. Total -74 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 44 -43
Tests 5 16 46 -30
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 7 17 91 -74

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Obsolete production exports violate the dependency-check contract and disrupt scheduled CI, with no demonstrated user-runtime outage.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Obsolete production exports violate the dependency-check contract and disrupt scheduled CI, with no demonstrated user-runtime outage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 17, 2026, 4:31 AM ET / 09:31 UTC.

Baseline-Refresh: d143fdfd6ba891b49aae92e131b390f8530fdf28
@vincentkoc
vincentkoc merged commit bd692e9 into main Nov 17, 2026
138 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-obsolete-transcript-path-wrappers-20261117 branch November 17, 2026 10:22
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

RomneyDa added a commit that referenced this pull request Nov 17, 2026
* 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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 18, 2026
* fix(ci): remove obsolete transcript path wrappers

* test(cron): preserve execution runtime mock exports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant