Skip to content

fix(ci): check recovery against the admitted run policy - #201713

Merged
vincentkoc merged 2 commits into
mainfrom
fix/operator-recovery-admission-tests-20261119
Nov 19, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/operator-recovery-admission-tests-20261119

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Four recovery cases fail on both Node and Bun because they still expect a role or device change to cancel work already admitted. The policy established in #201334 and #201377 deliberately preserves that work and rechecks authority at the next start.

User Impact

No runtime behavior changes. CI checks the existing admission policy while retaining coverage that revoked authority cannot start new work.

Why This Change Was Made

Update the existing member-role and retained-continuation cases to check both sides of the contract: admitted work remains valid, and fresh recovery or continuation admission is refused. The continuation case first admits a child after the original occurrence retires, so the later refusal cannot pass merely because the original occurrence ended. Member-role cases also verify that release still invalidates the admitted authorities.

Production +0/-0; tests +33/-5. Existing fixtures and cases are reused; no new compatibility path or policy owner is introduced.

Related: #199959

Evidence

  • Baseline: all four cases fail on both runtimes in the full pin validation job. The errors contradict the intentional admission policy above.
  • Local ClawSweeper reviewed base 8db39f34886f082ead5a84183d359d9535eb15b7 through head 37d9dabead4ab90085d0b2280906cbead9e8dfa4: complete, no correctness or security findings. Fresh independent source review also found no actionable issues. Neither review executes tests; the runtime proof gap remains.
  • Commit hooks and git diff --check: passed.
  • The focused remote attempt produced no command or test result after source synchronization. Its task-owned lease was released; no passing test claim is made. Validation is moving to PR CI because local dependencies are unqualified and the remote attempt did not reach a verdict.
  • The first PR CI attempt exposed a fixture deadlock introduced by this patch: the added sources tried to claim the session while the original source retained its claim. The repair uses the fixture's existing preparing-source path for both fresh admissions, preserving distinct source registrations, normal cleanup, the positive admission control, and the exact policy rejection. No timeout increase or runtime change.
  • Updated-head CI passes all 18 cancellation cases and both member-role recovery cases under Bun. This includes both previously deadlocked cases, the positive pre-revocation admission, and refusal after revocation. Related test jobs pass; remaining required checks are running.
  • Repaired-head Node execution remains part of the next dual-runtime pin qualification; no Node pass is claimed here.

@vincentkoc vincentkoc self-assigned this Nov 19, 2026
@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 enabled auto-merge (squash) November 19, 2026 08:26
@vincentkoc
vincentkoc merged commit f165544 into main Nov 19, 2026
115 of 116 checks passed
@vincentkoc
vincentkoc deleted the fix/operator-recovery-admission-tests-20261119 branch November 19, 2026 08:33
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 20, 2026
)

* test(gateway): align recovery checks with admitted authority

* fix(test): avoid claiming the active recovery fixture session
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