Repository navigation
feat(nodes): launch exact Linux apps with ordinary approvals - #159695
roboclaw-bot wants to merge 18 commits into
Conversation
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]>
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]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. What this changesThis PR adds exact Linux application discovery and process-start launching through Nodes using ordinary host and node approvals. Example: Launch linux-desktop:org.example.Calculator.desktop on an explicitly paired Linux node using its inventory revision.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 3 items remain Keep open: this maintainer-authored PR adds a distinct capability absent from main, while its explicitly deferred admission and existing-setting contracts remain unresolved. Priority: P2 Decision needed
Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Nodes tool connects agent requests to paired devices; the Gateway checks permissions and approval identity, and the Linux node resolves the installed descriptor and starts the native process. flowchart TD
A[Text or Talk request] --> B[Nodes app action]
C[Linux desktop inventory] --> B
B --> D[Ordinary host and node approvals]
D --> E[Gateway invocation permit]
E --> F[Node identity and authority checks]
F --> G[Native process starts]
G --> H[Process started result with PID]
Technical reviewBest possible solution: Retain exact application identity and ordinary approvals while settling the explicitly reserved sharing and bounded-admission contracts. Do we have a high-confidence way to reproduce the issue? This proposes a new capability; supplied production-boundary traces demonstrate process starts, ordinary refusals and the delayed-cancellation limitation. Is this the best way to solve the issue? Reusing the existing execution owner is coherent, and collaborator authorship settles sponsorship; the expressly reserved consent and admission choices still need resolution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 929bfc04f529. Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: The observed post-permit cancellation race needs the expressly reserved security-contract decision. EvidenceSecurity concerns:
What I checked:
PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (5 earlier review cycles)
Reviewed October 11, 2026, 6:17 AM ET / 10:17 UTC (Revision 6). |
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]>
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]>
Partition generated consultation IDs by the prepared person, verified device, and effective grants while retaining canonical chat admission and replay. Prove signed caller separation, native effects, control custody, reconnect replay, and fresh requests. Co-authored-by: brokemac79 <[email protected]>
Use the existing operator scope implication owner to remove redundant grants from replay identity only. Keep execution authority unchanged and prove equivalent-grant reconnect cannot redispatch while genuinely different grants remain independent. Co-authored-by: brokemac79 <[email protected]>
Keep logical replay identity scoped to the prepared person and verified device, not mutable grants. Let current ingress, admission and tool policies authorize replay and fresh work. Prove narrowed retries cannot repeat native effects or transfer control or cached execution authority. Co-authored-by: brokemac79 <[email protected]>
Keep app discovery and native process-started launch optional, with exact app revisions and the existing host/node execution approval owners. Preserve text and Talk permission parity and truthful cancellation admission limits. Co-authored-by: brokemac79 <[email protected]>
|
Closing at Martin’s request: this separate draft is no longer needed for the completed voice/text permission-parity goal. This closure does not claim that its distinct exact Linux app-launch changes were merged or comprehensively tested. The branch and retained work, evidence, and accounting history are being preserved. |
Related: #153299
What Problem This Solves
Opening an installed Linux app should not require model-authored shell discovery or wait for a long-lived process to exit.
User Impact
Adds optional Nodes actions
app_listandapp_launchfor an inventory-provided app ID/revision on an exact paired Linux node. Text and voice use the same ordinary tool, host and node execution approvals; no additional Talk-only confirmation or standing policy is required. Success means process started with an actual PID, not process completed, window appeared or application initialized.Installed-app sharing remains off by default. Launch also requires Linux duplex support, advertised/approved node commands and explicit Gateway command-policy opt-in. A previously stored true sharing setting on Linux now enables inventory and launch advertisement when otherwise supported; published-driver upgrade behavior and maintainer acceptance of that existing-setting interpretation remain open. Advertisement does not bypass pairing, command-policy or executable denials.
Eligible entries are bounded, top-level XDG desktop files resolving to one native ELF executable without arguments. Shell/script launchers, field codes, terminal/DBus activation, custom working directories, TryExec and visibility conditions are outside this narrow capability. Higher-precedence entries mask lower entries even when ineligible. Inventory reports completeness and truncation for this supported subset.
Admission limit: the invocation-bound permit is valid for at most five seconds from node readiness, including transport. The node rechecks revision, executable/cwd, local execution authority, expiry and observed cancellation before spawn. Delivered cancellation prevents spawn; cancellation still in transit can lose the race. A canceled tool request is not proof that no process started. This is not atomic distributed revocation.
DRAFT: product acceptance of core placement, the bounded admission contract and upgrade behavior remains separate. No merge, release, installed-package or full-CI readiness is claimed. The independent upstream voice-default decision in #159697 and reporter shipping-floor decision in #159693 are not resolved by this revision.
Why This Change Was Made
The app adapter uses the existing ordinary node-exec preparation, HOST+NODE policy combination, approval record/request/decision/continuation and forwarding sanitizer. The node resolves the executable itself; its existing approval plan now includes an optional installed-app ID/revision binding. Wrong device, target, revision or generic-operation replay cannot consume an app approval. Native dispatch returns at process start; ordinary exec retains run-to-completion semantics.
Accepted app work follows the existing admitted run's lifetime through signed node transport. Final permit delivery and cancellation remain observable, invocation-owned operations—not a spoken grant or a new permission manager. The small path/coverage extraction retains generic exec behavior and keeps the existing line cap.
Source and dependency
b890cdd1fbe176cf2b8af68d325210a2f9ee1a3f; tree:5870b44798af0a6677ec890cd75515b94be333bc.openclaw/scoped-app-repeat-permission-pr3at98e8ba9615e577b32db473fd65d019511833b83b.fc3c91adremains an ancestor through the corrected parity branch. No force push, rebase or history replacement; the closed combined PR stays closed/unmerged.Evidence
Exact-head real behavior proof
Claim: the same exact app across registered text, direct Talk creation and chat-backed Talk gets the same ordinary permission decision and real native effect, without an extra voice prompt.
Surface/environment: one suite-owned Gateway, registered requester handlers with real admitted operator authority, an actual signed reviewer and paired NodeRuntime, real SQLite approval records, canonical Nodes/exec owners and native OS child processes. Requester ingress/model inference/external voice transport are controlled fixtures; this is not live microphone/provider or requester-wire authentication proof. Existing rootless network-none Linux source runner: Node 26.8.2, native pnpm 12.5.1, Vitest 5.0.1, Playwright 1.63.0, private frozen dependencies. No product/qaRuntime build, new image or infrastructure was used.
Observed after the final commit: one selected test containing 30 cells passed; 12 unrelated tests intentionally filtered. Test body 20.224 s, isolated wrapper 99.41 s. There were 15 real approval requests, nine ordinarily successful native launches, and three further processes when cancellation was deliberately held in transit. All 12 task-owned children were observed and their cleanup exits joined.
Every row ran through text, direct Talk and chat-backed Talk:
Repeated approval resolution produced no additional process. Thirty independent
nodes(which)reads verified routing. The cancellation-in-transit rows are not successful tool replies or no-effect claims.Executed command, with
npm_execpathselecting the admitted native pnpm 12.5.1:node scripts/run-vitest.mjs --isolated-image sha256:2c1f4e0fd6450f43ddb46d60c2a6df30855a8588e165b1f2559fb0eda8d7ff35 run --config test/vitest/vitest.gateway.config.ts --configLoader runner src/gateway/server.talk-consult-history.test.ts -t 'keeps ordinary installed-app approvals'Actual emitted rows (selected verbatim; PIDs are task-container-local):
The generic
execDispatchescolumn countssystem.run; app dispatch/effect counts are the separateappDispatches/nativeAppscolumns. For app refusals the exact canonical denial is asserted within the returned error wrapper; the generic equality-onlycanonicalExecDenialtrace field is not the app denial verdict.Registered matrix · Native child lifecycle · Real approval binding/consumption
Regression, sibling and review coverage
[], removed[]. No cap change or export suppression; not all gates are green.Remaining decisions and limits
The previous ClawSweeper review's core-placement, bounded post-permit revocation and existing-Linux-sharing upgrade questions remain explicit maintainer/product decisions; development authorization is not acceptance. No shipping floor, compatibility setting or installed-upgrade proof is invented. Historical spoken-confirmation tests are not relabeled as ordinary-approval evidence.
No live microphone/ASR/provider, GUI/window readiness, production-user app, installed CLI/node binary, published-driver upgrade/release acceptance or atomic distributed revocation claim. The worker-claim closure branch is source/type covered; paired runtime proof uses local admitted runs. Pending source revocation uses canonical invalidation, not a new final-head durable device-token-commit-after-permit test. Prior evidence retains its actual head and scope.
Against P: production +1,317/−149 (net +1,168); tests/support +1,072/−93 (net +979); docs +44/−7 (net +37). Growth provides the bounded Linux parser, native process-start adapter and exact ordinary approval/lifetime binding; it adds no general permission manager.
Cross-PR proof boundary — 2026-10-02
The live core base branch is now 61ec99c. This app head and its actual parent/tested composition remain b890cdd / 98e8ba9; those results are not relabeled as a run integrating the new base. Core #159697 has independently verified integrated-package fresh/update evidence, but that package does not contain these app actions and is not installed-app/GUI/upgrade acceptance.
Worked on by: @brokemac79.