Repository navigation
fix(ci): retired exports break main checks - #168048
Conversation
Remove the Telegram read-only control predicate left without callers by 427f926. Drop the unused model-selection context-token re-export and point its test directly at the existing owner. Make direct chat context private after 999bf5e migrated production callers to the shared source conversation entry point, and move tests to that same entry point. Reproduces main check-dependencies run 38004851105, job 114071382936, plus the new direct-context dead export on 999bf5e. No scanner exceptions or retained runtime behavior changes. Validation: exact pnpm deadcode:full and production/full-tree/script export scans clean; targeted lint clean; independent P1 autoreview clean. Five focused files passed 82 tests in 161.89s, without adding tests. Source-delivery integration proof failed 10 tests identically with the changed helper and test reverted to baseline. Both runs hit existing /tmp/mock-sessions*.sqlite schema-24 databases through the unchanged dispatch harness, plus a subsequent generation-scope failure. Those unrelated shared fixtures were inspected read-only, not modified. Co-authored-by: steipete <[email protected]>
|
🦞👀 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. |
Complete prompt-snapshot callers of the private direct-context helper. Migrate the stale avatar publication TTL fixture to the identity capability invalidation owner, preserving every publication and rerender assertion. Prompt snapshots remain byte-current; 47 avatar and identity tests pass. Full candidate P1 autoreview is scoped-clean. Co-authored-by: steipete <[email protected]>
Resolve the actual avatar fixture conflict by retaining main d810d75, which independently landed the same identity invalidation repair plus expired-cache coverage. The complete avatar/publication/identity suites pass 47 tests after composition. Dead-export and snapshot-consumer repairs remain unchanged. Co-authored-by: steipete <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR removes unused internal exports and moves test and prompt-snapshot callers to the existing conversation-context and model-context helpers. Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This maintainer-authorized repair remains useful on the pinned main branch. The reviewed delta has no actionable correctness or security findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherRepository checks detect unused exports and verify generated agent prompts. This cleanup aligns their consumers with the helpers already used by conversation preparation without changing runtime output. flowchart TD
A[Repository source tree] --> B[Unused export checks]
C[Tests and prompt fixtures] --> D[Existing conversation and model helpers]
D --> E[Unchanged prompts and context budgets]
A --> D
B --> F[Repository check results]
Technical reviewBest possible solution: Land the existing-owner cleanup while preserving runtime behavior and committed prompt bytes. Do we have a high-confidence way to reproduce the issue? Not applicable to a runtime bug: source confirms the retired exports and migrated callers, and the PR documents the failing repository checks and successful repair checks. Is this the best way to solve the issue? Yes: removing unused internal seams and using existing owners is narrower than retaining aliases or weakening the export scanner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 89c0368fe52e. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -11, Tests +2. Total -9 across 9 files. Added test files: 0. View PR surface stats
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 October 9, 2026, 8:54 PM ET / October 10, 2026, 00:54 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* fix(ci): remove retired Telegram and reply exports Remove the Telegram read-only control predicate left without callers by b701007. Drop the unused model-selection context-token re-export and point its test directly at the existing owner. Make direct chat context private after f17b454 migrated production callers to the shared source conversation entry point, and move tests to that same entry point. Reproduces main check-dependencies run 38004851105, job 114071382936, plus the new direct-context dead export on f17b454. No scanner exceptions or retained runtime behavior changes. Validation: exact pnpm deadcode:full and production/full-tree/script export scans clean; targeted lint clean; independent P1 autoreview clean. Five focused files passed 82 tests in 161.89s, without adding tests. Source-delivery integration proof failed 10 tests identically with the changed helper and test reverted to baseline. Both runs hit existing /tmp/mock-sessions*.sqlite schema-24 databases through the unchanged dispatch harness, plus a subsequent generation-scope failure. Those unrelated shared fixtures were inspected read-only, not modified. Co-authored-by: steipete <[email protected]> * fix(ci): migrate prompt and avatar test consumers Complete prompt-snapshot callers of the private direct-context helper. Migrate the stale avatar publication TTL fixture to the identity capability invalidation owner, preserving every publication and rerender assertion. Prompt snapshots remain byte-current; 47 avatar and identity tests pass. Full candidate P1 autoreview is scoped-clean. Co-authored-by: steipete <[email protected]> --------- Co-authored-by: steipete <[email protected]>
Related: #168040, #168004, #167898, #167968
What Problem This Solves
Fixes: main and unrelated PR checks fail after production callers and avatar identity invalidation moved to their new owners.
User Impact
User impact: no runtime or UI behavior changes; developers can run the dead-export checks without these inherited failures. No migrations or user action required.
Why This Change Was Made
Remove the retired Telegram predicate and model-selection re-export, privatize the direct-chat helper after its production callers moved, and migrate all test/prompt-snapshot consumers to the existing owner entry points. The avatar publication fixture now triggers identity invalidation through the existing capability instead of expecting the intentionally removed TTL. All publication and rerender assertions remain intact. No scanner exceptions or production UI changes.
This is a maintainer-authorized red-main repair. Direct push of the proven fix was attempted first and rejected with GH013: “Changes must be made through a pull request.” This PR is the repository-prescribed fallback, not an unsolicited CI cleanup.
Requested by @steipete; contributor credit is retained in the commit.
Work sessions
Evidence
999bf5ecc5c, which additionally had the direct-context export introduced by its caller migration.pnpm deadcode:full: passed both production and full-tree scans.node --import tsx scripts/check-deadcode-exports.mts: production, full-tree, and script scans all report zero entries; repeated successfully on rebased head5d299d236d2ccdd2e07941a8f3b86d9d0fec2c2c.--maxWorkers=1. No tests added; no incremental CI test seconds.git diff --check: passed. Independent P1 autoreview: scoped-clean. Rebase retained identical changed blobs and patch ID.check-prompt-snapshotsexposed two missed helpers undertest/helpers/agents. Migrated both;pnpm prompt:snapshots:checkpasses with all seven snapshots unchanged. Repository-wide search leaves the private direct helper only inside its owner.00b00e25326(perf(ui): stop idle identity reads and restart probes #167968) removed TTL. Parent reproduced all three unchanged publication-test failures from UI CI run38008988386, job114084573657; test SHA-256fb9bf451d67888ff73a109a8cdb3a9a8abe892477e6c78e5c4af736eaf285ab3matched main. Publication/avatar/identity suites now pass 47 tests locally (13.13s wrapper, 10.59s Vitest); no new tests or runtime changes.d810d753e31independently landed the avatar invalidation fix while this PR was under review. Resolved the actual merge conflict by preserving that main fixture byte-for-byte (including its expired-cache coverage). The composed tree passes the same 47 avatar/identity tests (11.01s wrapper, 6.76s Vitest); this PR now has no net UI changes.checks-node-changed-1and the aggregate gate. Four unchangedmodel-fallback.reply-entry.e2e.test.tsOAuth-recovery cases fail during finalization with “Agent database execution generation was replaced.” The tested merge is4c46ad9e065d0e1b37234064d5e721fbff1a4e22, based on main89c0368fe52. Its test, state/config owners, finalization/read chain, and workflow match baseline exactly.89c0368fe52reproduces all four failing cases (4 failed, 5 passed; 132.89s Vitest). Three have the same generation-replaced error; access recovery has the same owner’s admission-closed variant. Node26.8.2 differs from CI24.21.0, and both fail. Container cleanup confirmed. A direct host attempt was fenced from managed-Gateway artifacts; the isolation route preserved that guard./tmp/mock-sessions*.sqlitefixtures use schema 24; the unchanged dispatch harness selects them, and a later generation-scope case also fails. Inspected those shared fixtures read-only; did not migrate/delete them or mask the failures. Full build/typecheck/full test suite not run for this bounded dead-export repair.View the OpenClaw team session