Skip to content

fix(talk): honor ordinary permissions for voice requests - #159697

Merged
brokemac79 merged 37 commits into
mainfrom
openclaw/scoped-app-repeat-permission-pr3
Oct 11, 2026
Merged

brokemac79 merged 37 commits into
mainfrom
openclaw/scoped-app-repeat-permission-pr3

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #153299

What Problem This Solves

Fixes authenticated Talk requests receiving an extra spoken-confirmation barrier or a different execution context when equivalent text work is ordinarily permitted. Caller-bound replay keeps separate callers’ requests and authority separate.

User Impact

Text and voice use the same ordinary tool/exec permissions: permitted work needs no extra voice prompt; ordinary approvals, denials, final command checks, cancellation, authenticated caller/device security and source revocation still apply.

Requested behavior: authenticated Talk requests use the same ordinary permissions as equivalent text requests, without a second voice-only confirmation gate. This intentionally changes the additional spoken-confirmation behavior documented in v2026.9.7 for fresh and upgraded installations; no opt-in or compatibility mode is added. This is the approved implementation scope. Merge and release review remain separate; no deployment or release is claimed.

No merge, deployment, release, full-CI or system-service-upgrade claim. Optional app capability #159695 and independent execution reporting #159693 are not core dependencies. Reporter shipping-floor/host-first versus coordinated rollout remains independent.

Retained implementation status (2026-10-10, superseded by the October 11 integration above): HEAD 71476c44abe094418375188baee2a715006e308f, tree 047cf273106e7f90b4c7d0011ee2e4b4d6e8fa65, integrates one fixed main revision 5a44564c988637008abbf1c868e127356dd868bd and preserves published e000 ancestry. The obsolete voice-only confirmation remains deleted. All 368 affected tests passed (12 files); production core types, affected gateway/other/tooling/root/extension types, and changed formatting passed. The default type batch timed out at 600 seconds; full-core lint was killed with an OOM increment; targeted root lint passed but remaining lint timed out at 180 seconds. These are failures, not passes. Canonical build/package binds this exact HEAD. The official latest-stable updater and installed data-preservation/Talk proof now pass at this unchanged HEAD, as detailed below. Current-head CI completed; ClawSweeper R12 found no code correctness issue and requested this compatibility evidence. At this evidence publication, ordinary GitHub re-review remains pending. Main advancement alone does not invalidate the stated tested base. Local ClawSweeper review was skipped at the author's explicit direction. No readiness, merge or release is claimed.

Why This Change Was Made

Talk reuses authenticated caller preparation, admitted-run lifetime and ordinary execution policy instead of a second permission manager. Canonical chat owns request reservation, fingerprint conflicts and replay. Stable host-prepared caller/profile, verified device and session/call identity bind replay; mutable grants do not mint new intent. Current admission and control checks still apply after reconnect or permission changes.

Installed verification exposed and repaired two owning-path defects: node prechecks now consume the validated agent-scoped PREPARE policy snapshot instead of requiring the non-admin caller to read admin-only raw settings; every exported public consultation callback now retains its original authenticated source through the existing browser lifecycle owner. The raw RPC remains admin-only, snapshot-absent shipped-node compatibility remains conservative, and native current-policy/pre-spawn checks remain authoritative.

The current integration also fixes the committed review’s loading race: accepted work retains per-run authority before lazy runtime loading. Ordinary close/disconnect detaches that accepted work and rejects new callbacks; actual source revocation cancels the run and its approval. No timeout increase, principal swap, Full access shortcut, private-provider capability forgery or new authority store was used.

Retained source integration history

  • Candidate 2379099, tree 412c966e83553bc9d0bf1ecf3c5db28b0d68cf47.
  • Integration commit ba255ec114d31e7e51245d0fcfd821b7151741eb retains published 61ec99c2a2e8b00dfd54873e7aeaf2fa60b517f8 and pinned main 0aee279a71af78b8914dced0507ddb94c0d1f5b0 as its two parents. Subsequent corrections adapt existing fixtures, release per-transport authority on replacement close, and preserve implicit legacy retries when their voice record regenerates. This preserves ancestry without a rebase/history rewrite.
  • Ordinary main execution permissions, caller/source authority and approval enforcement remain the owners; the additional voice-only confirmation machinery is removed.
  • Current-main mergeability is checked separately before publication. The tested pin is not relabeled as a newer comparator.

Evidence

October 11 confirmed conflict resolution

Current HEAD be2b83f99a76a1222139923de4bdf66194fab598, tree d1fdba6b5dbe491a61a09d2d46d84d77b5fa34f4, integrates fixed main e7e3b949ae134060cc8c2a7cd8d224ad27edcd91 and retains published 10508c9e ancestry. This integration followed GitHub independently reporting an actual conflict (mergeable=false, dirty) at 10508c9; main movement alone did not trigger it.

The sole conflict was in tool-call diagnostics. The resolution retains main's policyId simplification and the PR's removal of the obsolete voice-confirmation diagnostic branch. Main's overlapping tool-adapter settlement, before-tool-call wrapper and node-phase simplifications were inspected. Production src/gateway/talk/ and src/talk/ files are byte-identical to 10508c9. The cancellation-fixture correction below remains intact. No permission guard, timeout, schema or platform policy was weakened.

Real Behavior Proof — current integration composition

  • Claim / exercised surface: the integrated diagnostics, ordinary tool approval, node execution and authenticated Talk history continue to compose correctly.
  • Scenario / fixture: seven affected real repository test files covering diagnostics, trusted approval, approval policy, node phases, node integration, tool definition adaptation and the complete consultation-history matrix. Model/provider boundaries are fixtures; Gateway ingress, source guards, persistence and bounded native effects remain real.
  • Command / environment: pnpm test --maxWorkers=1 src/agents/agent-tools.before-tool-call.diagnostics.test.ts src/agents/agent-tools.before-tool-call.trusted-approval.test.ts src/agents/agent-tools.before-tool-call.approval-policy.test.ts src/agents/bash-tools.exec-host-node-phases.test.ts src/agents/bash-tools.exec-host-node.integration.test.ts src/agents/agent-tool-definition-adapter.test.ts src/gateway/server.talk-consult-history.test.ts, followed by formatting checks for diagnostics and the two corrected fixtures. Azure Crabbox cbx_e0b0f0aa9746 (crimson-barnacle), same pinned Node image and private non-root 4 CPU / 16 GiB memory=swap / 512 PID profile; network disconnected before validation.
  • Observed result: All 95 tests across seven files passed at exact HEAD be2b83f99a76a1222139923de4bdf66194fab598; all three checked files passed formatting. The complete 18-row history matrix retained six permitted native effects and zero effects after denial, cancellation or source revocation. OOM and OOM-kill counters remained zero.
  • Artifact / trace: exact-head integration proof; exact source, commit/tree, commands, complete output and predecessor evidence retained locally.
  • Limits: this is integration validation, not a new installed updater run. The installed data-model preservation proof remains explicitly bound to 71476c4 below; its production Talk implementation is unchanged. No live microphone/provider/UI, whole-database, service upgrade, deployment or release proof is added. Current-head CI and ordinary GitHub review are required separately. Local ClawSweeper was skipped at the author's direction.

October 11 cancellation-fixture settlement correction

Retained fixture HEAD 10508c9e90be8c57e69ec2478c581549249ea170, tree d1527fd65e32624f4972a7853e23667f940c8195, retains the same main pin 90f04bfb10df3b55d7473b6519be8bbe8fab77a2 and published dae0a744 ancestry. This successor changes two test-fixture files only; production code is unchanged.

Current-head CI at dae0a74 failed server.talk-consult-history.test.ts's host-authenticated node cancellation case with Terminal write owner changed before commit. Its complete job log shows all 18 parity rows and six permitted native effects completing; the test subsequently failed while draining lifecycle writes. ClawSweeper R14 accepted the behavior proof but correctly kept this failure open pending attribution. This failure is retained, not counted as a pass.

The fixture's waitForDispatchEnd() previously joined only session admission release. That release does not establish that the detached execution producer and its accepted terminal writes have settled. The first four-line settlement correction at d8e2bcb retained a failing result; a temporary diagnostic then isolated the exact rejected write to text-source-revoke, which deliberately revokes the device while work is pending. Other text rows settled successfully. The temporary diagnostic was restored and is not part of this patch.

The final correction joins the existing request execution observer and lifecycle writer tracker before cell cleanup. For each deliberate source-revoke row, the fixture records that exact run's source assertion before revocation; a rejected lifecycle write passes only if that registered source is actually stale and the error is exactly Terminal write owner changed before commit. Every other write error still propagates. The real pre-commit refusal is the expected successful security outcome, alongside zero unauthorized native effects; the fixture no longer treats that expected refusal as a generic persistence failure. No timeout increases, no production source-authority checks change and no CI/platform policy changes.

Real Behavior Proof — corrected Gateway cancellation composition

  • Claim / exercised surface: authenticated text, direct Talk and chat-backed Talk keep ordinary node permissions and source cancellation; fixture cleanup follows real execution and terminal persistence settlement.
  • Scenario / fixture: the full real-Gateway consultation-history file, including permitted, policy-denied, allow-once, denied, canceled and source-revoked rows, paired with direct Talk terminal-write ownership tests. The model/provider boundary is a fixture; the Gateway ingress, authority guards, persistence and bounded native node effects remain real.
  • Command / environment: pnpm test --maxWorkers=1 src/gateway/server.talk-consult-history.test.ts src/gateway/talk/client-agent-consult.terminal-writes.test.ts, followed by changed-file oxfmt --check; Azure Crabbox cbx_9c13161292c7 (silver-shrimp), fixed 4 CPU / 16 GiB memory=swap / 512 PID non-root private container, same pinned Node image as below, read-only root, no host inputs/credentials, network disconnected for tests.
  • Observed result: At exact final head 10508c9e90be8c57e69ec2478c581549249ea170, all 13 consultation-history tests and 2 terminal-write ownership tests passed; both fixture files passed formatting. The 18-row matrix retained six permitted native effects and zero effects after denial, cancellation or source revocation. The companion test verifies immediate refusal after abort and successful settlement before normal close. Cgroup OOM and OOM-kill counters remained zero.
  • Artifact / trace: exact-head fixture proof; failed predecessor CI job 114432925995, full source/hash/tree and command receipts retained locally.
  • Limits: fixture coverage does not add live microphone/provider/UI or system-service proof. Previous installed updater proof remains at its named head 71476c4. Production files are unchanged from the reviewed dae0a74 integration; the earlier selected-test run remains at its named commit below. Current-head CI and ordinary GitHub review must complete separately before landing. No moving-main rebase, local ClawSweeper run, deployment or release.

Retained October 11 fixed-base integration and Real Behavior Proof

Retained integration HEAD: dae0a74450516310e0c8593321b1b9c33e417739; tree: 90637818b855e73a68ffe2eb7d838e3fa0a55d69. This integrates exactly one fresh main pin, 90f04bfb10df3b55d7473b6519be8bbe8fab77a2, preserving published 71476c44abe094418375188baee2a715006e308f ancestry. Later main advancement is a separate mergeability observation, not a reason to relabel or repeat this proof.

The two conflicts were the realtime-session permissions paragraph and the node approval test imports. The resolution retains ordinary voice/text permission parity and both sets of node approval tests. A final formatting commit reorders two imports only. The fresh main policy change that isolates trusted approval parameters was retained; its affected tests passed. All production files under src/gateway/talk/ and src/talk/ are byte-identical to the previously proved 71476c4 head. There is no new stored format or migration.

  • Claim/surface: real Talk caller admission, approval/cancellation/revocation and native node command policy continue to compose with the pinned main approval-isolation changes. Fixtures replace model and RPC transport boundaries; real repository handlers/policy owners and bounded native OS effects are exercised.
  • Scenario: the 16 affected files cover Talk permission parity, caller replay/creation/lifecycle, transcript readiness, source revocation, node execution/durable approval/cwd grants and trusted approval parameter isolation. Both main's and this PR's node integration cases remain.
  • Command/environment: Azure Crabbox lease cbx_9edd37d8c10b (jade-barnacle), isolated non-root container with 4 CPU, 16 GiB memory=swap, 512 PID, read-only root, private RAM filesystems and network disconnected during checks. Pinned image node@sha256:be23f54a88d34e8824c741b19b91064094f92c1c97b194144bfc8b50d67258e2. pnpm test --maxWorkers=1 with the 16 named files and serial project routing; canonical E2E runtime build completed.
  • Observed result: at merge commit 928cc83f44b7c40d7859849976d6bbe9926e0f79, all 416 tests / 16 files passed (215 gateway, 75 infra/Talk and node integration, 80 agent core, 46 hook E2E). The following formatter check failed solely on merged import order; that failure is retained. At final head dae0a74450516310e0c8593321b1b9c33e417739, the affected node integration follow-up passed 42/42 tests; both changed-file formatting checks passed. No additional production change was made. Cgroup OOM and OOM-kill counters stayed zero.
  • Artifact/trace: complete bounded command receipts: selected checks, final commit follow-up. Source/hash/tree receipts and full logs are retained in the local evidence package. The prior official-updater installed proof below remains at exact head 71476c4 and is not claimed as a newly installed package for this merge.
  • Limits: fixture/model/RPC boundaries do not prove live microphone/provider/UI or system-service acceptance. No full suite or new final-head packaged updater run is claimed. The current-head CI and ordinary GitHub ClawSweeper verdict are checked separately before landing. Historical failures/warnings and contributor credit below are retained. Local ClawSweeper review is skipped at the author's explicit direction. No deployment or release is claimed.

Real Behavior Proof — current data-model compatibility and installed Talk (v14)

Claim and exercised surface: the actual installed latest-stable [email protected] CLI updates a seeded private installation to this PR's exact 71476c44abe094418375188baee2a715006e308f package. Its selected settings, existing session identity/guarded permission mode, persisted chat transcript, workspace data sentinel and saved synthetic identity-key file survive. A cold start of the same installation then exercises real installed text/Talk execution and ordinary approval/denial/cancellation/revocation. This closes the specific compatibility-proof gap in R12; merge/release and the next review verdict remain separate.

Scenario: before updating, the installed stable Gateway receives a public sessions.create request and a public chat.inject transcript entry. sessions.describe and chat.history independently return that retained data. The maintained QA owner stops only its Gateway and closes its private parent stores, then runs the stable installation's own official updater. After exit0, the owner cold-starts the same configuration/state/workspace and the same public APIs return the original session and transcript; before/after selected setting projections and data hashes match. The synthetic key file is a persisted fixture file, not proof of every paired-device database migration. No source Gateway/SDK or manual package substitution replaces the installed runtime.

Exact identities: official latest stable was freshly verified on 2026-10-10 as version 2026.9.9, embedded full commit bcfc88812a35243893585dbeca87ca41b48272ca; official archive 114065806 bytes, SHA256 a46df5fc5e4d73837d5b3eeebc286e64a85dffc429c30f3a07f6398e2a9423f7, registry SHA512 verified. Canonical candidate was rebuilt from the unchanged published HEAD/tree 047cf273106e7f90b4c7d0011ee2e4b4d6e8fa65, against the same fixed main pin 5a44564c988637008abbf1c868e127356dd868bd: 104669927 bytes, SHA256 c4969ad485d37db113fee6ecdf02bee0d9aa78ad782e2555493719b2c4d8cedb. Its buildId is 2026.9.9-71476c44abe0-2026-10-10T21-51-34.900Z. Both packages report version2026.9.9, so version strings alone were never accepted as upgrade identity: the post-update embedded full commit must equal71476c44.

