Skip to content

feat(native): route App Intents to selected conversations - #143259

Closed
vincentkoc wants to merge 15 commits into
mainfrom
feat/native-app-actions-20260909
Closed

vincentkoc wants to merge 15 commits into
mainfrom
feat/native-app-actions-20260909

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

Superseded Review Surface

This oversized draft is superseded by the following dependent drafts, not merged or accepted:

  1. Gateway profile binding: feat(gateway): bind requests to selected profiles #143587
  2. iOS conversation actions and shared chat: feat(ios): add selected-conversation actions #143610
  3. macOS conversation actions and metadata packaging: feat(macos): add selected-conversation actions #143615
  4. Selected-conversation iOS voice: feat(ios): bind voice actions to selected conversations #143631

The final stack head decd107679e7e6918b0cb6f031c04b06974ac7db has exactly the same source tree as this draft's preserved head 2b4f84e18766d8f0463044345bee8676f936823e. The original branch is retained for existing downstream work; no downstream migration is implied.

All four replacements remain draft and not ready to land. Inherited unresolved P1 candidates, final-effect authority and accepted-work/reconnect proof, native metadata and signed-install/device qualification, remaining CI/tests, and security-owner acceptance remain open. This is a mechanical review-scope split, not feature completion. The tracking issue remains open.

The complete prior description and all unchecked acceptance items follow unchanged as historical evidence.

Related: #142950

Draft for security-owner review. NOT human-review-ready. This is an unshipped candidate, not a qualified head.

What Problem This Solves

iOS and macOS operators cannot use native system actions to reliably open a selected conversation, prepare or send a message, or inspect a selected run while retaining the intended account, Gateway, agent, and session. Foreground selection changes must not redirect a saved action.

This adds a missing workflow capability through App Intents, Shortcuts on both platforms, and macOS 26 Spotlight. It is not a claimed shipped regression.

Why This Change Was Made

Task 1 adds Open, Compose, Send, and Inspect actions using the existing authentication, authorization, approval, and idempotency owners. Typed account/Gateway/agent/session/run references are selectors, not authority.

The operator-approved, additive contract uses opt-in expectedProfileId, recipientProfileId, and profile-binding-v1. Canonical Gateway dispatch and post-await precommit owners enforce the selected canonical profile; response and cache-publication owners retain that binding. Native presentation, chat, events, and media use the captured physical route/profile without silently adopting a successor account.

Commit-time coverage is limited to the audited native action owners; capability advertisement does not provide atomicity inside arbitrary plugin handlers.

Originally accepted input retains its original custody across ordinary socket loss or account selection changes. Those events do not revoke accepted work. Voice HTTP uses the issued credential and captured context; revocation of already-issued WebRTC credentials, including broker-issued and provider-direct credentials, is outside this bounded contract.

Inspect uses bounded existing chat.history reads and exact-run evidence, not a second ledger or B's status API. The stack remains A -> B -> C: this is A; B's APNs/status work and C's widgets/controls are separate. No new configuration, SQLite schema, or protocol version is introduced.

@openclaw/openclaw-secops: please review this bounded account-binding contract, including dispatch, post-await commits, response/cache publication, and accepted-input custody. Security-owner acceptance remains pending. This request follows relevant CODEOWNERS routing; it does not claim a mandatory GitHub branch-approval rule.

User Impact

Intended behavior, still awaiting the installed-app and operator-flow proof below:

  • Open, compose/send, and inspect the exact selected account, Gateway, agent, session, and run, with a usable exact-session continuation.
  • Compose alone never sends or overwrites a protected draft. Native uncertain sends do not automatically enter a durable offline queue or replay.
  • Accepted is not completed. Inspect reports only observed facts for the selected run and preserves unknown outcomes.
  • Unavailable accounts, offline/disconnected/unconfigured states, denied approvals, and uncertain outcomes remain visible instead of falling back to another destination.
  • Existing Siri StartLiveVoice and Mac QuickChat behavior is preserved.

Evidence

Checkpoint and provenance

  • Exact candidate head: 2b4f84e18766d8f0463044345bee8676f936823e, published by a normal fast-forward of this draft's branch.
  • Actual PR base at creation and exact base for the current scope/LOC table (main): a57c799c86dfa3b08e1994b75700bda6ffced01f.
  • Signed integration 047988c4f153491c3201df024cbb9496ed0e04ed retains published candidate c3752c8cb3b7fe0402744f5f2bde47553dfd8e93 as its first parent and a57c799c86dfa3b08e1994b75700bda6ffced01f as its second. Both parents' generated-model changes were retained; the sole manual conflict resolution retained both required test imports.
  • Signed compiler repair 67ce4a5e8df38ca51aeebc891ace0b5b97aa2517 changes five Swift files; signed reconnect-custody test checkpoint 6e866858d866e99fe4da6f91c1c840dac8874b56 adds the bounded WebSocket regression.
  • Signed follow-up a76fa07b1d59642cb5e6acaf709b9d8689d548c5 repairs the session-operation metadata contract and Mac test compilation in four Swift files. Signed 51c95287ac02e3c42ce5eb10ec927dd919d3ca76 changes only the WS close-listener Promise executor to a block body. Both preserve the reviewed source bytes and prior ancestry.
  • Signed lint repair 349b69eca27096c14a8fb2ea2b8a53008ef0a081, parent 51c95287ac02e3c42ce5eb10ec927dd919d3ca76, moves existing helpers within their owning types/extensions and reflows one argument list across four Swift files. Helper bodies and string bytes are unchanged; only the cross-file scope helper changes from private to internal. Normal hooks passed and committed bytes match the reviewed freeze.
  • Signed observer annotation 74895f5444b7a8037b37661a6a221969cb32e028, parent 349b69eca27096c14a8fb2ea2b8a53008ef0a081, changes one line (+1/-1) in ChatProTab.swift. Both closure inputs are explicitly Bool?, matching the optional observed value and SwiftUI callback contract; the guard, body, value, and modifier ordering are unchanged. Signature verification returned G; normal hooks passed and committed bytes match the reviewed freeze.
  • Signed observer decomposition 1a9e4058baa87d7eddf14e1bafb74c0e32c87b1d, parent 74895f5444b7a8037b37661a6a221969cb32e028, changes only ChatProTab.swift (+48/-40, net +8). Two same-file private opaque View properties provide compiler expression boundaries; flattening them reproduces the original 6/3/5 modifier sequence and closures byte-for-byte, with the rest of the file unchanged. Signature verification returned G; normal hooks passed and committed bytes match the reviewed freeze. Hosted compilation was unproved at that checkpoint; the later d18 consumer scans completed successfully as recorded below.
  • Signed decoder qualification 96bd76fe46bde0167a304fe9fa65a61c1cf0dee1, parent 1a9e4058baa87d7eddf14e1bafb74c0e32c87b1d, changes only the decoder target in IOSNativeActionBinding.swift from [String: AnyCodable].self to [String: OpenClawProtocol.AnyCodable].self (+1/-1, net 0). It names the canonical request parameter type while preserving mapping, the empty-dictionary fallback, throwing behavior, imports, dispatch, and timeout. Signature verification returned G; normal hooks passed and committed bytes match the reviewed freeze.
  • Signed observable-fixture repair ddfbfca3b13c0dfe08d31e10fb3a721d6b6b7241, parent 96bd76fe46bde0167a304fe9fa65a61c1cf0dee1, changes only the nested NativeChatPresentation declaration in SwiftUIRenderSmokeTests.swift from private to fileprivate (+1/-1 test lines, net 0; production 0). This permits the Observation macro's generated extension to access the same-file fixture. Assertions, timing, state, and all other source bytes are unchanged. Signature verification returned G; normal hooks passed and committed bytes match the reviewed freeze.
  • Signed fixture-setup repair d18cb5b0ea98e91fa7f2c2ec40e8a793acdcdeda, parent ddfbfca3b13c0dfe08d31e10fb3a721d6b6b7241, supplies the required sessionBox: nil argument in both native plain-TCP fixture connects, preserving the canonical default URLSession transport. It also extracts the existing voice RPC handler into a private synchronous @MainActor helper with inout request recording; the handler body is unchanged except indentation. This extraction addresses the local strict-lint failure in the preexisting 159-line test, not the hosted missing-argument compiler failure. The two-file commit is test-only (+66/-50); it preserves all five voice cases, assertions, timing, cleanup, and the preceding fileprivate repair. Signature verification returned G; normal hooks passed and committed bytes match the reviewed freeze.
  • Signed native-action surface repair 2b4f84e18766d8f0463044345bee8676f936823e, parent d18cb5b0ea98e91fa7f2c2ec40e8a793acdcdeda, removes the unused OpenClawChatNativeActionGateway.inspect(_:) and OpenComposeIntent.init(target:) conveniences and internalizes OpenRunIntent by removing public from its type and seven members. Its name, conformance, parameters, authentication, bodies, and two same-module opensIntent callers remain unchanged; public entities, queries, package, OpenSessionIntent, and InspectRunIntent are preserved. Existing tests use canonical history/reduction and default initialization with target assignment. The four-file change is production +8/-16 and tests +9/-3. Signature verification returned G; normal hooks passed and committed bytes match the reviewed freeze.
  • Historical fork base: 14c5ab4e39783a02f8fd7a721f5dde4291673dc0; it is not the base of the updated table.
  • Public foundation: 5ef762ff8fd83505810f73ad0c9f0505049c2f02.
  • C metadata source 31470a86d83ef643441eba0ef2ee362a41ce2de6 maps to A commit cbe2aa2f5c1e0f25fbde7e2700f51d898b8555a2: one empty LogicTests metadata-protocol override removed from apps/ios/project.yml. Original human author Vincent Koc and author date were preserved; no unrelated widget changes were imported.
  • Scoped exact-head native consumer build/static CI now passes at 2b4f84e18766d8f0463044345bee8676f936823e. Broader required CI, explicit App Intents metadata receipts, native/unit/runtime tests, installed-device proof, and security-owner acceptance remain pending; this is not a qualified release or merge-ready head.

