Skip to content

fix(test): respect deferred input admission during context preparation - #197210

Merged
roboclaw-bot merged 1 commit into
mainfrom
loops/l527-fresh-checkpoint
Nov 11, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
loops/l527-fresh-checkpoint

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes worker context-engine CI expecting fresh input admission before policy has approved persistence.

User Impact

No user-visible change. Preserve the image-aware input policy from #196337: blocked input must not persist before approval.

Why This Change Was Made

Fresh recorder input has no admission receipt during bootstrap and assembly. The fixture compared these earlier snapshots with the receipt created later. Expect no preparation fence for fresh direct/outer input; retain the final defined admission, exact candidate receipt, after-turn content, workspace authority and settlement assertions. This is distinct from #196487’s selected-branch hydration repair.

Contributor credit: Peter Steinberger and Ayaan (obviyus).

Work sessions

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

Evidence

  • Main scheduled run 43011902827 small-1: both preparation snapshots undefined instead of the later receipt, at worker-turn-context-engine.test.ts:192. Introducing policy intent traced to fix: let input policy hooks inspect prepared images #196337; owning preparation and persistence order inspected.
  • Canonical affected named file: 3 tests passed, including direct/outer context preparation and retained plugin authority. Scoped lint: 259 rules, zero warnings/errors. Formatting and diff check pass.
  • Independent review found no actionable defects and confirmed this preserves deferred-persistence policy rather than masking lost admission.
  • Local pre-fix run hit its bound after worker compilation; not claimed as a local red reproduction. Exact CI annotation supplies red evidence. Zero net test lines; no timeout, skip or production change. Pre-admitted fence-forwarding coverage remains separate.

Fresh recorder input is persisted only after image-aware policy admission from #196337. Bootstrap and assembly therefore have no fence yet; retain final admission, exact candidate receipt and after-turn settlement assertions. Three affected-file 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 merged commit eafa247 into main Nov 11, 2026
109 checks passed
@roboclaw-bot
roboclaw-bot deleted the loops/l527-fresh-checkpoint branch November 11, 2026 12:34
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

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

Fresh recorder input is persisted only after image-aware policy admission from openclaw#196337. Bootstrap and assembly therefore have no fence yet; retain final admission, exact candidate receipt and after-turn settlement assertions. Three affected-file tests pass.

Co-authored-by: obviyus <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 12, 2026
Expose the exact prepared image snapshot to input policy hooks across embedded, CLI, and Gateway worker runners. Reuse CLI prepared input across retries and isolate hook mutations from submitted input.

Release adaptation: retain the existing hook type owner and runtime generation scope. Include the required missing-admission refusal from #196702, selected-branch recorder hydration from #196487, and deferred context-admission assertions from #197210. Do not import unrelated session rewind, prompt continuity, or cold-start owners.

Selected source commits:
(cherry picked from commit d7aaafe)
(partial companion from commit e212ede)
(partial companion from commit ebf6c06)
(partial companion from commit eafa247)

Co-authored-by: obviyus <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: RomneyDa <[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