Skip to content

feat(talk): preauthorize exact installed-app launches - #153299

Closed
roboclaw-bot wants to merge 15 commits into
mainfrom
openclaw/talk-scoped-preauthorization-153092
Closed

roboclaw-bot wants to merge 15 commits into
mainfrom
openclaw/talk-scoped-preauthorization-153092

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

Superseded by split draft PRs

This combined proposal is superseded by the following separately scoped DRAFT stack:

  1. #159693 — truthful source execution outcomes, head 6ff285d, targeting main.
  2. #159695 — constrained Linux app discovery and launch with ordinary confirmation, head fc3c91a, based on fix(talk): preserve source outcomes when native tool presentation fails #159693's branch/head.
  3. #159697 — optional scoped repeat preauthorization, head 7283196, based on feat(nodes): launch exact Linux apps with ordinary approvals #159695's branch/head.

All three replacements remain drafts. Supersession is not a merge-readiness, full-CI or deployment claim. The original branch openclaw/talk-scoped-preauthorization-153092 and head af640b6 are preserved.

The original proposal and historical evidence below remain as context; their earlier source/package/live results are not relabeled as proof of the split heads. Each replacement main body records its own executed behavior proof and limits.


Related: #153092

What Problem This Solves

Repeated voice requests to open the same approved desktop app otherwise require another Talk confirmation every time. This change adds an operator-managed, expiring preauthorization for one exact installed-app target without granting general command execution.

It also repairs the failures found while exercising that path: ordinary continuation must not inherit another client's authority; native consultation must retain its admitted Gateway and operational tool-execution record; a spoken one-shot approval must not survive an overlapping policy-authorized launch and later authorize a replay after policy revocation; and Linux Desktop Entry labels and executable strings must be decoded correctly without admitting shell commands or arguments.

Why This Change Was Made

The existing Talk confirmation owner reads talk.realtime.appLaunchPolicies from committed runtime configuration. Grants bind the agent, paired voice device, target node, installed app, revision and expiry. Each consultation carries its own fresh authenticated ingress authority; call records and persisted diagnostic data cannot restore a grant.

The Gateway rechecks policy, originating-device revocation and node authority after preparation, then issues a short-lived invocation-bound permit. The node independently revalidates execution permission and the current installed-app descriptor immediately before non-shell dispatch. Preparation remains non-consuming; the final app-effect boundary consumes a matching spoken grant even when a reusable policy independently permits the same action. Revocation prevents effects that have not crossed the authoritative dispatch boundary, not an already admitted launch.

The native-consultation repairs bind the existing admitted Gateway resolver and publish canonical operational start/terminal facts independently of optional diagnostics. They do not fabricate a downstream execution record or remove the missing-record guard. Cancellation is forwarded through the existing invocation path. Existing config, diagnostic and node helper owners were extracted coherently; no second execution mechanism was added.

This refresh is the existing reviewed commit af640b6de9de6894c6f81acc53e35d43b371fe9b, tree 036639cb8a35a41999169700fb877021afb7f5d5. The frozen review/comparison base is aac3e8a6ed27301bd56cfe4e97dbf96d88bb53f7. The earlier published candidate 2daadf0d944d0c48c0e5bae54c484621506eacc1 is an ancestor, not a substitute for this head's proof.

User Impact

Operators can opt into narrowly scoped repeat app launches while ordinary Talk confirmations, pairing, installed-app sharing, explicit node-command allowlisting and independent execution policy remain in force. Absent or empty policy lists preserve ordinary behavior. A signed device identity used with a shared Gateway token is not equivalent to paired-device-token authentication.

Still DRAFT: no readiness, merge or deployment claim. The UI performance gate requires explicit disposition.

Boundaries and compatibility:

  • Coverage remains top-level Linux XDG Desktop Entries resolving to a native ELF executable with zero arguments. Shell/script launchers, arguments, field codes, custom working directories and other platforms are outside this contract.
  • Name and the first stage of Exec now use strict Desktop Entry string decoding. Valid paired escaping remains supported; malformed escaping is rejected before the existing quoted-executable parser.
  • The existing bounded app-ID schema was not broadened. The installation/filesystem remains a trusted installed-software boundary, not a new isolation guarantee against hostile local writers.
  • Ordinary continuation from a different or unknown origin still works, but cannot inherit the prior client's reusable grant. Realtime provider/mode normalization preserves policy lists; canonical schema validation rejects malformed policy values.
  • No feature-specific SQL migration or new stored-record version was introduced by these follow-ups. Older strict schemas reject the new policy key even when it is []: an authorized downgrade must revoke/apply, drain in-flight launches, and remove that key before using the older schema.

Evidence

Exact source, completed review and focused validation

