Skip to content

feat: steer an active conversation without starting another run, off by default - #202397

Merged
vincentkoc merged 23 commits into
mainfrom
openclaw/gentle-shell
Nov 20, 2026
Merged

vincentkoc merged 23 commits into
mainfrom
openclaw/gentle-shell

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

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.steeringEnabled is explicitly true. Missing or false leaves 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 61cbf9640923e316616082af8af7defe5f96f958 has the same tree (f4ea42bbb5f0cd9e03f54479959fae0cea09a108) as the locally qualified source candidate 70260a52b1490abe1c76261d5a9d32ef2e11517f. The following is retained local evidence for that tree, not a claim that hosted CI ran on the publication commit:

  • 81 passed, 7 skipped across three native Vitest shards: 65 gateway/steering/retry tests, 5 SQLite portability tests, and 11 retained-input/configuration tests. The seven skips require the separate PostgreSQL harness.
  • 12 passed in the separate SQLite/PostgreSQL conformance run. This reruns the five SQLite cases above and exercises the seven previously skipped cases; it is not 12 additional distinct tests. Coverage includes metadata-free pending/committed fixtures, bounded 6/9-query reads, explicitly requested completion outcomes, and session replacement.
  • Scoped core types, typed lint, formatting, generated configuration baseline, line cap, and dependency-cycle checks passed; zero Madge cycles and no session-identity ratchet waiver.

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 56bb27d05f1d779297522186a23ea6082362c25d has tree 4d7d4b03ce90a2ec0c728f0160517d2d1fec5a9c, verified identical to the tested local candidate db90e4d959bb7e9a280015df0ab56fa23d2018ee:

  • 98/98 focused tests passed in 5 files (51 Gateway/retry and 47 runtime-config/schema), two shards, 206.22s; no off/on race cases remain. These rerun existing coverage, not 98 additional tests.
  • All 12 baseline ratchets passed against b65a2b314f7a8ef0b72dbe2a8b4aea22d3b3ee93, including generated configuration and plugin inventory. Exact net test lines: 798 = 400 allowance + 398 allocation, reduced from 839 at the prior local repair.
  • Scoped Gateway-methods typecheck, typed lint (5 files), formatting and diff checks passed. Normal commit hooks preserved the tested patch exactly.
  • Personally inspected sibling Codex 4b0d9669cc46ba97bf85fa6312431b630d80498d (app-server turn_processor.rs:1010–1140, core codex_thread.rs:440–456) and OpenClaw attempt-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 requested 55b7ee2). The conflict resolution preserves AgentRunTerminalOutcome and imports PersistedUserTurnMessage from user-turn-input.types.js. All changed files were audited for moved types; main's auto-merged imports were preserved, and the remaining import in session-active-steer.ts was corrected. Configuration baseline files were regenerated, never hand-merged.

The default-off table now covers only undefined and false. The schema-invalid "true", 1 and null cases, 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 11fa151948e2a5e61fd4b93a50704e611b7ef767 matches tested local e4282f77180f05900c2c569dbe6baa1b2b7e9bc4, tree b2fe68763b278e6396917f4eacc6117ca34d35f0:

  • 58/58 tests passed across 4 files: 39 Gateway steering/retry and 19 SQLite/memory pending-input tests; 2 shards, 271.21s total wall time. These rerun existing coverage, not new tests. Gateway shard 221.14s; pending-input shard 39.66s. The slower Gateway fixtures exercise authenticated handler, exact target, lifecycle and persisted retry behavior rather than only mocked admission.
  • All 12 baseline ratchets passed against the new main base, including generated config and exact allocation.
  • Gateway-methods and agents-sessions typecheck lanes, scoped typed lint, formatting and diff checks passed. Commit hooks preserved the tested patch exactly.
  • No unexpected authored changes: only the rebase integration/type migration, regenerated config baseline, default-off table/cast cleanup, allocation reduction and admission-only docs correction.

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.

vincentkoc and others added 2 commits November 20, 2026 08:55
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
@clawsweeper

clawsweeper Bot commented Nov 20, 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 app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling size: XL labels Nov 20, 2026
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 11fa151948e2a5e61fd4b93a50704e611b7ef767
  • Maintainer: @vincentkoc
  • Repository role: admin

These security sensitive changes were made:

  • src/gateway/methods/core-descriptors.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/session-method-policy.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/shared/session-method-scopes-base.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 20, 2026
@clawsweeper

clawsweeper Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

Adds 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.

  • Before: Existing send operations can interrupt work or fall back to a later turn when steering cannot proceed.
  • After: With steeringEnabled true, only native-run-7 receives the correction; the response distinguishes acceptance, rejection, uncertainty, and an existing submission.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful existing-owner design with the prior blocker repaired, but confidence remains limited by fixture-only behavioral evidence and unverified upgrade compatibility.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the contributor media gate; its steering evidence uses an injected backend, and the inspected images show unrelated session colors. The PR owner still needs latest-stable upgrade evidence preserving existing configuration and messages: the patch adds __openclaw.activeSteer to stored input/transcript JSON, activeSteer to session_input_completions.outcome_json, and changes active-only source retention; metadata-free fixtures do not establish an actual upgrade from v2026.11.6.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: An authorized person needs to correct running work without interrupting it, starting another turn, or addressing a replacement run.
Reason: Maintainer-authored direction approves the distinct host contract, default-off exposure, and request-start-only enablement check.

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
Reviewed head: 11fa151948e2a5e61fd4b93a50704e611b7ef767

Before merge

  • Await maintainer action - Vincent must complete the fresh exact-head Mac review required by the recorded landing pause.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Low-value test src/gateway/server-methods/chat-send-retry-comparison.test.ts: Collapse the pending/transcript parameterization in the keyless transformed-text case: both values exercise the same active-steer comparison branch, which does not inspect source.
  • Missing end-to-end proof: No supplied shipped-entry-point run demonstrates sessions.steerActive delivering to a real native-model turn and refusing an off or stale target without a successor turn.
Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit baca36e adds src/config/sessions/session-pending-input-source.ts:101 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: baca36ea403c; files: src/config/sessions/session-pending-input-source.ts)
  • Ayaan Zaidi: Raw commit 703c82d adds src/config/sessions/session-pending-input-source.ts:103 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 703c82d20c5c; files: src/config/sessions/session-pending-input-source.ts)

PR surface

Source +573, Tests +797, Docs +56, Generated 0, Other +8. Total +1434 across 48 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 37 3151 2578 +573
Tests 6 812 15 +797
Docs 2 56 0 +56
Config 0 0 0 0
Generated 2 3 3 0
Other 1 8 0 +8
Total 48 4030 2596 +1434

Preflight source

Source 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

Metric Value Why it matters
New configuration option 1 gateway.sessionControl.steeringEnabled defaults off and remains independent of publication-reader access.

Root-cause cluster

Relationship: canonical
Canonical: #202397
Summary: This PR replaces the earlier human-steering proposal; the plugin captured-target request remains a separate contract.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status no longer selects a status label.

Label justifications:

  • P2: A useful optional host-integration capability with limited exposure while disabled by default.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-20T09:48:21.870Z sha 61cbf96 :: blocked before merge. :: [P2] Check steering enablement once when the request starts

Reviewed November 20, 2026, 11:35 AM ET / 16:35 UTC (Revision 2).

@vincentkoc vincentkoc changed the title Publish openclaw/gentle-shell feat: steer an active conversation without starting another run, off by default Nov 20, 2026
@vincentkoc vincentkoc self-assigned this Nov 20, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

Maintainer review at 61cbf9640923e316616082af8af7defe5f96f958. This PR replaces #201152.

Formal review (autoreview, branch mode against origin/main, P0-P2)

  • Result at this exact head: scoped-clean, "patch is correct" (0.76 and 0.8 on its two chunks), no accepted or actionable findings.
  • Limit: the diff was reviewed in two chunks, and each pass says it could not independently verify code that fell in the other chunk. No tests were executed by the reviewer.

What I checked by reading

  • Default-off gate. sessions.steerActive captures enablement before its first await and refuses with a FORBIDDEN that names gateway.sessionControl.steeringEnabled when the switch is not exactly true. The captured check is passed into the mutation authority, so it is re-asserted through admission. A published snapshot where the switch is not true (incoming or outgoing) replaces steeringDisableEpoch, so an off/on pair retires pending admissions; this mirrors the reader gate landed in fix: require explicit opt-in for Session Share readers #202299.
  • Finding 1 from the feat: steer an active conversation without starting another run #201152 review (retry guidance). An unverifiable retry of an active steer now gets its own message that tells the caller to keep the original message ID and not resubmit under a new one. The generic "use a new message ID" text is unchanged for ordinary sends.
  • Finding 2 (read budget). The completion lookup now runs only when includeCompletion is requested and the table exists. The conformance test still asserts 6 and 9 statements for ordinary reads and expects one more only for a completion read, so the budget was not relaxed.
  • Surface. One new core RPC under operator.write with own-session write policy; protocol additions are additive; gateway.sessionControl is already in the hot-reload plan.

Not verified here

  • CI has not run on this head: the branch conflicts with main in docs/.generated/config-baseline.sha256 only.
  • I did not run the tests. The legacy-data compatibility claim rests on the author's local run.
  • No live Gateway proof of an accepted steer or of a refused one with the switch off.

This review also covers a later head that differs only by a rebase plus regenerated files under docs/.generated. Anything else needs a fresh look. Landing requires green exact-head CI.

vincentkoc and others added 7 commits November 20, 2026 09:59
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
@vincentkoc

Copy link
Copy Markdown
Member Author

Follow-up at 6d5ba24f010c3d457598d0f453ba4a02b7182557.

  • CI on 1bcc3a3d058e (the reviewed code, rebased) failed checks-fast-baseline-ratchets on test-lines: the PR added net test lines with no allocation. That was caused by this PR.
  • The delta from the reviewed code to this head is test-side only: a new config/test-lines-allocations/session-active-steering.txt (418 lines, with its justification) and the removal of one unit test in chat-send-retry-comparison.test.ts that duplicated the Gateway hook-redaction case. No production file changed, so the review above carries over; I did not rerun autoreview for this delta.
  • android-access-native (16384, google_apis_ps16k) also failed on 1bcc3a3d058e. I have not attributed it; this PR touches no Android code. It needs to pass or be attributed on this head before landing.

Landing still requires green exact-head CI.

@vincentkoc

Copy link
Copy Markdown
Member Author

CI attribution at 6d5ba24f010c3d457598d0f453ba4a02b7182557: 123 passed, 1 failed, 1 still running (Apple node native transport / swift). test-lines and the Android job from the previous head both pass now.

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 main; I am recording that as a follow-up rather than adding unrelated Swift changes here.

@vincentkoc

Copy link
Copy Markdown
Member Author

Correction to my review above, and the decision on in-flight revocation.

My review cleared the steeringDisableEpoch design. That was wrong against current AGENTS.md ("Choose good compromises"): authority is checked once when work starts, revocation and reload apply to the next request, a started request may finish, and revocation generations need explicit owner buy-in.

The tradeoff, stated as that section asks:

  • Failure mode: a steer admitted just before gateway.sessionControl.steeringEnabled turns off still delivers.
  • Likelihood: one request, a window of seconds, and only when an operator flips the switch at that moment.
  • Cost of preventing it: epoch state in the runtime config publication plus capture and recheck plumbing on every steering path.

Decision: drop it. Check steeringEnabled once at admission. Remove steeringDisableEpoch and the code that exists only to serve it. Name the accepted edge in a comment at the admission check. Tests that assert in-flight revocation go with it.

The same applies to publicationReadDisableEpoch, which landed in #202299. A small follow-up PR will remove it once this one lands, so the two do not collide in the same files.

Precedent, read in openai/codex at a6fdb11eda9:

  • Steering makes one check under the active-turn lock, then queues the input: codex-rs/core/src/session/turn_input.rs:624-706.
  • Settings sent with a steer apply to later turns only: codex-rs/protocol/src/turn_input.rs:89-93.
  • The shutdown drain refuses new turn starts and waits for the ones already admitted: codex-rs/app-server/src/turn_admission.rs:35-64.

This PR is not land-ready until the removal is pushed and the new head is re-reviewed.

vincentkoc and others added 12 commits November 20, 2026 13:08
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
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 20, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

Exact-head review of 11fa151948e2a5e61fd4b93a50704e611b7ef767: land-ready.

What changed since the head I last reviewed (56bb27d05f1d)

Comparing the PR's own patch before and after the update, only these differ:

  • docs/gateway/protocol/rpc-session-control.md now says the opt-in is checked when each request starts and that disabling does not revoke an admitted request. The old sentence still promised retirement of pending admissions.
  • src/config/sessions/session-active-steer.ts imports PersistedUserTurnMessage from its new home after refactor(sessions): separate user-turn input data from recorder control #202455.
  • The default-off test table is back to [undefined, false]; the cast and its type import are gone.
  • docs/.generated/config-baseline.sha256 is regenerated and the test-lines allocation is 397.

The in-flight revocation is gone: src/gateway/session-steering-policy.ts is deleted, steeringDisableEpoch is removed, and sessions.steerActive checks gateway.sessionControl.steeringEnabled once at admission with the accepted edge named at the check.

Proof on this head

  • Hosted CI: CI run 44767862606, CodeQL 44767862284, CodeQL Critical Quality 44767862372, OpenGrep — PR Diff 44767862385, Workflow Sanity 44767862370, Apple node native transport 44767862330. 101 checks passed, 52 skipped, 1 failed.
  • autoreview --mode branch --base origin/main --max-priority P2: no findings in either chunk, overall "patch is correct". The same pass on 56bb27d05f1d found the stale protocol-doc sentence, which this head fixes.
  • scripts/pr review-validate-artifacts 202397 passes.

The one failing check is not from this PR

macOS Periphery Dead Code / Intersect shared OpenClawKit dead code (run 44767862374, attempt 1) reports struct ChatObscuredPresentation at apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatViewConfiguration.swift:10 and struct OpenClawSessionColorDot at apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatSessionColor.swift:69. Both are on main at those lines, and this PR changes no Swift or apps/ file. That dead code needs its own fix on main.

ClawSweeper's remaining items

  1. Await maintainer action. Done: this comment is that review.

  2. Add data-model compatibility proof. Skipped as a live upgrade run, for this reason: the change cannot alter how existing rows are read. There is no SQLite DDL or schema-version change. The three stored markers are optional JSON keys, and each reader takes the existing path when the key is absent:

    • isFinalInputCompletion adds outcome.activeSteer !== undefined || in front of the unchanged conditions (src/config/sessions/session-pending-input-value.ts).
    • Restart recovery fails only rows whose message carries __openclaw.activeSteer; every other row replays as before (src/gateway/queued-chat-inputs.ts).
    • compareSessionActiveSteerInput returns undefined for an ordinary request against an unmarked stored message, which leaves the existing comparison in charge (src/config/sessions/session-active-steer.ts); the "ordinary chat text-only legacy comparison" test pins that.

    Rows with the markers exist only after an operator turns on the default-off switch. Accepted edge: after opting in and then downgrading to a build that predates this change, a retained active-only row is seen as ordinary pending input.

  3. Low-value test parameterization in chat-send-retry-comparison.test.ts. Deferred to the next steering PR rather than spending another CI cycle on a test-only collapse.

Known proof gaps

  • No live native-backend delivery run; delivery is exercised through the in-process Gateway handler with a fixture backend.
  • No upgrade run from the latest stable release, as explained above.

@vincentkoc
vincentkoc merged commit 599bc42 into main Nov 20, 2026
160 of 161 checks passed
@vincentkoc
vincentkoc deleted the openclaw/gentle-shell branch November 20, 2026 16:54
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 21, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. security-sensitive-changed size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant