Skip to content

fix(test): distinguish close admission fencing from scheduler retirement - #197213

Merged
roboclaw-bot merged 1 commit into
mainfrom
loops/l528-rewind-close-phase
Nov 11, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
loops/l528-rewind-close-phase

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes the accepted fork/rewind close regression test confusing admission closure with later scheduler authority retirement.

User Impact

No user-visible change. Preserve #196923’s admission-first restart custody and accepted persistence behavior.

Why This Change Was Made

#196923 intentionally changed the early scheduler action from beginClose to fence: admission and wakeups stop first, while authority is retired after restart custody recording. The fixture waits for request-entry closure, not completed shutdown. Assert both phase-specific signals at that boundary, then require scheduler retirement after finishing accepted work. Keep late-request refusal and every persisted fork/rewind assertion.

Contributor credit: Peter Steinberger and Ayaan (obviyus).

Work sessions

Linked for team reference; these sessions aren’t public.

Evidence

  • Actual canonical named case fails before the correction at the old scheduler-aborted tuple.
  • Entire affected named file passes 3/3 afterward, including observer and system-agent close cases.
  • Scoped lint: 259 rules, zero warnings/errors. Formatter and git diff check pass. Independent source and patch reviews found no actionable defects.
  • Exact two net test lines add explicit admission/retirement assertions; dedicated allocation records only those lines. No new cases, retries, timeout changes, skips or weakened persistence checks.
  • No production code changes. Broader proof remains PR CI.

Preserve #196923 admission-first restart custody. Assert request entry closes while scheduler authority is fenced, then assert scheduler retirement after accepted fork and rewind finish. Keep persistence and late-request refusal checks; three affected tests pass.

Co-authored-by: steipete <[email protected]>

Co-authored-by: obviyus <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 11, 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 Nov 11, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 11, 2026
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) November 11, 2026 12:45
@roboclaw-bot
roboclaw-bot merged commit d546d06 into main Nov 11, 2026
112 checks passed
@roboclaw-bot
roboclaw-bot deleted the loops/l528-rewind-close-phase branch November 11, 2026 12:47
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
…ent (openclaw#197213)

Preserve openclaw#196923 admission-first restart custody. Assert request entry closes while scheduler authority is fenced, then assert scheduler retirement after accepted fork and rewind finish. Keep persistence and late-request refusal checks; three affected tests pass.

Co-authored-by: obviyus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. gateway Gateway runtime size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant