Repository navigation
test(ci): align fixtures with canonical runtime owners - #160349
Conversation
Extract the host-fork registration and canonical skill fixture repairs from 5acf0dc in PR #160198 so unrelated CI failures there do not hold these prerequisites. Preserve runtime behavior, assertions and deadlines, and pin the dispatch test in the existing routing coverage. Co-authored-by: Peter Steinberger <[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. |
|
Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 5:51 AM ET / 09:51 UTC. ClawSweeper reviewWhat this changesUpdates the Gateway skill-refresh fixture to check canonical workspace precedence and assigns the hot-reload reply-dispatch fixture to the existing forked database-worker test project. Merge readiness✅ Ready for maintainer review Keep open. Current main still has the stale fixtures, and the focused change remains useful independently of the broader, open performance PR. Source inspection found no blocking patch defect. Priority: P2 Review scores
Verification
How this fits togetherGateway agent turns prepare skills from the configured workspace and pass the resulting snapshot into prompts. CI assigns tests that exercise SQLite-backed reply admission to a forked worker project. flowchart LR
A[Configured workspace] --> C[Canonical skill selection]
B[Managed worktree copy] --> C
C --> D[Gateway agent turn]
D --> E[Prompt and skill events]
F[Reply dispatcher test] --> G[CI test planner]
G --> H[Forked database worker project]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +6. Total +6 across 3 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Retain one real-Gateway case for canonical skill precedence and watcher cleanup, with the dispatcher fixture assigned through the existing database-worker test owner. Do we have a high-confidence way to reproduce the issue? Yes, the current source identifies both stale fixture paths and their focused tests. This read-only review did not execute a failing current-main run. Is this the best way to solve the issue? Yes. It changes the existing fixtures and routing list at their owners without changing production behavior or adding a competing test project. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2c97229f4c88. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Align the real reply-dispatch fixture with the existing database fork owner and make the Gateway skill-refresh fixture exercise its recorded canonical workspace. Validated with exact-head canonical CI, focused dispatcher and routing proof, and independent source review. Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Two inherited test-owner mismatches block the source-graph memory work in #160311.
User Impact
No production behavior, configuration, worker limits or test deadlines change. Existing event counts, repeated turns, prompt assertions and shutdown coverage remain; conflicting-copy coverage becomes explicit.
Why This Change Was Made
The runtime contracts landed in #159632 and #158110. The dispatcher failure reproduces on both the old and narrowed source graphs.
The two fixture repairs are extracted from Peter Steinberger's commit
5acf0dca18049d80f07adb6015a9477a2a070045in #160198, with co-author credit. That broader session-list performance PR currently has unrelated UI Stop and install-policy timeout failures; taking its production changes would widen this prerequisite. Its remaining performance work stays in that PR.Production LOC: 0. Tests and test configuration: +12/-6 across three files.
Evidence
git diff --checkpass.aa3aee17c7202e9ff3c3efdfe7f511e2f1ec5e3b, all 8 dispatcher cases passed in the real database fork pool. The routing regression passed in 4.85 s. Both used a 7 GiB process-tree limit with swap disabled.d923cd088b8dbe795d791a836273a01992f8539fis verified on main, patch-identical to the reviewed branch.