Repository navigation
feat(talk): preauthorize exact installed-app launches - #153299
roboclaw-bot wants to merge 15 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
OpenClaw-Publication: 1cefa14f-0fc2-4412-a325-5f5ca9ac44d7 Co-authored-by: brokemac79 <[email protected]>
659a93a to
19df726
Compare
|
Codex review: blocked before merge. Reviewed September 23, 2026, 10:14 PM ET / September 24, 2026, 02:14 UTC (Revision 9). ClawSweeper reviewWhat this changesAdds 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 Review scores
Verification
How this fits togetherTalk 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]
Decision needed
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
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
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]>
Final rebuilt authority proof with ordinary realtime configurationCurrent tested tree: {
"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 Prior receipts retained for lineageFresh current-main integration proofThis 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 unchangedControlled authority-chain proof for the repaired candidate, tested tree 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, {
"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. |
OpenClaw-Publication: 21192695-0b1d-4282-a680-9fd122925241 Co-authored-by: brokemac79 <[email protected]>
bb4e584 to
48abff2
Compare
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]>
bc932ba to
8c3fc10
Compare
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]>
926cf90 to
905feb5
Compare
|
Addressing revision 3; bot-owned verdict/labels and the draft hold are unchanged.
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 Voice records remain version 1 in existing Downgrade warning: inspected v2026.9.5 ( 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 Sources: repair, loading regression, reopen regression, rollback guidance. Remaining sanitized inputs: widget/Gateway build IDs; only existing Personally inspected browser selection ( Closeout sources: Doctor regression, extended authenticated fixture. |
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]>
a690c95 to
67b5ba9
Compare
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]>
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]>

Superseded by split draft PRs
This combined proposal is superseded by the following separately scoped DRAFT stack:
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.appLaunchPoliciesfrom 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, tree036639cb8a35a41999169700fb877021afb7f5d5. The frozen review/comparison base isaac3e8a6ed27301bd56cfe4e97dbf96d88bb53f7. The earlier published candidate2daadf0d944d0c48c0e5bae54c484621506eacc1is 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:
Nameand the first stage ofExecnow use strict Desktop Entry string decoding. Valid paired escaping remains supported; malformed escaping is rejected before the existing quoted-executable parser.[]: 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.
1c98f99628f399c249c4e0ebf6fae67d0519e58c. Its difference from the final tree is onlydocs/nodes/talk/realtime-sessions.md.036639cb8a35a41999169700fb877021afb7f5d5: 238 focused tests across 16 files with the stated input provenance.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
af640b6source 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.P2 — complete candidate npm archive / integrity and delivery
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.P3 — bounded human-operated live smoke on the delivered build, 2026-09-23
device.appsanddevice.apps.launch; no app-launch policy was added for this smoke.active=falseandrequested=false.P4 — helper-0 / enclosing-1 diagnosis, 2026-09-23
--shellprobe preserved the originalset -eulogin-shell conditions with no TTY. The priorset -ucontrol was retained, not rerun. The corrected probe did not require an OpenClaw build.exit 0;.bash_logout:6invoked/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.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.
af640b6candidateThe 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, notaf640b6coverage. 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 was70dfd6c4123d89d910a9586be0aea887411a2122f670704e8399e9f1dc7408b4, build2026.9.5-2daadf0d944d-2026-09-21T19-35-15.413Z. Those are not the P2 archive or a full current-head CI result.96c28a9and 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).