Skip to content

fix(ci): restore chat-update dispatch assertions - #137196

Merged
steipete merged 1 commit into
mainfrom
codex/fix-update-dispatch-assertions
Sep 3, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/fix-update-dispatch-assertions

Conversation

@steipete

@steipete steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where CI fails four chat-update tests because their exact dispatch assertions omit the system actor carried by the shared Gateway helper.

Why This Change Was Made

The shared in-process dispatcher and its owner tests gained the explicit system actor in #136952. This updates the two remaining caller assertions while preserving their owner checks, trusted routing, admin scopes, abort signal, and 20-minute timeout.

Reuses Peter Steinberger's exact two-line fix from 0fee3dcee, already present in #137041. It is separated here so this CI prerequisite can land independently of that PR's unrelated UI and Android changes.

User Impact

No runtime behavior changes. Restores the update test gate for current main and dependent PRs.

Evidence

  • Before: reproduced all four assertion failures on main 993ad3048bf; the other 46 tests passed.
  • After: all 50 tests pass across the update tool, /update, and shared in-process Gateway helper.
  • Command: node scripts/run-vitest.mjs src/agents/tools/gateway-tool.test.ts src/auto-reply/reply/commands-update.test.ts src/agents/tools/in-process-gateway.test.ts.
  • Production delta: 0 lines; test delta: +2 lines. No new tests, mocks, timeouts, config keys, or schema changes.
  • Changed-file gate passed, including formatting, core-test typechecks, lint, and repository guards.
  • Fresh independent Codex review: scoped-clean through P2; no actionable findings.

Align the update tool and /update exact-call assertions with the shared
in-process Gateway actor introduced by #136952. Preserve owner checks,
trusted routing, admin scopes, abort propagation, and the update timeout.

Reuse Peter Steinberger's two-line fix from commit
0fee3dc in #137041, separated so this CI
prerequisite can land independently of its UI and Android changes.

Four failures reproduced on main 993ad30. All 50 owner and sibling
tests pass after the correction. Production delta: zero lines.
@clawsweeper

clawsweeper Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS maintainer Maintainer-authored PR labels Sep 3, 2026
@steipete
steipete marked this pull request as ready for review September 3, 2026 08: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 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 3, 2026, 4:52 AM ET / 08:52 UTC.

ClawSweeper review

What this changes

Updates the Gateway update-tool and /update command tests to expect the explicit system actor supplied by the shared in-process Gateway dispatcher.

Regression provenance

Possible regression — probable (reviewed change; known regression link). No predecessor PR is attributed.

Merge readiness

✅ Ready for maintainer review

Keep open. This precise test-only repair restores two stale exact dispatch assertions to the current shared Gateway contract; the PR is member-authored, so it is not eligible for automatic cleanup closure.

Priority: P2
Reviewed head: 3c5a58e88c61fd0ee5f3eea64c159b880e74f4f3

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A small, source-aligned test repair with no correctness or security finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored, test-only correction does not change user-visible runtime behavior; the external-contributor real-behavior-proof gate does not apply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored, test-only correction does not change user-visible runtime behavior; the external-contributor real-behavior-proof gate does not apply.
Evidence reviewed 4 items Current dispatcher contract: Current main's shared in-process dispatch path always includes the explicit system actor alongside synthetic client and scope metadata.
PR-introduced correction: The verified merge-base-to-head diff adds that required actor to each of the two exact-call assertions and changes no production code.
Merged contract provenance: The actor contract is associated with the merged Gateway/session work that precedes this focused assertion repair.
Findings None None.
Security None None.

How this fits together

Chat-triggered updates enter through the agent Gateway tool or the /update command and are routed through the in-process Gateway dispatcher. The dispatcher supplies trusted system actor metadata before the update request reaches the Gateway owner.

flowchart TD
  A[Agent update tool] --> C[In-process Gateway dispatcher]
  B[/update command] --> C
  C --> D[System actor metadata]
  D --> E[Gateway update owner]
  F[Exact dispatch tests] --> C
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +2. Total +2 across 2 files.

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

Review metrics

Metric Value Why it matters
Production versus test delta production +0, tests +2 Both additions correct exact dispatch expectations; production behavior and public configuration remain unchanged.

Technical review

Best possible solution:

Retain the shared dispatcher behavior and land these two matching assertion updates once the normal exact-head checks complete.

Do we have a high-confidence way to reproduce the issue?

Yes. Current main's dispatcher includes the system actor while both exact-call expectations omit it; the failure path is clear from the source, although this read-only review did not execute the suite.

Is this the best way to solve the issue?

Yes. Aligning the two callers' exact expectations with the shared dispatcher is the narrowest maintainable repair and avoids changing the production authority behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 32bb94ee8467.

Labels

Label changes:

  • add P2: Repairs a bounded CI assertion regression in two update entry-point tests without changing runtime behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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: This member-authored, test-only correction does not change user-visible runtime behavior; the external-contributor real-behavior-proof gate does not apply.

Label justifications:

  • P2: Repairs a bounded CI assertion regression in two update entry-point tests without changing runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored, test-only correction does not change user-visible runtime behavior; the external-contributor real-behavior-proof gate does not apply.

Evidence

What I checked:

Likely related people:

  • steipete: 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.

@steipete
steipete merged commit f257d06 into main Sep 3, 2026
177 checks passed
@steipete
steipete deleted the codex/fix-update-dispatch-assertions branch September 3, 2026 08:54
@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 4, 2026
…7196)

Align the update tool and /update exact-call assertions with the shared
in-process Gateway actor introduced by openclaw#136952. Preserve owner checks,
trusted routing, admin scopes, abort propagation, and the update timeout.

Reuse Peter Steinberger's two-line fix from commit
0fee3dc in openclaw#137041, separated so this CI
prerequisite can land independently of its UI and Android changes.

Four failures reproduced on main 385c9d9. All 50 owner and sibling
tests pass after the correction. Production delta: zero lines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling maintainer Maintainer-authored PR 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