The full requested branch/local review cycle completed; its final branch-wide R12 review was scoped-clean, with no accepted findings remaining. Earlier interrupted attempts were not counted as successful verdicts. This is the retained review outcome for the bounded implementation, not a new merge-readiness review or a claim of current full CI.

  • 201/201 focused tests across 12 files passed on recorded code/test tree 1c98f99628f399c249c4e0ebf6fae67d0519e58c. Its difference from the final tree is only docs/nodes/talk/realtime-sessions.md.
  • 37/37 additional ingress/revocation/continuation tests across four files passed on final tree 036639cb8a35a41999169700fb877021afb7f5d5: 238 focused tests across 16 files with the stated input provenance.
  • Coverage includes six registered app-launch cases, 15 native Codex integration modes, 29 Linux parser cases, both node launch suites, confirmation/store/cancellation lifetimes, and runtime/manifest behavior. The grant/policy overlap regression failed before the repair with two launches where one was expected, then passed with final-boundary consumption and non-consuming preparation. Malformed Exec escaping likewise had a recorded failing-before/passing-after regression.
  • All 12 selected validation steps passed: 11 static steps plus the behavior-suite step. These covered line/max/assertion ratchets, the core import graph, three hard-zero Knip scans, scoped core/Gateway/Talk-node/root-test TypeScript, and whole-change core/root-test lint. Docs formatting and diff checks passed.
  • This does not claim full repository CI, every type shard, a fresh installed-plugin/provider matrix, or an automatic waiver of the performance result below. Newly triggered CI must be judged on its actual head and result.

Relevant public scenario sources: registered app-launch boundaries, native consultation integration, authenticated runtime scenario, and Linux parser regressions.

Real Behavior Proof — executed, with separate evidence scopes

The following are sanitized technical records, not raw private logs or transcripts.

P1 — isolated authenticated runtime / visible native effect

  • Claim / surface: the installed-app path can cross the real Gateway → node → OS boundary and produce a visible native application effect.
  • Scenario / environment: the authenticated scenario linked above used the af640b6 source Gateway, a freshly built node process, and a native ELF GUI fixture under Xvfb on isolated Linux x64. Only inference was a deterministic loopback fixture.
  • Observed result / reference: the selected real-runtime test passed; the retained result records one passing scenario and an observed native window. This is the same-source runtime record, separate from the later delivered archive identified in P2.
  • Limits: not actual user speech, not a live provider call, and not an installed-tarball upgrade matrix. A fixture window is not the operator's desktop.

P2 — complete candidate npm archive / integrity and delivery

  • Claim / surface: the complete package was built from the intended immutable source and survived transfer without changing bytes.
  • Scenario / environment: one canonical package build on isolated Linux x64 using Node 24.18.1, pnpm 12.4.0 and npm 11.16.0 after frozen dependency installation. Actual Git HEAD/tree/index were checked before and after packaging.
  • Observed result / artifact reference: canonical helper exit 0; tarball inventory/import-graph checks passed; embedded identity and gzip integrity matched; complete transfer/download copies matched the archive's size and SHA-256. The operator independently confirmed the same identity and 12,395 safe tar members with the required CLI and Gateway-SDK entries.
  • Artifact identity: openclaw-pr153299-af640b6-private.tgz; 77,805,135 bytes; SHA-256 6a2740bdd9cf080c426d797c56f790589b9fa31d9bf81f980d8a08a93b2af639; build 2026.9.5-af640b6de9de-2026-09-22T11-18-39.000Z; commit/tree as stated above. No public artifact URL is supplied here.
  • Limits: the enclosing execution reported exit 1, not an all-green run; see P4. No new installed-plugin acceptance/upgrade matrix is claimed for these bytes. Source-equivalent P1 and historical package CI are not relabeled as that matrix.

P3 — bounded human-operated live smoke on the delivered build, 2026-09-23

  • Claim / surface: an actual voice confirmation can launch the installed Linux calculator, and an operator-observed negative confirmation can leave it closed.
  • Scenario / environment: the isolated Gateway, Linux node, CLI and external client's Gateway SDK were selected from the P2 candidate. The actual client connection reported the matching build and device-token authentication. The node command surface remained device.apps and device.apps.launch; no app-launch policy was added for this smoke.
  • Observed result / reference: operator attestation for this dated scenario reports a confirmation request, affirmative response followed by visible app launch, and both conversation bubbles. In the separate negative case, cancellation was acknowledged and the operator explicitly confirmed the app remained closed. The reported final client state was connected and idle, with active=false and requested=false.
  • Limits: this is operator-observed no launch, not an independently captured no-dispatch/no-spawn trace. It does not claim a complete refreshed replay/expiry/wrong-target matrix or full call trace. In particular, no-policy yes/no interaction is not a fresh live test of overlapping spoken/reusable grants and replay after revocation; the scoped automated regression covers that invariant. External-client presentation work did not change OpenClaw core bytes.

P4 — helper-0 / enclosing-1 diagnosis, 2026-09-23

  • Claim / surface: successful payload completion can be followed by a nonzero runner exit at noninteractive login-shell logout.
  • Scenario / environment: one corrected harmless native Crabbox 0.63.0 SSH/--shell probe preserved the original set -eu login-shell conditions with no TTY. The prior set -u control was retained, not rerun. The corrected probe did not require an OpenClaw build.
  • Observed result / sanitized trace reference: payload statuses 0 / 0 / 0, then requested exit 0; .bash_logout:6 invoked /usr/bin/clear_console -q; that cosmetic command returned 1; active errexit propagated raw SSH exit 1 → Crabbox exit 1. An ERR observer only printed the existing status; it changed no shell options and installed no EXIT trap. No logout file was changed or skipped.
  • Disposition / limits: the failure mechanism is runner-image logout after a successful payload, not evidence that the canonical package helper failed. It explains the retained helper-0/enclosing-1 split under matching strict conditions, but does not retroactively instrument or relabel the historical failed run. The earlier native control also omitted the unavailable repository JS launcher and the original errexit option, so it was not full invocation-equivalence proof. The proposed TTY-only, best-effort cosmetic logout cleanup has not been applied by this PR.

UI performance gate — measured and explained, NOT passed

One baseline-only UI build used the immutable reviewed base aac3e8a, tree edbb5e6e96d3f016cc4c7b178b5c32d6e544b44d, with matching external tools: Node 24.18.1, pnpm 12.4.0, npm 11.16.0, Vite 8.3.0 and Pako 3.0.1. Frozen dependencies and generation inputs were checked. Candidate UI build identity was an explicitly logged measurement-only seed to hold metadata constant; actual baseline Git provenance remained the base, not the candidate. The standard helper that rebuilds both sides was not run; retained candidate sidecars were reused.

Seven startup JS assets Shipped gzip bytes Over unchanged 364,774 B limit
Frozen reviewed baseline, matched measurement inputs 364,777 3 B
Retained af640b6 candidate 364,815 41 B

The limit is 364,198 B recorded baseline + 512 B growth allowance + 64 B build-variance allowance = 364,774 B. The measured pair difference is +38 B; both raw startup totals are 1,183,608 B.

The bounded offline artifact comparison found all seven startup payloads identical after accounting for verified generated asset-name hashes; one was already byte-identical. Gzip headers matched. Per-pair gzip deltas were +15, +20, +1, +1, 0, +1, 0 B. Referenced targets were followed rather than blindly normalized: there were no conflicting target mappings or missing executable targets, and one deferred target had a genuine 40-byte raw reduction. That target difference was retained, not treated as equivalent; source-map payload equivalence is not claimed.

Thus the observed +38 B startup gzip difference is compression of changed generated filename strings, not added authored startup payload in this artifact pair. This is one controlled pair, not a repeatability study or a license to change application behavior to chase a different hash. The served-byte measurements and failing gate remain real. Packaging intentionally runs the performance checker in report-only mode, which explains why a printed violation can coexist with a successful package helper.

The UI gate still needs explicit disposition. Neither name normalization nor the baseline's 3 B excess is a passing score or automatic waiver. No source, lockfile, budget threshold or baseline was changed for this investigation. Readiness is not claimed.

Historical evidence retained separately

  • 2daadf0: repaired missing native tool-execution recording by publishing canonical operational facts independently of optional diagnostics; preserved the guard, approval and permit boundaries. Its focused native integration, earlier review and operator live acceptance remain earlier-source evidence, not af640b6 coverage. Selected Package Acceptance run 35645485296 passed its 11 executed jobs, including package integrity, npm 12 install.sh acceptance and selected Gateway/config/onboarding lanes. Fifteen unselected jobs were skipped. Its package SHA-256 was 70dfd6c4123d89d910a9586be0aea887411a2122f670704e8399e9f1dc7408b4, build 2026.9.5-2daadf0d944d-2026-09-21T19-35-15.413Z. Those are not the P2 archive or a full current-head CI result.
  • 96c28a9 and earlier recorded trees: retained admitted-Gateway binding, continuation/lifetime, config-normalization and authority-chain evidence remains historical. The controlled authenticated chain covered shared-token/wrong-device denial, intended-device launch/repeat, policy revocation and originating-device-token revocation. Earlier routing/effect-record failures and their repairs are not erased by the new bounded smoke. Earlier selected package acceptance is likewise not current-head proof.

The native integration's dependency boundary was personally checked at upstream Codex 8f73cdee456b6c46b791780d40cadf9d556d22a4: dynamic call identity emission, response routing, and dynamic-tool protocol fields. Codex transports call identity/arguments and responses; OpenClaw owns the operational mutation classification and retained Gateway authority.

Worked on by: @brokemac79 (issue, requirements, product scope, and operator validation).

@clawsweeper

clawsweeper Bot commented Sep 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 gateway Gateway runtime cli CLI command changes agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels Sep 20, 2026
OpenClaw-Publication: 1cefa14f-0fc2-4412-a325-5f5ca9ac44d7
Co-authored-by: brokemac79 <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/talk-scoped-preauthorization-153092 branch from 659a93a to 19df726 Compare September 20, 2026 00:46
@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 20, 2026
@clawsweeper

clawsweeper Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 23, 2026, 10:14 PM ET / September 24, 2026, 02:14 UTC (Revision 9).

ClawSweeper review

What this changes

Adds an expiring operator policy for exact Linux installed-app launches from Talk, with authenticated client binding, Gateway and node checks, policy-use recording, and configuration guidance.

Merge readiness

⛔ Blocked before merge - 6 items remain

Keep open. Current main still requires per-action Talk confirmation, and the linked feature request remains open. The source-head proof supports the proposed launch path, but core product sponsorship, downgrade handling, and a measured UI performance gate remain unresolved.

Priority: P2
Reviewed head: af640b6de9de6894c6f81acc53e35d43b371fe9b
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The real Gateway/node proof and focused negative cases are strong, but the large core surface, unresolved downgrade acceptance and measured performance gate limit merge confidence.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The captured PR body reports a passing source-head authenticated Gateway-to-built-node scenario under isolated Linux/Xvfb: paired clients launched the native fixture twice, while shared-token, wrong-device, policy-revoked and device-token-revoked cases produced no added process. The inspected image shows the synthetic window; the delivered-build live smoke covers spoken yes/no without a reusable policy, so actual widget/provider preauthorization remains a useful follow-up. The optional SQLite metadata is covered by a close/reopen test with no restored grant, while older-binary config downgrade remains a separate merge risk.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The captured PR body reports a passing source-head authenticated Gateway-to-built-node scenario under isolated Linux/Xvfb: paired clients launched the native fixture twice, while shared-token, wrong-device, policy-revoked and device-token-revoked cases produced no added process. The inspected image shows the synthetic window; the delivered-build live smoke covers spoken yes/no without a reusable policy, so actual widget/provider preauthorization remains a useful follow-up. The optional SQLite metadata is covered by a close/reopen test with no restored grant, while older-binary config downgrade remains a separate merge risk.
Evidence reviewed 11 items Current main behavior: Current main's strict Talk realtime schema has no app-launch policy field; its Talk confirmation code still consumes one exact spoken approval. The latest published release is v2026.9.6, while the proposed policy is on this PR head.
Introduced policy: The introduced schema requires exact agent, originating device, node, app, revision, and expiry values; the policy field is optional.
Final-effect authority checks: The Gateway checks the run binding, policy and live node authority before the invocation permit; the node rechecks the installed-app descriptor, execution guard, abort state and permit expiry immediately before a non-shell spawn.
Findings None None.
Security None None.

How this fits together

Talk turns an authenticated voice request into agent tool calls. The Gateway checks voice policy and node authority before sending a short-lived permit to a paired Linux node, which launches the selected app and records the effect.

flowchart LR
A[Authenticated Talk client] --> B[Gateway consultation]
B --> C[Exact app policy or spoken confirmation]
C -->|Allowed| D[Current node authority]
C -->|Denied| G[Confirmation request]
D --> E[Short-lived launch permit]
E --> F[Linux installed app]
F --> H[Voice effect record]
Loading

Decision needed

Question Recommendation
Should OpenClaw sponsor this Talk-owned core policy for exact Linux app launches, and accept its documented older-build downgrade procedure after the performance gate is resolved? Sponsor the bounded policy: Approve this exact Talk-owned capability after rollback validation and an explicit UI-gate disposition.

Why: The linked request has no confirmed product direction, the new key crosses a strict-schema downgrade boundary, and VISION.md reserves large core additions for exceptional review.

Before merge

  • Resolve merge risk (P1) - A configured policy makes an older strict-schema build reject configuration on downgrade, including an empty policy list; the documented revoke, drain and key-removal procedure has not received explicit maintainer acceptance or an executed older-binary rollback.
  • Resolve merge risk (P1) - The reported candidate UI startup assets exceed the measured limit by 41 bytes; the PR body expressly leaves gate disposition open, and no pinned current-main test merge was available to settle that measurement.
  • Resolve merge risk (P1) - The linked request still asks for a product decision on adding this operator policy to core; VISION.md gives core configuration and a PR of this size an exceptional review bar.
  • Complete next step (P2) - Obtain an owner decision on core policy and downgrade behavior, resolve the UI performance gate, and complete normal draft-to-ready review gates.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Production and test growth production net +1,253 lines; tests net +3,869; docs net +150 The added authority boundary has substantial behavioral coverage, while production growth still needs the exceptional-scope review described in VISION.md.
Persisted policy surface 1 new optional config list; 0 SQL migrations Existing records can reopen, but older strict config readers reject the new key during downgrade.
Measured UI startup budget candidate +38 gzip bytes versus reviewed base; 41 bytes over limit The contributor's paired measurement leaves a performance-gate decision before merge.

Stored data model

Persistent data-model change detected: serialized state: src/node-host/invoke-system-run.ts, unknown-data-model-change: src/config/schema.labels.ts, unknown-data-model-change: src/node-host/invoke-system-run.ts, unknown-truncated-pull-files. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #153092
Summary: The open request describes exact operator-scoped Talk preauthorization, and this PR is its implementation candidate.

Members:

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

Merge-risk options

Maintainer options:

  1. Prove rollback and resolve the gate (recommended)
    Rehearse the documented older-build rollback on representative state and obtain an explicit disposition of the UI startup limit before marking the PR ready.
  2. Accept the manual downgrade step
    An owner may accept revoke, drain and key removal as the downgrade contract after seeing the rehearsal, while separately resolving the UI gate.
  3. Pause the core proposal
    Keep the linked request for product discussion if the core policy or its review cost is not sponsored.

Technical review

Best possible solution:

If sponsored, keep exact-app authorization with Talk’s existing confirmation owner, retain independent node permissions, prove the rollback procedure, and resolve the UI gate before release.

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

Not applicable as a bug reproduction: the extra spoken confirmation is the documented baseline. Current main's schema and Talk policy show no configurable exact-app preauthorization.

Is this the best way to solve the issue?

Unclear pending product direction: extending Talk’s existing confirmation owner and checking authority at final dispatch is a coherent implementation, but a core policy of this scope needs approval and a resolved rollback and performance contract.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 7b0f6ee6d8f3.

Labels

Label changes:

  • add merge-risk: 🚨 security-boundary: The PR grants selected voice requests a route to native process launch across device, Gateway and node authority boundaries.
  • add merge-risk: 🚨 automation: The reported candidate UI assets exceed a startup budget gate, though current-main merge behavior remains unmeasured.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded Talk workflow enhancement with meaningful user value, not an urgent existing-behavior outage.
  • merge-risk: 🚨 compatibility: Older strict-schema builds reject the newly persisted policy key on downgrade.
  • merge-risk: 🚨 security-boundary: The PR grants selected voice requests a route to native process launch across device, Gateway and node authority boundaries.
  • merge-risk: 🚨 automation: The reported candidate UI assets exceed a startup budget gate, though current-main merge behavior remains unmeasured.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The captured PR body reports a passing source-head authenticated Gateway-to-built-node scenario under isolated Linux/Xvfb: paired clients launched the native fixture twice, while shared-token, wrong-device, policy-revoked and device-token-revoked cases produced no added process. The inspected image shows the synthetic window; the delivered-build live smoke covers spoken yes/no without a reusable policy, so actual widget/provider preauthorization remains a useful follow-up. The optional SQLite metadata is covered by a close/reopen test with no restored grant, while older-binary config downgrade remains a separate merge risk.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured PR body reports a passing source-head authenticated Gateway-to-built-node scenario under isolated Linux/Xvfb: paired clients launched the native fixture twice, while shared-token, wrong-device, policy-revoked and device-token-revoked cases produced no added process. The inspected image shows the synthetic window; the delivered-build live smoke covers spoken yes/no without a reusable policy, so actual widget/provider preauthorization remains a useful follow-up. The optional SQLite metadata is covered by a close/reopen test with no restored grant, while older-binary config downgrade remains a separate merge risk.

Evidence

What I checked:

  • Current main behavior: Current main's strict Talk realtime schema has no app-launch policy field; its Talk confirmation code still consumes one exact spoken approval. The latest published release is v2026.9.6, while the proposed policy is on this PR head. (src/config/zod-schema.root-support.ts:198, 7b0f6ee6d8f3)
  • Introduced policy: The introduced schema requires exact agent, originating device, node, app, revision, and expiry values; the policy field is optional. (src/config/zod-schema.root-support.ts:212, af640b6de9de)
  • Final-effect authority checks: The Gateway checks the run binding, policy and live node authority before the invocation permit; the node rechecks the installed-app descriptor, execution guard, abort state and permit expiry immediately before a non-shell spawn. (src/node-host/installed-app-launch.ts:85, af640b6de9de)
  • Source-head authority scenario: The authenticated Gateway and built-node scenario checks zero native processes for shared-token and wrong-device clients, two launches for the paired client, and no additional process after policy or originating-device-token revocation. The PR body reports that this source-head scenario passed; this review did not execute it. (test/talk-app-launch.authenticated.e2e.test.ts:548, af640b6de9de)
  • Stored-record compatibility: The introduced test closes and reopens SQLite with both legacy effects and optional policy metadata, checks the schema version and effects, and requires that the reopened record does not restore origin authority. (src/gateway/talk/client-voice-origin.continuation.test.ts:162, af640b6de9de)
  • Downgrade limitation: The PR documents that older strict schemas reject the new config key even when its list is empty, and prescribes revocation, draining and key removal before downgrade. The previous ClawSweeper review also retained this as an unaccepted merge concern. Public docs: docs/nodes/talk/realtime-sessions.md. (docs/nodes/talk/realtime-sessions.md:197, af640b6de9de)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Shakker: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Alix-007: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Rehearse rollback with the new key present, then record the owner’s chosen downgrade contract.
  • Resolve the UI startup gate on a current integration and, if available, show a live selected-client preauthorized repeat and revocation.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (8 earlier review cycles)
  • reviewed 2026-09-20T00:55:23.149Z sha 19df726 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-20T14:59:40.477Z sha 48abff2 :: blocked before merge. :: none
  • reviewed 2026-09-20T15:21:10.870Z sha 8c3fc10 :: blocked before merge. :: none
  • reviewed 2026-09-20T16:30:01.961Z sha 905feb5 :: blocked before merge. :: none
  • reviewed 2026-09-20T16:49:08.757Z sha 67b5ba9 :: blocked before merge. :: none
  • reviewed 2026-09-21T16:52:37.265Z sha 96c28a9 :: blocked before merge. :: none
  • reviewed 2026-09-21T17:32:59.844Z sha 96c28a9 :: blocked before merge. :: none
  • reviewed 2026-09-21T22:04:32.242Z sha 2daadf0 :: blocked before merge. :: none

Integrate pinned main while preserving the node responder refactor. Bind reusable authority to each authenticated consult instead of the persisted call. Verify real wrong-device and revoked-origin rejection before native process dispatch.

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

roboclaw-bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator Author

Final rebuilt authority proof with ordinary realtime configuration

Current tested tree: 514ce80b426ff2cf754299584e0f2dba5c769d1d. Runtime components were rebuilt from this frozen tree (5m39.2s), then the full authenticated E2E passed (377.81s including build). This fixture starts with realtime provider: openai, mode: realtime and an empty policy list. It asserts canonical startup loading and reload after the actual operator config.patch, before executing the real Gateway→paired node→native ELF process chain. Inference remains local and deterministic.

{
  "testedTree": "514ce80b426ff2cf754299584e0f2dba5c769d1d",
  "status": "passed",
  "configLoading": {
    "provider": "openai",
    "mode": "realtime",
    "startupPolicyCount": 0,
    "postPatchPolicyCount": 1
  },
  "authentication": [
    "signed-device + shared token: token",
    "signed-device + issued device token: device-token",
    "different signed device + issued token: device-token"
  ],
  "nativeProcessCounts": [
    "shared-token: 0",
    "wrong-device-token: 0",
    "device-token: 1",
    "repeat: 2",
    "policy-revoked: 2",
    "device-token-revoked-before-permit: 2"
  ],
  "originatingDeviceRevocation": {
    "method": "device.token.revoke",
    "role": "operator",
    "beforeToolResponseAndPermit": true,
    "policyRestored": true,
    "revokedAtMs": 1789922163138
  },
  "terminalStatus": "ok"
}

Doctor pre-validation reproduction separately failed on the prior head for null/string/object policy lists and rewrote [null] to [{}]. The canonical normalizer now preserves the authored field unchanged, so schema validation returns structured policy-path diagnostics instead of a TypeError or silently rewritten value. 92 focused tests, core typecheck, scoped lint (zero warnings/errors), and narrow P2 review passed. All owned fixture processes/state were cleaned up. The fresh screenshot hashes identically to the retained inspected image (SHA-256 cdfda86aa398fbd331f06921cba5dd00c85e9dabdb59cdb3e2cfed915ca2f8d5).

Prior receipts retained for lineage

Fresh current-main integration proof

This is a new execution on the integrated source tree below, not a relabeling of the earlier receipt. The runtime was rebuilt after integrating the pinned main. After a test-only exact-order expectation adjustment, the final-tree E2E reran using that unchanged, freshly built runtime generation.

{
  "testedTree": "4f78c1bf650f3159d8fffbabcf647baca9d2911b",
  "pinnedMain": "aac3e8a6ed27301bd56cfe4e97dbf96d88bb53f7",
  "status": "passed",
  "authentication": [
    "signed-device + shared token: token",
    "signed-device + issued device token: device-token",
    "different signed device + issued token: device-token"
  ],
  "nativeProcessCounts": [
    "shared-token: 0",
    "wrong-device-token: 0",
    "device-token: 1",
    "repeat: 2",
    "policy-revoked: 2",
    "device-token-revoked-before-permit: 2"
  ],
  "originatingDeviceRevocation": {
    "method": "device.token.revoke",
    "role": "operator",
    "beforeToolResponseAndPermit": true,
    "policyRestored": true,
    "revokedAtMs": 1789916985896
  },
  "terminalStatus": "ok"
}

285 focused tests across 13 files are green across the selected runs (the corrected node-policy file was rerun in full); the real authenticated E2E, core typecheck, and scoped review passed. Scoped lint exited 0 with one runtime.ts max-lines warning (705/700); no suppression or baseline exception was added. The freshly captured native-window PNG is byte-identical to the retained figure below (SHA-256 cdfda86aa398fbd331f06921cba5dd00c85e9dabdb59cdb3e2cfed915ca2f8d5). Owned fixture processes and isolated state were cleaned up.

Earlier pre-integration evidence, retained unchanged

Controlled authority-chain proof for the repaired candidate, tested tree f7c47c615d65bfd0edf98bc70ea0795a17915ff3.

Real Gateway/authentication, pairing RPCs, built node, native ELF process and Xvfb window; only inference is a deterministic local HTTP fixture. The wrong device has its own genuine paired-device token. For actual originating-device revocation, policy was restored, the model response was held before any tool call/permit, device.token.revoke completed through the admin RPC, then the response was released. No additional native process launched.

{
  "status": "passed",
  "authentication": [
    "signed-device + shared token: token",
    "signed-device + issued device token: device-token",
    "different signed device + issued token: device-token"
  ],
  "nativeProcessCounts": [
    "shared-token: 0",
    "wrong-device-token: 0",
    "device-token: 1",
    "repeat: 2",
    "policy-revoked: 2",
    "device-token-revoked-before-permit: 2"
  ],
  "originatingDeviceRevocation": {
    "method": "device.token.revoke",
    "role": "operator",
    "beforeToolResponseAndPermit": true,
    "policyRestored": true,
    "revokedAtMs": 1789915712732
  },
  "nodePaired": true,
  "terminalStatus": "ok"
}

E2E exit 0; final P2 review scoped-clean. Owned node, display, app processes, sockets and isolated state cleaned up. The image shows only the synthetic native test window, not Martin’s Omarchy desktop or widget. Actual widget/live GPT-Live acceptance remains unverified. Draft only; no readiness, merge or deployment action.

Controlled native ELF window under Xvfb, not Martin’s desktop

OpenClaw-Publication: 21192695-0b1d-4282-a680-9fd122925241
Co-authored-by: brokemac79 <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/talk-scoped-preauthorization-153092 branch from bb4e584 to 48abff2 Compare September 20, 2026 14:52
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 20, 2026
roboclaw-bot and others added 2 commits September 20, 2026 15:11
Integrate pinned main aac3e8a. Preserve upstream desktop-sharing, scoped node authentication and parent lifetime options while retaining constrained Linux app inventory and launch authority. Keep exact registry-order assertions aligned with the additive core inventory command.

Co-authored-by: brokemac79 <[email protected]>
OpenClaw-Publication: 23829f2a-4e21-4efe-b4cb-72c3f352c17f
Co-authored-by: brokemac79 <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/talk-scoped-preauthorization-153092 branch from bc932ba to 8c3fc10 Compare September 20, 2026 15:13
Preserve validated app-launch policies alongside ordinary provider and mode fields. Cover absent, empty and populated config loading plus real database reopen of legacy effects and policy-use metadata without restoring authority. Document feature-local migration and strict older-config downgrade limits.

Co-authored-by: brokemac79 <[email protected]>
OpenClaw-Publication: b9bd158c-26ff-45d0-8972-99afb858cbbd
Co-authored-by: brokemac79 <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/talk-scoped-preauthorization-153092 branch from 926cf90 to 905feb5 Compare September 20, 2026 16:22
@roboclaw-bot

roboclaw-bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator Author

Addressing revision 3; bot-owned verdict/labels and the draft hold are unchanged.

Before-merge item Disposition
Actual widget / Omarchy / live GPT-Live External proof gap. Source contracts inspected; deployed behavior not claimed.
Author ready transition Intentionally held. No ready/merge/auto-merge authorization.
Config/default compatibility Audit and repair completed. Concrete loading defect fixed and compatibility boundaries documented.

The config-loading defect is repaired, and the closeout found and reproduced one additional pre-validation issue in Doctor: null/string/object policy values threw TypeError and [null] became [{}]. The canonical normalizer now preserves authored policy values without iteration, cloning, fallback, or deletion. Doctor regression tests require unchanged values and structured canonical-schema diagnostics. No matcher, authentication, node-dispatch or schema contract changed.

Voice records remain version 1 in existing cache_entries. Actual SQLite close/reopen tests preserve legacy effects and optional voicePolicyId, retain user_version, and demonstrate that persisted metadata does not restore authority. No feature-specific SQL or Doctor migration is needed.

Downgrade warning: inspected v2026.9.5 (ec9c1a13…) has a strict realtime schema without this key; even [] is rejected. Revoke/apply and drain in-flight work on a compatible build, then remove the key entirely or restore appropriate pre-feature config before an authorized downgrade. Other schema/update constraints still apply; a full older-binary rollback was not executed.

Current verification: 92 tests / five files, core typecheck, scoped lint (0 warnings/errors), and fresh narrow P2 review passed. Full runtime rebuild plus authenticated E2E passed on final tree 514ce80b426ff2cf754299584e0f2dba5c769d1d, now with ordinary realtime provider/mode and asserted startup/config.patch loading. Counts remain 0/0/1/2/2/2 through the real native-process boundary. Only inference is local/deterministic. Earlier receipts remain historical; the current raw receipt is in the existing proof comment.

Sources: repair, loading regression, reopen regression, rollback guidance.

Remaining sanitized inputs: widget/Gateway build IDs; only existing hello.auth.method plus confirmation of matching signed-device identity (no tokens); one selected app’s redacted eligibility/inventory and node-permission result; an existing redacted native-sideband→consult→permit→process trace, or separately authorized acceptance. Scripts/field-code launchers remain outside this slice.

Personally inspected browser selection (ui/src/api/gateway.ts:635, shared connect-auth.ts) and native bridge contracts, plus Codex 8f73cdee456b6c46b791780d40cadf9d556d22a4 realtime methods_frameless_bidi.rs:57-74 / protocol_v2.rs:142-166. Those contracts do not establish Martin’s deployed authentication or live-provider acceptance. Only the explicitly authorized isolated fixture pairing/execution was rerun. No real-widget/live-provider acceptance, credential inspection, VPS/deployment or live-state mutation was performed.

Closeout sources: Doctor regression, extended authenticated fixture.

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Sep 20, 2026
roboclaw-bot and others added 2 commits September 20, 2026 16:38
Do not iterate or rewrite pre-validation app-launch policy input. Preserve authored values for canonical structured validation. Extend the real authenticated native-launch fixture with ordinary realtime provider and mode fields and verify startup/config.patch loading on rebuilt components.

Co-authored-by: brokemac79 <[email protected]>
OpenClaw-Publication: 6bb8e4a2-1f36-4697-aedf-944986ba2aba
Co-authored-by: brokemac79 <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/talk-scoped-preauthorization-153092 branch from a690c95 to 67b5ba9 Compare September 20, 2026 16:40
@openclaw-barnacle openclaw-barnacle Bot added the commands Command implementations label Sep 20, 2026
roboclaw-bot and others added 2 commits September 21, 2026 15:58
Bind provider-owned Talk admission to its exact Gateway instance using the existing admitted-run owner. Preserve cancellation and source-lifetime fences across native Codex dynamic-tool calls without weakening the installed-app launch guard.

Co-authored-by: brokemac79 <[email protected]>
Keep physical Talk owner checks at admission while accepted native consults retain canonical execution cancellation and Gateway lifetime. Bind generic plugin embedded admissions only to their captured scoped Gateway, preserving standalone behavior. Cover real native control-owner close/replacement, completion claims, and exact execution-lease replacement.

Co-authored-by: brokemac79 <[email protected]>
roboclaw-bot and others added 4 commits September 21, 2026 18:56
Publish finalized core tool execution facts through the existing synchronous trusted stream independently of optional harness diagnostics. Preserve the original audit owner with out-of-band metadata, and keep the voice policy-use record guard unchanged. Exercise the production native controller through the real Gateway policy recorder, paired-node command handler, and a real native executable effect.

Co-authored-by: brokemac79 <[email protected]>
Decode Desktop Entry Name escapes before exposing inventory labels and reject
invalid escape sequences. Preserve the existing closed native Exec contract.

Share the duplicated loopback wire without merging config or native fixtures,
and forward canonical invocation cancellation to the node-owned signal. Keep
regression coverage for quoted paths, executable substitution, and permit timing.

Extract existing config, diagnostic, and node owner helpers to satisfy the
source-growth guards without changing their policy semantics. Route the native
Codex integration through the existing host-owned Gateway plugin test project.

Regenerate config documentation metadata for the already-scoped nine policy
schema nodes; keep channel/plugin budgets unchanged and shrink assertion counts.

Co-authored-by: brokemac79 <[email protected]>
Capture the initialized Gateway port for the authenticated node-start fixture
and use the deferred helper's existing void default in the cancel regression.

Keep dispatch preparation and the stored-record version private. Exercise the
existing production invocation entry from policy tests with a real registry
and its exact authority dependencies; pin persisted v1 fixture data explicitly.

Preserve authorization checks, policy recording, callback timing, wire version,
and every existing positive and negative scenario. Do not add lint exceptions.

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

Consume a matching one-shot spoken grant at the final app effect boundary
even when a reusable policy also authorizes it. Preserve non-consuming
preparation and every independent node, origin, revision and cancellation gate.

Apply strict Desktop Entry string unescaping before Exec quote parsing. Keep
valid paired escapes and reject malformed first-stage escapes.

Add real-node grant/policy overlap and post-spawn settlement coverage, plus
parser regressions. Disclose the existing app-ID and trusted-installation
limits without widening the schema or introducing a new execution mechanism.

Co-authored-by: brokemac79 <[email protected]>
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 24, 2026
@RomneyDa
RomneyDa deleted the openclaw/talk-scoped-preauthorization-153092 branch October 22, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling cli CLI command changes commands Command implementations docs Improvements or additions to documentation extensions: codex gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

1 participant