Command/environment: Crabbox provider=azure, lease cbx_9f7349ac3968, slug blue-prawn-7738, Standard_D4ads_v6; immutable Node image sha256:be23f54a88d34e8824c741b19b91064094f92c1c97b194144bfc8b50d67258e2, Node24.20.0/npm11.19.0. Nonroot1000:1000, 4CPU/16GiB memory=swap/512PID, read-only root, dropped capabilities, no-new-privileges, private RAM workspace; runtime networking disconnected with loopback fixtures only. Preparation has a separately bounded official-registry dependency/cache phase; the actual updater is offline with no download fallback. Lifecycle preinstall/postinstall executed. npm's uncovered-script warning, experimental/eval/build warnings and report-only startup-gzip advisory are retained; this is not warning-free proof.

# Real baseline installed CLI; exact local candidate, not manual npm replacement
node "$OFFICIAL_PREFIX/lib/node_modules/openclaw/openclaw.mjs" \
  update --tag "file:$CANDIDATE" --yes --no-restart
# Maintained QA producer loads the installed public client SDK after updating
node --import ./scripts/tsx.mjs codex-installed-talk-parity-v14.mts \
  --mode upgrade --repo "$REPO" --installed-root "$OFFICIAL_PREFIX/lib/node_modules/openclaw" \
  --expected-head 71476c44abe094418375188baee2a715006e308f \
  --candidate-tgz "$CANDIDATE" --candidate-sha256 c4969ad485d37db113fee6ecdf02bee0d9aa78ad782e2555493719b2c4d8cedb \
  --baseline-tgz "$OFFICIAL_ARCHIVE" --baseline-sha256 a46df5fc5e4d73837d5b3eeebc286e64a85dffc429c30f3a07f6398e2a9423f7 \
  --baseline-integrity 'sha512-3sB6ejq5smBozfBhVEDfK48wFpbkx+0f6PJ19qZjC3ab3RoFrYO58CnE2mAsbUy8sXdxdBtjQ3vkAqcW9BZXAw==' \
  --provider-fixture codex-installed-talk-provider-v2.mjs \
  --npm-cache "$PRIVATE_OFFLINE_CACHE" --output "$PRIVATE_EVIDENCE"

Private producer SHA256 e2f0dbfc1982ce2d96d66cb1be3c5f1846293d4990f517f1c6da5e53de3f498c; unchanged public-provider fixture SHA256 6226c52a3706d2f24fe3656657b4a18a20132a2b1381cfafe2d754e143a699ee. The repository process-tree owner enforces720000ms command/120000ms no-output/65536-byte full-output bounds inside the20-minute cell, with required process-tree extinction and cleanup reserve. Earlier120s/240s fixture failures remain below. No installed updater safeguard, product timeout, permission guard or resource limit was changed.

Retained failed v13 and fixture correction: the previous bounded attempt passed runtime retention in275.74s and produced actual database snapshots, but candidate startup correctly exited because the standalone CLI inherited OPENCLAW_GATEWAY_HOST_LIFELINE=stdin from the QA-hosted Gateway without inheriting its host-owned stdin pipe. That attempt exited1 with0 permission rows and null preservation; it is not a successful upgrade or a data-corruption finding. Its complete bounded command receipt is retained at SHA256 8a05d3558420f63e459c41366db164ee5dba5b37c4164f55e759369d9729549a, result SHA256 3670d100a272a5e51af32a9c660345446cdf392db38d8086c6d03a95a8b2ba9c. v14 removes only that host-specific environment marker from the standalone official updater/canary process. The actual QA-hosted Gateway retains its stdin lifeline; all other runtime environment, authorization, state, updater safeguards and preservation checks remain intact.

Observed official updater receipt: code 0, termination exit, cleanup normal, no output overflow/truncation. Its complete bounded stdout/stderr remain in the SHA-bound command receipt below. The following selected actual phase and warning lines are an excerpt, not the full output (fixture-only paths are synthetic).

The official updater reported one deferred agent-scope Doctor lint inspection: it required2000ms with0ms left in its own validation-inspection window. This successful updater proof does not claim that deferred inspection was executed. No doctor --fix, triage repair agent, validation bypass or product change was used to make the proof pass.

Phase: requested
✓ package-install (19.09s)
Phase: staging
Phase: validating
✓ updater-runtime-retention (275.86s)
✓ candidate-state-snapshot (3.67s)
✓ candidate-doctor (19.42s)
✓ candidate-doctor-lint (3.82s)
✓ candidate-config (2.8s)
✓ candidate-plugins (1.86s)
✓ candidate-recovery (1.84s)
✓ candidate-gateway-startup (9.47s)
Phase: activating
✓ database snapshot (2.56s)
✓ database migration writes (0ms)
Warning: Doctor lint warning [core/doctor/lint-inspection]: update-validation-budget: Doctor lint inspection deferred until after activation: 1 agent scopes need a 2000ms inspection allowance, with 0ms remaining in the validation inspection window (validation-ledger).: Run `openclaw doctor --fix` after activation to complete deferred checks and repairs.
Warning: [warning] Doctor disposal timed out after 55ms; checks completed.
Warning: Model retirement repair deferred until plugin convergence.
Warning: Plugin "codex-installed-talk-proof" data/settings upgrade is unfinished: Package convergence must wait until the updating parent releases its install records. Your existing data and settings have been kept. Let the current update or repair finish. If this warning remains afterward, run "openclaw update repair", then "openclaw doctor --fix" to retry the upgrade.
Warning: Plugin "qa-lab" data/settings upgrade is unfinished: The installed plugin has not confirmed that its saved data and settings are ready for this version. If Doctor cannot finish the upgrade, report this warning to the plugin maintainer. Your existing data and settings have been kept. Let the current update or repair finish. If this warning remains afterward, run "openclaw doctor --fix" to retry the upgrade.
Warning: core/doctor/security: WARNING: openclaw.json contains plaintext secret-bearing config fields.
Warning: Deferred model retirement repair completed after plugin convergence.
Warning: Plugin "codex-installed-talk-proof" is operator-managed by plugins.load.paths. This copy was not updated; verify it against 2026.9.9 or remove it from plugins.load.paths. Source: /tmp/codex-pr159697-upgrade-v14/fixture-plugin.
Warning: WARNING: openclaw.json contains plaintext secret-bearing config fields.
Warning: service management skipped: non-default state dir or config path. Rerun with HOME set to the OS account home, without OPENCLAW_HOME, and with OPENCLAW_STATE_DIR and OPENCLAW_CONFIG_PATH either unset or pointing at the canonical paths for that account home and profile to manage the gateway service during update.
Update mode: npm
Update safety checks ran in the candidate updater (2026.9.9).
Admission checks: config: ok, database-schema: ok, node-runtime: ok, plugin-availability: ok.
Post-migration write inventory: 3 databases; SHA-256 06ef4250e576a5e9bc5218548e4c61c707dc7b88056035361dc9eea303054934. Snapshots: /workspace/proof-prefixes/upgrade/global/lib/node_modules/.openclaw.package-backup-893-1791671093442.databases.
Doctor changed config keys: meta, wizard.
Warning: Doctor migration: Recorded webhook listener decisions; removed pins will not be recreated.
Phases: requested (25.46s) → staging (13ms) → validating (381.49s) → activating (171.36s)

Complete bounded updater stderr (including the informational package-publication recovery command; no recovery command was invoked by the proof):

Package publication recovery: '/usr/local/bin/node' '/workspace/proof-prefixes/upgrade/global/lib/node_modules/.openclaw.package-activation-a53241592dd872730c802a1a.control/recovery.mjs' --anchor '/workspace/proof-prefixes/upgrade/global/lib/node_modules/.openclaw.package-activation-a53241592dd872730c802a1a' --operation '0ed5b5bb-1b8a-4cb4-857a-461b47ff4863' status
Keep other package managers stopped; repair may republish a missing installation. Recovery does not restart or verify the Gateway.
[state/db] Shared-state WAL maintenance failed error="OpenClaw state at /tmp/codex-pr159697-upgrade-v14/openclaw-qa-suite-bx82f7/state/state/openclaw.sqlite is undergoing offline maintenance; retry when it finishes." path=/tmp/codex-pr159697-upgrade-v14/openclaw-qa-suite-bx82f7/state/state/openclaw.sqlite checkpoint={"state":"error","observedAtMs":1791671294477,"walBytes":null,"databaseBytes":null,"logFrames":null,"checkpointedFrames":null,"lastCompletedAtMs":null,"consecutiveBlocked":0,"warning":true,"error":"OpenClaw state at /tmp/codex-pr159697-upgrade-v14/openclaw-qa-suite-bx82f7/state/state/openclaw.sqlite is undergoing offline maintenance; retry when it finishes.","activeReaders":[],"readerDiagnostics":[{"scope":"current-thread","blockingOwner":"unknown","nativeStatements":"unobserved","threadId":1,"observedAtMs":1791671294477,"connectionCount":2,"readerCount":0,"connections":[{"operation":"updateRuns.recordStep","ownerKind":"worker","actorId":1,"connectionId":2,"threadId":1,"ageMs":12425,"transactionOpen":false,"trackedReaders":0},{"operation":"stateLease.acquire","ownerKind":"worker","actorId":1,"connectionId":4,"threadId":1,"ageMs":10015,"transactionOpen":false,"trackedReaders":0}]}]}
[state/db] Shared-state WAL maintenance failed error="OpenClaw state at /tmp/codex-pr159697-upgrade-v14/openclaw-qa-suite-bx82f7/state/state/openclaw.sqlite is undergoing offline maintenance; retry when it finishes." path=/tmp/codex-pr159697-upgrade-v14/openclaw-qa-suite-bx82f7/state/state/openclaw.sqlite checkpoint={"state":"error","observedAtMs":1791671304499,"walBytes":null,"databaseBytes":null,"logFrames":null,"checkpointedFrames":null,"lastCompletedAtMs":null,"consecutiveBlocked":0,"warning":true,"error":"OpenClaw state at /tmp/codex-pr159697-upgrade-v14/openclaw-qa-suite-bx82f7/state/state/openclaw.sqlite is undergoing offline maintenance; retry when it finishes.","activeReaders":[],"readerDiagnostics":[{"scope":"current-thread","blockingOwner":"unknown","nativeStatements":"unobserved","threadId":1,"observedAtMs":1791671304499,"connectionCount":2,"readerCount":0,"connections":[{"operation":"updateRuns.recordStep","ownerKind":"worker","actorId":1,"connectionId":2,"threadId":1,"ageMs":22447,"transactionOpen":false,"trackedReaders":0},{"operation":"stateLease.acquire","ownerKind":"worker","actorId":1,"connectionId":4,"threadId":1,"ageMs":20037,"transactionOpen":false,"trackedReaders":0}]}]}
service management skipped: non-default state dir or config path. Rerun with HOME set to the OS account home, without OPENCLAW_HOME, and with OPENCLAW_STATE_DIR and OPENCLAW_CONFIG_PATH either unset or pointing at the canonical paths for that account home and profile to manage the gateway service during update.
Finishing update: checking package backup retention and cleanup.

Observed preservation: settings PASS; existing session ID and guarded policy PASS; transcript PASS (1 entry/entries); workspace sentinel PASS; saved synthetic key-file hash PASS. Before/after logical projections were compared, not inferred from a successful build. Preservation hashes:

settingsProjectionSha256=68e8ab36e7f8c3507efba66eadd94a2b4ff591eab0529037eb02856e0518296c
transcriptProjectionSha256=7aa079cfb7952309ff272f0ad4786977de47945e306b5bd0071b32b499a2a17f
sentinelSha256=898d2334c356c185d3da84fc798b92e618e11c30599a7ac80dee1b4b922981e8
syntheticIdentityFileSha256=be58f26c89c25fbcaf779a3d0d7ea3fada9c90e2c8c692ce1232e02067b57c6a
installedCommitAfter=71476c44abe094418375188baee2a715006e308f

Installed flow after upgrade: public paired Ed25519 writer accepts operator.read/write/approvals, without operator.admin; a separate admin reviewer controls ordinary approvals. Three ingress surfaces use installed Gateway admission: chat.send, direct talk.client.create with public host-supplied runAgentConsult, and legacy talk.client.toolCall. Only the external realtime provider and model are synthetic loopback fixtures. Native exec writes the effect log; the observer never writes effects. Complete actual results18/18, exactly6 native effects:

Ingress Scenario Ordinary approval events Native effects Terminal Result
text allowed 0 1 ok PASS
text allow-once 1 1 ok PASS
text deny 1 0 ok PASS
text policy-deny 0 0 ok PASS
text cancel 1 0 error PASS
text source-revoke 1 0 error PASS
direct-talk allowed 0 1 callback ok PASS
direct-talk allow-once 1 1 callback ok PASS
direct-talk deny 1 0 callback ok PASS
direct-talk policy-deny 0 0 callback ok PASS
direct-talk cancel 1 0 AbortError PASS
direct-talk source-revoke 1 0 AbortError PASS
legacy-talk allowed 0 1 ok PASS
legacy-talk allow-once 1 1 ok PASS
legacy-talk deny 1 0 ok PASS
legacy-talk policy-deny 0 0 ok PASS
legacy-talk cancel 1 0 error PASS
legacy-talk source-revoke 1 0 error PASS

Artifact/trace: native Crabbox run run_38d3e14220c6, complete scenario/effect/updater receipts retained; SHA-bound small receipts exported and verified, no full source/dependency/package export. Receipt identity:

upgrade-installed-v14-result.json: sha256=fcbf9db4a1d0474da5a93adc1e62b96caf9c15d469b600a3b2fa81b5626474ba bytes=22014
official-updater-command-v14.json: sha256=aa8287c5a5bf70f261a1a86f9d6f33a8bd65f3c301699b453fc42dde1cba9f9c bytes=34521
upgrade-installed-v14-effects.json: sha256=4a7703af547eb5fe1db086d7f3ad082088e5ec0bc25a8a334f98cc288df08558 bytes=256

Limits: synthetic Linux installation only. This proves the stated logical settings/session/transcript/data contract and installed Talk behavior; not byte-identical whole databases, every schema/table/cron migration, downgrade/rollback, physical power-loss durability, system-service restart, live microphone/audio/commercial-provider/GUI, native Codex-provider or node-host acceptance. Prior exact-head validation and CI remain separately reported. No moving-main rebase, code change, local ClawSweeper review, merge or release was performed for this evidence.

Historical fixed-base updater proof attempt — v12 incomplete (failure retained)

Claim/surface/scenario: official [email protected] was installed with actual lifecycle scripts into a fresh private prefix. Its own installed CLI was asked to update to the exact merged candidate, then exercise the same six ordinary admission scenarios across text, public Talk, and legacy Talk. This attempt did not establish the full claim.

Command/environment: Azure Crabbox cbx_8951c0791c41 / silver-lobster, Linux nonroot, 4 CPU / 16 GiB memory=swap / 512 PID, read-only root, private RAM workspace, disconnected runtime network, no host credentials. Candidate 104670506 bytes / SHA256 b0fb5a5f785b6e84507767ccb57b9adf9c6c5061fdac04c2afc1967047e9ad96, full HEAD 71476c44abe094418375188baee2a715006e308f. Verified official baseline: 114065806 bytes / SHA256 a46df5fc5e4d73837d5b3eeebc286e64a85dffc429c30f3a07f6398e2a9423f7, registry SHA512 checked.

node --import ./scripts/tsx.mjs codex-installed-talk-parity-v12.mts \
  --mode upgrade --repo "$REPO" \
  --installed-root "$UPGRADE_PREFIX/lib/node_modules/openclaw" \
  --candidate-tgz "$CANDIDATE" --candidate-sha256 b0fb5a5f785b6e84507767ccb57b9adf9c6c5061fdac04c2afc1967047e9ad96 \
  --expected-head 71476c44abe094418375188baee2a715006e308f \
  --provider-fixture codex-installed-talk-provider-v2.mjs \
  --npm-cache "$PRIVATE_CACHE" --output "$PRIVATE_UPGRADE_EVIDENCE" \
  --baseline-tgz "$OFFICIAL_2026_9_9_ARCHIVE" \
  --baseline-sha256 a46df5fc5e4d73837d5b3eeebc286e64a85dffc429c30f3a07f6398e2a9423f7 \
  --baseline-integrity 'sha512-3sB6ejq5smBozfBhVEDfK48wFpbkx+0f6PJ19qZjC3ab3RoFrYO58CnE2mAsbUy8sXdxdBtjQ3vkAqcW9BZXAw=='

Actual installed CLI: update --tag file:<exact candidate> --yes --no-restart, through the existing repository process-tree runner: 240000 ms command deadline, 120000 ms no-output deadline, 65536-byte complete-output bound, required process-tree extinction, and whole-cell cutoff. Product validation/resource limits remained intact. The earlier generic QA 120000 ms attempt completed staged package installation but timed out during runtime retention and rolled back; its failed result is retained.

Observed result: producer status failed, 0 completed permission rows, updater command code 143, termination timeout, cleanup cooperative. Preservation result: null. This does not establish successful official upgrade or current-head installed behavior proof. Exact retained updater output:

Phase: requested
requested — package-install...
  ✓ package-install (19.18s)
Phase: staging
Phase: validating
validating — updater-runtime-retention...
validating — updater-runtime-retention — still running (30.09s)
validating — updater-runtime-retention — still running (60.27s)
validating — updater-runtime-retention — still running (90.27s)
validating — updater-runtime-retention — still running (120.27s)
validating — updater-runtime-retention — still running (150.45s)
validating — updater-runtime-retention — still running (180.45s)
Phase: finished

Artifact/trace: complete failed result SHA256 66cf3a6ca610a51039d916ed5cd973459fde9adb744f637f349304a7894b6952; complete bounded updater command receipt SHA256 58878489ed392b0da04995ad15dd9a77a24fedf50f9ec0ece05d7cd381a3b34b. Private producer SHA256 cce4008cef85bdf3ab218a2f41532aaf9878b127bcd604dba8289e5b8adc307d. Locally retained receipts are not presented as public artifacts. The build retained one full-core lint OOM kill, CSS/experimental/eval warnings, and report-only startup gzip 366.3 KiB versus 366.1 KiB.

Limits: no live mic/audio/commercial provider/GUI/device/native Codex/node-host execution, production data, service upgrade, whole-database byte equality or physical power-loss proof. Earlier e000 fresh 18/18 and 237/61 boundary proof remain attached to those tested SHAs; no failed attempt is counted as a pass. CI/review are separate and the actual advancing main ref is not the tested pin.

Retained Real Behavior Proof — e000 fresh installation and failed updater attempt

Claim and exercised surface: equivalent authenticated text (chat.send), direct public Talk runAgentConsult, and legacy talk.client.toolCall use ordinary installed execution permissions. Allowed work requires no extra voice confirmation, while ordinary approval, denial, cancellation and authenticated-source revocation remain enforced.

Scenario/fixture: six scenarios per ingress: allowed command, guarded allow-once, reviewer deny, read-only policy denial, cancellation during approval, and paired-source removal during approval. Separate genuinely paired Ed25519 writer/reviewer clients; writer has read/write/approvals and no admin scope. Maintained QA lifecycle and loopback mock inference propose fixed commands; the installed Gateway and its real native exec owner decide admission and produce effects. The public-SDK provider requests no private gateway-control capability. Installed packaged plugins and installed public client SDK are used, without a source-core replacement.

Command/environment:

node --import ./scripts/tsx.mjs codex-installed-talk-parity-v10.mts \
  --mode fresh --repo "$REPO" --installed-root "$FRESH_PREFIX/lib/node_modules/openclaw" \
  --candidate-tgz "$CANDIDATE" \
  --candidate-sha256 bfb064e0eb5d242dc3c7ffda6a38ee46bcbf1caf9a0e91f7a4552dbed765d4f4 \
  --expected-head e0005c7a640f75c0ad2f3cbd9a3f905c34b1833d \
  --provider-fixture codex-installed-talk-provider-v2.mjs \
  --npm-cache "$PRIVATE_CACHE" --output "$PRIVATE_FRESH_EVIDENCE"

Azure Crabbox cbx_0639475f727e / silver-hermit; Node 24.20.0, npm 11.19.0, Linux nonroot, 4 CPU / 16 GiB memory=swap / 512 PID, read-only root, no host credentials. Package preparation was separate; runtime network was disconnected. Lifecycle scripts were executed. Candidate: 104141134 bytes, SHA256 bfb064e0eb5d242dc3c7ffda6a38ee46bcbf1caf9a0e91f7a4552dbed765d4f4; installed build metadata binds the historical e000 HEAD. Build passed with retained CSS/experimental/eval warnings and a report-only startup gzip overage of 495 bytes.

Observed result: fresh installation 18/18 scenarios passed, six actual native effects, no cleanup errors and no OOM. Each of the three ingresses produced the following approval/effect counts:

Scenario Ordinary approvals Native effects
Allowed command 0 1
Guarded allow-once 1 1
Reviewer deny 1 0
Read-only policy denial 0 0
Cancel pending approval 1 0
Revoke paired source during approval 1 0

Latest-stable updater attempt (failed, not proof of upgrade): official [email protected], archive 114065806 bytes / SHA256 a46df5fc5e4d73837d5b3eeebc286e64a85dffc429c30f3a07f6398e2a9423f7, was verified against registry SHA512 and installed with actual lifecycle scripts. Its own installed CLI was invoked as openclaw update --tag file:<exact candidate> --yes --no-restart --json, offline in the same synthetic profile. The maintained QA CLI owner timed out at 120000 ms without an updater JSON receipt. Zero upgraded scenarios ran; terminal installed build remained official commit bcfc88812a35243893585dbeca87ca41b48272ca. Settings/data preservation across the update is therefore unverified. Owned processes settled; selected evidence was retained and the sandbox removed before expiry. No blind retry, manual package replacement or deadline/validation bypass was used.

Artifacts/trace: complete selected results/effects and bounded Gateway log excerpts are retained locally, separate from private profiles/keys. Fresh result SHA256 5597ccc59c83a219c2bdf9759a991695654542eb1acc4b06100eb888beffeb4c; effect receipt SHA256 4a7703af547eb5fe1db086d7f3ad082088e5ec0bc25a8a334f98cc288df08558; failed upgrade result SHA256 e58bf94a458bf462a1a1fb6bc03fc49ae3d050850f1f760d4bb37d093385048f. Producer SHA256 0567d92f80114116da55a56370ffc12a48dc1c9b0879d7fb4a6427c841279201; provider fixture SHA256 6226c52a3706d2f24fe3656657b4a18a20132a2b1381cfafe2d754e143a699ee. No public artifact availability is implied by these retained receipts.

Limits: synthetic inference and post-media input; no live mic/audio, commercial realtime provider, GUI/physical device/native Codex/node-host execution, production data, service upgrade or physical power-loss proof. Historical installed proof below remains historical. Builds/tests/CI/review do not turn the failed updater attempt into a pass.

Retained production-boundary proof — integrated permission and replay behavior

Claim: equivalent authenticated text and Talk work uses the same ordinary execution permissions, with zero additional voice-only confirmation. Ordinary approval, denial, cancellation, original-source revocation and replay isolation remain enforced. Closing/reconnecting an implicit legacy voice session cannot dispatch the same caller/call ID a second time.

Candidate/environment: 2379099fa087544609f4969b0a2697f26576387b / tree 412c966e83553bc9d0bf1ecf3c5db28b0d68cf47, pinned main 0aee279a71af78b8914dced0507ddb94c0d1f5b0. The complete boundary run exercised production tree abacd26429ae7392bd019deb1e173d771354d16f materialized on parent d5ac8c34; exact raw commit bcae976b was then verified/imported on that same tree. The final commit changes only two test assertions to narrow the caller connection ID; its owning replay regression and core typecheck were rerun on the final tree. Original execution identities are retained rather than rewritten as a later commit.