Completed checks and their limits

  • 202 focused backend tests and scoped lint passed at the tested backend checkpoint, not as a final-head or complete-candidate test run.
  • Five read-only source guards passed: protocol event coverage, protocol registry, Swift generated-output parity, native i18n, and MDX validation of four docs. They used Node 26.7.0, donor tsx 4.23.12 versus pinned 4.23.13, and esbuild 0.28.2. These are partial source guards, not exact-dependency or full typecheck proof.
  • At exact 6e866858d866e99fe4da6f91c1c840dac8874b56, all five guards separately passed with pinned tsx 4.23.13: protocol event coverage, protocol registry, Swift generated-output parity, native i18n, and four-doc MDX validation. These later source checks are distinct from the donor-tsx results above; they are not new-head runtime or full-candidate qualification.
  • At exact 349b69eca27096c14a8fb2ea2b8a53008ef0a081, native-i18n verification exited 0 in 36.670 seconds with pinned tsx 4.23.13, 3,787 entries, and changed: false. The proof checkout remained clean with its frozen source hashes unchanged. This does not prove App Intents metadata localization.
  • A subsequently repaired, isolated frozen pnpm 12 dependency install passed actual tsx 4.23.13 TypeScript evaluation and esbuild 0.28.2 transformation. Pinned oxfmt 0.65 checked all 55 selected files successfully without changes; all 379 protected inputs remained unchanged. This tooling proof does not retroactively turn the earlier checks into exact-dependency runs.
  • Whole-candidate autoreview of the original 121-file candidate completed all 8 passes and exited 1, not 0. Its three findings were independently rejected with no fixes: the real Stop owner preclears state while background operation retains the call; failable single-expression { nil } is legal under SE-0255 and was verified with Swift 6.3.3 typechecking/SIL; voice HTTP uses the issued credential and captured context, not a new profile. No accepted findings remained from that review; this is not a clean-exit claim.
  • Prior SwiftFormat, Swift parsing, and shared OpenClawKit compilation are partial evidence only, not complete iOS/macOS app builds, runtime tests, or installed App Intents discovery.
  • Hosted native run 34376958064 failed before qualification: iOS metadata extraction rejected multiple OpenIntent declarations targeting the same session entity; macOS compilation rejected actor-isolated includedPackages getters and failed to diagnose the optional approval-validation closure expression.
  • The compiler repair uses one canonical OpenSessionIntent with open/compose/iOS live-voice operations. Named Compose and Voice foreground wrappers delegate to it; package getters are nonisolated and the approval callback keeps its explicit optional type and existing validation. C's direct OpenIntent control adaptation remains separate and pending.
  • Hosted recovery run 34383607561, attempt 1 at 6e866858d866e99fe4da6f91c1c840dac8874b56, completed with failure on GitHub-hosted macOS 26 / Xcode 26.6. Both producer jobs uploaded successfully, but both downloaded periphery.status files contain 1 and both JSON reports are empty. The reducer exited 2 on the iOS scan failure; no intersection report was produced. Upload success is not native qualification.
  • Recovery diagnostics identified a required non-target OpenIntent parameter, a missing captured socketGeneration in the Mac mapping test, and four unhandled throwing frame reads in router-test callbacks. The follow-up makes the operation optional with omission meaning open, exercises the real omitted-operation perform() path, forwards the existing lease generation, and moves frame decoding into throwing local statements without weakening assertions. Native compilation was still blocked at that checkpoint. Later d18 consumer compilation/scans passed; metadata extraction and runtime confirmation remain unproved.
  • Normal SwiftFormat passed all five repaired Swift files without disabled rules; parsing is syntax evidence only. Six-file delta autoreview (independent review, high reasoning) completed 1/1 pass, exited 0, and reported zero P0/P1 findings. The four-line bounded WS dispatch-readiness correction was independently reviewed afterward; that correction was not included in the earlier delta pass.
  • The earlier compiler/reconnect checkpoint commits passed normal hooks without changing the frozen source bytes. Their hook resolved oxfmt 0.60.0 for the WS test and produced identical bytes; this is distinct from the separate pinned-formatter proof above.
  • The five-file follow-up delta completed one independent high-reasoning review pass at P1, exited 0, and reported no provider or accepted findings. The required scanner gate passed, and all five source hashes matched before and after review. Both new commits passed normal hooks and retained those exact bytes. The two Mac test files passed normal SwiftFormat 0.63.0, formatter lint, Swift parsing, and scoped diff checks; the WS brace-only change passed pinned oxfmt 0.65.0 and diff checking. These are source checks, not native test execution.
  • Hosted native run 34389112830 at exact 51c95287ac02e3c42ce5eb10ec927dd919d3ca76 failed. The macOS producer's actual periphery.status was 0 with 404 findings; the iOS producer's status was 1, with xcodebuild exit 65 and five blocking SwiftLint diagnostics: two file/type-length limits and three argument-layout errors. The reducer exited 2. Producer upload success is not a verdict, and these results do not establish App Intents metadata or installed/runtime behavior.
  • The four-file lint repair passed normal SwiftFormat 0.63.0 and formatter lint, SwiftLint 0.65.1 with the actual inherited iOS configuration and strict mode (zero violations, including the 1500/900 file/type limits), Swift parsing, exact body/string move checks, and diff checking. One independent high-reasoning P1 review completed 1/1 pass, exited 0, and reported no provider or accepted findings; all four source hashes matched before and after. This is source-only evidence, not a new-head native build or runtime result.
  • Hosted native run 34393614273 at exact 349b69eca27096c14a8fb2ea2b8a53008ef0a081 completed with failure. The macOS producer's actual status was 0 with valid JSON containing 404 findings and an empty error log. The iOS producer's status was 1: xcodebuild exited 65 on a compiler time-to-typecheck error at the optional-Bool observer near ChatProTab.swift:126. The previous five SwiftLint diagnostics were absent. There was no iOS JSON or new metadata proof; the reducer exited 2 and produced no intersection.
  • The observer annotation passed normal SwiftFormat 0.63.0 and formatter lint, strict inherited iOS SwiftLint 0.65.1, Swift parsing, diff checking, and the exact one-line byte audit. Normal formatting elided the explicit Void return; the reviewed params-only form matches the API contract. One independent high-reasoning P1 review completed 1/1 pass, exited 0, and reported zero provider or accepted findings. The frozen file SHA256 was 28cfe6b450af696b7ce7bbe0a003dc0c30aa10dc69d54340326dd53e960a1746 before review, after review, and in the signed commit. These source checks did not establish a compiler fix; the following hosted run confirmed that annotation alone did not resolve the failure.
  • FAILED: Scoped native run 34396842227, attempt 1 via workflow_dispatch, used verified actual checkout 74895f5444b7a8037b37661a6a221969cb32e028, not stale source. The macOS producer's actual status was 0, with valid JSON containing 404 findings and empty stderr. The iOS producer's actual status was 1: xcodebuild exited 65 with the same time-to-typecheck error at the optional-Bool observer guard near ChatProTab.swift:126; its error output was byte-identical to the preceding failure. The earlier five SwiftLint diagnostics remained absent. No iOS JSON or new App Intents metadata proof was produced; the reducer exited 2 with no intersection. Annotation alone did not fix the compiler failure. This was candidate-SHA consumer compilation/static evidence, not PR merge-ref or full native qualification.
  • The one-file observer decomposition passed normal SwiftFormat 0.63.0 and formatter lint, strict inherited iOS SwiftLint 0.65.1 with zero violations, Swift parsing, diff checking, and exact flattened-expression/rest-of-file byte comparisons. One independent high-reasoning P1 review completed 1/1 pass, exited 0, and returned scoped-clean with zero provider or accepted findings. The file SHA256 remained c68a613923af0cb05ed17e30c66f8b87bb1e952cdd0a11b80cfaf4122faf2690 before/after review and commit; the 1,011-byte review receipt SHA256 is 1c94116171123b496f4d5b42103b4d2427e4b738d1c8a02b913158d996ce89bf. Those source-only checks did not themselves prove compiler resolution; subsequent hosted evidence is recorded below.
  • FAILED: Scoped native run 34400056513, attempt 1 at exact 1a9e4058baa87d7eddf14e1bafb74c0e32c87b1d, returned macOS actual scan status 0 with 404 findings. iOS actual status was 1, with xcodebuild exit 65 and new errors at IOSNativeActionBinding.swift:88-89: String.Type cannot conform to Hashable, and [AnyHashable: Any] cannot convert to U?. The preceding ChatProTab diagnostic was absent; this is not a full-app fix or successful native-qualification claim. The reducer exited 2 without an intersection.
  • The decoder's source-extracted expression reproduced both errors before qualification (exit 1) and typechecked after qualification (exit 0), using the existing Kit/Protocol modules. A bare AnyCodable type with both imports also typechecked, as did the original expression with Protocol imported alone. Kit's name is an alias to the Protocol type: this is an expression-resolution failure, not ambiguity between distinct nominal types. Normal SwiftFormat 0.63.0 and formatter lint, strict inherited iOS SwiftLint 0.65.1, Swift parsing, and diff checking passed. One scoped independent high-reasoning P1 review completed 1/1 pass, exited 0, and reported no provider or accepted findings. The source SHA256 remained cca7a974d78b354bdb6006fac48796e9ca7cccfed1e217114ef5249d3b49d934; the 1,005-byte review receipt SHA256 is da8f3135f5b476c772d98019ed1adf252395b215236d4e86eb3fcf802b255c72. The expression probe did not compile ChatUI or the full app. Hosted compilation remained blocked at that checkpoint; later d18 consumer scans passed, without establishing metadata or installed/runtime qualification.
  • FAILED: Scoped native run 34402835511 at exact 96bd76fe46bde0167a304fe9fa65a61c1cf0dee1 returned macOS actual scan status 0 with 404 findings (402 unique), with unchanged finding identities. iOS actual status was 1, with xcodebuild exit 65 because the @Observable-generated extension could not access the nested private NativeChatPresentation fixture in SwiftUIRenderSmokeTests.swift. The prior ChatProTab and parameter-decoder diagnostics were absent; this is not proof of full-app success. The reducer exited 2 without an intersection.
  • The access-only fixture repair passed normal SwiftFormat 0.63.0 and formatter lint, strict inherited iOS SwiftLint 0.65.1, Swift parsing, diff checking, and an exact one-keyword byte comparison. Normal formatting preserves fileprivate. One scoped independent high-reasoning P1 review completed 1/1 pass, returned scoped-clean, exited 0, and reported no provider or accepted findings. The 24,828-byte test file retained SHA256 2b8fad98d995d242994fa9016b28b8ca5a667fc5141aed0da41a2e90e5b42e2c before/after review and commit; the 915-byte review receipt SHA256 is 395ad9bc14f8a671cbbd66fbc3625ec9bdac9e985b72773724783826562c45b7. A separate isolated probe using the real Observation macro and an Int? stand-in failed with the private declaration and passed after changing only to fileprivate. That probe is not compilation or execution of the full app or actual hosted test.
  • FAILED: Scoped native run 34405900836, attempt 1 at exact ddfbfca3b13c0dfe08d31e10fb3a721d6b6b7241, returned macOS actual scan status 0 with 404 findings (402 unique), unchanged finding identities, and empty stderr. iOS actual status was 1, with xcodebuild exit 65 on the missing required sessionBox argument at SwiftUIRenderSmokeTests.swift:319. The preceding Observation macro access diagnostic was absent, not proof of full-app success. The reducer exited 2 without an intersection.
  • A bounded call probe against the actual Kit module failed without the required argument (exit 1) and typechecked with explicit nil (exit 0); it is not full-app or hosted-test proof. Both fixture omissions were repaired at d18. Final normal SwiftFormat 0.63.0 and formatter lint, strict inherited iOS SwiftLint 0.65.1, Swift parsing, and diff checking exited 0. No lint rule, threshold, or suppression changed. Reconstructing the extracted handler reproduces the argument-only voice-test version before extraction, SHA256 d93bf78d9f45ccd882b9374182410d9ba4ae1af950d32c78f72eae89d9cf9a57, byte-for-byte; this is not the ddf parent, which lacks sessionBox: nil. The smoke file retains only its one-line argument insertion. One fresh independent high-reasoning P1 review completed 1/1 pass, returned scoped-clean, exited 0, and reported zero provider or accepted findings. The frozen test SHA256s are c997221b95b1136d6d49c6c34d33f3be525adcb89ff2787aec864657969f1fc9 and 7797300623dc2ae5367affb46408888e0505a9dc25d56111c9aad74d9480656f; the 1,169-byte review receipt SHA256 is 4dec4e4b1b3ec2baa393bd16a713601b9785895e92c94afcd21a82ac1a78a299. These are scoped source checks, not native qualification.
  • FAILED: Scoped native run 34410252300, attempt 1 of shared-openclawkit-periphery.yml via workflow_dispatch, completed at 2026-09-09T22:32:17Z for exact candidate d18cb5b0ea98e91fa7f2c2ec40e8a793acdcdeda. Both consumer compilation/scans passed: macOS actual status 0, 404 findings/402 unique finding IDs; iOS actual status 0, 257 findings/269 normalized IDs; both stderr files were empty. The reducer exited 1 with nine shared dead-code findings, not compiler errors: two unused conveniences and seven redundantPublicAccessibility findings on OpenRunIntent. This is successful consumer compile/static evidence at d18, not current-head proof, emitted App Intents metadata, installed discovery, runtime tests, or complete native qualification.
  • The four-file native-action surface repair passed normal SwiftFormat 0.63.0 and formatter lint, strict SwiftLint 0.65.1 under both the shared configuration and the actual inherited iOS configuration, Swift parsing, diff checking, and exact source-transformation audits; all exited 0. The unchanged production remainder, public entry points, and test assertions were verified. Source-extracted production identity/host/intent declarations typechecked at the actual macOS 15 deployment floor (exit 0), without replacements or a full package build. One independent high-reasoning P1 review completed 1/1 pass, returned scoped-clean, exited 0, and reported zero provider or accepted findings. All four source hashes remained frozen; the 1,007-byte review receipt SHA256 is 7b10cfd18522b2855feb5eb5674d993ee8e617278376b5bed3dc85e73ec3920e. Those source checks are distinct from the successful hosted consumer build/static result below and do not prove metadata emission or installed action discovery.
  • PASS, scoped consumer build/static only: Native run 34413927136, attempt 1 of shared-openclawkit-periphery.yml (workflow 311934210) via workflow_dispatch, succeeded at exact candidate 2b4f84e18766d8f0463044345bee8676f936823e; the terminal run was updated at 2026-09-09T23:10:44Z, with all jobs complete. iOS actual scan status was 0, with 248 findings/260 normalized IDs; macOS actual status was 0, with 395 findings/393 normalized IDs. Both stderr files were zero bytes. Exactly the preceding nine intersection IDs were removed from both reports, with no new IDs. The reducer exited 0 and its intersection was []. This is exact-head consumer build/static proof, not native test execution, an explicit App Intents metadata emission/packaging receipt, signed installed-app discovery, upgrade proof, or full native qualification.
  • Artifact receipts for that run: iOS artifact 10128956258, JSON 121,190 bytes, SHA256 0286f96ed9e13552eda5a06830109f34d466f665fa28eede8f02b8d72f5f7b47; macOS artifact 10128658943, JSON 189,921 bytes, SHA256 40b04dced3a44ea0687ebf786efaa848db2758b9489a3e673873d02892969e31; intersection artifact 10128976356, JSON 3 bytes, SHA256 37517e5f3dc66819f61f5a7bb8ace1921282415f10551d2defa5c3eb0985b570.
  • ClawSweeper revision 11 reviewed exact head 2b4f84e18766d8f0463044345bee8676f936823e at 2026-09-09T22:55:50.622Z; its completed comment was updated at 2026-09-09T22:56:41Z. It established no new concrete code bug or accessibility/metadata finding, while retaining final-effect authority, accepted-input custody/uninstrumented ACK, metadata and signed-install/upgrade proof, and security-owner acceptance gaps. This automated review is distinct from the scoped local review above. The accompanying fresh GitHub snapshot recorded zero formal reviews, review requests, and review threads, with no human security-owner acknowledgment. Neither automated review nor the successful static workflow supplies that acceptance.
  • The downstream scene integration owner confirmed no held or committed direct OpenRunIntent imports. This is source-compatibility coordination, not security-owner acceptance or installed-action discovery proof.
  • The focused Swift attempt at 6e866858d866e99fe4da6f91c1c840dac8874b56 joined with exit 1 after 55.818s; all three selected tests were UNRUN. Manifest-cache and nested-sandbox issues were resolved under the unchanged outer sandbox, but compilation could not find Testing through the CLT framework search path. The unchanged test target also has six unconditional XCTest imports, and XCTest is absent from CLT. A full-Xcode test host is required; this is an infrastructure block, not a product test failure. Protected inputs remained unchanged; only normal build-cache outputs changed.
  • An earlier four-file backend attempt at 6e866858d866e99fe4da6f91c1c840dac8874b56 stopped with 55 passes and one initial bound-ACK timeout; two sibling files were not reached. A subsequent temporary diagnostic had 7 passes and did not reproduce the timeout; its instrumentation was removed.
  • The uninstrumented WebSocket regression at exact 51c95287ac02e3c42ce5eb10ec927dd919d3ca76 exited 1: 6 tests passed and one failed on the initial bound ACK's 10-second timeout. The two sibling files were again not reached in that command. Separate uninstrumented runs at the same exact head then passed all 39 configuration pending-input tests and all 116 reply-registry tests (155 total).
  • A second temporary owner-timing diagnostic at the 51c95287ac02e3c42ce5eb10ec927dd919d3ca76 baseline exited 0 with 7/7 tests passing in 235.94 seconds wall time. Both instrumented files were restored to the clean baseline. The timeout was not reproduced; this is diagnostic evidence, not uninstrumented WebSocket qualification, a root-cause conclusion, or a fix claim. The later exact-head native consumer build/static pass does not supply backend runtime, uninstrumented ACK, or installed-app proof.

Named follow-up: Native App Intents localization

The existing native-i18n extractor misses typed intent/entity/enum metadata, including legacy StartLiveVoice metadata and the new session-operation labels. Shared-catalog routing and localized Shortcuts are not proved by the earlier i18n guard. Parser expansion is outside this checkpoint and remains a follow-up.

Named follow-up: Watch audio concurrency warnings

The hosted output surfaced 11 unique audio-concurrency warnings in untouched Watch files. They remain a separate owner-review follow-up, not an established runtime-bug claim; this checkpoint makes no Watch source changes.

Named follow-up: redundant test requirements

The preceding iOS output also reported redundant #require warnings in untouched ShareToAgentDeepLinkTests.swift:34 and :50. Together with the 11 Watch warnings above, that output contained 24 warning occurrences and 13 unique warnings. These are nonblocking owner follow-ups; no warning cleanup is included.

Recomputed from actual numstat for a57c799c86dfa3b08e1994b75700bda6ffced01f..2b4f84e18766d8f0463044345bee8676f936823e, not the historical fork base or checkpoint parent:

Category Files Added Removed
Production 81 5,311 1,022
Tests and test support 33 6,627 114
Docs 4 157 2
Tooling, including the project metadata line 3 142 3
Generated 3 27 8
Total 124 12,264 1,149

The scoped exact-head native consumer workflow is complete. The unchecked exact-head CI acceptance item below still covers broader required CI; the remaining composite acceptance gates are not satisfied by compilation/static scans.

Required proof and acceptance: all pending

  • Exact-head CI.
  • Complete qualified native builds and App Intents metadata extraction/packaging.
  • Signed, installed iOS and macOS apps discoverable in Shortcuts.
  • Actual physical-iOS Siri and macOS 26 Spotlight invocation.
  • Warm/cold open, compose/send, inspect, and exact-destination continuation.
  • Two-Gateway, agent, and session isolation, including foreground/account changes.
  • Duplicate invocation behavior without unintended sends, including the OS redelivery proof limit.
  • Actual approval and denial flows.
  • Offline, disconnected, unconfigured, rejected, and uncertain outcomes are visible and recoverable.
  • Long-running accepted work continues in its exact session; inspection does not claim completion from acceptance.
  • Execute the new real-WebSocket native macOS client reconnect/custody regression with bound and omitted profile preconditions; runtime boundary proof remains pending.
  • Security-owner acceptance of the bounded contract.

Final-effect authority traces and fresh-install/upgrade native packaging with signed-app proof remain pending. Full native qualification and signed-device capacity remain pending. Scoped Swift/backend validation does not authorize broad manual draft CI, which still awaits explicit operator approval because it forces Node, Windows, Android, and UI lanes outside the currently approved scope. No release, merge, or auto-merge is authorized. No logs, attachments, or public media are included.

Punchcard-Session: amber-timber-workshop-bk

Punchcard-Session: amber-timber-workshop-bk
Original-Commit: 31470a8
Punchcard-Session: amber-timber-workshop-bk
Punchcard-Session: amber-timber-workshop-bk
@vincentkoc vincentkoc self-assigned this Sep 9, 2026
@clawsweeper

clawsweeper Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: android App: android app: ios App: ios app: macos App: macos app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels Sep 9, 2026
@clawsweeper

clawsweeper Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 9, 2026, 7:20 PM ET / 23:20 UTC (Revision 12).

ClawSweeper review

What this changes

Adds iOS and macOS Shortcuts actions for selected conversations and runs, with account-bound Gateway requests, native chat integration, and App Intents metadata packaging.

Merge readiness

⛔ Blocked before merge - 9 items remain

Keep open. The selected-conversation capability remains useful and is not established on main. This same-head follow-up verifies successful native compilation/static checks, but the previously identified authority proof and security-owner acceptance gaps remain; no new concrete code defect was established.

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

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The exact-head static pass improves implementation confidence, but unresolved authority proof still limits readiness.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: Authority-chain proof required: the native routers, Gateway guards, and transcript writer still lack completed allowed-account, wrong-account, and revoked host/session final-effect results. The complete hash-matching body reports static success and diagnostic passes, but an uninstrumented bound-ACK timeout remains unresolved. Ordinary disconnect is not revocation; already-issued WebRTC credential revocation remains outside the stated contract. This MEMBER-authored PR is assessed here only against the scoped authority requirement. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: the native routers, Gateway guards, and transcript writer still lack completed allowed-account, wrong-account, and revoked host/session final-effect results. The complete hash-matching body reports static success and diagnostic passes, but an uninstrumented bound-ACK timeout remains unresolved. Ordinary disconnect is not revocation; already-issued WebRTC credential revocation remains outside the stated contract. This MEMBER-authored PR is assessed here only against the scoped authority requirement. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 10 items Complete matching PR body: Retrieved the complete 32,951 UTF-16-unit body and verified SHA256 924e2b4b1ac7fdfa5567522aa16dccffca61faab4635b71850551899604f58aa against the supplied snapshot. It explicitly retains pending final-effect authority traces, uninstrumented reconnect qualification, installed-app/upgrade proof, and security-owner acceptance.
New successful static validation: GitHub confirms https://github.com/openclaw/openclaw/actions/runs/34413927136 completed successfully at the exact reviewed head. The matching body reports successful iOS/macOS consumer scans and an empty shared dead-code intersection, explicitly excluding runtime tests and installed metadata discovery.
Account binding and response publication: The introduced binding compares the authenticated canonical profile with the exact selected profile and guards response publication. Gateway dispatch composes this assertion into pre-dispatch and method commit guards.
Findings None None.
Security Needs attention Qualify retained authority at final effects: The patch separates request selection from accepted-input custody and carries checks through dispatch, queues, and transcript writes. Wrong-account and revoked host/session rejection at the final side effect remain unqualified; this is a proof gap, not an established bypass.

How this fits together

Native actions turn saved Shortcuts or Spotlight selections into requests through the authenticated app connection. Gateway authorization and transcript owners control execution, while native chat presents the selected conversation and observed run outcome.

flowchart TD
  A[Shortcuts or Spotlight] --> B[Saved conversation selection]
  B --> C[Native action router]
  C --> D[Captured account and connection]
  D --> E[Gateway authorization checks]
  E --> F[Chat execution and transcript]
  E --> G[Unavailable or uncertain outcome]
  F --> H[Selected chat and run inspection]
Loading

Decision needed

Question Recommendation
Does secops accept the bounded profile-binding contract, including accepted-input custody surviving account selection changes while host/session revocation remains enforced? Qualify the bounded contract: Retain the proposed boundary and accept it only after allowed, wrong-account, and revoked host/session final-effect evidence is reviewed.

Why: The operator-approved feature direction does not establish security-owner acceptance of the changed authority lifetime; both the PR and its linked request explicitly reserve that decision.

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: the native routers, Gateway guards, and transcript writer still lack completed allowed-account, wrong-account, and revoked host/session final-effect results. The complete hash-matching body reports static success and diagnostic passes, but an uninstrumented bound-ACK timeout remains unresolved. Ordinary disconnect is not revocation; already-issued WebRTC credential revocation remains outside the stated contract. This MEMBER-authored PR is assessed here only against the scoped authority requirement. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve security concern: Qualify retained authority at final effects - The patch separates request selection from accepted-input custody and carries checks through dispatch, queues, and transcript writes. Wrong-account and revoked host/session rejection at the final side effect remain unqualified; this is a proof gap, not an established bypass.
  • Resolve merge risk (P1) - Account-bound requests and retained input custody cross authorization lifetimes; completed evidence does not yet establish rejection of wrong-account or revoked host/session authority before final writes and publication.
  • Resolve merge risk (P1) - Mac packaging now stops without full Xcode or valid extracted metadata; signed fresh-install and upgrade behavior, including existing Siri live voice and QuickChat, remains unverified.
  • Resolve merge risk (P1) - The recorded uninstrumented reconnect test timed out waiting for the initial bound ACK; diagnostic passes have not established its cause or qualified the unchanged runtime path.
  • Complete next step (P2) - Obtain secops acceptance and complete the declared authority, reconnect, metadata, and signed-install/upgrade evidence. Redacted terminal output or logs can prove authority behavior; remove credentials, IP addresses, phone numbers, and private endpoints before updating the PR body.
  • 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.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

  • [medium] Qualify retained authority at final effects — src/gateway/server-methods/session-mutation-guards.ts:14
Agent review details

Security

Needs attention: No concrete exploit was established; the material account-binding and custody changes still need security-owner acceptance and final-effect proof.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Protocol contract 2 optional frame fields and 1 capability; no protocol-version bump Capability negotiation must keep existing unbound clients working while native actions require account binding.

Stored data model

Persistent data-model change detected: serialized state: src/sessions/user-turn-transcript.ts, unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #142950
Summary: This draft is the explicitly identified implementation candidate for the open native-actions request.

Members:

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

Merge-risk options

Maintainer options:

  1. Complete boundary and upgrade qualification (recommended)
    Keep the draft pending security-owner acceptance, final-effect authority traces, uninstrumented custody success, and signed packaging/install/upgrade evidence.
  2. Pause the native integration
    Leave the draft open if the required security or native-device qualification cannot yet be completed.

Technical review

Best possible solution:

Keep one native action path through existing chat and authorization owners, with security-owner-approved custody semantics and demonstrated fresh-install/upgrade compatibility.

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

Not applicable: this adds a native workflow rather than repairing a claimed shipped regression; the recorded ACK timeout remains an unresolved validation result.

Is this the best way to solve the issue?

Provisionally yes: reusing existing chat, authorization, idempotency, and bounded history owners avoids a parallel execution ledger, but authority and upgrade qualification are incomplete.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded native workflow enhancement, with no demonstrated urgent shipped regression.
  • merge-risk: 🚨 compatibility: The new mandatory metadata packaging path and shared native chat changes still need fresh-install and upgrade qualification.
  • merge-risk: 🚨 security-boundary: Account selection, retained custody, and final publication require evidence that stale or unauthorized authority cannot reach side effects.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: the native routers, Gateway guards, and transcript writer still lack completed allowed-account, wrong-account, and revoked host/session final-effect results. The complete hash-matching body reports static success and diagnostic passes, but an uninstrumented bound-ACK timeout remains unresolved. Ordinary disconnect is not revocation; already-issued WebRTC credential revocation remains outside the stated contract. This MEMBER-authored PR is assessed here only against the scoped authority requirement. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [medium] Qualify retained authority at final effects — src/gateway/server-methods/session-mutation-guards.ts:14
    The patch separates request selection from accepted-input custody and carries checks through dispatch, queues, and transcript writes. Wrong-account and revoked host/session rejection at the final side effect remain unqualified; this is a proof gap, not an established bypass.
    Confidence: 0.93

What I checked:

  • Complete matching PR body: Retrieved the complete 32,951 UTF-16-unit body and verified SHA256 924e2b4b1ac7fdfa5567522aa16dccffca61faab4635b71850551899604f58aa against the supplied snapshot. It explicitly retains pending final-effect authority traces, uninstrumented reconnect qualification, installed-app/upgrade proof, and security-owner acceptance. (2b4f84e18766)
  • New successful static validation: GitHub confirms https://github.com/openclaw/openclaw/actions/runs/34413927136 completed successfully at the exact reviewed head. The matching body reports successful iOS/macOS consumer scans and an empty shared dead-code intersection, explicitly excluding runtime tests and installed metadata discovery. (2b4f84e18766)
  • Account binding and response publication: The introduced binding compares the authenticated canonical profile with the exact selected profile and guards response publication. Gateway dispatch composes this assertion into pre-dispatch and method commit guards. (src/gateway/expected-profile.ts:28, 2b4f84e18766)
  • Accepted-input authority boundary: Accepted input retains host/session assertions separately from the request's account-selection precondition. Fresh transcript writes receive a synchronous commit assertion; ordinary disconnect is intentionally distinct from authority revocation. (src/gateway/server-methods/session-mutation-guards.ts:12, 2b4f84e18766)
  • Reconnect test and observed qualification gap: The added WebSocket scenario checks retained transcript custody, wrong-profile rejection, reconnection, and replay. The matching body reports an uninstrumented initial bound-ACK timeout, followed by diagnostic-only passes; it does not claim successful uninstrumented qualification. (src/gateway/server.chat-abort-dispatch-rejection.test.ts:118, 2b4f84e18766)
  • Native packaging compatibility: Packaging now requires appintentsmetadataprocessor and extracts metadata before signing. The new full-Xcode requirement and fail-closed metadata checks are documented, but the body explicitly leaves packaging and signed fresh-install/upgrade evidence pending. (scripts/package-mac-app.sh:255, 2b4f84e18766)

Likely related people:

  • openclaw/openclaw-secops: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Jason (Json): 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.

  • Provide redacted final-effect traces for allowed, wrong-account, and revoked host/session cases, including successful uninstrumented reconnect/custody behavior.
  • Complete metadata packaging and signed-app fresh-install/upgrade checks, preserving Siri live voice and QuickChat.
  • Update the PR body with evidence to trigger re-review; if needed, ask a maintainer to comment @clawsweeper re-review.

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 (11 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-09T18:34:11.733Z sha 51c9528 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-09T19:16:48.258Z sha 51c9528 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-09T19:53:36.455Z sha 74895f5 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-09T20:25:27.735Z sha 1a9e405 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-09T20:53:13.213Z sha 96bd76f :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-09T21:24:39.306Z sha ddfbfca :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-09T22:15:43.495Z sha d18cb5b :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-09T22:55:50.622Z sha 2b4f84e :: needs real behavior proof before merge. :: none

Punchcard-Session: amber-timber-workshop-bk
Draft candidate checkpoint. Focused Swift tests remain unrun due infrastructure; installed-app proof remains pending.

Punchcard-Session: amber-timber-workshop-bk
Draft candidate checkpoint. Add bound and omitted-profile WebSocket coverage for accepted-input custody across reconnect. Focused Swift tests remain unrun due infrastructure; installed-app proof remains pending.

Punchcard-Session: amber-timber-workshop-bk
@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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 9, 2026
Punchcard-Session: amber-timber-workshop-bk
Punchcard-Session: amber-timber-workshop-bk
Punchcard-Session: amber-timber-workshop-bk
Punchcard-Session: amber-timber-workshop-bk
Punchcard-Session: amber-timber-workshop-bk
Punchcard-Session: amber-timber-workshop-bk
Punchcard-Session: amber-timber-workshop-bk
Punchcard-Session: amber-timber-workshop-bk
Punchcard-Session: amber-timber-workshop-bk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: android App: android app: ios App: ios app: macos App: macos app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR 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. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant