Repository navigation
fix(ci): prevent stale checks from rejecting valid changes - #169616
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 aligns existing test fixtures with their production owners and removes unused internal exports. Example: Run ordinary Codex finalization with session key agent:main:settled-native.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs concrete fixture drift still present on fetched main, and review found no actionable introduced defect. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherCI fixtures feed synthetic sessions, routes, expiry records, and embedding failures through production owners, then assert transcript, routing, retention, and search outcomes. flowchart TD
A[CI test runner] --> B[Shared fixtures]
B --> C[Codex transcript owner]
B --> D[Feishu routing owner]
B --> E[Plugin state owner]
B --> F[Memory search owner]
C --> G[Behavior assertions]
D --> G
E --> G
F --> G
Technical reviewBest possible solution: Land the focused fixture repair through the existing merge gates while preserving production ownership and behavioral assertions. Do we have a high-confidence way to reproduce the issue? Source confirms the stale Feishu mock target and inconsistent Codex fixture identity; the PR records failing-before and passing-after selections, which this review did not rerun. Is this the best way to solve the issue? The repair updates fixture producers and uses existing lifecycle and mutation owners while retaining the relevant negative assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0c8464cf802c. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -4, Tests +4. Total 0 across 7 files. Added test files: 0. View PR surface stats
Review metrics
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 12, 2026, 1:06 AM ET / 05:06 UTC. |
|
Merged via squash.
|
The ClawRouter pool dashboard (#169514) exported ClawRouterPoolTraffic, but nothing imports it: control-ui.tsx derives the same shape through ClawRouterPool["usage"]["lanes"][number]. The Knip production and full-tree unused-export scans therefore fail for every change on main, which breaks the dead export scan in scripts/check-changed.mjs. The type stays file-local because pool.ts still uses it for the usage field and the traffic() parser. The previously reported agentRunHasVisibleReply finding was already removed by #169616; this was the remaining entry. Proof: node --import tsx scripts/check-deadcode-exports.mts passes all three scans with 0 entries (main at f466872 failed with only this symbol); pnpm tsgo:core and pnpm tsgo:extensions clean; oxlint clean; pnpm test extensions/clawrouter/pool.test.ts --maxWorkers=1 passes (5.3s).
299 upstream commits, seven of them touching extensions/feishu (none overlap the branch's files). runtime-forwarders.ts and the config baseline hash file conflicted. openclaw#169375 made createRuntimeOutboundDelegates read each method once instead of re-reading the params on every call. The merge takes that shape and adds the branch's sendFormattedText to the OutboundMethod union and to the returned delegates, so Feishu still advertises the formatted sender on the registered surface. Upstream's updated forwarder test is kept, with the branch's sendFormattedText: undefined row. The config baseline hashes were regenerated from this merge with build:docker in a separate detached checkout. Counts are unchanged at core 2499, channel 4033 and plugin 4527, since upstream moved none. The core and plugin hashes match upstream/main, the channel hash is the branch's from the last merge, and the combined hash is new. The generated channel metadata is unchanged. The config docs, channel metadata, config schema, plugin inventory, sqlite session schema and runtime sidecar checks pass there. Feishu: 102 files and 1265 tests in the extension project, and the 17 Feishu files in the database-workers project (213 tests), all passing. The four monitor.lifecycle.test.ts failures seen at the last merge are gone: openclaw#169616 moved lifecycle.test-support.ts to mock the async binding route that bot.ts calls. The src/channels/plugins tests (112 files, 809 tests) and the other tests that use the forwarders pass. tsgo:core, tsgo:extensions, tsgo:test, the eight baseline ratchets against upstream/main, the import cycle checks and oxfmt on the changed files pass. Lint reports 15 max-lines errors, deadcode:full reports 3 unused exports and db:worker-inventory:check reports a stale inventory, all in files this branch leaves identical to upstream, and all three reproduce on a clean 3f337ed.
The ClawRouter pool dashboard (openclaw#169514) exported ClawRouterPoolTraffic, but nothing imports it: control-ui.tsx derives the same shape through ClawRouterPool["usage"]["lanes"][number]. The Knip production and full-tree unused-export scans therefore fail for every change on main, which breaks the dead export scan in scripts/check-changed.mjs. The type stays file-local because pool.ts still uses it for the usage field and the traffic() parser. The previously reported agentRunHasVisibleReply finding was already removed by openclaw#169616; this was the remaining entry. Proof: node --import tsx scripts/check-deadcode-exports.mts passes all three scans with 0 entries (main at e79ac50 failed with only this symbol); pnpm tsgo:core and pnpm tsgo:extensions clean; oxlint clean; pnpm test extensions/clawrouter/pool.test.ts --maxWorkers=1 passes (5.3s).
What Problem This Solves
Fixes valid PRs failing CI because shared native, channel, and Memory fixtures and two internal exports no longer follow their current owners.
User Impact
CI exercises the intended contracts again. There are no user-facing runtime, schema, configuration, permission, dependency, or public API changes.
Why This Change Was Made
Keep fixture identities, async routing, published TTLs, and offline Memory mutations aligned with production ownership. Existing transcript refusal, routing, expiry, keyword fallback, and model-mismatch assertions remain intact. Main's existing Matrix cold-corruption repair is retained, not duplicated. Delete an unused internal reply predicate and make the internally called reader-retirement helper private; its corruption handling is unchanged.
This is a separate red-main fixture repair, not part of the plain-language PR scopes. Repository rules already refused a direct main push, so it follows the native PR landing path.
Evidence
The failures were reproduced without wording changes on the exact tested main
48d96b4e3b6f2bd79583e0fac438ab91a3cd57c7:The five fixture files were qualified against
e03a56d942364c94bd82e74fc3184f7ebcb8b4af. Its updated logical-expiry owner passes the existing Matrix TTL case (13 explicitly unselected), and both Memory transport/mismatch cases pass after the database-lifecycle changes. Unchanged earlier proof was reused. The first changed-gate attempt found two missing names in main's unchanged deletion-journal phase guard; main independently fixed that owner in 21a1699fbce, which is included in the final base3d9595fe12769ce63cb54992911728b95442e243. Extension test types then passed.Independent autoreview of the final seven-file delta is scoped-clean at P0–P2. The required production and full-tree unused-export scans first reproduced two main-only leftovers; whole-repository references confirmed the dead predicate has no callers or SDK surface, while reader retirement has a live internal caller that is preserved. The full combined changed-file gate passes: all core/test/extension type graphs, three unused-export scans, scoped lint, boundary/ratchet, schema, cycle, and auth guards (751.80 seconds). Exact-head hosted CI and ClawSweeper remain separately enforced.
The separate anonymous chat-row failure was investigated in the original file order: the full 88-case Gateway selection passes with unchanged Gateway/session sources. No Gateway repair or flake-resolution claim is included.
Commands and measured local cost
All proof uses the repository runner, synthetic providers, isolated state, and one worker. No live Gateway or provider is used.
Measured local wall time: Native owner/caller selection 100.82 seconds; combined Feishu/Matrix selection 147.98 seconds of Vitest duration; final Memory file 26.51 seconds, then 33.52 seconds on the latest qualified base. The original Memory ten-file selection passes in 114.62 seconds. Current-owner Matrix TTL qualification takes 35.90 seconds, with the case itself 629 ms; reader ownership's three-file selection takes 36.04 seconds. Worker preparation and cold module transformation dominate these existing integrations; no new timers, sleeps, retries, test cases, or production test seams were added. Hosted CI seconds will be recorded when available.