Skip to content

feat(siri): App Intents + Spotlight personal context for macOS and iOS - #19133

Merged
Git-on-my-level merged 76 commits into
mainfrom
feat/siri-app-intents
Sep 28, 2026
Merged

Git-on-my-level merged 76 commits into
mainfrom
feat/siri-app-intents

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds Siri and Apple Intelligence App Intents integration to Omi on native macOS and Flutter iOS: personal context entities in Spotlight, explicit voice actions, and screen context. This single PR covers both platforms. Ask Omi is deferred.

Shared contract

contracts/siri/README.md defines backend entity IDs, omi:// links, index scope, write semantics, spoken failures, intent phrases, donations and telemetry. ConversationEntity is the sole .notes.note type. A processor compile spike proved that a second note type causes an export error, so Spotlight uses a custom MemoryEntity. The .notes.createNote intent must return a note: it returns ConversationEntity(id: memory backend ID, folder: Memories). System reindex can therefore create a Notes representation alongside the custom memory representation. This is the one required dual-representation exception; both platforms centralize removal of the two representations for each memory ID, and full named-index wipes remove both. Remember has both a custom App Shortcut path and .notes.createNote in Memories for device comparison.

Classic Remember and Start/Stop shortcuts are available on iOS 16+ and the macOS 14 deployment floor. Remember uses openAppWhenRun=false for engine-free execution on older iOS; listening opens the app for its Flutter capture controller. supportedModes remains on iOS/macOS 26+. Spotlight entity indexing and the schema intents remain iOS/macOS 27+: the iOS 18 IndexedEntity API alone cannot represent this PR's 27-only conversation/task note and reminder schemas or 27-only IndexedEntityQuery reindex API. Supporting 18–26 fully would require a second entity/query/link mapping for those objects, adding privacy-sensitive duplicate index paths. The single owner, eligibility and wipe path stays authoritative. This trade-off is written into the shared contract.

Product invariants: INV-AUTH-1, INV-DATA-1, INV-BETA-1, INV-NAV-1, INV-MEM-1, INV-TASK-1, INV-UI-1, INV-UI-2, INV-UI-3. The integration binds indexed content to the active account, uses the existing backend routing, leaves Beta admission and production bundles untouched, and uses existing settings controls.

Why iOS uses UIScene

This is required by the Xcode 27/iOS 27 SDK build needed for the Siri notes/reminders schemas, not by a particular intent. Apple TN3187 and Flutter's UIScene adoption guide describe the requirement. Removing only UIApplicationSceneManifest from the iOS 27 simulator dev bundle made UIKit log Application failed to launch: UIScene life cycle is required for apps built with this SDK; the Siri probe never started. AppDelegate-only is therefore not a runnable Xcode 27 build. The scene delegate remains a thin FlutterSceneDelegate subclass: cold URL contexts and universal-link activities reach AppLinks before Flutter starts; Google OAuth callbacks also reach the existing AppDelegate plugin dispatcher after registration; super.scene preserves scene-aware plugins. Notification and background process handlers remain in AppDelegate.

Write-path checklist (review ten)

The Siri index is a projection of confirmed, account-owned server/cache state. These are the mutation entry points found by searching the Flutter providers, native intents, macOS GRDB stores, callers in UI/notification/MCP paths, and account reset flows. A hook with an eligibility query may remove an item as well as upsert it. Test names in parentheses refer to the review-nine regression suite; older tests cover the existing hooks.

Entity / path iOS Flutter / native index hook and test macOS index hook and test
Conversation create, processing/status, title, summary, folder, visibility or lock edit; sync/refresh, MCP-triggered refresh ConversationProvider add/update/synced methods, detail title and first-party summary saves, and completed fetch -> upsertConversations or scoped reconcileConversations (conversation detail summary/title, mutation and authoritative fetch tests) TranscriptionStorage server sync, completion, title and folder edits, and ConversationRepository batch -> conversationChanged(s) and eligible query (conversation repository/reconciliation tests); local in-progress rows lack a server ID and are ineligible
Conversation swipe delete, undo, failed DELETE, server/bulk/merge delete optimistic deleteConversationLocally -> delete; undo/failure -> await pending native delete, then ordered upsert; merge notification onMergeCompleted -> delete removed IDs and upsert confirmed merged row (merge mutation test) deleteSession/deleteByBackendId -> delete; sync-prune -> delete by missing eligible query (conversation reconciliation tests); no desktop conversation undo path
Memory create (UI/offline sync), edit, review/reject, use feedback, revert/restore, visibility (single/bulk), dismiss/archive MemoriesProvider create/pending sync/edit/review/revert/visibility and guided onboarding create -> confirmed upsert or delete; owner-wide fetch -> reconcile; a filtered useful-now fetch stays additive even if its later ledger-history request fails (memory mutation, authoritative fetch, unloaded edit, guided IO tests). Unloaded ledger edits remove stale IDs and refresh authoritatively MemoryStorage markSynced/sync/updateContent/updateDismissed/restore/visibility (single and scoped bulk) -> changed IDs or delete; Siri Remember uses a separate owner-authorized GRDB write lease so a switch during the await commits/indexes nothing (effective-owner database boundary test); batch sync/prune -> bounded changed/deleted IDs; ineligible reindex deletes both custom and Notes representations, while eligible edits and full rebuild refresh both (memory tier/bulk visibility/batcher and representation parity tests)
Memory single/soft/bulk/delete-all and account data reset deleteMemory -> delete; undo/failed backend delete -> upsert; successful deleteAllMemories -> clear owner memory snapshot/index, offline pending queue, cache, and undo tombstone; account change/sign-out/delete account -> owner-fenced wipe (memory mutation/account tests) MemoryStorage.deleteMemory, soft-delete by conversation, orphan prune, deleteAll -> centralized two-representation delete; expiry does the same; account change/sign-out/delete account -> full named-index wipe (memory storage/index lifecycle and representation tests)
Task create, title/due/completion edit, local upload and sync, notification/MCP refresh ActionItemsProvider confirmed mutations -> awaited upsert; independent paginated refresh -> reconcile; Apple Reminders external batch -> awaited owner-wide refresh before its confirmed deletes; native Create/Complete -> owner-fenced confirmed response upsert then Flutter event when live (task mutation/Apple sync/native probe) ActionItemStorage.syncTaskActionItems, dashboard visibility reconciliation, local upload and field/completion updates -> changed IDs and eligible query (task mutation/storage tests)
Task single, staged, bulk, completed purge and absent-from-server delete provider delete/commit/bulk/clear completed -> delete; staged Undo awaits native re-upsert; complete unmasked, fully decoded pages alone reconcile absent IDs, while partial pages remain additive (task mutation/Apple sync/authoritative fetch tests) ActionItemStorage hard/soft/staged/bulk/absent prune -> deleted IDs (task storage/bulk-delete tests)
All entities: sign-out, UID switch, toggle OFF, launch/OS upgrade AuthService makes a bounded best-effort native prepareForSignOut call for explicit sign-out, account deletion/expiry and provider switches. This fast call bypasses both index queues: it revokes the token mirror, flushes the pending marker, then sets the in-memory fence, attempting every step independently. Runner also observes the same native FirebaseAuth instance; a definitive signed-out or different-UID state runs the fence even if Pigeon never delivers. Its initial read synchronizes with FirebaseAuth's saved-user work queue; an unresolved nil while protected data is locked temporarily denies Siri without destroying the index. Entity queries/intents require both a live mirror and no pending owner. Failure or timeout is logged and cannot block Firebase sign-out. AuthProvider.accountChanged completes the serial wipe; launch retries a persisted marker (auth throw/hang tests and engine-free Auth emulator probe). OFF removes Spotlight and launch prunes expiry. SiriIndexLifecycle.ownerChanged -> wipe/rebuild. A persisted wipe journal blocks every index operation after deletion failure and retries on launch, owner change or toggle-on (injected deletion test). macOS below 27 wipes the legacy named index; 27+ rebuilds on launch/upgrade.
All entities: system-requested individual/full reindex IndexedEntityQuery captures owner, then enters SiriSnapshotStore serial gate for eligibility, incremental Spotlight write or full rebuild; a concurrent wipe finishes last (source regression test and iOS 27 simulator race probe) Query passes IDs and captured owner to SiriIndexer, which reads current eligible records only after acquiring its operation slot, removes missing IDs, then writes. Wipe waits for the operation; a same-account delete cannot be undone by an older query read (Swift build/indexer tests, source audit).

Review fourteen changes only Siri indexing and listening paths; the pre-existing non-Siri behavior audit below is unchanged. The following do not alter indexed fields: read/star/baseline counters, task sort/indent, local audio segments, export, and navigation. UI and MCP refreshes converge through provider fetches; Apple Reminders, notification merge and native engine-free intents are explicit rows above. All iOS snapshot mutations and Spotlight writes now share one native serial gate; Dart index calls are awaited, and synchronous UI callbacks submit to an internally awaited chain. The review-ten tests include an empty-list merge notification, Apple Reminders refresh/delete ordering, memory and conversation Undo against delayed native deletes, a source check for direct unawaited index calls, and a simulator assertion that one upsert performs zero full rebuilds. The checklist includes these ordering paths. The merge handler now submits index deletion without delaying the original backend fetch or list update, then awaits those deletions before re-upserting the merged row; a red/green test held the Spotlight delete open to verify this ordering.

Audit of pre-existing non-Siri behavior (review ten)

Compared the PR against origin/main across Flutter providers, decoders, sync/navigation, and macOS GRDB models/stores. The changes below are the complete set with a possible effect outside Siri; the other edits in those files only add Siri hooks, annotations, injection seams or test coverage.

Existing path Disposition and reason
Conversation merge notification with an empty/filtered list Reverted regression. Removed the new list-membership early return. Merge state is cleared and the merged row is fetched as on origin/main, without waiting for Spotlight deletion; indexing uses the fetched backend ID, regardless of the visible list.
Auth token refresh Reverted regression. Restored the app's UID-distinct idTokenChanges listener. A separate Siri-only listener mirrors every refreshed token, avoiding repeated main-app identity side effects.
Firebase sign-out and provider switching Intentional bounded safety attempt. Normal sign-out, account deletion/forced expiry and both Apple credential-collision switches attempt a native Siri fence before Firebase sign-out, with a two-second ceiling and swallowed/logged failure. Runner's native FirebaseAuth listener independently fences a definitive sign-out or UID switch when the Pigeon call never arrives. The fence bypasses the native index queue; a persisted marker or absent mirrored token independently denies engine-free Siri. The existing Flutter auth-state callback still completes the Spotlight wipe. Android has no Siri operation.
Malformed conversation/memory visibility in Dart decoders Reverted regression. Ordinary app models again use the original private/public fallback. A separate siriVisibilityValid flag excludes malformed rows only from the Siri index and survives cache serialization.
Legacy macOS GRDB rows with null lock/visibility Reverted regression. UI conversion again defaults null lock to unlocked and null conversation visibility to private; the Siri predicate still examines the raw record and explicit private-state fields.
Confirmed offline memory creation Reverted extra UI replacement. The local draft retains its fields and receives only the server ID as on origin/main; Siri separately indexes the confirmed server row.
Optimistic conversation/memory delete and Undo Intentional. UI removal and restoration remain immediate. Their returned completion now waits for the native delete before restoring the index, so late deletes cannot erase a restored row. Confirmed or failed backend DELETE still controls the tombstone as before.
Memory delete-all and account reset Intentional. After confirmed server deletion, pending/cache copies and the Siri memory snapshot are cleared so an old local row cannot be indexed again. Sign-out/UID change still wipes the owner index.
Action item and memory mutations across account transitions Intentional. Session-generation checks prevent an old account's delayed server response from mutating the new account's provider and index. Partial bulk task deletion restores backend-rejected rows to the UI.
Bulk task deletion with another staged delete PR regression fixed. The new partial-bulk tombstone cleanup removed unrelated pending IDs, unlike the earlier origin/main path that did not alter those tombstones. It now removes only failed IDs from the current bulk batch. An incomplete typed page also retains staged tombstones until a full server page proves absence.
Apple Reminders sync Intentional ordering only. The same backend batch and deletes run, and the method now awaits index refresh before confirmed deletes. A failed backend update/delete still emits no corresponding index change.
macOS conversation/memory/task GRDB sync and projections Intentional. Post-commit hooks and bounded batches project only changed rows; stale privacy exclusions can tighten cached memory fields so a later rebuild cannot restore hidden data. Existing fetch and display defaults remain as above.
Memory current-page/history capability Intentional Siri-only correction. Reconciliation now captures the successful current page’s request/response scope before the separate ledger-history request; UI loading and capability handling are unchanged.
Home deep links Intentional. Siri aliases and by-ID task/memory resolution are additive. Existing conversation links now pin the current Firebase UID across the fetch to prevent cross-account navigation. The scene delegate retains existing cold-start plugin routing.

Verification by layer

Layer Evidence Result
SDK/metadata spike Xcode 27.0 swift build -Xswiftc -emit-const-values; appintentsmetadataprocessor on a throwaway SwiftPM package Compiled and emitted JSON metadata; two note schema types rejected during export
Compiled xcrun swift build --build-tests (macOS); flutter build ios --simulator --flavor dev --debug --no-codesign (iOS) Both passed with local Xcode 27; metadata export lists 12 macOS actions/8 entities and 13 iOS actions/8 entities
Unit-tested `xcrun swift test --filter 'SiriIntentServiceTests SiriIndexScopeTests
Repository gates env -u PROMPT OMI_PR_BODY_FILE=/Volumes/Ephemeral/scratch/worktrees/omi/siri-app-intents-PR.md make preflight Passed all 69 checks on the committed review-eight tree in 152.72 seconds, including line-count, format, test-quality, event-registry and release guards
macOS named dev bundle OMI_APP_NAME=omi-siri-intents … ./run.sh --full --yolo --no-wait; in-process -omi-siri-probe Bundle launched with loopback API and 12-action/8-entity metadata. App launch, before main-window appearance, started index maintenance. Synthetic memory indexed/fetched, deleted and verified absent, then index wiped; Open-list perform() emitted navigation notification
iOS 27 dev simulator flutter build ios --simulator -d 8E8F0310-BDC5-454C-99B1-CB83E1DECCD1 --flavor dev --debug --dart-define=OMI_APP_PROFILE=local_dev --no-codesign; opt-in xcodebuild … SWIFT_ACTIVE_COMPILATION_CONDITIONS=OMI_SIRI_PROBE build, temporary signed simulator bundle with loopback stub Review-six build and normal launch passed; App Intents metadata present; a single-process probe verified distinct Dev/prod snapshot filenames, all persisted keys, Keychain identifiers and Spotlight names, with synthetic two-namespace defaults writes. Engine-free Remember made a confirmed fake-token POST; Spotlight retrieval and donation passed. Review-four opt-in probe first reproduced an account-switch request reaching the local stub and an expired memory remaining in Spotlight after a simulated terminated interval. After the fix, the request is rejected before network I/O and launch maintenance removes the item. A further red simulator probe reproduced a failed OFF-toggle deletion leaving the item searchable (failedDisableRetriedOnLaunch=FAIL count=1); the final probe passed with count 0. Same-owner generation, synthetic link forwarding, route clearing, donation, authoritative removal, stale-UID rejection, wipe retry and typed HTTP dialogs passed. The normal scene launched with Flutter; metadata lists 13 actions/8 entities, and the normal binary has no probe strings
iOS 26.5 dev simulator Install and SIMCTL_CHILD_OMI_SIRI_PROBE_URL=http://127.0.0.1:8976/ xcrun simctl launch 7F64F7EE-5F25-44C3-9BA1-030E0FD6CDAD com.friend-app-with-wearable.ios12.development -omi-siri-probe Built with a 15.0 deployment floor, launched without Flutter engine, reported classicShortcuts=PASS, and RememberIntent.perform() returned Saved to Omi against the loopback stub. Siri voice phrase resolution was not tested
Review-seven eligibility and cutoff verification xcrun swift build --build-tests; xcrun swift test --filter 'SiriIntentServiceTests|MemoryAuthoritativeTierSyncTests|MemoriesCacheReconcilePruneTests|ConversationReconciliationPolicyTests|TranscriptionSessionRecordTests|ActionItemLocalIdentityMutationTests|APIClientAuthRetryTests'; flutter test test/services/siri_integration_test.dart test/providers/siri_authoritative_fetch_test.dart test/providers/siri_task_mutation_test.dart test/providers/conversation_pending_delete_test.dart; bash scripts/analyze_ratchet.sh; iOS 27 xcodebuild ... SWIFT_ACTIVE_COMPILATION_CONDITIONS=OMI_SIRI_PROBE build and simctl launch ... -omi-siri-probe; named macOS ./run.sh --full --yolo --no-wait and open -a ... --args -omi-siri-probe Xcode 27 macOS build and 78 focused tests passed; 33 Flutter tests and analyzer ratchet passed. The Dart eligibility table first failed for missing is_dismissed; the macOS table first caught rejected memory acceptance. Red tests also caught three conversation copies losing visibility and both single and batch stale-memory sync reviving rejected rows. A final field-by-field audit found empty backend IDs accepted by all three macOS predicates. It also tightened missing-tier eligibility; that latter ruling was incorrect for legacy backend rows and is corrected in the coordinator review below. The iOS no-engine timer probe first logged agedConversationTimer=FAIL agedTaskTimer=FAIL, then both PASS. It also passed fake-token Remember, Spotlight fetch and listening dialogs. Named macOS bundle shipped 12 actions/8 entities; Spotlight add/fetch/delete/wipe and Open-list intent passed. Teamless Mac donation still failed to contact the helper. Full flutter analyze reports 87 existing repository issues; no new diagnostics in changed Siri code
Review-eight changed-test inventory cd app && flutter test --no-pub $(git diff --name-only $(git merge-base origin/main HEAD)..HEAD -- test | sed s#^app/## | sort -u); cd desktop/macos/Desktop && xcrun swift test --filter 'ActionItemLocalIdentityMutationTests|ConversationReconciliationPolicyTests|ConversationRepositoryTests|LocalEmbeddingCapturePathTests|MemoryAuthoritativeTierSyncTests|SiriIntentServiceTests|TranscriptionSessionRecordTests'; xcrun swift build --build-tests; bash scripts/analyze_ratchet.sh All 7 changed Flutter test files passed 55 tests; all 7 changed Swift test classes passed 102 tests; Swift build and Dart analyzer ratchet passed. The previously omitted home_navigation_test.dart failed because the index predicate excluded legacy rows without a tier. An explicit-tier fixture made it pass but masked the production regression; the coordinator review restores the original fixture and fixes the predicate. New tests exercise owner-wide pagination, 429 backoff, partial/capped no-prune, truncation headers, invalidation cutoff, and eligible-before-cap selection.
Review-eight runtime flutter build ios --simulator -d 8E8F0310-BDC5-454C-99B1-CB83E1DECCD1 --flavor dev --debug --dart-define=OMI_APP_PROFILE=local_dev --no-codesign; temporary ad-hoc signed normal simulator launch; xcodebuild ... SWIFT_ACTIVE_COMPILATION_CONDITIONS=OMI_SIRI_PROBE build; signed no-engine simctl launch ... -omi-siri-probe; named macOS ./run.sh --full --yolo --no-wait and open -a ... --args -omi-siri-probe Normal iOS dev build and simulator launch passed, with Metadata.appintents present. The no-engine iOS 27 probe passed fake-token Remember against loopback, Spotlight fetch/donation, account fences, age timers and typed dialogs; no probe verdict logged FAIL. The named macOS dev bundle passed metadata export (12 actions, 8 entities), signing, synthetic Spotlight add/fetch/delete/wipe and direct Open-list intent. Teamless Mac donation still cannot contact Apple's helper.
Coordinator legacy-default review cd app && flutter test --no-pub $(git diff --name-only $(git merge-base origin/main HEAD)..HEAD -- test | sed s#^app/## | sort -u); cd desktop/macos/Desktop && xcrun swift test --filter 'ActionItemLocalIdentityMutationTests|ConversationReconciliationPolicyTests|ConversationRepositoryTests|LocalEmbeddingCapturePathTests|MemoryAuthoritativeTierSyncTests|ServerConversationDecodingTests|ServerMemoryV17DecodingTests|SiriIntentServiceTests|TranscriptionSessionRecordTests'; xcrun swift build --build-tests; bash scripts/analyze_ratchet.sh; flutter analyze --no-pub; flutter build ios --simulator -d 8E8F0310-BDC5-454C-99B1-CB83E1DECCD1 --flavor dev --debug --dart-define=OMI_APP_PROFILE=local_dev --no-codesign; iOS no-engine xcodebuild ... OMI_SIRI_PROBE; named macOS ./run.sh --full --yolo --no-wait; OMI_PR_BODY_FILE=... make preflight All 8 changed Flutter test files passed 63 tests; all 9 changed Swift classes passed 137 tests. Swift build and Dart analyzer ratchet passed. Full Flutter analyze still reports 87 existing issues. Red tests first reproduced absent-tier, omitted-visibility, nil-lock, explicit-null, and alias-conflict/unknown-alias defects. The original no-tier navigation fixture passes. iOS 27 no-engine probe passed fake-token Remember against localhost, Spotlight fetch/donation, timers, owner fences and failure dialogs; no FAIL verdict. Final-source iOS dev simulator build launched with metadata and no probe strings; the opt-in no-engine probe logged no FAIL. Final-source named macOS bundle shipped 12 actions/8 entities, passed strict signing, synthetic Spotlight add/fetch/delete/wipe and direct Open-list intent. Teamless donation still cannot contact Apple's helper. Committed-tree env -u PROMPT OMI_PR_BODY_FILE=/Volumes/Ephemeral/scratch/worktrees/omi/siri-app-intents-PR.md make preflight passed all 69 checks in 152.00s.
Review-nine write-path inventory and regression tests cd app && flutter test --no-pub $(git diff --name-only $(git merge-base origin/main HEAD)..HEAD -- test | sed s#^app/## | sort -u); cd desktop/macos/Desktop && xcrun swift test --filter 'ActionItemLocalIdentityMutationTests|ConversationProjectionRenderingTests|ConversationReconciliationPolicyTests|ConversationRepositoryTests|LocalEmbeddingCapturePathTests|MemoryAuthoritativeTierSyncTests|ServerConversationDecodingTests|ServerMemoryV17DecodingTests|SiriIntentServiceTests|TranscriptionSessionRecordTests'; xcrun swift build --build-tests; bash scripts/analyze_ratchet.sh All 11 changed Flutter test files passed 90 tests; all 10 changed Swift classes passed 153 tests. Swift test build and Dart analyzer ratchet passed. Red tests exposed missing delete-all, create/edit/reject/visibility/summary/notification/Apple Reminders projections and explicit-null conversation decode; guided onboarding and title hooks were also red/green tested. Confirmed engine-free Remember/Create/Complete now update the owner-fenced native snapshot and Spotlight, then notify Flutter if live. The macOS index is gated to 27+, wipes pre-27 legacy entries and rebuilds after upgrade. No pin changed.
Review-nine simulator and named-bundle probes iOS xcodebuild -workspace ios/Runner.xcworkspace -scheme dev -configuration Debug-dev -destination 'platform=iOS Simulator,id=8E8F0310-BDC5-454C-99B1-CB83E1DECCD1' -derivedDataPath /tmp/omi-siri-review9-probe-derived CODE_SIGNING_ALLOWED=NO SWIFT_ACTIVE_COMPILATION_CONDITIONS=OMI_SIRI_PROBE build; signed simctl launch ... -omi-siri-probe with a loopback stub; macOS OMI_APP_NAME=omi-siri-intents ... ./run.sh --full --yolo --no-wait then open -a /Applications/omi-siri-intents.app --args -omi-siri-probe iOS probe logged engineFreeRememberIndexed=PASS, engineFreeCreateIndexed=PASS, engineFreeCompleteIndexed=PASS, staleConfirmedWrite=PASS, spotlightFetch=1, and no FAIL verdict. Named macOS bundle contained Metadata.appintents, passed strict code-signature verification and logged synthetic Spotlight fetch/delete/wipe plus direct Open-list navigation. Teamless donation failed to contact Apple's helper.
Review-nine committed-tree gate and normal launch env -u PROMPT OMI_PR_BODY_FILE=/Volumes/Ephemeral/scratch/worktrees/omi/siri-app-intents-PR.md make preflight; post-merge changed-test commands above; flutter build ios --simulator -d 8E8F0310-BDC5-454C-99B1-CB83E1DECCD1 --flavor dev --debug --dart-define=OMI_APP_PROFILE=local_dev --no-codesign; temporary signed xcrun simctl install and xcrun simctl launch After merging current origin/main, preflight passed all 70 checks in 167.58s; 90 Flutter and 153 Swift changed tests passed again, analyzer ratchet and Swift test build passed. The normal iOS Dev app built, installed and launched as PID 26671; Metadata.appintents is present and the normal binary has no probe strings.
Review-ten ordering and non-Siri regression audit flutter test --no-pub $(git diff --name-only $(git merge-base origin/main HEAD)..HEAD -- test | sed s#^app/## | sort -u); xcrun swift test --filter 'ActionItemLocalIdentityMutationTests|ConversationProjectionRenderingTests|ConversationReconciliationPolicyTests|ConversationRepositoryTests|LocalEmbeddingCapturePathTests|MemoryAuthoritativeTierSyncTests|ServerConversationDecodingTests|ServerMemoryV17DecodingTests|SiriIntentServiceTests|TranscriptionSessionRecordTests'; xcrun swift build --build-tests; bash scripts/analyze_ratchet.sh; iOS 27 xcodebuild ... OMI_SIRI_PROBE and signed loopback simctl launch ... -omi-siri-probe Red Dart tests caught the empty-list merge regression, out-of-order Apple Reminders refresh/delete, and memory undo racing a pending native delete; a source check caught unawaited index calls. The red iOS probe logged singleUpsertFullRebuilds=FAIL; after the fix it logged PASS, with engine-free Remember/Create/Complete and Spotlight fetch=1. The audit's red visibility tests caught altered ordinary app fallbacks; a red Swift test caught legacy nil-lock defaults. Pre-commit: 12 selected Flutter test files passed 95 tests, all 10 changed Swift classes passed 154, Swift test build and analyzer ratchet passed. Normal iOS Dev simulator build, install and launch passed with Metadata.appintents present and no probe strings. The named macOS dev bundle launched, shipped metadata and passed strict code-signature verification. Post-commit changed-test totals and preflight are recorded in the follow-up row below.
Review-ten committed-tree verification cd app && flutter test --no-pub $(git diff --name-only $(git merge-base origin/main HEAD)..HEAD -- test | sed s#^app/## | sort -u); cd desktop/macos/Desktop && xcrun swift build --build-tests and xcrun swift test --filter 'ActionItemLocalIdentityMutationTests|ConversationProjectionRenderingTests|ConversationReconciliationPolicyTests|ConversationRepositoryTests|LocalEmbeddingCapturePathTests|MemoryAuthoritativeTierSyncTests|ServerConversationDecodingTests|ServerMemoryV17DecodingTests|SiriIntentServiceTests|TranscriptionSessionRecordTests'; bash scripts/analyze_ratchet.sh; iOS simulator xcodebuild ... OMI_SIRI_PROBE, signed simctl launch ... -omi-siri-probe; named macOS ./run.sh --full --yolo --no-wait, strict codesign --verify, then open -a ... --args -omi-siri-probe All 13 changed Flutter test files passed 104 tests; all 10 changed Swift classes passed 154 tests. Swift test build and Dart analyzer ratchet passed. The normal iOS Dev app built, installed and launched, with Metadata.appintents present. The no-engine probe passed engine-free Remember/Create/Complete, singleUpsertFullRebuilds=PASS, Spotlight fetch=1, expiry/wipe/owner checks, with no FAIL verdict. The named macOS bundle shipped metadata and its synthetic Spotlight add/fetch/delete/wipe plus direct Open-list intent passed. Teamless donation still failed to contact the helper. env -u PROMPT OMI_PR_BODY_FILE=/Volumes/Ephemeral/scratch/worktrees/omi/siri-app-intents-PR.md make preflight passed all 69 checks in 165.11 seconds.
Review-eleven reindex and expiry cd app && flutter test --no-pub $(git diff --name-only $(git merge-base origin/main HEAD)..HEAD -- test | sed s#^app/## | sort -u); cd desktop/macos/Desktop && xcrun swift build --build-tests && xcrun swift test --filter 'ActionItemLocalIdentityMutationTests|ConversationProjectionRenderingTests|ConversationReconciliationPolicyTests|ConversationRepositoryTests|LocalEmbeddingCapturePathTests|MemoryAuthoritativeTierSyncTests|ServerConversationDecodingTests|ServerMemoryV17DecodingTests|SiriIntentServiceTests|TranscriptionSessionRecordTests'; bash scripts/analyze_ratchet.sh; iOS 27 xcodebuild ... SWIFT_ACTIVE_COMPILATION_CONDITIONS=OMI_SIRI_PROBE build, signed simctl install/simctl launch ... -omi-siri-probe; flutter build ios --simulator -d 8E8F0310-BDC5-454C-99B1-CB83E1DECCD1 --flavor dev --debug --dart-define=OMI_APP_PROFILE=local_dev --no-codesign, signed normal launch Red tests caught the direct iOS query writes and missing Dart expires_at; after the fix all 13 changed Flutter test files passed 106 tests, all 10 changed Swift classes passed 155 tests, Swift test build and analyzer ratchet passed. The no-engine iOS 27 probe logged reindexConcurrentWipeEmpty=PASS count=0, engine-free Remember/Create/Complete PASS, Spotlight fetch=1 and no FAIL verdict. The normal Dev app built, installed and launched with Metadata.appintents. macOS already decoded both deadlines and serialized query writes with wipe; a new test proves the earlier expiry wins.
Review-eleven Notes schema cleanup iOS 27 opt-in simulator ConversationQuery.reindexEntities for a memory, SiriSnapshotStore.delete(type: "memory"), then CSSearchQuery; macOS xcrun swift build --build-tests and the 10 changed test classes The iOS probe first reproduced a stale deleted memory note (deletedMemoryNoteAbsent=FAIL count=1), then passed after the fix (PASS count=0). iOS memory mutations and full rebuild now maintain both the custom entity and Notes schema representation under the owner gate. macOS memory delete and expiry remove both representations. Final Swift build and 155/155 selected tests passed.
Review-eleven exact-head gate and probes At 3c643608d57cced28af2b10d4b2c7de0aaab1b05: env -u PROMPT OMI_PR_BODY_FILE=/Volumes/Ephemeral/scratch/worktrees/omi/siri-app-intents-PR.md make preflight; full PR-changed Flutter test command and 10-class Swift filter above; bash scripts/analyze_ratchet.sh; named macOS OMI_APP_NAME=omi-siri-intents ... ./run.sh --yolo --no-wait, codesign --verify --deep --strict, open -a ... --args -omi-siri-probe 69/69 preflight checks passed in 225.51s. 106/106 Flutter tests across 13 changed files and 155/155 Swift tests across 10 changed classes passed; analyzer ratchet passed. Final named bundle rebuilt from this head, ships 12 actions/8 entities, passed signing and synthetic Spotlight fetch/delete/wipe plus direct Open-list. Teamless donation helper remains unavailable. Final iOS 27 no-engine probe passed reindexConcurrentWipeEmpty=PASS count=0, deletedMemoryNoteAbsent=PASS count=0, engine-free Remember/Create/Complete and Spotlight fetch=1; normal Dev simulator build, launch and metadata passed.
Review-twelve task scope and confirmed-write cache failures cd app && flutter test --no-pub $(git diff --name-only $(git merge-base origin/main HEAD)..HEAD -- test | sed s#^app/## | sort -u); cd desktop/macos/Desktop && xcrun swift build --build-tests && xcrun swift test --filter 'ActionItemLocalIdentityMutationTests|ConversationProjectionRenderingTests|ConversationReconciliationPolicyTests|ConversationRepositoryTests|LocalEmbeddingCapturePathTests|MemoryAuthoritativeTierSyncTests|ServerConversationDecodingTests|ServerMemoryV17DecodingTests|SiriIntentServiceTests|TranscriptionSessionRecordTests'; bash scripts/analyze_ratchet.sh; iOS 27 probe xcodebuild ... SWIFT_ACTIVE_COMPILATION_CONDITIONS=OMI_SIRI_PROBE build and signed simctl launch ... -omi-siri-probe; normal flutter build ios --simulator -d 8E8F0310-BDC5-454C-99B1-CB83E1DECCD1 --flavor dev --debug --dart-define=OMI_APP_PROFILE=local_dev --no-codesign; named macOS OMI_APP_NAME=omi-siri-intents ... ./run.sh --yolo --fast-only --no-wait, codesign --verify --deep --strict, and open -a ... --args -omi-siri-probe; env -u PROMPT OMI_PR_BODY_FILE=/Volumes/Ephemeral/scratch/worktrees/omi/siri-app-intents-PR.md make preflight Red tests caught staged/typed partial page pruning, tombstone loss in unrelated bulk deletes, rejected first page followed by clean final page, and a macOS open-task scope test that initially failed to compile until the open path was wired to the shared predicate. Red iOS 27 simulator fault probes logged failure after confirmed Remember, note, create-task and complete-task backend responses; all four now pass and the 30-second same-owner snapshot repair persisted the confirmed task. The iOS stale task/conversation/memory open probes passed. The committed tree passed 116/116 Flutter tests across all 14 changed files, 156/156 Swift tests across all 10 changed classes, swift build --build-tests, and the analyzer ratchet. make preflight passed 69/69 checks in 166.36 seconds with OMI_PR_BODY_FILE on the committed tree. Normal iOS Dev build installed and launched with metadata and no probe strings; named macOS bundle shipped metadata, passed signing, synthetic Spotlight fetch/delete/wipe and direct Open-list. Teamless donation helper remains unavailable.
Review-thirteen reconciliation and rebuild ordering cd app && flutter test --no-pub $(git diff --name-only $(git merge-base origin/main HEAD)..HEAD -- test | sed s#^app/## | sort -u); cd desktop/macos/Desktop && xcrun swift build --build-tests && xcrun swift test --filter 'ActionItemLocalIdentityMutationTests|ConversationProjectionRenderingTests|ConversationReconciliationPolicyTests|ConversationRepositoryTests|LocalEmbeddingCapturePathTests|MemoryAuthoritativeTierSyncTests|ServerConversationDecodingTests|ServerMemoryV17DecodingTests|SiriIntentServiceTests|TranscriptionSessionRecordTests'; bash scripts/analyze_ratchet.sh; Xcode 27 iOS xcodebuild ... SWIFT_ACTIVE_COMPILATION_CONDITIONS=OMI_SIRI_PROBE build, signed simctl install/simctl launch ... -omi-siri-probe; normal flutter build ios --simulator -d 8E8F0310-BDC5-454C-99B1-CB83E1DECCD1 --flavor dev --debug --dart-define=OMI_APP_PROFILE=local_dev --no-codesign; named macOS OMI_APP_NAME=omi-siri-intents ... ./run.sh --yolo --fast-only --no-wait, codesign --verify --deep --strict, open -a ... --args -omi-siri-probe; env -u PROMPT OMI_PR_BODY_FILE=... make preflight A red Dart regression test first removed an unrelated memory after failed ledger history; it now passes because the successful current-page scope is captured. A red Swift test first failed to compile without the prepare-before-replace path; two new tests prove local-read failure performs zero replacement writes and retry delays are bounded. All 117/117 Flutter tests across 14 changed files and 158/158 Swift tests across 10 changed classes passed; Swift test build and analyzer ratchet passed. The iOS probe build shipped metadata and its second run passed engine-free writes, expiry maintenance, reindex/wipe race and snapshot repair. The first run saw two stale global Spotlight search results after a one-second wait; the immediate rerun returned zero. The named macOS bundle shipped metadata, passed signing and synthetic Spotlight add/fetch/delete/wipe plus direct Open-list; teamless donation could not reach Apple's helper. The normal iOS Dev build installed and launched as PID 13801 with Metadata.appintents present. env -u PROMPT OMI_PR_BODY_FILE=... make preflight passed all 69 checks in 203.23 seconds on the committed tree.
Review-fourteen memory representations and paused listening cd app && flutter test --no-pub $(git diff --name-only $(git merge-base origin/main HEAD)..HEAD -- test | sed s#^app/## | sort -u); cd desktop/macos/Desktop && xcrun swift build --build-tests && xcrun swift test --filter 'ActionItemLocalIdentityMutationTests|ConversationProjectionRenderingTests|ConversationReconciliationPolicyTests|ConversationRepositoryTests|LocalEmbeddingCapturePathTests|MemoryAuthoritativeTierSyncTests|ServerConversationDecodingTests|ServerMemoryV17DecodingTests|SiriIntentServiceTests|TranscriptionSessionRecordTests'; bash scripts/analyze_ratchet.sh; Xcode 27 iOS xcodebuild ... SWIFT_ACTIVE_COMPILATION_CONDITIONS=OMI_SIRI_PROBE build, signed simctl install/simctl launch ... -omi-siri-probe; normal flutter build ios --simulator -d 8E8F0310-BDC5-454C-99B1-CB83E1DECCD1 --flavor dev --debug --dart-define=OMI_APP_PROFILE=local_dev --no-codesign; named macOS OMI_APP_NAME=omi-siri-intents ... ./run.sh --yolo --fast-only --no-wait, codesign --verify --deep --strict, open -a ... --args -omi-siri-probe; env -u PROMPT OMI_PR_BODY_FILE=... make preflight Red Swift tests failed to compile without the centralized custom+Notes memory deletion mapping and paused macOS state; a red Dart test failed to compile without the paused phone-capture state. After the fixes, 118/118 Flutter tests across 14 changed files and 160/160 Swift tests across 10 changed classes passed; Swift test build and analyzer ratchet passed. The named macOS bundle shipped metadata, passed signing, indexed both synthetic memory representations, then fetched zero after centralized deletion; direct Open-list passed. The iOS no-engine probe passed listeningFailureDialogs=PASS, deletedMemoryNoteAbsent=PASS count=0, engine-free writes and reindex/wipe race, with no FAIL verdict. Normal iOS Dev built, installed and launched as PID 48229 with Metadata.appintents. env -u PROMPT OMI_PR_BODY_FILE=... make preflight passed 69/69 checks in 151.64 seconds on the committed tree.
Xcode 27 merge and release proof git merge --no-ff origin/main; python3 .github/scripts/test_desktop_swift_ci_contract.py; bash desktop/macos/tests/test-run-swift-ci.sh; xcrun swift build -c release --package-path Desktop --triple arm64-apple-macosx -Xswiftc -emit-const-values and the corresponding x86_64 command; lipo -create; scripts/embed-app-intents-metadata.sh Desktop /tmp/omi-siri-release-artifact/Omi.app Release arm64; flutter build ipa --release --no-codesign --flavor prod --dart-define=OMI_APP_PROFILE=mobile_beta and --flavor dev --dart-define=OMI_APP_PROFILE=local_dev; scripts/rayban_dat.sh build ipa --release --no-codesign; xargs flutter test --no-pub < /tmp/siri-changed-flutter-test-files.txt; xcrun swift build --build-tests; xcrun swift test --filter (all 10 changed test classes); BACKEND_UNIT_TEST_FILE_LIST=/tmp/omi-siri-backend-tests.txt bash test.sh; bun run typecheck && bun run test; env -u PROMPT OMI_PR_BODY_FILE=... make preflight Merged main without conflicts. Pin/launcher contract 41, shell launcher and actionlint -shellcheck "" on both changed workflows passed; macOS Release arm64 and x86_64 compiled against the Codemagic vendored WebP, the assembled executable has both architectures, and bundle metadata lists 12 actions/8 entities. iOS prod, Dev and Ray-Ban DAT Release archives compiled with Xcode 27 and each contains 13 actions/8 entities; prod/Dev include watch and widget. The Dev simulator build installed and launched on iOS 27 with metadata present. All 118 Flutter tests across 14 changed files and 160 Swift tests across 10 changed classes passed. The updated iOS workflow contract passed 31 backend test cases, with no backend runtime changes. The push hook first caught actionlint rejecting GitHub’s new preview runner label; .github/actionlint.yaml now records that label and actionlint passes. Web typecheck, 113 files/587 tests and 5 Bun smoke tests passed after frozen dependency install. make preflight passed 89/89 checks in 365.31 seconds on the final committed tree with the runner-label configuration. Signing, notarization and Codemagic publication were not run locally.
Xcode 27 current-main integration and hosted retry git merge --no-ff origin/main through e3f9759091; cd app && python3 scripts/l10n.py check; all 14 PR-changed Flutter test files; cd desktop/macos/Desktop && xcrun swift build --build-tests && xcrun swift test --filter (all 10 PR-changed classes); red/green bash desktop/macos/tests/test-run-swift-ci.sh; python3 .github/scripts/test_desktop_swift_ci_contract.py; flutter build ipa --release --no-codesign --flavor prod --dart-define=OMI_APP_PROFILE=mobile_beta and --flavor dev --dart-define=OMI_APP_PROFILE=local_dev; env -u PROMPT OMI_PR_BODY_FILE=... make preflight Localization merged across 49 locales/3429 keys; Flutter 118/118, Swift 160/160, toolchain contract 41/41, and bounded Release-launcher regression passed. Production and Dev Runner Release archives each contain 13 actions/8 entities, widget and watch app. 90/90 preflight checks passed in 812.52s on f2f146673c. The first hosted Xcode 27 Release compile timed out after 85 minutes without output at the large app target; the bounded-compiler exact-head retry passed, with its details below.
Current-main macOS Release tests cd desktop/macos && OMI_SWIFT_CI_XCODE_APP=/Applications/Xcode.app ./scripts/run-swift-ci.sh --release-test-compile; then ./scripts/run-swift-ci.sh --release-notification-regression with the same override The full arm64 Release app+test build compiled in 3156.97s on local Xcode 27; all 11 UserNotificationCallbackBridgeTests passed in Release mode with --skip-build. The standard hosted runner has 7 GB RAM; the local compiler's large-module peak exceeded that, so exact-head hosted completion remains a separate check.
Current-main macOS universal Release artifact PKG_CONFIG_PATH=/tmp/omi-siri-webp-universal/pkgconfig xcrun swift build -c release --package-path Desktop --triple arm64-apple-macosx -Xswiftc -emit-const-values; same for x86_64-apple-macosx; swift build --show-bin-path; lipo -create; scripts/embed-app-intents-metadata.sh Desktop /tmp/omi-siri-final-release-artifact/Omi.app Release arm64; plutil -lint, lipo -info and JSON metadata count Both architecture builds passed against the vendored universal WebP dependency. The unsigned staged .app has a valid Info.plist, a two-architecture Mach-O executable and Contents/Resources/Metadata.appintents/extract.actionsdata with 12 actions/8 entities from the current merged source. Signed packaging, notarization and public delivery remain Codemagic-only steps.
Exact-head hosted Xcode 27 Release compile Desktop Swift CI / Release Compile Passed on f2f146673c: combined Release app+test build completed in 2,883.63s, then all 11/11 Release notification-bridge tests passed. The standard runner and existing 90-minute timeout were sufficient after serializing SwiftPM jobs.
Desktop static-suite isolation follow-up First hosted static/test attempt; xcrun swift test --filter LocalEmbeddingCapturePathTests; xcrun swift build --build-tests; xcrun swift test --filter on all 10 PR-changed Swift classes; flutter test --no-pub on all 14 PR-changed Flutter files; env -u PROMPT OMI_PR_BODY_FILE=... make preflight The hosted suite timed out while reopening the next local-embedding database fixture. The local-embedding suite does not test Spotlight, yet memory sync queued an unrelated Siri writer during teardown. A new fixture assertion failed before isolation; after setting indexing OFF for that suite and preventing OFF-state hooks from queuing delayed upserts, all 4 local-embedding tests passed with zero Siri writer log lines. The full changed inventory passed 160/160 Swift and 118/118 Flutter tests; swift build --build-tests passed. After adding the required singleton-integration annotations, preflight passed 89/89 checks in 486.96s. The next hosted Release run reproduced the no-match path; the new shell fixture fails before and passes after moving the stable check ahead of discovery.
Desktop launcher push-hook environment bash desktop/macos/tests/test-fault-suite-launch-env.sh with an explicit multiline environment fixture; remaining desktop/macos/tests/test-*.sh launcher scripts using the hook's bash invocation and two live-test exclusions; env -u PROMPT OMI_PR_BODY_FILE=... make preflight The test first failed with ValueError because its env capture was newline-delimited. NUL-delimited capture and parsing passed the same fixture. All later launcher scripts passed locally, and preflight passed 89/89 checks in 213.64s. This is a test-harness fix; it changes no app runtime behavior.
Latest-main merge and appearance compatibility git merge --no-ff origin/main at b02a24ecfc; cd app && python3 scripts/l10n.py check; 49-locale value audit; flutter test --no-pub on all 14 PR-changed test files; xcrun swift build --build-tests; xcrun swift test --filter on all 10 PR-changed classes Localization has 3,433 keys and preserves both Siri translations and main's four appearance translations in every locale. A red Flutter compile caught the Siri row's const BoxDecoration around main's new runtime OmiColors.surface1; removing const made 118/118 Flutter tests pass. The Swift test build and 160/160 changed Swift tests passed. The prod and Dev Xcode 27 Release archives passed; each Runner.app contains App Intents metadata with 13 actions/8 entities, and the embedded BatteryWidget and omiWatchApp built. The separate RayBanDat Xcode 27 Release archive also compiled on this head and contains 13 actions/8 entities. The same target compiled again at 7d62996f84 with 13/8 metadata; its wrapper again exited nonzero only while restoring main's stale pasteboard entry in Podfile.lock (absent from main's pubspec.lock). The default plugin graph was verified and tracked files restored. Its wrapper exited nonzero only during post-build restoration because the tracked default Podfile.lock still lists the removed upstream pasteboard plugin; CocoaPods dropped those lines. Tracked files and wrapper scratch state were restored afterward; the archive result is a compile proof, not a clean wrapper pass. Committed-tree env -u PROMPT OMI_PR_BODY_FILE=... make preflight passed 89/89 checks in 381.38s on this merged head.
Unsigned iOS 27 fresh-simulator startup flutter build ios --simulator --flavor dev --debug --no-codesign; fresh simctl install/simctl launch; opt-in xcodebuild ... SWIFT_ACTIVE_COMPILATION_CONDITIONS=OMI_SIRI_PROBE build; simctl log show; all 14 changed Flutter test files; all 10 changed Swift classes; swift build --build-tests; prod flutter build ipa --release --no-codesign The first unsigned launch crashed in SiriSnapshotStore.init() because the App Group container URL was nil. An app-local Application Support fallback made the fresh app stay running; the probe logged missingAppGroupFallback=PASS, scene scheme/universal/OAuth PASS and firebaseUser=nil. 118/118 Flutter, 160/160 Swift and Swift test build passed. Both prod and Dev Release archives on this fix have 13 actions/8 entities, widget and watch. Committed-tree env -u PROMPT OMI_PR_BODY_FILE=... make preflight passed 89/89 checks in 370.55s.
Final-head macOS universal Release metadata PKG_CONFIG_PATH=/tmp/omi-siri-webp-universal/pkgconfig xcrun swift build -c release --package-path Desktop --triple arm64-apple-macosx -Xswiftc -emit-const-values; same for x86_64-apple-macosx; lipo -create; ./scripts/embed-app-intents-metadata.sh Desktop /tmp/omi-siri-final-head-release-artifact/Omi.app Release arm64; plutil -lint; lipo -info; JSON parse Both current-head Release slices compiled (arm64 403s, x86_64 287s). The staged unsigned named .app has a valid Info.plist, universal executable and Contents/Resources/Metadata.appintents/extract.actionsdata with 12 actions/8 entities. The initial x86 local link failed because its temporary pkg-config mapping was absent and selected arm64-only Homebrew WebP; restoring the mapping to the repo-vendored universal WebP passed. Signing/notarization are Codemagic-only.
macOS 27 full-suite timing follow-up OMI_SWIFT_CI_XCODE_APP=/Applications/Xcode.app OMI_SWIFT_TEST_LANE=pr ./scripts/run-swift-ci.sh --test with three workers; xcrun swift test --skip-build --filter CaptureArchiveTests; red/green xcrun swift test --filter FloatingBarSurfaceFloorTests; xcrun swift test --skip-build --filter for all 11 changed Swift classes; xcrun swift build --build-tests; env -u PROMPT OMI_PR_BODY_FILE=... make preflight The broad local lane reported two failures in pre-existing classes. Under parallel test load, AVPlayer did not advance; all 27/27 CaptureArchiveTests passed on an idle rerun with unchanged code. The floating-bar test expected an AppKit frame animation to finish within its 100 ms scheduling wait even though the animation lasts 180 ms; it failed in isolation before a test-only 1 s wait budget and passed 11/11 afterward. All 171/171 tests across the 11 changed Swift classes and the test build passed. After moving generated shards outside the checkout, preflight passed 89/89 in 333.95s on the source committed as d08e8f36c5. Hosted Xcode 27 static and Release jobs remain the exact-head CI authority.
David's stable/advisory runner split python3 .github/scripts/test_desktop_swift_ci_contract.py -q; python3 .github/scripts/test_check_desktop_compiler_gates.py -q; actionlint -shellcheck= -config-file .github/actionlint.yaml .github/workflows/desktop-swift-ci.yml .github/workflows/mobile-app-checks.yml; xcrun swift build --build-tests --jobs 4; xcrun swift test --skip-build --filter SiriIntentServiceTests; hosted required Release --expect-absent source-graph and bundle check; advisory Xcode 27 extraction Local contract 45/45, compiler guard 12/12, actionlint pass, Xcode 27 desktop --build-tests pass, 171/171 tests across 11 PR-changed Swift classes, 118/118 tests across 14 PR-changed Flutter files, and App Intents metadata extraction 12 actions/8 entities; flutter build ios --simulator -d 8E8F0310-BDC5-454C-99B1-CB83E1DECCD1 --flavor dev --debug --dart-define=OMI_APP_PROFILE=local_dev --no-codesign passed with 13 actions/8 entities in Runner.app; simctl install and simctl launch passed (PID 80220). After the latest main merge, 45/45 toolchain contract tests, 12/12 compiler-gate tests, 171/171 changed-class Swift tests, 118/118 Flutter tests, 49-locale l10n check and 138-event registry check passed. env -u PROMPT OMI_PR_BODY_FILE=... make preflight passed 93/93 checks in 456.53s after the first merge, then 93/93 in 320.02s after the latest main merge and CI contract correction. Production and Dev flutter build ipa --release --no-codesign archives passed; each has 13 actions/8 entities, BatteryWidget and omiWatchApp. Post-merge arm64 and x86_64 swift build -c release --triple ... -Xswiftc -emit-const-values --jobs 4 both passed; lipo assembled an unsigned universal app, and embed-app-intents-metadata.sh put 12 actions/8 entities in its Contents/Resources/Metadata.appintents. After merging main f7c06136e8, the 14 PR-changed Flutter files plus three new main voice-recorder/chat tests passed 154/154; xcrun swift build --build-tests and all 11 changed Swift classes passed 171/171; l10n has 49 locales/3,435 keys. Final env -u PROMPT OMI_PR_BODY_FILE=... make preflight passed 93/93 checks in 248.23s. Hosted 26.6 and advisory 27 verdicts pending exact-head runs.
Exact-head ship artifact 7d62996f84 flutter build ipa --release --no-codesign --flavor prod --dart-define=OMI_APP_PROFILE=mobile_beta; same for Dev with OMI_APP_PROFILE=local_dev; flutter build ios --simulator -d 8E8F0310-BDC5-454C-99B1-CB83E1DECCD1 --flavor dev --debug --no-codesign, simctl install/launch; macOS swift build -c release --triple arm64-apple-macosx and x86_64-apple-macosx with -Xswiftc -emit-const-values --jobs 4, lipo -create, embed-app-intents-metadata.sh Both unsigned iOS Release archives passed and include 13 actions/8 entities, BatteryWidget and omiWatchApp. The iOS 27 Dev simulator build installed and launched with 13/8 metadata. Both macOS Release slices passed; the assembled unsigned universal .app has x86_64+arm64 Mach-O, a valid Info.plist and Contents/Resources/Metadata.appintents with 12 actions/8 entities. Signing, notarization and real Siri speech remain unverified.
Runner-ruling follow-up c167ee0691 Red first: python3 .github/scripts/test_desktop_swift_ci_contract.py -k test_mobile_27_only_sources_compile_out_on_required_ci caught the unguarded native session; -k test_both_toolchains_prove_the_metadata_boundary caught the non-stock rg dependency. Green: all 45/45 workflow contract tests; Xcode 27 Dev simulator build/install/launch and 13 actions/8 entities; unsigned production and Dev iOS Release archives, each 13/8 with widget/watch targets; metadata extraction with PATH=/usr/bin:/bin, 12/8 macOS; OMI_PR_BODY_FILE=... make preflight 93/93; normal pre-push gate passed. Hosted Xcode 26.6 first compiled Desktop app and test targets but its metadata assertion failed because rg was absent; iOS first failed on SiriSnapshotStore referenced by SiriSession before the new compile-time gate. Both are fixed in this head. Exact-head hosted checks are running.
Final owner-fence, cold-search and memory-rebuild review cd desktop/macos/Desktop && xcrun swift build --build-tests; `xcrun swift test --skip-build --filter 'ActionItemLocalIdentityMutationTests ConversationProjectionRenderingTests
Stable-runner metadata check after 931c379e9c Required Release job; red/green python3 .github/scripts/test_desktop_swift_ci_contract.py -k test_stable_metadata_check_does_not_invoke_unsupported_processor; full contract suite; bash -n desktop/macos/scripts/embed-app-intents-metadata.sh; env -u PROMPT OMI_PR_BODY_FILE=... make preflight Hosted Xcode 26.6 app and test Release compilation passed; the subsequent constant-values discovery pipeline exited 1 on no match under pipefail, before the no-intents check. The early stable check now validates that SwiftPM excludes App Intents declarations and that the assembled bundle lacks Metadata.appintents, without invoking that processor. The regression test failed before this fix and passes with a fake 26.6 source graph; it also rejects a graph containing SiriIntents. 46/46 workflow contract tests and 93/93 preflight checks passed in 233.20s. The next hosted Release run reproduced the no-match path; the new shell fixture fails before and passes after moving the stable check ahead of discovery.
Exact-head required iOS 26.6 compile (5b615d2fe9) iOS Compile Check Passed: hosted Xcode 26.6 built Runner.app and proved its metadata has no Siri actions or entities.
Exact-head required desktop Static (5b615d2fe9) Desktop Swift Static & Test Contracts Passed on hosted Xcode 26.6, including Swift app tests and desktop launcher script tests.
Exact-head optional Siri 27 advisory (5b615d2fe9) Desktop Siri Xcode 27 Advisory Passed: 36/36 Siri intent/eligibility tests and Metadata.appintents extraction with 12 actions/8 entities.
Previous-head required desktop Release (5b615d2fe9) Desktop Swift Release Compile Failed after successful Release compile: the constant-values pipeline exited 1 with no matching file, before the stable branch. The follow-up moves that branch ahead of discovery and tests both modes on an empty .build.
Stable metadata no-match correction Red/green bash desktop/macos/tests/test-embed-app-intents-metadata.sh; exact hosted Release step commands against an empty SwiftPM .build fixture; python3 .github/scripts/test_desktop_swift_ci_contract.py -q; env -u PROMPT OMI_PR_BODY_FILE=... make preflight The shell test first failed because grep returned 1 before --expect-absent could run. The stable branch now runs before constant-values discovery, and Siri-required discovery tolerates no-match long enough to emit its explicit diagnostic. Both shell cases passed, the exact CI step printed source-graph and bundle absence with zero .swiftconstvalues, 46/46 workflow contract tests passed, and 93/93 preflight checks passed in 230.91s. Hosted rerun on the new head remains the final authority.
Latest main merges (e30e83ef80, 8d707ae619) cd app && xargs flutter test --no-pub < /tmp/omi-siri-final-all-flutter-tests.txt; cd desktop/macos/Desktop && xcrun swift build --build-tests; `xcrun swift test --skip-build --filter 'ActionItemLocalIdentityMutationTests ConversationProjectionRenderingTests
Exact-head iOS 27 Dev simulator (8d707ae619) cd app && flutter build ios --simulator -d 8E8F0310-BDC5-454C-99B1-CB83E1DECCD1 --flavor dev --debug --dart-define=OMI_APP_PROFILE=local_dev --no-codesign; parse build/ios/iphonesimulator/Runner.app/Metadata.appintents/extract.actionsdata; xcrun simctl install and xcrun simctl launch Passed after the final main merge: Runner compiled, metadata lists 13 actions/8 entities, and the iOS 27 simulator launched the Dev bundle (PID 99683). This is a simulator launch, not spoken Siri acceptance.
Exact-head unsigned Release artifacts (8d707ae619) PKG_CONFIG_PATH=/tmp/omi-siri-webp-universal/pkgconfig xcrun swift build -c release --package-path Desktop --triple arm64-apple-macosx -Xswiftc -emit-const-values --jobs 4 and matching x86_64; lipo -create; ./scripts/embed-app-intents-metadata.sh Desktop /tmp/omi-siri-8d707-release/Omi.app Release arm64; cd app && flutter build ipa --release --no-codesign --flavor prod --dart-define=OMI_APP_PROFILE=mobile_beta and corresponding Dev/local_dev Passed after the final main merge. The unsigned universal macOS app has arm64+x86_64, a valid Info.plist and 12 actions/8 entities in Metadata.appintents. Both unsigned iOS Release archives compiled with 13 actions/8 entities; the Dev archive includes BatteryWidget and omiWatchApp. Signing, notarization, profile acceptance and publication remain Codemagic-only.
Exact-head required iOS Compile Check (8d707ae619) Hosted job Passed on Xcode 26.6: Flutter simulator Debug build and stable-artifact no-Siri-metadata assertion.
Exact-head required Desktop Swift Release Compile (8d707ae619) Hosted job Passed on Xcode 26.6: Release compilation, stable source-graph/bundle no-Siri-metadata assertion, and Release UserNotifications regression test.
Exact-head required Desktop Swift Static & Test Contracts (8d707ae619) Hosted job Passed on Xcode 26.6: Swift app tests, desktop launcher script tests and the independent phase-verdict gate.
Exact-head optional Desktop Siri Xcode 27 Advisory (8d707ae619) Hosted job Passed on Xcode 27: Siri targets compiled, 36/36 intent and eligibility tests passed, and metadata extraction listed 12 actions/8 entities. This job is advisory and does not gate team CI.
Exact-head PR rollup (8d707ae619) gh pr view 19133 --json headRefOid,mergeable,statusCheckRollup 66 checks: 59 success, 7 intentionally skipped, 0 pending or failed; PR mergeable. Required iOS Compile, Desktop Release and Desktop Static all passed on standard Xcode 26.6.
Final sign-out privacy review (local, new head pending) cd app && flutter test --no-pub $(git diff --name-only $(git merge-base origin/main HEAD)..HEAD -- test | sed s#^app/## | sort -u); cd desktop/macos/Desktop && xcrun swift test --filter '<12 changed classes>'; iOS 27 opt-in simulator probe with loopback stub; scratch compiler(>=99) simulator app and desktop swift build --build-tests 119/119 Flutter tests across all PR-changed files; 176/176 Swift tests across all 12 PR-changed classes. A red Dart test caught Firebase sign-out before native preparation; a red Swift test caught the missing macOS wipe journal; the simulator probe first caught the pending intent returning a configuration error. The fixed no-engine probe reports pending marker persisted, all entity queries empty, request denied with auth, wipe retried, and zero FAIL verdicts. The scratch compiler-off builds pass; Runner has no root Metadata.appintents, while the Xcode 27 probe app has it. The final full preflight passed 94/94 checks in 216.99s; the bounded pre-push gate passed and the remote ref matches b14b945889. Exact-head hosted CI is running.
Bounded sign-out follow-up (local, new head pending) cd app && flutter test --no-pub $(git diff --name-only $(git merge-base origin/main HEAD)..HEAD -- test | sed s#^app/## | sort -u); cd desktop/macos/Desktop && xcrun swift test --filter '<12 changed classes>'; iOS 27 simulator no-engine probe; scratch compiler(>=99) iOS simulator and desktop swift build --build-tests 133/133 Flutter tests and 176/176 Swift tests passed. New tests first failed for the absent timeout seams; all eight throw/hang cases then proved Firebase sign-out and account-deletion cleanup complete. A hung Pigeon preparation releases the Dart native queue so the callback wipe can run. The native probe first failed to compile without the Keychain failure injection, then passed: failure leaves a persisted marker and a subsequent wipe/new sign-in restores Siri; zero FAIL verdicts with a live localhost stub. Forced-off builds passed, with no Runner Siri metadata, while Xcode 27 metadata is present. Full preflight passed 94/94 checks in 254.49s. Hosted checks for 28fb0b6a0c follow.
Fast sign-out fence follow-up (local, new head pending) flutter test --no-pub on every changed PR test file; xcrun swift build --build-tests and xcrun swift test --filter '<12 changed classes>'; opt-in iOS 27 xcodebuild and no-engine simctl launch with loopback stub; scratch compiler(>=99) iOS simulator and desktop builds; normal flutter build ios --simulator --debug --flavor dev --no-codesign; OMI_PR_BODY_FILE=… make preflight Red Dart test proved preparation waited behind a stuck publication; red native compile required marker-failure injection. Fixed tree: 133/133 Flutter, 176/176 Swift, no-engine probe signOutFenceBypassesSpotlightGate=PASS, failedMarkerTokenRemoved=PASS coldQueriesEmpty=PASS intentDenied=PASS, and signInAfterMarkerFailure=PASS, with zero FAIL verdicts and loopback Remember indexed. Compile-out iOS build has no metadata; desktop test build and --expect-absent pass. Normal iOS simulator build has Metadata.appintents. Full preflight passed 94/94 in 249.84s. Hosted exact-head CI pending.
Native FirebaseAuth sign-out fallback (local, new head pending) Opt-in iOS 27 no-engine probe against local Firebase Auth emulator on 127.0.0.1:9099; Auth.auth().signOut() with no Pigeon messenger; cold relaunch and re-sign-in; all PR-changed Flutter test files; 12 Swift test classes; scratch compiler(>=99) iOS and desktop builds; normal flutter build ios --simulator --debug --flavor dev --no-codesign; OMI_PR_BODY_FILE=… make preflight Before the listener, the real emulator sign-out probe logged firebaseSignOutWithoutPigeon=FAIL; after it, coldFirebaseUserPreserved=PASS, firebaseSignOutWithoutPigeon=PASS, and firebaseReSignInRestoresSiri=PASS. The synthetic loopback probe still passes after its fake-owner fixture is isolated from this listener. 133/133 Flutter and 176/176 Swift pass; scratch compile-out iOS metadata is absent and desktop --expect-absent passes. The normal iOS app built, launched, and includes metadata. Full preflight passed 94/94 in 220.45s. Hosted exact-head CI pending.
Firebase-persisted Siri owner gate (local, new head pending) xcodebuild -workspace ios/Runner.xcworkspace -scheme dev -configuration Debug-dev -destination "platform=iOS Simulator,id=8E8F0310-BDC5-454C-99B1-CB83E1DECCD1" -derivedDataPath /tmp/omi-siri-final-review-probe-derived CODE_SIGNING_ALLOWED=NO SWIFT_ACTIVE_COMPILATION_CONDITIONS=OMI_SIRI_PROBE build; local Firebase Auth emulator (127.0.0.1:9099) and engine-free simctl launch -omi-siri-probe-auth-seed/-omi-siri-probe-auth-gate/-omi-siri-probe-auth-verify; all changed Flutter test files; 12 changed Swift classes; scratch forced compiler-off builds; OMI_PR_BODY_FILE=… make preflight Test first: with the native listener disabled, the pre-fix cold launch logged authGateNilRefused=FAIL ... fenced=FAIL after Firebase sign-out. The fixed probe logs authGateColdSignedIn=PASS, authGateMatchingUserMirrorFallback=PASS, authGateNilRefused=PASS queriesEmpty=PASS fenced=PASS, authGateDifferentUidRefused=PASS, authGateAllPersistenceFailedInMemoryFence=PASS, firebaseSignOutWithoutPigeon=PASS, and firebaseReSignInRestoresSiri=PASS. 133/133 Flutter and 176/176 Swift tests pass. The generic loopback probe also logs disabledExplicitFolder=PASS and has no FAIL verdicts. Forced compiler-off iOS and desktop builds pass; the Runner artifact has no Siri metadata, while both Xcode 27 probe and normal Dev Runner artifacts have it. Normal iOS simulator build passed. flutter build ipa --release --no-codesign --flavor dev --dart-define=OMI_APP_PROFILE=local_dev passed; its unsigned Runner archive contains 13 actions/8 entities in Metadata.appintents. Full final-state preflight passed 94/94 in 336.65s; hosted exact-head checks are pending.
Real Siri speech David's beta/TestFlight pass Not verified in this PR

The detailed local spike log, commands and outputs are outside the repository at siri-app-intents-REPORT.md.
Runtime probes used synthetic entities, a fake token and loopback HTTP only; no production account data or live backend writes were used.

Review-eleven direct-write audit: rg -n 'CSSearchableIndex\(|indexAppEntities\(|deleteAllSearchableItems\(|deleteSearchableItems\(|deleteAppEntities\(' app/ios desktop/macos/Desktop/Sources --glob '*.swift' found production calls only in SiriSnapshotStore's serial owner-fenced path on iOS and SiriIndexer's owner-fenced operation path on macOS. The macOS SiriDevProbe writes only to a UUID-named synthetic test index. No production query callback writes directly to Spotlight. The iOS race probe holds a system reindex inside the native gate, submits a wipe concurrently, releases reindex and verifies the index is empty afterward. macOS system reindex now fetches storage rows inside the acquired indexer operation, so a delete that finished earlier cannot be reversed by a stale pre-gate read.

The same macOS operation now handles every SiriIndexHooks sync batch: the batcher passes at most 200 IDs into reindexConversations, reindexMemories, or reindexTasks, which reads eligible rows and applies both missing-ID deletion and current-row indexing before releasing its owner slot. The older pre-read index methods were removed.
The first review regressions failed before their fixes: the iOS simulator probe logged disabledDelete=FAIL, failedWipeOwnerRecoverable=FAIL, and stalePublishAfterWipe=FAIL; new Dart and macOS tests also failed on the original paths. For the second review, four authoritative-fetch Dart assertions and three Start/Stop capture tests failed before the fixes. The macOS local sync-removal and expiry paths already delete or update their Spotlight entries; reindex and entity queries read only currently eligible rows.
For the third review, two Dart tests failed before the fix (cold launch with the same owner wiped the native index; indexed task lookup never called the by-ID API), and the native probe logged sceneLink_scheme=FAIL, sceneLink_universal=FAIL, sceneLink_oauth=FAIL, and liveRouteCleared=FAIL. Same-owner startup now reuses the persisted native generation; account changes still wipe. Task opening uses the backend's typed GET /v1/action-items/{id} outside the filtered first page. Live route delivery now acknowledges success and clears only the matching pending route. macOS task opening already resolves the backend ID independently of the visible list.

Review-four findings and self-audit: iOS native requests now pin the UID and generation through token acquisition, validate them immediately before sending and after the response, and return the existing auth dialog on change. macOS Siri writes already capture a RuntimeOwnerAuthorizationSnapshot; APIClient validates it before token lookup, after token lookup, immediately before send, and after response (the focused auth-retry tests pass). Memory links now traverse owner-wide All pages by ID with account checks, independent of useful-now/device filters; task links use backend IDs and reject cancelled/superseded rows. A single tier predicate now excludes archived memories from macOS incremental queries and full rebuilds, while iOS projections do the same and clear pre-fix memory snapshots lacking eligibility metadata. Both platforms perform launch expiry maintenance: macOS from AppDelegate even without a main window, and iOS by pruning/rebuilding the same-owner snapshot and rearming its timer. Both now retry a failed Spotlight wipe on launch while the indexing toggle remains OFF. The audit also found and fixed iOS incremental conversation/task/memory updates that left newly ineligible IDs indexed; stale task fetches and mutations after account clear; and a foreign-UID memory reconciliation that could clear the current owner's index. macOS task, memory and conversation entity links resolve by backend ID from owner-scoped local storage, independent of visible filters. No backend or Xcode pin changed.

Fifth-review regressions: a probe compiled from the iOS 16 API floor first failed on the 26-only custom intent/provider gates. The iOS 27 simulator then logged unsupportedNoteFolder=FAIL and unsupportedTaskFields=FAIL; macOS writer-stub tests observed both invalid writes. After validation parity fixes, both platforms reject non-Memories note destinations and unsupported note/task fields before a write, with specific spoken errors. A supplied due date that cannot be parsed is rejected rather than dropped; empty note/tag collections and isFlagged=false remain acceptable. Complete-task remains completion-only on both platforms, and iOS now gives the same explicit unsupported-field dialog as macOS. Remember applies the same whitespace/leading “that ” normalization, Search accepts a criteria term, and Start/Stop have no parameters. The parity sweep also found that iOS Open accepted unknown folder/list IDs and stale memory IDs; an opt-in simulator probe logged three failures before the fix and three passes after it. iOS now checks the account-scoped, currently eligible entity before routing, including donated UI activity links. The iOS 27 probe also passed engine-free Remember, Spotlight fetch/donation, expiry and wipe retry; an iOS 26.5 probe passed engine-free Remember and all three classic shortcut declarations. No backend or Xcode pin changed.

Cold-start coverage by path: the simulator probe exercises the AppLinks URL-context and NSUserActivity routing helper for the scheme, h.omi.me, and OAuth callback URL; the Google plugin's AppDelegate handoff is compiled but a real sign-in round trip is not simulated. The normal scene launch confirms a notification-center delegate after plugin registration, and 19 Flutter notification-routing tests pass; a notification tap still needs a device test. The bundled quick_actions_ios plugin registers as a Flutter scene delegate and retains a launch shortcut until activation; the opt-in probe checks the linked plugin's scene conformance. The probe checks audio and Bluetooth background modes, while the scene's BLE lifecycle callbacks and AppDelegate's audio/remote-notification handlers compile. Actual quick-action taps and BLE/audio background restoration need David's device pass. simctl openurl returned successfully but did not produce a fresh Runner scene callback in this debug simulator, so OS-delivered cold links are not claimed as verified.

Sixth-review regressions: Dev and production iOS previously shared their App Group snapshot, defaults keys, pending route, Keychain token mirror, telemetry and UID-only Spotlight index; macOS beta/prod/named bundles shared a UID-only Spotlight name. All iOS identifiers now derive from the Runner bundle ID, and the macOS index name includes its bundle ID. macOS Siri settings and owner records use UserDefaults.standard, which is already bundle-scoped; its Siri module has no shared files. New tests first failed to compile without the namespace/index helpers, then passed; the engine-free iOS 27 probe logged flavorNamespace=PASS, Remember succeeded against localhost, Spotlight fetch found one entity, and donation succeeded. The optimistic iOS conversation delete now restores the indexed row after either a false or thrown backend result and waits for the native delete before restoring; all three tests failed before their fixes. macOS memory sync now collects only committed changed IDs, including authoritative tier changes, and sends them through a 200-ID account-serialized queue; unchanged skipped rows are omitted. Conversation pages use one post-write batch, and the existing task page hook now uses the same bounded queue. Red tests caught row-at-a-time conversation writes and unchanged-row reindexing. The named macOS bundle shipped metadata and its direct Spotlight/Open probe passed; teamless donation retains the known helper error. No backend, Podfile lockfile or Xcode pin changed.

Seventh-review eligibility class fix: contracts/siri/README.md now has one field-by-field eligibility table. Source checks across the Dart models, GRDB records and backend models found additional index gates beyond the review: locked/paywalled state on all three entities, unknown/hidden visibility, canonical memory invalidation and supersession, task supersession, a dropped iOS memory is_dismissed field, empty backend IDs, and memory tier handling on both platforms. The initial rule mistakenly rejected absent tiers; the coordinator review corrects it to the backend legacy default. A shared predicate per entity on macOS now reads raw GRDB records for incremental updates, full rebuilds and entity queries; account-scoped index operations and launch rebuild use the same scope. iOS Dart projections use matching predicates, while the native persisted projection has one temporal predicate per entity used by entity queries, reindex and launch maintenance. Old macOS cache rows with nil lock flags or conversation visibility now follow backend defaults (unlocked/private); explicit locked or hidden values remain excluded. Mac conversation cache, pending edit and audio-clock copies now preserve visibility. Single and batch memory sync share the same timestamp fence; older server pages may only tighten rejected, dismissed, locked, hidden or expired state and cannot revive private content. Both live index timers now schedule the earliest memory, conversation or completed-task cutoff; iOS tested the actual timer on the simulator with a red/green probe. macOS Start/Stop errors now have listening-specific dialogs for recording off, denied microphone and nothing to stop; iOS maps the same typed cases. The Desktop Swift Release Compile log at reviewed head 7b153f4 shows Xcode 26.6 missing AssistantSchemas/IndexedEntityQuery/appEntityIdentifier symbols and consequent protocol/recursive-size errors; no independent source error was identified. Pins remain unchanged for David's decision.

Coordinator review correction: the backend MemoryDB.memory_tier is optional for legacy records, and absent/null means active. Both clients now index absent/null as long-term while excluding explicit archive; the backend rejects unknown memory_tier, while the Flutter app decoder preserves the page and excludes only the invalid Siri row. A read-only backend-model probe verified that unknown extra layer/tier aliases are ignored, so both decoders now do the same. Recognized conflicting aliases are Siri-ineligible without failing whole-page app decoding, preventing a layer: long_term alias from overriding canonical memory_tier: archive. The original no-tier home navigation fixture is restored. The same audit found macOS omitted conversation visibility decoded as unknown instead of the backend's private default, and nil memory/task cache lock flags excluded despite the backend's false default. The macOS app decoder now treats explicit null conversation visibility as private so a Siri-only field cannot reject a whole conversation page; an explicit hidden or unknown string remains Siri-ineligible. The shared contract now lists each field's absent-value behavior. Explicit hidden/locked, rejected, dismissed, superseded, expired, and cross-account rows remain excluded. No backend or Xcode pin changed.

Eighth-review fixes: iOS's UI list fetches covered only the first visible page of tasks and conversations. The service now performs a deferred owner-wide traversal independent of UI pagination: separate open/completed task pages, completed conversations within 180 days up to 2,000 eligible rows, and the unfiltered memory cursor pages. It schedules once per owner per launch day, while confirmed mutations stay incremental. It honors conversation Retry-After on 429 with one retry, carries list-truncation headers through typed API results, and reconciles absent IDs only after a complete traversal of the covered scope. Partial, failed or capped reads only upsert, preserving items outside the fetched window. Memory's existing owner-wide traversal was correct when invoked, but opening Memories was its only trigger; account binding now schedules it too. macOS now schedules a memory's earliest expires_at or ledger invalid_at, and filters hidden, locked, unsynced and missing-ID conversations in SQL before applying the 2,000-row limit. Memory and task rebuild queries already fetch all candidates before eligibility filtering. A round-seven navigation test exposed a real legacy-tier exclusion. The prior fixture edit masked it; the coordinator review restores that fixture and corrects the shared eligibility table. No Xcode pin or backend changed.

What only David can verify on device

Manual Siri test script

Use a beta/TestFlight build signed in to the explicit test account and seed about 50 fake memories, 5 conversations and 5 tasks. Confirm indexing is ON in settings.

  1. Say “Remember that I like fried rice” and inspect the saved memory. Repeat ten times with varied text; count one-turn saves, duplicates, and follow-up questions. Test the custom “Remember something in Omi” phrase separately.
  2. Say “Create a note in Omi's Memories folder: I prefer aisle seats” to exercise .notes.createNote. Compare routing and saved semantics with the custom path.
  3. Say “Open yesterday's standup in Omi” and verify the exact conversation opens. On a task row, say “Mark this done” and verify only that task completes.
  4. On a conversation detail, say “Summarize this”. Verify Siri resolves the visible conversation, then repeat from the list and from a notification. Do not count a generic answer as entity resolution.
  5. Ask five index questions over seeded fake conversation summaries and memories. Check attribution and answer content. Verify that transcript-only facts are absent.
  6. Turn the setting OFF and verify Spotlight content disappears. Sign out, sign in to a different test UID, and verify no old account entity appears. Reenable and verify only the new UID's seeded entities.
  7. With network blocked, while signed out, and under a test 402/429/5xx stub, invoke Remember and Complete. Verify no success dialog and no false write. Test Start/Stop listening and ensure a phone-mic conversation is created through the regular capture path, with its audio retained. Pause a phone stream and a phone batch recording, say Start, and verify Siri says Omi is paused without claiming it resumed; repeat while macOS is awaiting a meeting. While a BLE Omi device is connected and streaming, invoke Start and confirm Siri says Omi is already listening from the device.
  8. Force-quit the iOS beta app between trials. Open an omi-dev:// task/conversation link and an https://h.omi.me/ universal link, complete Google sign-in from its external callback, tap a notification, and launch from each Home-screen quick action. Confirm each target opens once without replay on the next ordinary launch. Start an Omi BLE/audio capture, background and relaunch the app, and confirm capture restoration follows the existing app flow.

Pending David's ruling

  • R1: Index conversation titles and summaries (no transcripts), active memories, open tasks and tasks completed in the last 30 days.
  • R2: Settings toggle defaults ON.
  • R3: Defer Ask Omi.
  • R4: Remember stores verbatim category: manual, tagged siri.

Toolchain and pin status

David's 2026-09-27 ruling is Xcode 26.6 required + Xcode 27 optional. Required Desktop Swift Static & Test Contracts, Desktop Swift Release Compile, and iOS Compile Check run on standard macos-26 with the checked Xcode 26.6 (17F113) pin. The Xcode 27-only Siri sources compile out under Swift 6.3; desktop store hooks and the iOS Pigeon bridge are no-ops in that CI artifact. Desktop/Package.swift excludes the 27-only sources and Siri test class under Swift 6.3; the compiler-gate checker allows only the single no-op shim gate in SiriIntegrationSettings.swift, with a locked path/version test. The required Release job proves the 26.6 SwiftPM source graph excludes the App Intents declarations and fails if its assembled bundle contains Metadata.appintents; the earlier hosted failure was the constant-values discovery pipeline exiting 1 under pipefail before the stable branch, not a metadata processor failure. The Xcode 27 advisory extracts and validates all actions and entities. One Desktop Siri Xcode 27 Advisory job in the existing workflow builds the integration on xcode-27, runs Siri tests and requires metadata extraction; it does not gate the Desktop Swift Build & Tests aggregate. Codemagic desktop release/preview and iOS TestFlight workflows stay on Xcode 27.0 (27A266a). Codemagic's Xcode 27 image manifest lists both the Mac mini M2 and M4 with exact 27.0/27A266a; the iOS workflows use M2 and desktop uses M4. The desktop metadata packager refuses a Siri-expected app built by any other Xcode version.

The macOS 26 runner manifest lists Xcode 26.6 but no 27; the Xcode 27 preview manifest lists 27.0. This split prevents the preview pool from blocking required team CI. The previous all-27 head's desktop jobs waited 3 h 16 m without a runner. The branch first merged origin/main at 6d7739d0406aaf6a0c6e5c623b7b3b4532965702 in merge commit 0ac28a6e1cd883c116deb582a67ff37950a2da67, then merged 069d85a6e6910fedbb1c6f1c5939c973dcda88ba in 98dd9431be0b47f5c6c4ebe011bd93cc0ab53c9e, and merged the newer f7c06136e8 tip in 7d62996f84c07225035afc050ef3952909879a03; l10n was regenerated with scripts/l10n.py and its 49-locale, 3,435-key check passed. The branch also merged 0341bca754 in e30e83ef80 and then 02bc07cf5f in 8d707ae619, retaining the capture and diagnostics changes from main. The merged l10n check covers 49 locales and 3,439 keys. The event registry regenerated 138 events after combining Siri and main's pendant event. Required hosted 26.6 and advisory 27 results for this ruling are reported in the verification table once complete.

The Xcode 27 Release spike exposed another ship-path issue: SwiftPM places both --triple products in one Products/Release directory, so Codemagic's old architecture-specific paths would fail. The shared desktop release/preview script now queries swift build --show-bin-path, copies each architecture to /tmp before the next build, and takes Sparkle/resources from the resolved products directory. The new release-path contract failed before that fix and passes afterward.

The five prior CI failures on Xcode 26.6 were missing SDK-symbol errors (AssistantSchemas.Entity.notes, appEntityIdentifier) and the consequent OmiFolderEntity.parentFolder diagnostic. The same code compiled and emitted metadata under Xcode 27; the recursive-property diagnostic was a missing-SDK cascade. The first Xcode 27 hosted Release compile stopped producing output after its large app target and hit the 90-minute job timeout. The earlier all-27 CI launcher limited the combined Release app/test build to one SwiftPM job; after David's ruling the required 26.6 launcher returns to main's default jobs. On exact head f2f146673c, Desktop Swift Release Compile passed on the standard 7 GB xcode-27 runner: its combined Release build completed in 2,883.63 seconds and all 11 Release notification-bridge tests passed. This resolves the observed hosted timeout without changing the runner size or job timeout.

The same head's static/test job exposed a separate Xcode 27 test-isolation race: the local-embedding fixture's memory sync could queue a Siri Spotlight writer while the test database was being closed and reopened. The production OFF-state upsert hooks now decline work before creating an asynchronous task; local-embedding tests set indexing OFF and restore the prior preference in teardown. This changes no normal non-Siri app behavior. A red fixture assertion and a before/after local writer-log probe cover the fix; the next exact-head hosted run is the remaining CI proof.

An unskipped local push exposed a non-Siri launcher-test parser that assumed environment values contain no newlines. Its synthetic fault-app fixture now captures NUL-delimited entries and asserts a multiline value survives. The targeted test failed with the original parser and passed after the change. The first push was also blocked by stale local SwiftPM artifacts after mixed-architecture builds; re-resolving the 18 cached binaries and swift package clean restored the exact Debug compile without a source change.

Main's appearance-setting merge made OmiColors.surface1 a runtime color. The Siri settings row had used it in a constant BoxDecoration, which the merged Flutter compiler rejected. A changed-test run failed before the fix; the row now constructs that decoration at runtime, preserving the dynamic System/Light/Dark palette.

The first push after David's stable-runner ruling was blocked by a CI workflow contract test in backend/tests/unit/test_workflow_contracts.py that still required runs-on: xcode-27 for iOS Compile Check. A red backend/test.sh run identified it; the test now asserts macos-26 and the stable artifact's no-Siri-metadata proof. All 31/31 focused workflow tests pass. This is a CI test update only; backend runtime code is unchanged.

The next push hook exposed the desktop launcher test still expecting the earlier Xcode 27 Release command with --jobs 1 and no metadata constants. Its red run exited 21; the fixture now asserts the stable runner command with -emit-const-values, default concurrency and combined app/test build. bash desktop/macos/tests/test-run-swift-ci.sh and every later hermetic launcher script passed.

The broader macOS 27 test lane exposed a pre-existing floating-bar test that waited 100 ms for a 180 ms AppKit animation. The test now waits for the frame to land within a one-second bound; its red/green isolated run was 11/11 after the fix. No floating-bar production behavior changed. A concurrent AVPlayer timing failure passed 27/27 on an idle rerun without a code change.

Entitlements and provisioning

The PR changes no .entitlements file, keychain access group, App Group, associated-domain entitlement or provisioning-profile identifier compared with origin/main. The two Runner Info.plists add a UIScene manifest and NSUserActivityTypes; neither is a provisioning capability. The Siri snapshot reuses the existing App Group and ordinary Keychain access. There is no Intents app extension; Apple's Siri entitlement is required for Intents extensions handling non-shortcut requests, not this in-app App Intents integration. No Apple Developer portal profile regeneration is expected from this diff; signed Codemagic builds remain the final profile compatibility proof.

Merge and test

After merge, .github/workflows/desktop_auto_release.yml runs hourly on main, consolidates the Siri changelog fragment into the next desktop version, tags an immutable candidate, and dispatches Codemagic omi-desktop-swift-release. Its signed/notarized candidate passes smoke tests before Beta promotion. Merging this PR to main with app/** changes triggers the existing .github/workflows/mobile_internal_build.yml dispatcher; it can build immediately for an allowlisted author, otherwise the three-hourly batch or a manual workflow dispatch sends ios-internal-auto to Codemagic. That workflow submits the signed iOS build to internal TestFlight. This automation already exists; this PR does not add a new release trigger. David should verify the exact merged SHA and use the existing mobile workflow dispatch if he wants TestFlight before the scheduled batch. Do not manually trigger the desktop release outside its guarded path.

David's device pass: install the signed macOS Beta on macOS 27 and internal TestFlight build on iOS 27; enable Siri/Apple Intelligence in English, sign into the test account, leave the Siri indexing toggle ON, and open Omi once to seed the index. Try “Remember … in Omi”, “Open … in Omi”, “Find … in Omi”, “Create a task in Omi”, “Mark … done in Omi”, and “Start/Stop listening in Omi”. Compare the custom Remember shortcut with .notes.createNote into Memories; use the detailed manual Siri script above for task-row and conversation-detail context. The siri_* events are registered in contracts/analytics/events.json and consumed by contracts/analytics/consumers/siri-intents.sql and siri-index-health.sql (PostHog). David decides R1–R4 below after device evaluation.

The desktop preview Codemagic workflow writes a public preview-registry entry; the iOS internal and production workflows upload to TestFlight; and ios-prod-patch invokes Shorebird patch publication even though its Codemagic publishing block only emails. None is safe for an unpublished branch build under this task's no-publish rule, so none was triggered. No signing/provisioning manual step is currently identified; if signed CI later rejects a profile, the exact target and capability must be resolved before merge.

David's runner decision is implemented: required team CI uses standard macos-26; the optional Siri job may queue on xcode-27 without blocking merge readiness. No Apple Developer portal capability/profile change is identified by this PR's entitlement diff. David's manual pre-merge step is to review the exact-head required CI and the PR; signed Codemagic profile compatibility and spoken Siri acceptance are verified on guarded beta/TestFlight builds after merge.

Known gaps

  • Follow-up: the full macOS memory rebuild applies the 5,000 eligible-memory cap, while incremental memory upserts can retain more than 5,000 until a later rebuild. This cap mismatch is recorded for a separate change; it is not changed in this PR.
  • Follow-up (final Sol review, should-fix): if the sign-out Pigeon call never reaches Runner and the process dies before the async native Auth listener runs, no wipe marker is written. Engine-free Siri still refuses (it requires the native Firebase user to match the owner), but already-indexed Spotlight items for the old account remain until the next app launch, which fences and wipes them.
  • Siri utterance routing and semantic answers require David's spoken device tests.
  • app/ios/ImageNotification/ has source files but no Xcode target or scheme in origin/main or this branch; neither prod nor dev archive embeds a notification service .appex. The existing widget and watch targets compile in the release archives, and the separate raybanDat Release archive compiles (its local wrapper cleanup trips over the stale upstream pasteboard lockfile entry). The orphan notification source cannot be built as a target without adding a new extension and signing profile; it does not participate in the Siri or TestFlight build path.
  • iOS 16–25 is compile-checked through the iOS 16 availability probe, but the oldest installed simulator runtime is iOS 26.5; spoken classic-Siri routing and execution on 16–25 remain device verification. Personal entity indexing starts at iOS/macOS 27 by the contract trade-off above.
  • OS-delivered cold URL/universal-link/OAuth callbacks, notification taps, Home-screen quick actions, and BLE/audio background restoration still need a signed device pass. Simulator routing probes are synthetic and use no signed-in account.
  • The iOS simulator Firebase Auth emulator verified persisted-user cold launch, matching-user mirrored-token fallback, sign-out and UID-switch refusal, and recovery on re-sign-in. Signed device behavior remains for David to verify; the emulator is not a production auth account.
  • Teamless macOS dev signing prevented App Intents donation with Couldn’t communicate with a helper application; direct Open intent execution and Core Spotlight retrieval passed. Signed beta/TestFlight donation still needs device verification.
  • The signed-out dev bundle and clean simulator had no test-account content. Full signed-in settings/index behavior and real Siri speech remain for David's beta/TestFlight pass.
  • Synthetic macOS Core Spotlight batches of 100, 1,000, 5,000 and 7,000 minimal fake entities completed in 0.071, 0.615, 3.017 and 4.367 seconds. Full production-payload indexing and backend generate-reply latency were not measured. Ask Omi is deferred, so no live chat calls were made.
  • flutter analyze --no-pub reports 87 existing repository issues at review eight; the analyzer ratchet passed with no new regression. Simulator debugger attachment failed after the app rendered due to the Flutter log reader; the app itself launched.
  • macOS full rebuild reads and projects all local entities before clearing the named Spotlight index. A local DB read failure preserves the prior index and triggers a bounded retry. Core Spotlight does not offer an atomic App Entity index swap; an indexing write failure after replacement begins can leave a partial index until that retry succeeds. The iOS owner-fenced snapshot rebuild likewise projects all entities before clearing Spotlight.
  • A terminated or suspended iOS Runner cannot guarantee a wake at the exact memory expiry time. Entity queries reject expired memories immediately; a live Runner's expiry timer removes Spotlight content, and launch maintenance removes stale content on the next Runner start.
  • If Core Spotlight itself rejects a deletion, already-indexed macOS content can remain searchable until Spotlight accepts a retry. The persisted owner journal blocks any new index write and retries on launch, toggle or owner transition; the app cannot remove an entry while the OS deletion API is failing. The iOS pending marker blocks engine-free queries and writes and retains the old index name for deletion retry.
  • A native Pigeon hang cannot make Dart preparation durable. The fast fence bypasses queued index work, and the native FirebaseAuth listener independently fences a definitive sign-out in-process. Every engine-free Siri read also checks FirebaseAuth 11.10.0 currentUser, whose getter waits for saved-user hydration on the same SDK work queue; a missing or different UID refuses access and fences the old owner. The token mirror is used only when that matching user cannot supply a fresh token. A locked Keychain/protected-data startup refuses Siri temporarily without destroying the old index. If token deletion and marker persistence both fail and the process dies before the listener, the next launch still follows Firebase's persisted account state: a persisted sign-out refuses Siri; an unpersisted sign-out leaves the app itself signed in. The simulator probe covers these states; signed-device protected-data behavior remains unverified.

Failure-Class: none
Line-Count-Exception: app/lib/providers/conversation_provider.dart | 1951 -> 2014 | Reconciliation and failed-delete rollback need the provider's live pagination, tombstone, and account-generation state; moving that state across files would risk stale private index entries.
Line-Count-Exception: app/lib/providers/memories_provider.dart | 1601 -> 1677 | Reconciliation must use the provider's actual traversal completion and owner/view scope before removing indexed memories; splitting that decision from the fetch risks treating partial results as authoritative.

Git-on-my-level and others added 26 commits September 26, 2026 15:39
Resume same-owner Spotlight state, resolve tasks by backend ID, forward scene links, and clear routes after live delivery.

Co-Authored-By: Codex <[email protected]>
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Toolchain feasibility note (automated revive audit): the Siri App Intents Mac surface uses Assistant schema APIs (AssistantSchemas.Entity.notes, searchInApp, IndexedEntityQuery) that do not exist in the macOS 26 SDK shipped with the repo's pinned Xcode 26.6 (17F113) toolchain (desktop/macos/ci/xcode-pin.json). Verified against the local SDK swiftinterface: searchInApp: 0 hits, IndexedEntityQuery: 0 hits in any macOS framework interface. The branch therefore cannot compile in CI or locally on the pinned toolchain regardless of merge state — Desktop Swift Release Compile / Static & Test Contracts failures are structural, not merge drift. Options: (a) hold as draft until the Xcode 27 pin is available on both GitHub macos-26 runners and Codemagic images, (b) rewrite entities as plain IndexedEntity without Assistant schema donation (feature regression), or (c) split the schema-dependent Mac files behind a compile-time guard that ships them once the SDK lands. Not mergeable as-is.

Comment on lines +587 to +616
name: Desktop Siri Xcode 27 Advisory
needs: changes
if: ${{ needs.changes.outputs.should_run_static == 'true' || needs.changes.outputs.should_run_tests == 'true' }}
runs-on: xcode-27
continue-on-error: true
timeout-minutes: 60
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 1
- name: Select Xcode 27 release toolchain
run: |
echo "DEVELOPER_DIR=/Applications/Xcode_27.0.app/Contents/Developer" >> "$GITHUB_ENV"
DEVELOPER_DIR=/Applications/Xcode_27.0.app/Contents/Developer xcodebuild -version | grep -Fx 'Xcode 27.0'
- name: Install Swift system dependencies
run: brew install pkg-config webp
- name: Build Siri and test targets with metadata constants
working-directory: desktop/macos/Desktop
run: xcrun swift build -c debug --triple arm64-apple-macosx --jobs 1 --build-tests -Xswiftc -emit-const-values
- name: Run Siri intent and eligibility tests
working-directory: desktop/macos/Desktop
run: xcrun swift test -c debug --triple arm64-apple-macosx --skip-build --filter SiriIntentServiceTests
- name: Check Metadata.appintents extraction
working-directory: desktop/macos
run: |
bundle="$RUNNER_TEMP/Omi-Siri-Advisory.app"
mkdir -p "$bundle/Contents/Resources"
./scripts/embed-app-intents-metadata.sh Desktop "$bundle" Debug arm64
test -s "$bundle/Contents/Resources/Metadata.appintents/extract.actionsdata"
@Git-on-my-level
Git-on-my-level marked this pull request as ready for review September 28, 2026 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants