Skip to content

feat(apple): return replies from Ask OpenClaw - #147668

Draft
vincentkoc wants to merge 1 commit into
feat/ios-conversation-voice-20260909from
feat/apple-siri-ask
Draft

vincentkoc wants to merge 1 commit into
feat/ios-conversation-voice-20260909from
feat/apple-siri-ask

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Current refactored stack — unqualified update

Shares prepared destination/message confirmation with Send. Ask submits once, preserves the original continuation, and returns only the accepted exact run’s bounded recorded response. Its base is now the voice layer.

Head: e87d1c778897067b905119d2191187039c451a28
Base: ad6c8a11755e7b89d9ee41dfc80f2dbf9e429b01

iOS #143610 → macOS #143615 → Voice #143631 → Ask #147668 → Status #192503 → Preview #192504

Independent exact-head source re-review resolved the voice API blockers and found no additional blocking finding. This is not GitHub approval, full-app qualification, or merge/release clearance. Existing draft/open state is preserved; a lower PR’s non-draft state is not readiness evidence.

Available proof: shared OpenClawKit build; six focused shared tests; shared-intent metadata validation; ten shared boundary assertions. The corrected binding and seven affected call expressions typecheck with real shared Gateway types and explicit ChatUI/media shims; both original-defect negative controls fail as expected. Twelve extracted lifetime assertions and 47 syntax checks pass. These limited harnesses do not compile or run the full voice/app sources.

Still unverified: full iOS/macOS builds and native/voice/Gateway/status suites; installed Shortcuts, real confirmation/approval and device audio; SDK 27.3 macro-active compilation, compiled/packaged Skills and release archives. Six inherited lint errors and documented warnings remain. Old CI below is historical, not current-head qualification.

Previous description and historical evidence — superseded where inconsistent above

Related: #142950

What Problem This Solves

Siri and Shortcuts can send a message to OpenClaw, but the existing Send Message action returns an accepted run instead of its answer. Ask OpenClaw now returns the exact run's recorded reply preview on iOS and macOS, with a spoken summary and a continuation to that chat.

Why This Change Was Made

The new public App Intent reuses the selected conversation's prepared submission, local-device authentication, destination confirmation, and captured Gateway connection/profile. It observes canonical agent.wait completion; it never chooses the newest history message. Waiting or cancelling the shortcut does not abort accepted work or resend the question.

This draft is stacked on #143615 and depends on the Gateway reply projection repair in #147656. The stack must be composed and qualified before landing. Generated-file results will follow in a separate layer.

User Impact

Ask OpenClaw is discoverable in both apps' Shortcuts catalog. It waits up to 25 seconds and returns the Gateway's bounded 4,096 UTF-16-unit reply preview. Long-running, silent, empty, unavailable, and failed outcomes produce an explicit status with the exact-run continuation. Open the chat for the full response.

Evidence

  • Independent source review and fresh automated review through P2 found no actionable findings. Targeted production SwiftLint, SwiftFormat, Markdown formatting, shell syntax, and diff checks passed. An explicit lint of the existing Mac wire test also reports two unchanged baseline diagnostics outside the new code; the normal production lint scope excludes that test.
  • A minimal Xcode 26.6 compiler/extractor probe confirmed the real metadata schema for String output, explicit local-device authentication, app opening, and the optional intent description. The package metadata check now verifies those fields in both the shared package and packaged app.
  • Added deterministic cancellation during the final authority check, exact-run/profile response and UTF-16 bound cases, and both production native-router Ask wire calls including replay identity.
  • Pending before landing: the composed Gateway fix; shared/native tests and both production-router wire suites; real packaged metadata; isolated installed Shortcuts discovery and invocation, including cold start, authentication, dialog, returned text, and continuation. No native runtime or live-provider result is claimed by this draft. Native CI will run on the composed stack head.

@vincentkoc vincentkoc self-assigned this Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 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: ios App: ios app: macos App: macos scripts Repository scripts size: M maintainer Maintainer-authored PR labels Sep 14, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 5, 2026, 11:35 AM ET / 15:35 UTC (Revision 3).

ClawSweeper review

What this changes

Adds an Ask OpenClaw action to iOS and macOS Shortcuts that returns the selected run’s recorded reply preview or status, spoken dialog, and chat continuation.

Merge readiness

⛔ Blocked before merge - 3 items remain

This PR still provides a distinct native capability absent from current main. No introduced correctness defect was identified; the maintainer-owned stack remains unqualified for landing.

Priority: P2
Reviewed head: a262d0236e6a579def60722f444c079018f7793a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The implementation is focused and has meaningful contract coverage; composed-stack and installed native qualification remain separate landing gates.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER author is exempt from the external-contributor proof gate. The Xcode probe supports metadata schema claims, but does not demonstrate the new Ask entrypoint on installed apps; repository-required native qualification remains pending. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER author is exempt from the external-contributor proof gate. The Xcode probe supports metadata schema claims, but does not demonstrate the new Ask entrypoint on installed apps; repository-required native qualification remains pending. No stored-data contract changes.
Evidence reviewed 10 items Pinned introduced change: Reviewed the merge-base-to-head delta, rather than attributing differences from current main to this PR. The exact original head records parent 5084f0b.
Authenticated native entrypoint: Ask requires local-device authentication, prepares the selected conversation before destination confirmation, and returns the result through the existing run continuation.
Exact-run reply and cancellation handling: The wait uses the captured profile and connection, checks retirement after the response, and propagates cancellation without aborting or resending accepted work. Decoding requires byte-exact run identity and accepts visible replies only within 4,096 UTF-16 units.
Findings None None.
Security None None.

How this fits together

Apple’s Siri and Shortcuts actions submit questions through OpenClaw’s authenticated native chat connection. The Gateway records run completion and replies, which the new action converts into text and a continuation to the selected chat.

flowchart TD
 A[Siri or Shortcuts question] --> B[Selected conversation]
 B --> C[Authentication and confirmation]
 C --> D[Prepared native submission]
 D --> E[Gateway run completion]
 E --> F[Exact run and connection checks]
 F --> G[Reply preview or explicit status]
 G --> H[Selected chat continuation]
Loading

Before merge

  • Resolve merge risk (P1) - The pinned head excludes the merged Gateway reply repair and depends on unmerged iOS and macOS foundations; the combined implementation has not been qualified at one landing head.
  • Resolve merge risk (P1) - Packaged metadata and installed warm/cold Shortcuts discovery, authentication, confirmation, returned text, and exact-chat continuation remain unverified for Ask.
  • Complete next step (P2) - Compose the native foundations and merged Gateway repair, then qualify Ask with shared/native tests, both router wire suites, packaged metadata, and installed warm/cold Shortcuts invocation.
Agent review details

Security

None.

PR surface

Docs +16, Other +363. Total +379 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 2 17 1 +16
Config 0 0 0 0
Generated 0 0 0 0
Other 10 386 23 +363
Total 12 403 24 +379

Review metrics

Metric Value Why it matters
Production versus test growth Production net +146 lines; tests net +198 lines Production growth implements the explicit reply result and existing-owner integration, with separate coverage for identity, bounds, cancellation, and platform wiring.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep reply selection with the canonical Gateway run owner and qualify the native action on the composed stack before exposing it in packaged apps.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep reply selection with the canonical Gateway run owner and qualify the native action on the composed stack before exposing it in packaged apps.

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

Not applicable: this adds a native reply-returning capability rather than repairing a demonstrated shipped bug; installed invocation remains pending.

Is this the best way to solve the issue?

Yes: reusing prepared submission and canonical exact-run completion avoids a competing reply-selection mechanism or guessing from recent chat history.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • remove rating: 🦞 diamond lobster: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: This is a useful bounded Apple workflow addition, with no demonstrated urgent shipped regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER author is exempt from the external-contributor proof gate. The Xcode probe supports metadata schema claims, but does not demonstrate the new Ask entrypoint on installed apps; repository-required native qualification remains pending. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: 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.

  • Compose the native foundations and merged Gateway reply repair, then execute the shared tests and both production-router wire suites at that head.
  • Verify packaged Ask metadata and installed warm/cold invocation, including authentication, dialog, returned text, and exact-chat continuation.

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 (2 earlier review cycles)
  • reviewed 2026-09-14T01:35:42.144Z sha a262d02 :: blocked before merge. :: none
  • reviewed 2026-09-24T01:56:03.934Z sha a262d02 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 24, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Oct 5, 2026
@vincentkoc
vincentkoc changed the base branch from feat/macos-conversation-actions-20260909 to feat/ios-conversation-voice-20260909 November 4, 2026 03:37

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios app: macos App: macos docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant