Skip to content

fix(queue): let owner messages steer active automation turns - #188514

Merged
steipete merged 3 commits into
mainfrom
steipete/perf-micro-loop-session-steer-queued-20260919
Oct 30, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/perf-micro-loop-session-steer-queued-20260919

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Owner messages sent with queueMode: "steer" were queued behind active automation and loop turns because continuation admission required the incumbent to look like human ingress.

User Impact

An authenticated Gateway owner can guide the active background turn in the same authorized session. The input keeps its human provenance and current authorization; the scheduled or delegated execution retains its existing tool permissions. Non-owner inputs and hidden coordination keep their existing admission rules.

Why This Change Was Made

Classify authorized owner guidance at the existing continuation boundary instead of treating an automation principal as a different human caller. Keep incoming authority live through consumption and disallow pending-question shortcuts. Isolated cron launch now carries the provenance and captured execution settings already required by that boundary.

Production delta: +23 lines. The growth implements the missing authority relationship and launch facts; no cache, configuration option, migration, or parallel steering path is added. This is a correctness fix with no performance claim.

Evidence

  • Gateway regression: both new owner/automation cases fail on base with “Compatible requester input was dispatched as a separate turn,” then pass with the fix. A held mock provider proves native steering acceptance before the active run ends, no separate dispatch, retained execution identity/authority, and owner transcript provenance.
  • Focused Gateway matrix covers loop, cron, visible subagent, non-owner fallback, and revocation after acceptance. All 28 tests passed on the final frozen source (81.28s Vitest wall time; 89.83s wrapper total).
  • Isolated cron fallback/CLI ownership: 5 passed. Prompt-prefix stability: 14 passed. Core typecheck passed. Cron workspace/cancellation checks: 12 passed. Import-closure guards: 38 passed. Export-name collision guard passed.
  • Formatting and changed-file lint passed. The commit hook initially rejected growth in the already oversized cron executor (base 701 counted lines, candidate 707); moving its unchanged CLI child-cancellation helper into the adjacent admission owner brings it below 700. No limit was raised.
  • Independent subagent review (autoreview route unavailable): no actionable P0/P1/P2 findings. The canonical helper refused its configured provider route before inference; configuration was not changed.
  • Synthetic Gateway/backend proof only; no deployed Gateway or production load was run. The isolated-cron producer change has affected-consumer tests, not a full real-provider cron-to-chat roundtrip.

@clawsweeper

clawsweeper Bot commented Oct 30, 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 docs Improvements or additions to documentation gateway Gateway runtime agents Agent runtime and tooling size: S labels Oct 30, 2026
@steipete
steipete marked this pull request as ready for review October 30, 2026 16:23
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T16:25:58.886938Z 29a31ed Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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 Oct 30, 2026
@steipete
steipete merged commit 15db8cc into main Oct 30, 2026
201 of 204 checks passed
@steipete
steipete deleted the steipete/perf-micro-loop-session-steer-queued-20260919 branch October 30, 2026 16:39
nxmxbbd added a commit to nxmxbbd/openclaw that referenced this pull request Oct 30, 2026
…d-tool-snapshot

Resolve src/cron/isolated-agent/run-prompt-executor.ts after openclaw#188514 moved
resolveCliChildAbortSignal into run-admission.ts: use main's helper, keep
hasCliSessionReuseMetadata in run-cli-session.ts, and keep the scheduled-run
freshRunSessionKey binding.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling 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. docs Improvements or additions to documentation gateway Gateway runtime size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant