Repository navigation
feat(siri): App Intents + Spotlight personal context for macOS and iOS - #19133
Conversation
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
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]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
|
Toolchain feasibility note (automated revive audit): the Siri App Intents Mac surface uses Assistant schema APIs ( |
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Add an advisory Xcode 27 metadata lane while Codemagic release builds retain the full Siri integration. Co-Authored-By: Codex <[email protected]>
Preserve Siri and pendant telemetry events and regenerate all locale outputs. Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
| 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" |
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
…wipes Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
Co-Authored-By: Codex <[email protected]>
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.mddefines backend entity IDs,omi://links, index scope, write semantics, spoken failures, intent phrases, donations and telemetry. ConversationEntity is the sole.notes.notetype. A processor compile spike proved that a second note type causes an export error, so Spotlight uses a customMemoryEntity. The.notes.createNoteintent must return a note: it returnsConversationEntity(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.createNotein Memories for device comparison.Classic Remember and Start/Stop shortcuts are available on iOS 16+ and the macOS 14 deployment floor. Remember uses
openAppWhenRun=falsefor engine-free execution on older iOS; listening opens the app for its Flutter capture controller.supportedModesremains on iOS/macOS 26+. Spotlight entity indexing and the schema intents remain iOS/macOS 27+: the iOS 18IndexedEntityAPI alone cannot represent this PR's 27-only conversation/task note and reminder schemas or 27-onlyIndexedEntityQueryreindex 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
UIApplicationSceneManifestfrom the iOS 27 simulator dev bundle made UIKit logApplication 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.scenepreserves 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.
ConversationProvideradd/update/synced methods, detail title and first-party summary saves, and completed fetch ->upsertConversationsor scopedreconcileConversations(conversation detail summary/title, mutation and authoritative fetch tests)TranscriptionStorageserver sync, completion, title and folder edits, andConversationRepositorybatch ->conversationChanged(s)and eligible query (conversation repository/reconciliation tests); local in-progress rows lack a server ID and are ineligibledeleteConversationLocally->delete; undo/failure -> await pending native delete, then orderedupsert; merge notificationonMergeCompleted-> 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 pathMemoriesProvidercreate/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 authoritativelyMemoryStoragemarkSynced/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)deleteMemory-> delete; undo/failed backend delete -> upsert; successfuldeleteAllMemories-> 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)ActionItemsProviderconfirmed 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)ActionItemStoragehard/soft/staged/bulk/absent prune -> deleted IDs (task storage/bulk-delete tests)AuthServicemakes a bounded best-effort nativeprepareForSignOutcall 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.accountChangedcompletes 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.IndexedEntityQuerycaptures owner, then entersSiriSnapshotStoreserial gate for eligibility, incremental Spotlight write or full rebuild; a concurrent wipe finishes last (source regression test and iOS 27 simulator race probe)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/mainacross 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.origin/main, without waiting for Spotlight deletion; indexing uses the fetched backend ID, regardless of the visible list.idTokenChangeslistener. A separate Siri-only listener mirrors every refreshed token, avoiding repeated main-app identity side effects.siriVisibilityValidflag excludes malformed rows only from the Siri index and survives cache serialization.origin/main; Siri separately indexes the confirmed server row.origin/mainpath 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.Verification by layer
swift build -Xswiftc -emit-const-values;appintentsmetadataprocessoron a throwaway SwiftPM packagexcrun swift build --build-tests(macOS);flutter build ios --simulator --flavor dev --debug --no-codesign(iOS)env -u PROMPT OMI_PR_BODY_FILE=/Volumes/Ephemeral/scratch/worktrees/omi/siri-app-intents-PR.md make preflightOMI_APP_NAME=omi-siri-intents … ./run.sh --full --yolo --no-wait; in-process-omi-siri-probeperform()emitted navigation notificationflutter build ios --simulator -d 8E8F0310-BDC5-454C-99B1-CB83E1DECCD1 --flavor dev --debug --dart-define=OMI_APP_PROFILE=local_dev --no-codesign; opt-inxcodebuild … SWIFT_ACTIVE_COMPILATION_CONDITIONS=OMI_SIRI_PROBE build, temporary signed simulator bundle with loopback stubfailedDisableRetriedOnLaunch=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 stringsSIMCTL_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-probeclassicShortcuts=PASS, andRememberIntent.perform()returnedSaved to Omiagainst the loopback stub. Siri voice phrase resolution was not testedxcrun 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 27xcodebuild ... SWIFT_ACTIVE_COMPILATION_CONDITIONS=OMI_SIRI_PROBE buildandsimctl launch ... -omi-siri-probe; named macOS./run.sh --full --yolo --no-waitandopen -a ... --args -omi-siri-probeis_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 loggedagedConversationTimer=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. Fullflutter analyzereports 87 existing repository issues; no new diagnostics in changed Siri codecd 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.shhome_navigation_test.dartfailed 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.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-enginesimctl launch ... -omi-siri-probe; named macOS./run.sh --full --yolo --no-waitandopen -a ... --args -omi-siri-probeMetadata.appintentspresent. 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.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-enginexcodebuild ... OMI_SIRI_PROBE; named macOS./run.sh --full --yolo --no-wait;OMI_PR_BODY_FILE=... make preflightenv -u PROMPT OMI_PR_BODY_FILE=/Volumes/Ephemeral/scratch/worktrees/omi/siri-app-intents-PR.md make preflightpassed all 69 checks in 152.00s.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.shxcodebuild -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; signedsimctl launch ... -omi-siri-probewith a loopback stub; macOSOMI_APP_NAME=omi-siri-intents ... ./run.sh --full --yolo --no-waitthenopen -a /Applications/omi-siri-intents.app --args -omi-siri-probeengineFreeRememberIndexed=PASS,engineFreeCreateIndexed=PASS,engineFreeCompleteIndexed=PASS,staleConfirmedWrite=PASS,spotlightFetch=1, and no FAIL verdict. Named macOS bundle containedMetadata.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.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 signedxcrun simctl installandxcrun simctl launchorigin/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.appintentsis present and the normal binary has no probe strings.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 27xcodebuild ... OMI_SIRI_PROBEand signed loopbacksimctl launch ... -omi-siri-probesingleUpsertFullRebuilds=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 withMetadata.appintentspresent 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.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-testsandxcrun swift test --filter 'ActionItemLocalIdentityMutationTests|ConversationProjectionRenderingTests|ConversationReconciliationPolicyTests|ConversationRepositoryTests|LocalEmbeddingCapturePathTests|MemoryAuthoritativeTierSyncTests|ServerConversationDecodingTests|ServerMemoryV17DecodingTests|SiriIntentServiceTests|TranscriptionSessionRecordTests';bash scripts/analyze_ratchet.sh; iOS simulatorxcodebuild ... OMI_SIRI_PROBE, signedsimctl launch ... -omi-siri-probe; named macOS./run.sh --full --yolo --no-wait, strictcodesign --verify, thenopen -a ... --args -omi-siri-probeMetadata.appintentspresent. 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 preflightpassed all 69 checks in 165.11 seconds.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 27xcodebuild ... SWIFT_ACTIVE_COMPILATION_CONDITIONS=OMI_SIRI_PROBE build, signedsimctl 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 launchexpires_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 loggedreindexConcurrentWipeEmpty=PASS count=0, engine-free Remember/Create/Complete PASS, Spotlight fetch=1 and no FAIL verdict. The normal Dev app built, installed and launched withMetadata.appintents. macOS already decoded both deadlines and serialized query writes with wipe; a new test proves the earlier expiry wins.ConversationQuery.reindexEntitiesfor a memory,SiriSnapshotStore.delete(type: "memory"), thenCSSearchQuery; macOSxcrun swift build --build-testsand the 10 changed test classesdeletedMemoryNoteAbsent=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.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 macOSOMI_APP_NAME=omi-siri-intents ... ./run.sh --yolo --no-wait,codesign --verify --deep --strict,open -a ... --args -omi-siri-probereindexConcurrentWipeEmpty=PASS count=0,deletedMemoryNoteAbsent=PASS count=0, engine-free Remember/Create/Complete and Spotlight fetch=1; normal Dev simulator build, launch and metadata passed.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 probexcodebuild ... SWIFT_ACTIVE_COMPILATION_CONDITIONS=OMI_SIRI_PROBE buildand signedsimctl launch ... -omi-siri-probe; normalflutter build ios --simulator -d 8E8F0310-BDC5-454C-99B1-CB83E1DECCD1 --flavor dev --debug --dart-define=OMI_APP_PROFILE=local_dev --no-codesign; named macOSOMI_APP_NAME=omi-siri-intents ... ./run.sh --yolo --fast-only --no-wait,codesign --verify --deep --strict, andopen -a ... --args -omi-siri-probe;env -u PROMPT OMI_PR_BODY_FILE=/Volumes/Ephemeral/scratch/worktrees/omi/siri-app-intents-PR.md make preflightswift build --build-tests, and the analyzer ratchet.make preflightpassed 69/69 checks in 166.36 seconds withOMI_PR_BODY_FILEon 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.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 iOSxcodebuild ... SWIFT_ACTIVE_COMPILATION_CONDITIONS=OMI_SIRI_PROBE build, signedsimctl install/simctl launch ... -omi-siri-probe; normalflutter build ios --simulator -d 8E8F0310-BDC5-454C-99B1-CB83E1DECCD1 --flavor dev --debug --dart-define=OMI_APP_PROFILE=local_dev --no-codesign; named macOSOMI_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 preflightMetadata.appintentspresent.env -u PROMPT OMI_PR_BODY_FILE=... make preflightpassed all 69 checks in 203.23 seconds on the committed tree.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 iOSxcodebuild ... SWIFT_ACTIVE_COMPILATION_CONDITIONS=OMI_SIRI_PROBE build, signedsimctl install/simctl launch ... -omi-siri-probe; normalflutter build ios --simulator -d 8E8F0310-BDC5-454C-99B1-CB83E1DECCD1 --flavor dev --debug --dart-define=OMI_APP_PROFILE=local_dev --no-codesign; named macOSOMI_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 preflightlisteningFailureDialogs=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 withMetadata.appintents.env -u PROMPT OMI_PR_BODY_FILE=... make preflightpassed 69/69 checks in 151.64 seconds on the committed tree.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-valuesand 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_betaand--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 preflightactionlint -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.yamlnow records that label and actionlint passes. Web typecheck, 113 files/587 tests and 5 Bun smoke tests passed after frozen dependency install.make preflightpassed 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.git merge --no-ff origin/mainthroughe3f9759091;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/greenbash 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_betaand--flavor dev --dart-define=OMI_APP_PROFILE=local_dev;env -u PROMPT OMI_PR_BODY_FILE=... make preflightf2f146673c. 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.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-regressionwith the same override--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.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 forx86_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 -infoand JSON metadata count.apphas a valid Info.plist, a two-architecture Mach-O executable andContents/Resources/Metadata.appintents/extract.actionsdatawith 12 actions/8 entities from the current merged source. Signed packaging, notarization and public delivery remain Codemagic-only steps.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.xcrun swift test --filter LocalEmbeddingCapturePathTests;xcrun swift build --build-tests;xcrun swift test --filteron all 10 PR-changed Swift classes;flutter test --no-pubon all 14 PR-changed Flutter files;env -u PROMPT OMI_PR_BODY_FILE=... make preflightswift build --build-testspassed. 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.bash desktop/macos/tests/test-fault-suite-launch-env.shwith an explicit multiline environment fixture; remainingdesktop/macos/tests/test-*.shlauncher scripts using the hook'sbashinvocation and two live-test exclusions;env -u PROMPT OMI_PR_BODY_FILE=... make preflightValueErrorbecause itsenvcapture 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.git merge --no-ff origin/mainatb02a24ecfc;cd app && python3 scripts/l10n.py check; 49-locale value audit;flutter test --no-pubon all 14 PR-changed test files;xcrun swift build --build-tests;xcrun swift test --filteron all 10 PR-changed classesconst BoxDecorationaround main's new runtimeOmiColors.surface1; removingconstmade 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 at7d62996f84with 13/8 metadata; its wrapper again exited nonzero only while restoring main's stalepasteboardentry inPodfile.lock(absent from main'spubspec.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 upstreampasteboardplugin; 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-treeenv -u PROMPT OMI_PR_BODY_FILE=... make preflightpassed 89/89 checks in 381.38s on this merged head.flutter build ios --simulator --flavor dev --debug --no-codesign; freshsimctl install/simctl launch; opt-inxcodebuild ... 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; prodflutter build ipa --release --no-codesignSiriSnapshotStore.init()because the App Group container URL was nil. An app-local Application Support fallback made the fresh app stay running; the probe loggedmissingAppGroupFallback=PASS, scene scheme/universal/OAuthPASSandfirebaseUser=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-treeenv -u PROMPT OMI_PR_BODY_FILE=... make preflightpassed 89/89 checks in 370.55s.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 forx86_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.apphas a valid Info.plist, universal executable andContents/Resources/Metadata.appintents/extract.actionsdatawith 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.OMI_SWIFT_CI_XCODE_APP=/Applications/Xcode.app OMI_SWIFT_TEST_LANE=pr ./scripts/run-swift-ci.sh --testwith three workers;xcrun swift test --skip-build --filter CaptureArchiveTests; red/greenxcrun swift test --filter FloatingBarSurfaceFloorTests;xcrun swift test --skip-build --filterfor all 11 changed Swift classes;xcrun swift build --build-tests;env -u PROMPT OMI_PR_BODY_FILE=... make preflightd08e8f36c5. Hosted Xcode 27 static and Release jobs remain the exact-head CI authority.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-absentsource-graph and bundle check; advisory Xcode 27 extraction--build-testspass, 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-codesignpassed with 13 actions/8 entities inRunner.app;simctl installandsimctl launchpassed (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 preflightpassed 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 Devflutter build ipa --release --no-codesignarchives passed; each has 13 actions/8 entities, BatteryWidget and omiWatchApp. Post-merge arm64 and x86_64swift build -c release --triple ... -Xswiftc -emit-const-values --jobs 4both passed;lipoassembled an unsigned universal app, andembed-app-intents-metadata.shput 12 actions/8 entities in itsContents/Resources/Metadata.appintents. After merging mainf7c06136e8, the 14 PR-changed Flutter files plus three new main voice-recorder/chat tests passed 154/154;xcrun swift build --build-testsand all 11 changed Swift classes passed 171/171; l10n has 49 locales/3,435 keys. Finalenv -u PROMPT OMI_PR_BODY_FILE=... make preflightpassed 93/93 checks in 248.23s. Hosted 26.6 and advisory 27 verdicts pending exact-head runs.7d62996f84flutter build ipa --release --no-codesign --flavor prod --dart-define=OMI_APP_PROFILE=mobile_beta; same for Dev withOMI_APP_PROFILE=local_dev;flutter build ios --simulator -d 8E8F0310-BDC5-454C-99B1-CB83E1DECCD1 --flavor dev --debug --no-codesign,simctl install/launch; macOSswift build -c release --triple arm64-apple-macosxandx86_64-apple-macosxwith-Xswiftc -emit-const-values --jobs 4,lipo -create,embed-app-intents-metadata.sh.apphas x86_64+arm64 Mach-O, a valid Info.plist andContents/Resources/Metadata.appintentswith 12 actions/8 entities. Signing, notarization and real Siri speech remain unverified.c167ee0691python3 .github/scripts/test_desktop_swift_ci_contract.py -k test_mobile_27_only_sources_compile_out_on_required_cicaught the unguarded native session;-k test_both_toolchains_prove_the_metadata_boundarycaught the non-stockrgdependency. 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 withPATH=/usr/bin:/bin, 12/8 macOS;OMI_PR_BODY_FILE=... make preflight93/93; normal pre-push gate passed.rgwas absent; iOS first failed onSiriSnapshotStorereferenced bySiriSessionbefore the new compile-time gate. Both are fixed in this head. Exact-head hosted checks are running.cd desktop/macos/Desktop && xcrun swift build --build-tests; `xcrun swift test --skip-build --filter 'ActionItemLocalIdentityMutationTests931c379e9cpython3 .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 preflightpipefail, before the no-intents check. The early stable check now validates that SwiftPM excludes App Intents declarations and that the assembled bundle lacksMetadata.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.5b615d2fe9)Runner.appand proved its metadata has no Siri actions or entities.5b615d2fe9)5b615d2fe9)Metadata.appintentsextraction with 12 actions/8 entities.5b615d2fe9).build.bash desktop/macos/tests/test-embed-app-intents-metadata.sh; exact hosted Release step commands against an empty SwiftPM.buildfixture;python3 .github/scripts/test_desktop_swift_ci_contract.py -q;env -u PROMPT OMI_PR_BODY_FILE=... make preflightgrepreturned 1 before--expect-absentcould 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.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 'ActionItemLocalIdentityMutationTests8d707ae619)cd app && flutter build ios --simulator -d 8E8F0310-BDC5-454C-99B1-CB83E1DECCD1 --flavor dev --debug --dart-define=OMI_APP_PROFILE=local_dev --no-codesign; parsebuild/ios/iphonesimulator/Runner.app/Metadata.appintents/extract.actionsdata;xcrun simctl installandxcrun simctl launch8d707ae619)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 4and matchingx86_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_betaand corresponding Dev/local_devMetadata.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.8d707ae619)8d707ae619)8d707ae619)8d707ae619)8d707ae619)gh pr view 19133 --json headRefOid,mergeable,statusCheckRollupcd 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; scratchcompiler(>=99)simulator app and desktopswift build --build-testsMetadata.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 matchesb14b945889. Exact-head hosted CI is running.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; scratchcompiler(>=99)iOS simulator and desktopswift build --build-tests28fb0b6a0cfollow.flutter test --no-pubon every changed PR test file;xcrun swift build --build-testsandxcrun swift test --filter '<12 changed classes>'; opt-in iOS 27xcodebuildand no-enginesimctl launchwith loopback stub; scratchcompiler(>=99)iOS simulator and desktop builds; normalflutter build ios --simulator --debug --flavor dev --no-codesign;OMI_PR_BODY_FILE=… make preflightsignOutFenceBypassesSpotlightGate=PASS,failedMarkerTokenRemoved=PASS coldQueriesEmpty=PASS intentDenied=PASS, andsignInAfterMarkerFailure=PASS, with zero FAIL verdicts and loopback Remember indexed. Compile-out iOS build has no metadata; desktop test build and--expect-absentpass. Normal iOS simulator build hasMetadata.appintents. Full preflight passed 94/94 in 249.84s. Hosted exact-head CI pending.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; scratchcompiler(>=99)iOS and desktop builds; normalflutter build ios --simulator --debug --flavor dev --no-codesign;OMI_PR_BODY_FILE=… make preflightfirebaseSignOutWithoutPigeon=FAIL; after it,coldFirebaseUserPreserved=PASS,firebaseSignOutWithoutPigeon=PASS, andfirebaseReSignInRestoresSiri=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-absentpasses. The normal iOS app built, launched, and includes metadata. Full preflight passed 94/94 in 220.45s. Hosted exact-head CI 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-freesimctl 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 preflightauthGateNilRefused=FAIL ... fenced=FAILafter Firebase sign-out. The fixed probe logsauthGateColdSignedIn=PASS,authGateMatchingUserMirrorFallback=PASS,authGateNilRefused=PASS queriesEmpty=PASS fenced=PASS,authGateDifferentUidRefused=PASS,authGateAllPersistenceFailedInMemoryFence=PASS,firebaseSignOutWithoutPigeon=PASS, andfirebaseReSignInRestoresSiri=PASS. 133/133 Flutter and 176/176 Swift tests pass. The generic loopback probe also logsdisabledExplicitFolder=PASSand 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_devpassed; its unsigned Runner archive contains 13 actions/8 entities inMetadata.appintents. Full final-state preflight passed 94/94 in 336.65s; hosted exact-head checks are pending.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 inSiriSnapshotStore's serial owner-fenced path on iOS andSiriIndexer's owner-fenced operation path on macOS. The macOSSiriDevProbewrites 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
SiriIndexHookssync batch: the batcher passes at most 200 IDs intoreindexConversations,reindexMemories, orreindexTasks, 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, andstalePublishAfterWipe=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 ownerwiped the native index; indexed task lookup never called the by-ID API), and the native probe loggedsceneLink_scheme=FAIL,sceneLink_universal=FAIL,sceneLink_oauth=FAIL, andliveRouteCleared=FAIL. Same-owner startup now reuses the persisted native generation; account changes still wipe. Task opening uses the backend's typedGET /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=FAILandunsupportedTaskFields=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 andisFlagged=falseremain 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 bundledquick_actions_iosplugin 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 openurlreturned 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 loggedflavorNamespace=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 afalseor 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.mdnow 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 memoryis_dismissedfield, 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 missingAssistantSchemas/IndexedEntityQuery/appEntityIdentifiersymbols 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_tieris 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 unknownmemory_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 extralayer/tieraliases are ignored, so both decoders now do the same. Recognized conflicting aliases are Siri-ineligible without failing whole-page app decoding, preventing alayer: long_termalias from overriding canonicalmemory_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-Afteron 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 earliestexpires_ator ledgerinvalid_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.
.notes.createNote. Compare routing and saved semantics with the custom path.omi-dev://task/conversation link and anhttps://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
category: manual, taggedsiri.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-26with 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.swiftexcludes the 27-only sources and Siri test class under Swift 6.3; the compiler-gate checker allows only the single no-op shim gate inSiriIntegrationSettings.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 containsMetadata.appintents; the earlier hosted failure was the constant-values discovery pipeline exiting 1 underpipefailbefore the stable branch, not a metadata processor failure. The Xcode 27 advisory extracts and validates all actions and entities. OneDesktop Siri Xcode 27 Advisoryjob in the existing workflow builds the integration onxcode-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 exact27.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/mainat6d7739d0406aaf6a0c6e5c623b7b3b4532965702in merge commit0ac28a6e1cd883c116deb582a67ff37950a2da67, then merged069d85a6e6910fedbb1c6f1c5939c973dcda88bain98dd9431be0b47f5c6c4ebe011bd93cc0ab53c9e, and merged the newerf7c06136e8tip in7d62996f84c07225035afc050ef3952909879a03; l10n was regenerated withscripts/l10n.pyand its 49-locale, 3,435-key check passed. The branch also merged0341bca754ine30e83ef80and then02bc07cf5fin8d707ae619, 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
--tripleproducts in oneProducts/Releasedirectory, so Codemagic's old architecture-specific paths would fail. The shared desktop release/preview script now queriesswift build --show-bin-path, copies each architecture to/tmpbefore 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 consequentOmiFolderEntity.parentFolderdiagnostic. 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 headf2f146673c, Desktop Swift Release Compile passed on the standard 7 GBxcode-27runner: 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 cleanrestored the exact Debug compile without a source change.Main's appearance-setting merge made
OmiColors.surface1a runtime color. The Siri settings row had used it in a constantBoxDecoration, 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.pythat still requiredruns-on: xcode-27for iOS Compile Check. A redbackend/test.shrun identified it; the test now assertsmacos-26and 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 1and 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.shand 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
.entitlementsfile, keychain access group, App Group, associated-domain entitlement or provisioning-profile identifier compared withorigin/main. The two Runner Info.plists add a UIScene manifest andNSUserActivityTypes; 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.ymlruns hourly on main, consolidates the Siri changelog fragment into the next desktop version, tags an immutable candidate, and dispatches Codemagicomi-desktop-swift-release. Its signed/notarized candidate passes smoke tests before Beta promotion. Merging this PR to main withapp/**changes triggers the existing.github/workflows/mobile_internal_build.ymldispatcher; it can build immediately for an allowlisted author, otherwise the three-hourly batch or a manual workflow dispatch sendsios-internal-autoto 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.createNoteinto Memories; use the detailed manual Siri script above for task-row and conversation-detail context. Thesiri_*events are registered incontracts/analytics/events.jsonand consumed bycontracts/analytics/consumers/siri-intents.sqlandsiri-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-patchinvokes Shorebird patch publication even though its Codemagicpublishingblock 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 onxcode-27without 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
app/ios/ImageNotification/has source files but no Xcode target or scheme inorigin/mainor 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 separateraybanDatRelease archive compiles (its local wrapper cleanup trips over the stale upstreampasteboardlockfile 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.Couldn’t communicate with a helper application; direct Open intent execution and Core Spotlight retrieval passed. Signed beta/TestFlight donation still needs device verification.generate-replylatency were not measured. Ask Omi is deferred, so no live chat calls were made.flutter analyze --no-pubreports 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.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.