Azure Crabbox cbx_a7222e691da4 / blue-prawn-56f8, Node 24.20.0 (node@sha256:be23f54a88d34e8824c741b19b91064094f92c1c97b194144bfc8b50d67258e2), frozen pnpm 12.9 dependencies. Nonroot/read-only image, private RAM filesystems, four CPUs, 16 GiB memory with no extra swap, 512 PIDs. Acquisition network was disconnected before execution.

Surface/scenario: the real Gateway chat.send, direct Talk public consultation callback and chat-backed talk.client.toolCall, with synthetically paired signed devices passing the real transport handshake. Production node-host execution produces the native effect marker. Deterministic inference/media fixtures select work and grant no authority. Existing owner tests exercise shutdown, cancellation, replacement-close settlement, source-environment drift and caller isolation.

Executed commands/results:

pnpm test src/gateway/server.talk-consult-history.test.ts \
  src/gateway/talk/handlers/index.test.ts \
  src/gateway/talk/handlers/client-native-control.test.ts --maxWorkers=1
# 3 files / 132 tests passed; 201.65s; actual test exit 0

pnpm tsgo:core
pnpm exec oxfmt --check src/gateway/server.talk-caller-replay.test-support.ts
pnpm test src/gateway/server.talk-consult-history.test.ts \
  -t 'isolates registered Talk replay across authenticated callers' --maxWorkers=1
# Final fixture tree: types/format passed, 1 replay test passed, 12 filtered, 46.62s
Scenario, each of text / direct Talk / chat-backed Talk Ordinary approval prompts Native effects
Permitted command 0 1
Independent policy denial 0 0
Allow-once approval 1 1
Approval denial 1 0
Cancellation during approval 1 0
Original-source revocation during approval 1 0

All 18 matrix scenarios passed, producing six real native effects. Public callback source revocation also produced zero effects. Separate writer/reader callers got separate runs; read-only callers inherited no exec authority. Foreign control and method-denied retries were refused. Equivalent/narrowed-grant reconnects and regenerated legacy-session retries dispatched no additional work; a fresh legacy call still produced exactly one additional effect.

Artifacts/trace: full boundary run run_9d4efd6cea9b, final fixture run run_3e0b2508cf64. Decisive retained stdout:

Legacy regenerated-session retry observed: {
  regeneratedVoiceSession: true,
  retryAcceptedAsNew: false,
  retryDispatches: 0,
  effectsUnchanged: true
}
Test Files 3 passed (3); Tests 132 passed (132)
VALIDATION_RESULT test_exit=0
FINAL_TREE=abacd26429ae7392bd019deb1e173d771354d16f
VALIDATION_RESULT fixture_exit=0 tree=412c966e83553bc9d0bf1ecf3c5db28b0d68cf47

The same owner regression was run first without the replay repair: it failed because the retry was accepted as new (run_8faf6f8b860c, actual test exit 1). The per-transport subscription leak was separately reproduced (cleanup expected once, observed zero) and repaired in the existing close settlement; its affected Gateway pair passed 82 tests and native/infra siblings passed another 135. Unaffected node-host/before-tool/deferred-delegation fixtures passed 60/46/7 tests in run_a44ae49eb85d; these retain their original execution tree, not a relabeled current-head claim.

Build/check/review: Full pnpm build passed on the committed candidate in 6m 41.7s (Azure Crabbox run_987c0ff45f53, actual exit 0). It verified 54 built runtime modules and all 151 public SDK declarations. The build report retains startup JS gzip 375388 B against a 374861 B enforcement target (527 B over), plus an advisory CSS warning; the build owner returned success, and no budget or warning was suppressed. Dependency eval/experimental TypeScript warnings are also retained. Production core/extension typing, all 27 native core test-type graphs, scripts typing and all four root test-type partitions passed. Five core lint stripes, six extension lint stripes and the central scripts/root owner passed, including changed-file formatting and Control UI i18n. Existing max-lines warnings occur only in untouched main files. Ten repository guards passed. The complete committed-range Codex review ran two passes with zero actionable findings (confidence 0.83).

Two local gaps remain explicit: pnpm tsgo:extensions:test was OOM-killed (exit 137, no compiler diagnostic) under the retained 16 GiB limit, and the native dead-export owner failed all three scans because pnpm could not download Knip from npm in the network-disconnected sandbox (exit 1, ERR_PNPM_RESOLVING_NPM_RESOLVER_NETWORK_ERROR). These gates require normal current-head CI; resource/network failures are not passes. No tool/CI policy or resource limit was changed to silence either result. Earlier timeout/OOM receipts remain failures; interrupted graphs or filtered tests are not represented as complete passes. The older full build is historical after the production replay correction.

Limits: synthetic identity/inference/media, no live microphone/commercial provider/native Codex activation/GUI/Omarchy proof; no current installed-package/official-updater proof or complete GitHub CI claim. Process cleanup and native effects were observed through existing test owners; no physical power-loss or new external artifact-access guarantee. Full warnings and lifecycle output are retained.

Historical installed-package proof — published 61ec99c

The package/updater evidence below applies to the previous published head. It has not been rerun as installed-package proof after integration, and its signed artifact URLs have expired. The current executed production-boundary proof is above.

Claim: with the same genuine non-admin signed requester/reviewer, Guarded permissions, agent/session, target, cwd and canonical arguments, text and both Talk ingresses obey ordinary execution policy without an extra voice prompt. Denied/cancelled/revoked work has no native effect; revocation settles the underlying run and public callback.

Surface/fixture: actual installed Gateway, CLI-created synthetic state, canonical node pairing and public signed GatewayClient actors. Ingresses are text chat.send, direct talk.client.create with the public host-injected runAgentConsult({prompt, signal}), and chat-backed talk.client.toolCall. Synthetic model/post-media inputs select the same command but grant no authority. Scopes are operator.read/write/talk/approvals—not operator.admin.

Native effect: installed exec → paired native node → protected image-owned /usr/bin/dd appends one fixed 26-byte record per dispatch. The observer never writes effects. Each cell produced exactly 8 records / 208 bytes, with tool delivery/termination inspected. No per-process native PID/nonce observation is claimed.

Final-package cell Actual outcome Required core cases
Fresh candidate, cell 22 exit 0; all owned processes joined; positive container absence 20/20
Official 2026.9.7 → same candidate using its installed updater, cell 23 exit 0; cold owned restart/state preservation; cleanup verified 20/20
Case Observed outcome per applicable ingress
Ordinary exact-argv allowlist 0 prompts, 1 native effect
Ordinary approval 1 prompt; 0 effects before same-reviewer allow, 1 after
Approval denial, cancellation, independent policy denial 0 effects
Original source/device-token revocation while approval is pending Original reviewer refused; 0 effects; same approval-bound run terminates
Direct source revocation Callback settles with AbortError; underlying run terminates rather than timing out
Text/chat-backed logical retry; repeated approval No duplicate effect
Foreign reviewer/control and reduced caller Foreign custody refused; reduced Talk caller gets an independent run without exec or inherited writer results

Actual updater: released 2026.9.7 / c074824 ran its installed update command to the same candidate: exit 0, 160.629 s. The embedded full commit changed to 61ec99c; version string 2026.9.7 alone was not accepted as identity. Synthetic session, identity/profile, workspace, owner policy, exec policy and unrelated sentinel were preserved. Only owned test processes were restarted.

Schema/upgrade scope: the candidate inherits main’s shared-state schema 20 (agent 24), including the cron delivery-attempt fence; the released baseline backup records shared-state schema 19. The parity diff adds no new DDL relative to pinned main. Actual database snapshot, candidate Doctor/config/plugins/recovery/startup and final installed flow succeeded. The post-migration numeric schema was not independently queried, and rollback/downgrade or existing cron-job migration semantics are not claimed proven by this cell.

Artifact: 101,617,025 bytes; 14,069 inventory entries (13,587 regular members); full embedded commit matches final HEAD. Canonical build attempt 5 and package integrity check exited 0. Private support/harness files are absent from the package.

SHA256 0c220bec45bb41801d921e3a5ec97083d35f18fd97c086d7a855295ef1c125e1
fresh22: exit=0 requiredRows=20 nativeRecords=8 bytes=208
upgrade23: exit=0 requiredRows=20 nativeRecords=8 bytes=208; updater=160629ms
both: source revocation nativeEffects=0 terminalCompleteness=complete callback=AbortError
both: remainingOwnedProcesses=[] positiveContainerAbsence=true

Commands/environment: immutable image sha256:2c1f4e0fd6450f43ddb46d60c2a6df30855a8588e165b1f2559fb0eda8d7ff35; rootless/nonroot, runtime network-none/pull-never/read-only-root, dropped capabilities, no-new-privileges, private PID/IPC, verified read-only inputs; 4 CPU / 16 GiB / no extra swap / 512 PIDs. Canonical build bound 45+5 minutes; installed cells 20 minutes. Task-private preparation used current frozen dependencies and unchanged source lock/config.

node scripts/package-openclaw-for-docker.mjs --source-dir . --output-dir .artifacts/pr159697-61ec99 --output-name openclaw-pr159697-61ec99c2a.tgz --pack-json .artifacts/pr159697-61ec99/pack.json
# Released installed CLI, not manual package substitution
openclaw --profile pr159697-proof update --tag file:/proof/candidate.tgz --yes --no-restart --json
# Same native command and cwd /work/cell/workspace across the ingresses
/usr/bin/dd if=/proof/support/fixtures/native-effect-record.txt of=/work/cell/workspace/native-effects.log oflag=append conv=notrunc status=none

Proof manifest · Sanitized derived trace · Canonical candidate · Scope/readme. Public downloads were independently SHA256-verified. Signed artifact URLs expire 2026-10-09T20:46:53.000Z. The trace is a redacted derivation, not a private transcript, verbatim log or self-contained reproduction kit. This is an unpublished test candidate, not a release.

Historical regression and review coverage — 61ec99c

  • Four deterministic loading-race cases failed before the fix. Final affected 44/44 tests passed (80.812 s), including registered public callback/source-revocation and caller-replay paths; Gateway test types passed (46.898 s), changed-file lint passed (6.704 s). Tested overlay hashes match the committed files.
  • 329 tests / 14 files passed for the composed integration (134.767 s). Unaffected static results were retained; the changed two files received the 44-test rerun above. These selections overlap and are not summed as unique cases or relabeled as full CI.
  • Dirty review accepted the loading fix. Final committed-range Codex review against d20 completed both supplied-context passes with no actionable P0–P2 finding. Earlier integration-review steering P2 was rejected with inspected source: the runTarget currentness closure already carries session authorization into post-await and guarded-injection checks. The different loading-lifetime P2 was accepted and repaired.
  • Reviews were scoped to supplied diffs/datasets; no independent whole-repository test execution or upstream acceptance is implied. Prior c6f6 installed proof remains valid at that historical head, not relabeled as this run.

Loading owner · Registered lifecycle regression · Node PREPARE regression

Limits and advisories

  • Positive personally authenticated nodes.which coverage remains NOT ENABLED in installed cells; shared gateway-owner attribution is not personal command-owner authority. Source-level lookup coverage is separate. The specific shell-lookup/timeout-drift sequence was not separately executed against this candidate.
  • Public runAgentConsult has no logical callId: direct-provider-event replay is unsupported here. No private capability or fixture deduplication was invented. Text/chat-backed logical retry is covered.
  • Synthetic post-media proof does not establish live microphone/ASR/commercial-provider, GUI/Omarchy/app launch, private sideband, distinct-human/tenant or native Codex activation acceptance. The exact generic JS launcher was verified; its optional native payload remains absent.
  • The updater succeeded with advisories, not warning-free: actual candidate gates and final flow passed; deferred Doctor/plugin/service maintenance was not counted as executed. The final build’s startup CSS was 50,722 B gzip, above its 46,080 B advisory target but below the 51,200 B hard ceiling. This is not an all-gates/full-CI claim.
  • Source metadata, available registry signatures and archive integrity were verified; full Sigstore transparency-chain verification is not independently claimed. All earlier failures remain recorded, including the quarantined out-of-scope Codex binary acquisition (no execution recorded). Cell 21 refused a stale private fixture head before install; only its two head literals were corrected, with no product rebuild or authority change.
  • Prior build/installed counts remain historical; later takeover build, fixture and cell attempts are retained without resetting failures or budget usage. Exact-head CI must be read at its actual outcome; skipped CI is not executed CI.
  • Earlier 61/237/e000 proof remains historical at its exact tested SHA. Fixed-base integration 71476c44abe094418375188baee2a715006e308f against 5a44564c988637008abbf1c868e127356dd868bd is complete; current updater compatibility proof and CI are complete; at this evidence publication, ordinary GitHub re-review remains pending. No readiness, merge or release is claimed.

Against pinned main d20: production +699/−1,530 (net −831); tests/support +2,805/−3,768; docs +16/−11. The loading repair itself is production +5/−3 and tests +55/−52, reusing existing lifecycle owners.

Worked on by: @brokemac79.

roboclaw-bot and others added 6 commits September 25, 2026 22:44
Keep raw tool execution facts separate from middleware presentation and optional diagnostics. Retire voice bindings on definitive run lifecycle events.

Co-authored-by: brokemac79 <[email protected]>
Keep raw operational emission internal. Supply native adapters an action-bound
host reporter, fence new reporting work with admitted authority, and preserve
one terminal settlement for accepted work after cancellation or closure.
Carry the same reporter through native hook retention and side-run adapters.

Add source composition of persisted spoken yes/no with actual core exec,
request replay and consumed-grant controls, and enforced host security denial.
Document the additive optional host SDK contract without increasing export caps.

Co-authored-by: brokemac79 <[email protected]>
Declare the synthetic Codex inference environment and restore it through the
existing test lifecycle. Keep native HTTP relay fixtures on their owned
loopback endpoint, reject unexpected responses before policy entry, and share
the same scoped transport with byte-limit and token-binding coverage.

Preserve production proxy and CA behavior, cancellation and late-approval
assertions, and the existing test line caps.

Co-authored-by: brokemac79 <[email protected]>
Discover eligible native apps without shell discovery, bind launches to the installed revision, preserve ordinary confirmation and independent node execution gates, and acknowledge process start without waiting for GUI exit. Preserve actionable final app-launch failures.

Co-authored-by: brokemac79 <[email protected]>
Let operators scope repeat Talk confirmation to one authenticated device, agent, node, app revision and expiry without bypassing independent host permissions. Recheck live authority at the existing invocation-bound final permit. Preserve searchable Nodes and exact origin custody through startup failure and accepted continuation.

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

clawsweeper Bot commented Sep 27, 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: XL labels Sep 27, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 27, 2026
@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR removes Talk’s extra spoken-confirmation gate while preserving ordinary permissions, approvals, authenticated caller authority, and replay protection.

Example: An authenticated Talk caller requests an allow-listed /usr/bin/printf command.

  • Before: Voice can require an additional spoken confirmation although equivalent text execution is permitted.
  • After: The command runs under ordinary policy without the extra voice prompt; denial, cancellation, and revocation still prevent execution.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Approved direction, relevant installed-runtime proof, preserved authority boundaries, passing reviewed-head CI, and no actionable finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Supplied installed Linux Gateway traces exercise text, public direct Talk, and legacy Talk with ordinary approvals and native effects, including zero effects after denial, cancellation, and source revocation; signed-caller integration proof additionally covers foreign control, reduced scopes, and reconnect replay. Installed proof remains bound to 71476c4, whose production Talk implementation is unchanged at the reviewed head; current integration results cover the later diagnostics resolution. Live microphone, commercial-provider, GUI, and service-upgrade behavior are not claimed.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Authenticated voice requests encounter an additional confirmation barrier or execution context that equivalent text work does not.
Reason: This deliberately replaces an existing safety policy, but the maintainer-authored PR approves that direction and preserves ordinary approvals and caller restrictions.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR provides approved permission parity still absent from main, and the inspected patch has no actionable correctness finding.

Priority: P2
Reviewed head: be2b83f99a76a1222139923de4bdf66194fab598

Before merge

None.

Findings

None.

Agent review details

How this fits together

Talk converts authenticated browser, relay, and client tool requests into agent work; shared execution owners authorize effects, while voice owners retain transcripts and call lifecycle.

flowchart TD
  A[Authenticated Talk caller] --> B[Talk ingress and call lifecycle]
  B --> C[Caller and source authority]
  B --> D[Canonical chat replay]
  C --> E[Agent run admission]
  D --> E
  E --> F[Ordinary tool and exec policy]
  F --> G[Authorized effects and voice history]
Loading

Technical review

Best possible solution:

Land the approved shared-permission implementation through the normal maintainer workflow, retaining caller-bound replay and live authority checks.

Do we have a high-confidence way to reproduce the issue?

Current-main source explicitly applies the extra voice gate, and supplied installed-runtime traces exercise the resulting permission difference; this review ran no target code.

Is this the best way to solve the issue?

The patch follows the approved direction by reusing ordinary execution and lifecycle owners, removing the separate confirmation machinery, and fixing node prechecks at their shared owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against fd0fc628ec2d.

Provenance checked

  • Additional spoken-confirmation policy changes intended behavior with a stated reason (0f95e66: Durable voice sessions introduced a separate safety gate for high-impact voice actions; later final-parameter checks prevented rewritten actions from escaping confirmation.)
  • Talk-only caller restrictions keeps the original intent (0b75ea3: Voice-only credentials must not receive broader tool access than their authenticated scopes permit.)
  • Worker-backed voice persistence and settlement keeps the original intent (31c35d5: Voice writes moved to existing worker owners while retaining physical sources, current caller authority, and custody of accepted writes.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Approved direction: The maintainer-authored body explicitly approves ordinary text and voice permission parity, including removal of the shipped additional spoken-confirmation behavior for fresh and upgraded installations. (be2b83f99a76)
  • Current main still retains the gate: Fetched main still checks voice confirmation before trusted tool policies and consumes confirmation against final execution parameters. (src/agents/agent-tools.before-tool-call.policy.ts:179, fd0fc628ec2d)
  • Caller-bound replay: Replay identity includes the authenticated profile, verified device, agent, session, explicit voice identity, and call ID; mutable scopes and regenerated implicit voice records do not create new intent. (src/gateway/talk/agent-consult.ts:76, be2b83f99a76)
  • Authority retained before loading: Direct consultation retains per-run authority before lazy runtime loading, rechecks the original source afterward, and passes that assertion into shared admission. (src/gateway/talk/client-agent-runtime.ts:40, be2b83f99a76)
  • Restricted callers remain restricted: Callers without write or admin scope retain the canonical safe-read-only tool cap, preserving the boundary established by fix(talk): keep voice-only agent consults read-only #125392. (src/gateway/talk/client-gateway-control.ts:74, be2b83f99a76)
  • Installed behavior and preservation: The body supplies installed Linux runtime output for an official 2026.9.9 updater to 71476c4: settings, session, transcript, workspace sentinel, and synthetic identity file survived; all 18 text/direct-Talk/legacy-Talk permission scenarios passed with six native effects and zero denied, cancelled, or revoked effects. (71476c44abe0)

PR surface

PR surface statistics unavailable: the file list is incomplete.

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This improves authenticated Talk workflows with a limited voice-specific scope.
  • merge-risk: 🚨 compatibility: Fresh and upgraded installations intentionally lose the shipped extra spoken-confirmation behavior; the maintainer-authored direction accepts that change.
  • merge-risk: 🚨 security-boundary: The patch changes voice execution authorization and retained caller authority; inspected source and supplied final-effect traces preserve ordinary denial and revocation boundaries.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (15 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-10T06:10:40.754Z sha 61ec99c :: needs changes before merge. :: none
  • reviewed 2026-10-10T17:11:15.772Z sha 2379099 :: needs changes before merge. :: [P2] Update the shard-planner assertion for the retired Talk test | [P2] Adapt the audio-only browser fixture to the lifecycle owner
  • reviewed 2026-10-10T18:34:34.406Z sha e0005c7 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T18:56:11.230Z sha e0005c7 :: blocked before merge. :: none
  • reviewed 2026-10-10T20:47:07.402Z sha 71476c4 :: blocked before merge. :: none
  • reviewed 2026-10-10T22:41:48.605Z sha 71476c4 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-11T09:08:45.687Z sha dae0a74 :: needs changes before merge. :: none
  • reviewed 2026-10-11T09:37:39.947Z sha 10508c9 :: needs changes before merge. :: none

Reviewed October 11, 2026, 6:03 AM ET / 10:03 UTC (Revision 16).

roboclaw-bot and others added 5 commits September 27, 2026 16:51
Merge main at 1fe2f50. Preserve the admitted execution reporter and carry upstream source-wrapper authority through its existing extracted owner.

Co-authored-by: brokemac79 <[email protected]>
Keep the bounded Gateway permit admission contract explicit. Prove actual caller closure and committed source revocation after permit issuance, and distinguish node-observed cancellation from a cancellation frame still in transit using real native processes and joined cleanup.

Co-authored-by: brokemac79 <[email protected]>
Merge exact PR1 dependency 6ff285d, carrying its deliberately pinned main ancestry. Preserve constrained app discovery, ordinary confirmation, bounded permit admission and cancellation forwarding while reconciling upstream Nodes and CLI owners. Source integration only; composed validation remains pending.

Co-authored-by: brokemac79 <[email protected]>
Integrate verified PR2 fc3c91a, retaining the published PR3 head and pinned PR1/main ancestry. Source integration only; composed validation and preserved review repairs remain pending.

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

# Conflicts:
#	docs/.generated/config-baseline.counts.json
#	docs/.generated/config-baseline.sha256
#	src/agents/agent-tools.before-tool-call.policy.ts
#	src/gateway/talk/app-launch.registered.test.ts
Spend matching spoken one-shot authority at final readiness even when an exact operator policy independently allows the launch. Retain the selected bounded policy ID on the existing voice effect through the canonical agent worker without conflating permit authorization and native outcome. Preserve cancellation/source lifetime composition and document full-backup rollback across the inherited state schema boundary.

Co-authored-by: brokemac79 <[email protected]>
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 27, 2026
roboclaw-bot and others added 3 commits September 30, 2026 21:40
Use authenticated caller and shared execution-policy preparation for voice consultations. Retire separate spoken grants while retaining source revocation, cancellation, transcript custody, and logical-call idempotency.

Co-authored-by: brokemac79 <[email protected]>
Reuse the existing connection-scoped delegation queue for subscription transports and prove registered replay and ordinary signed node approvals across text and Talk.

Co-authored-by: brokemac79 <[email protected]>
Extend the existing registered text/direct/chat-backed matrix with read-only policy refusal, distinct from operator approval rejection, and emit public-safe observed scenario outcomes.

Co-authored-by: brokemac79 <[email protected]>
@roboclaw-bot roboclaw-bot changed the title feat(talk): preauthorize exact installed-app launches fix(talk): honor ordinary permissions for voice requests Sep 30, 2026
scribe-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 18, 2026
First-parent upstream fd0fc62..f4f4868 (8 commits: openclaw#169033
collaboration/workshop SQLite bookkeeping, 952c102, openclaw#155464 active
turns during worker dispatch, openclaw#168995 approval/placement queries,
openclaw#154286 telegram polling workers, 194a08e, openclaw#169045 code-mode catalog
bytes, openclaw#159697 talk voice permissions).

Conflicts:
- session-sharing-store.native.ts: upstream folded the member lookup and
  delete into one DELETE ... RETURNING with a no-row early return; our
  recipient-authority advance now follows that return, so only an actual
  removal revokes access (same order as before the merge).
- worker-access inventory: took upstream, regenerated (632 files, 2442
  calls).

sharing-store receipt/worker auto-merged: upstream's category plan
(keys only) is disjoint from our authority.capture command.

Refs #1475

Co-Authored-By: Claude Opus 5.5 <[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 docs Improvements or additions to documentation extensions: openai gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. scripts Repository scripts security-sensitive-changed size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants