Repository navigation
feat: steer an active conversation without starting another run, off by default - #202397
Conversation
Keep unverifiable redacted retries on their original key and fetch completion evidence only for callers that need it. Preserve legacy stored-input reads and their SQLite/PostgreSQL statement budgets. Include the steering opt-in in the introducing slice.
OpenClaw-Publication: 9150bc10-f212-8d84-9f99-b8ab6f4a466f
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
|
Codex review: blocked before merge. What this changesAdds an opt-in sessions.steerActive RPC that delivers literal human guidance to one running backend and reconciles retries without starting another turn. Example: An authenticated person sends “Use staging” to session research-42, targeting run native-run-7.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep open: this maintainer-approved feature adds a distinct exact-run contract absent from current main, and the earlier admission-policy finding is fixed; no new blocking code defect was established. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Gateway authenticates the person and session write access, captures the session controller’s exact backend, and uses existing injection and pending-input owners to deliver guidance and retain its outcome. flowchart LR
A[Authenticated person] --> B[Gateway RPC admission]
B --> C[Session write authority]
C --> D[Captured backend target]
D --> E[Existing injection owner]
E --> F[Native running turn]
E --> G[Pending input and completion storage]
G --> B
Technical reviewBest possible solution: Retain the existing-owner implementation and complete its native-delivery and stored-state upgrade validation before landing. Do we have a high-confidence way to reproduce the issue? This is a new capability rather than a reported regression; source inspection confirms that current main lacks its exact host RPC contract. Is this the best way to solve the issue? The change appropriately reuses session authority, controller injection, transcript recording, and durable completion owners while keeping ordinary send fallback behavior intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cc849dd810e3. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +573, Tests +797, Docs +56, Generated 0, Other +8. Total +1434 across 48 files. Added test files: 2. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 20, 2026, 11:35 AM ET / 16:35 UTC (Revision 2). |
|
Maintainer review at Formal review (autoreview, branch mode against
What I checked by reading
Not verified here
This review also covers a later head that differs only by a rebase plus regenerated files under |
Keep unverifiable redacted retries on their original key and fetch completion evidence only for callers that need it. Preserve legacy stored-input reads and their SQLite/PostgreSQL statement budgets. Include the steering opt-in in the introducing slice.
OpenClaw-Publication: 9150bc10-f212-8d84-9f99-b8ab6f4a466f
OpenClaw-Publication: cb209d14-52c3-8432-9a57-90bd74bef832
OpenClaw-Publication: d0e93b8b-e991-80ff-8647-424db3934d48
|
Follow-up at
Landing still requires green exact-head CI. |
|
CI attribution at The one failure is not caused by this PR:
The merge state is mergeable with that check as the only red one. The dead Swift code needs its own fix on |
|
Correction to my review above, and the decision on in-flight revocation. My review cleared the The tradeoff, stated as that section asks:
Decision: drop it. Check The same applies to Precedent, read in openai/codex at
This PR is not land-ready until the removal is pushed and the new head is re-reviewed. |
OpenClaw-Publication: 5011a466-6592-807c-9aa9-f4e3ab66f1a4
Keep unverifiable redacted retries on their original key and fetch completion evidence only for callers that need it. Preserve legacy stored-input reads and their SQLite/PostgreSQL statement budgets. Include the steering opt-in in the introducing slice.
OpenClaw-Publication: 9150bc10-f212-8d84-9f99-b8ab6f4a466f
OpenClaw-Publication: 9150bc10-f212-8d84-9f99-b8ab6f4a466f
OpenClaw-Publication: cb209d14-52c3-8432-9a57-90bd74bef832
OpenClaw-Publication: d5c3e99f-aaf5-83ca-9f8e-9a636b69d007
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Exact-head review of What changed since the head I last reviewed ( Comparing the PR's own patch before and after the update, only these differ:
The in-flight revocation is gone: Proof on this head
The one failing check is not from this PR
ClawSweeper's remaining items
Known proof gaps
|
|
Merged via squash.
|
…by default (openclaw#202397) * feat(gateway): gate exact-run steering behind explicit opt-in Keep unverifiable redacted retries on their original key and fetch completion evidence only for callers that need it. Preserve legacy stored-input reads and their SQLite/PostgreSQL statement budgets. Include the steering opt-in in the introducing slice. * Publish openclaw/gentle-shell OpenClaw-Publication: 9150bc10-f212-8d84-9f99-b8ab6f4a466f * feat(gateway): gate exact-run steering behind explicit opt-in Keep unverifiable redacted retries on their original key and fetch completion evidence only for callers that need it. Preserve legacy stored-input reads and their SQLite/PostgreSQL statement budgets. Include the steering opt-in in the introducing slice. * Publish openclaw/gentle-shell OpenClaw-Publication: 9150bc10-f212-8d84-9f99-b8ab6f4a466f * Merge 4d86991 * Publish openclaw/gentle-shell OpenClaw-Publication: cb209d14-52c3-8432-9a57-90bd74bef832 * test: allocate active-steering regression coverage * Merge b8c1207 * Publish openclaw/gentle-shell OpenClaw-Publication: d0e93b8b-e991-80ff-8647-424db3934d48 * fix: admit active steering at request start * fix: keep steering policy at request admission * Merge db90e4d * Publish openclaw/gentle-shell OpenClaw-Publication: 5011a466-6592-807c-9aa9-f4e3ab66f1a4 * feat(gateway): gate exact-run steering behind explicit opt-in Keep unverifiable redacted retries on their original key and fetch completion evidence only for callers that need it. Preserve legacy stored-input reads and their SQLite/PostgreSQL statement budgets. Include the steering opt-in in the introducing slice. * Publish openclaw/gentle-shell OpenClaw-Publication: 9150bc10-f212-8d84-9f99-b8ab6f4a466f * Publish openclaw/gentle-shell OpenClaw-Publication: 9150bc10-f212-8d84-9f99-b8ab6f4a466f * Publish openclaw/gentle-shell OpenClaw-Publication: cb209d14-52c3-8432-9a57-90bd74bef832 * test: allocate active-steering regression coverage * fix: admit active steering at request start * fix: keep steering policy at request admission * fix: align steering with moved input types and admission docs * Merge e4282f7 * Publish openclaw/gentle-shell OpenClaw-Publication: d5c3e99f-aaf5-83ca-9f8e-9a636b69d007 Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: vincentkoc <[email protected]>
Supersedes #201152.
Related: #201073, #201074, #201075, #201076, #202299 (merged prerequisites).
What Problem This Solves
An authorized person needs to correct a running conversation without starting another run or sending the correction to its replacement. This adds a host-only operation that targets the exact active run and reports accepted, rejected, or uncertain delivery.
User Impact
User impact: host integrations can submit literal human text through
sessions.steerActive, using current personal session write access. Idle, replaced, unsupported, and unauthorized targets do not start a turn, queue a follow-up, interrupt another run, or redirect the correction. A leading slash remains text, not a command.Strictly off by default: steering is admitted only when
gateway.sessionControl.steeringEnabledis explicitlytrue. Missing orfalseleaves it disabled. Publication-reader access does not enable steering. The switch is checked once when each request starts, including retries. Work admitted just before disable may still deliver; disabling denies new admissions and does not revoke admitted work. The reader setting remains separate; this PR does not add the restricted remote-writer transport or enable any live configuration.Why This Change Was Made
The operation binds the authenticated person, physical session, active backend run, text, and original idempotency key before delivery. Retries reconcile retained input rather than injecting it again, including after restart or uncertain acceptance. Person/device, session, exact-target and transport authority checks remain; the feature switch is not retained as an in-flight revocation guard.
If a hook redacted accepted text and no keyed request fingerprint is available, delivery cannot be established safely. Keep the original message ID/idempotency key; do not generate a new key to retry uncertain delivery. The repaired guidance no longer suggests a fresh ID that could deliver the correction twice. Redacted text is not recovered through a retained plaintext copy.
Completion rows are fetched only when steering reconciliation explicitly requests them. Ordinary retained-input reads keep their bounded SQL budgets: 6 statements for pending input, 9 for committed input (one for a missing/new input); explicit completion reads add one statement for retained input. Pre-steering stored messages without steering metadata and ordinary chat's legacy text-only retry comparison remain supported. No schema migration is required.
Evidence
The published head
61cbf9640923e316616082af8af7defe5f96f958has the same tree (f4ea42bbb5f0cd9e03f54479959fae0cea09a108) as the locally qualified source candidate70260a52b1490abe1c76261d5a9d32ef2e11517f. The following is retained local evidence for that tree, not a claim that hosted CI ran on the publication commit:Request-admission-only correction
At Vincent's direction, remove steeringDisableEpoch and its reset/capture/recheck plumbing. Keep one strict boolean check at sessions.steerActive admission. Missing or false denies new requests; schema-invalid values are not invented as typed runtime fixtures. Retried requests use the same admission; accepted/indeterminate input retains its original key and is never made replayable by toggling the switch. Restart recovery continues to retire active-only inputs instead of replaying into another run.
The obsolete off/on-during-approval test block is deleted, not rewritten into a reload-race suite. The earlier duplicate keyed hook-transformed-text unit test stays deleted; Gateway hook-redaction coverage remains. Compared with the retained a5c99b0 candidate, this removes 41 test lines / two parameterized cases. Compared with the published 6d5ba24 tree, tests are +3/-23 and production is +5/-43 (net -38). The reader correction remains held unchanged until this PR merges; this update does not alter reader epoch handling.
Previously published head
56bb27d05f1d779297522186a23ea6082362c25dhas tree4d7d4b03ce90a2ec0c728f0160517d2d1fec5a9c, verified identical to the tested local candidatedb90e4d959bb7e9a280015df0ab56fa23d2018ee:b65a2b314f7a8ef0b72dbe2a8b4aea22d3b3ee93, including generated configuration and plugin inventory. Exact net test lines: 798 = 400 allowance + 398 allocation, reduced from 839 at the prior local repair.4b0d9669cc46ba97bf85fa6312431b630d80498d(app-serverturn_processor.rs:1010–1140, corecodex_thread.rs:440–456) and OpenClawattempt-steering.ts:355–445: exact turn targeting, acknowledgment-versus-consumption and indeterminate custody remain unchanged.Main rebase, type migration and documentation correction
At Vincent's direction, rebased onto main
c23cb9f0cd39ebf48c8c74a0fd45be9c7eb18d82(newer than requested55b7ee2). The conflict resolution preservesAgentRunTerminalOutcomeand importsPersistedUserTurnMessagefromuser-turn-input.types.js. All changed files were audited for moved types; main's auto-merged imports were preserved, and the remaining import insession-active-steer.tswas corrected. Configuration baseline files were regenerated, never hand-merged.The default-off table now covers only
undefinedandfalse. The schema-invalid"true",1andnullcases, unsafe config cast and unused import were removed. Exact test-line budget: 797 = 400 allowance + 397 allocation.The active-only steering protocol docs now match configuration-reference: opt-in is checked when each request starts; disabling denies new requests but does not revoke admitted work, including work admitted just before disabling. Retries pass admission and retain the ORIGINAL message ID. A full PR diff prose audit found no remaining promise of steering-toggle revocation; legitimate person/device checks and no-replay custody retirement remain.
Published head
11fa151948e2a5e61fd4b93a50704e611b7ef767matches tested locale4282f77180f05900c2c569dbe6baa1b2b7e9bc4, treeb2fe68763b278e6396917f4eacc6117ca34d35f0:No live-model, full-build, fresh PostgreSQL conformance or exact-head hosted-CI proof is claimed for this update. Previous broader results remain historical. Stop for Vincent's fresh Mac exact-head review/autoreview and CI; no landing. Reader follow-up and candidate2 remain parked, with no live config, deployment or restart.
Limits and next gate: these are local isolated Gateway/config fixtures, not live native-model delivery, latest-stable upgrade, full-build or exact-head hosted-CI proof. Historical storage/parity evidence above remains historical. The substantive policy finding is addressed by removing the rejected machinery, not by claiming an exception was accepted. The changed production requires Vincent's fresh exact-head Mac review and green CI before landing; earlier reviews do not cover it. No landing, live configuration, enabling, deployment, restart, reader publication or candidate2 work is included.
Published by the Gateway after authoritative workspace reconciliation.