Skip to content

test(ci): align fixtures with canonical runtime owners - #160349

Merged
vincentkoc merged 1 commit into
mainfrom
fix/test-reply-dispatch-host-owner
Sep 28, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/test-reply-dispatch-host-owner

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Two inherited test-owner mismatches block the source-graph memory work in #160311.

  • Ordinary reply admission now needs the SQLite host owner, but the real hot-reload dispatcher fixture still runs in the agents thread pool. Register it in the existing database fork list and pin that route in the existing planner test.
  • Managed-worktree sessions deliberately read their recorded canonical skill source. The Gateway E2E fixture edits an unselected worktree copy. Give that copy conflicting text, assert canonical precedence, and perform both watched edits in the canonical source.

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 5acf0dca18049d80f07adb6015a9477a2a070045 in #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

  • Targeted formatting and git diff --check pass.
  • Source review follows canonical workspace recording, agent skill preparation and normalized watcher roots; the fixture retains exact lifecycle assertions and deadlines.
  • At head 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.
  • The full Gateway skill-refresh E2E case passed after a cold production/private-QA build: 114.55 s Vitest, 824.16 s including build and wrapper, under a 12 GiB process-tree limit with swap disabled. This additional reproduction completed after merge; canonical exact-head CI and focused proof were green before merge. Testbox workflow.
  • An earlier broad planner selection exceeded its external 240 s proof deadline. The relevant routing case was then selected directly and passed; repository test deadlines were unchanged.
  • Squash merge d923cd088b8dbe795d791a836273a01992f8539f is verified on main, patch-identical to the reviewed branch.
  • No release-note entry: test-only repair.

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]>
@vincentkoc vincentkoc self-assigned this Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 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.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Sep 28, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 28, 2026 09:43
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 5:51 AM ET / 09:51 UTC.

ClawSweeper review

What this changes

Updates 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
Reviewed head: aa3aee17c7202e9ff3c3efdfe7f511e2f1ec5e3b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-consistent fixture repair with reported prior boundary validation and no identified correctness or security blocker.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The contributor proof gate does not apply to this MEMBER-authored test-only PR. The Gateway fixture exercises sessions.create and agent turns through a real test Gateway, and the linked broader PR reports Testbox results for the same two fixture edits; the captured body says this PR's exact-head validation is pending. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The contributor proof gate does not apply to this MEMBER-authored test-only PR. The Gateway fixture exercises sessions.create and agent turns through a real test Gateway, and the linked broader PR reports Testbox results for the same two fixture edits; the captured body says this PR's exact-head validation is pending. No stored-data contract changes.
Evidence reviewed 7 items Introduced Gateway fixture change: The patch gives the worktree skill conflicting text, checks that neither the stored snapshot nor provider request selects it, and edits the configured workspace for subsequent refresh assertions.
Canonical skill owner: Session preparation resolves the configured agent workspace as the skill source; the Gateway caller supplies the recorded canonical workspace for execution.
Introduced CI routing: The hot-reload dispatch test is added to the database-worker file list, and the planner test asserts its admission to the forked infra project.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +6. Total +6 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 12 6 +6
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 12 6 +6

Review metrics

None.

Root-cause cluster

Relationship: canonical
Canonical: #160349
Summary: This focused PR extracts fixture repairs also present in a broader open performance PR; the source-graph PR is separate dependent work.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best 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.

Labels

Label changes:

  • add P2: The patch repairs two bounded test-contract mismatches that affect validation of current Gateway and reply-admission behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The contributor proof gate does not apply to this MEMBER-authored test-only PR. The Gateway fixture exercises sessions.create and agent turns through a real test Gateway, and the linked broader PR reports Testbox results for the same two fixture edits; the captured body says this PR's exact-head validation is pending. No stored-data contract changes.

Label justifications:

  • P2: The patch repairs two bounded test-contract mismatches that affect validation of current Gateway and reply-admission behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The contributor proof gate does not apply to this MEMBER-authored test-only PR. The Gateway fixture exercises sessions.create and agent turns through a real test Gateway, and the linked broader PR reports Testbox results for the same two fixture edits; the captured body says this PR's exact-head validation is pending. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit d1a194b adds src/gateway/gateway-agent-skill-refresh.e2e.test.ts:173 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d1a194b52f6a; files: src/gateway/gateway-agent-skill-refresh.e2e.test.ts)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc
vincentkoc merged commit d923cd0 into main Sep 28, 2026
242 of 243 checks passed
@vincentkoc
vincentkoc deleted the fix/test-reply-dispatch-host-owner branch September 28, 2026 10:02
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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