Skip to content

fix(test): preserve admitted Gateway work after role changes - #201744

Merged
vincentkoc merged 1 commit into
mainfrom
fix/gateway-captured-admission-tests-20261119
Nov 19, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/gateway-captured-admission-tests-20261119

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Two Gateway tests still expect a role change to cancel already-admitted work, although request authority is intentionally captured at admission.

User Impact

No production behavior changes. The tests distinguish completion of admitted work from rejection of a fresh request after access changes.

Why This Change Was Made

The chat Stop case now releases its held provider, requires the admitted reply to finish, and verifies that the denied Stop caused no cancellation. Profile preparation likewise finishes its admitted callback, then rejects a fresh call before its callback runs. Existing cross-device Stop, exact-source cancellation, profile-binding and caller/plugin/Gateway lifetime checks remain.

Related: #199959

Evidence

  • Full pin validation times out in the chat Stop case under Node and Bun. The log does not identify its pending await, so a successful repaired replay is still required before attributing that timeout to the obsolete final assertion.
  • The profile-role case fails under both runtimes: the admitted callback resolves where the old test expects rejection.
  • The accepted request-authority change and current owners preserve admitted policy and revalidate fresh requests.
  • Independent review passed. Normal commit formatting and line-cap checks and git diff --check passed. ClawSweeper also passed the final committed range (6e55f5c4d918 to c795d89328b0), with no findings and security cleared. Exact-head hosted Node/Bun proof is pending. Local dependencies are unqualified; this draft uses the established hosted proof route.
  • Test-only change: +15/-10 lines across two existing files. No added test cases, mocks, timers, timeout changes, or production code.

Hosted runtime proof: CI 44493029890, job 135454012366 passed the cross-device Stop product test and all four profile-preparation cases under both Node and Bun. The role-change cases passed alongside caller, plugin and Gateway closure cases. Log SHA-256: a6f98c30f8b62ad5c1ebbb052a53967a7938bc00a2427ef4b456757ad2276a7c (214855 bytes).

@clawsweeper

clawsweeper Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vincentkoc vincentkoc self-assigned this Nov 19, 2026
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Nov 19, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 19, 2026 09:10
@vincentkoc
vincentkoc enabled auto-merge (squash) November 19, 2026 09:12
@vincentkoc
vincentkoc merged commit fd933a3 into main Nov 19, 2026
246 checks passed
@vincentkoc
vincentkoc deleted the fix/gateway-captured-admission-tests-20261119 branch November 19, 2026 09:19
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

RomneyDa added a commit that referenced this pull request Nov 20, 2026
Bounded beta2 FRV repair; preserve the existing runtime contract and original failure assertions. Combined qualification follows integration.

Selected source hunks only; unrelated source changes excluded.

(cherry picked from commit fd933a3)

Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant