Skip to content

fix(app): register semantic controls with the Dart ext. prefix - #14319

Closed
Git-on-my-level wants to merge 79 commits into
task/msd-spine-a-addressabilityfrom
task/msd-ui-b0-ext-prefix
Closed

Git-on-my-level wants to merge 79 commits into
task/msd-spine-a-addressabilityfrom
task/msd-ui-b0-ext-prefix

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

What changed and why

The five semantic-control VM extensions were registered as omi.controls.*. Dart's registerExtension requires an ext. prefix, so enabling the surface threw ArgumentError on the first method. Nothing caught it: no test called the real SDK registrar. Names are now ext.omi.controls.*, capabilities advertise exactly those five suffixes (capabilities, state, wait_ready, navigate, fault — not the unregistered action / fault.arm / fault.clear), and installed is set only after every registration returns. The B0 pending marker is gone; the protected test now passes because the SDK accepts the names.

Product invariants affected

none

How it was verified

  • python3 scripts/check_spine_contracts.py — exit 0; 43 pending markers (B0 gone; B1/V1 remain); 23 protected files. Diff against the introducing commit is only the deleted pendingContract('B0'); line.
  • flutter test --dart-define=OMI_DEV_CONTROLS=1 test/spine/b0_registration_test.dart — +1 All tests passed! (SDK registration errors empty; advertised suffixes prefix-match the five installed methods).
  • flutter test test/unit/semantic_controls_guard_test.dart — +10 All tests passed! (ordinary compilation still ineligible; installIfEligible is a no-op).
  • TZ=UTC bash app/test.sh — 38 opt-in spine tests passed (includes the real B0 registration case); 2048 ordinary tests passed (includes B0 ordinary build remains ineligible). Host timezone is not claimed; suite was forced UTC.
  • bash scripts/dev-harness/run-tests.sh — 287 passed, 7 skipped, 40 xfailed.
  • OMI_PR_BODY_FILE=.local/pr-body-b0.md make preflight — 21 checks passed in 56.66s (failure-class-protocol accepted Failure-Class: new with FC-unexecuted-control-registration).

Grep of harness, app/e2e, app/integration_test, and docs/ found no remaining omi.controls.* (no ext.) method strings. The protected V1 fixture scripts/dev-harness/tests/spine/fake_flutter.py still lists fault.arm / fault.clear in its capabilities payload; this package cannot edit that file (spine-contracts check). That leftover is V1's.

Could not verify: a live debug VM with OMI_DEV_CONTROLS=1 against a physical device. The B0 test is the SDK registration path.

Tests

  • Core path: app/test/spine/b0_registration_test.dart now executes real developer.registerExtension for all five names and reads the capabilities handler.
  • Error path: app/test/unit/semantic_controls_guard_test.dart still proves an ordinary debug build (no OMI_DEV_CONTROLS=1) never registers.

Failure class (fixes)

Failure-Class: new

Failure-class transition narrative (only when needed)

No existing class covered “a control surface whose registration no test ever executed.” FC-unexecuted-control-registration: the VM must accept every method name; a fake registrar or a rejected omi.controls.* name cannot count as installed. Guard: B0 test calls dart:developer registerExtension under the real opt-in compile, and installIfEligible marks installed only after those calls return. evidence_prs is empty; this PR is the first instance.


Part of the mobile self-driving program (App UI lane, package B0). Stacked on #14315, which carries the contract test this fix satisfies; review order is #14310, #14315, then this. Implemented by Cursor cursor-grok-4.6-high against a test written by Codex gpt-6-astra. Coordinator verification on the head commit: the only edit to the protected spine test is the removal of its pending marker (python3 scripts/check_spine_contracts.py passes, 43 pending, 23 protected files); flutter test --dart-define=OMI_DEV_CONTROLS=1 test/spine/b0_registration_test.dart passes against the real developer.registerExtension; semantic_controls_guard_test.dart passes (10).

🤖 Generated with Claude Code

Review in cubic

Git-on-my-level and others added 30 commits September 17, 2026 13:55
Use the compiler-recommended explicit capture expression in three nested closures without changing their weak ownership. This allows the complete app and hosted summary tests to compile with the installed Swift 6.4 toolchain under warnings-as-errors.

Verified: full macOS app build and 84 focused Swift tests passed. The release-pinned Xcode 26.6 is not installed on this host.

Failure-Class: none
Stub the user data-protection policy lookup at its Redis boundary while exercising the real lifecycle decorators and Firestore writes. This closes an unintended external request exposed by the summary mutation verification.

Verified: all 53 Typesense tests and the 418-test focused backend suite pass using the locked backend environment.
Select one primary document with explicit app provenance; preserve user edits, source evidence and cached sections; render native Markdown blocks without duplicated projections. Align mobile, web, exports and daily recap eligibility using a shared 17-case contract.

Verification: 84 focused Swift tests and complete app compilation; 418 backend tests across 18 affected files; 36 Flutter tests; web TypeScript, 498 Vitest tests and 5 Bun smoke tests. Hosted views cover actual source activation, selection/resize and SQLite persistence. Release-pinned Xcode and installed-device acceptance are not claimed.

Failure-Class: FC-split-mutation-authority
Match the server mutation by clearing generated sections during a first-party summary edit and restoring them on failure. Capture the edited objects so a failed request cannot roll back a refreshed conversation or changed content.

Verified: 41 focused Flutter parity, provider and widget tests passed, including successful edits, preserved evidence on rollback, endpoint arguments, and refresh/newer-content races.

Failure-Class: FC-split-mutation-authority
Keep the free-tier entrypoint and client-processing acceptance fixtures compatible with the new structured-reference validator while preserving their isolated LLM boundary.

Verified: both affected backend files pass through backend/test.sh after reproducing their missing-import failure. Production validator behavior is covered by the dedicated source-reference tests.
Transcript segment identities are declared as Iterable[str]; retain empty-ID filtering without an unnecessary isinstance assertion rejected by the typed boundary.

Verified: backend typecheck passes with zero errors, and all 669 tests in the 23-file focused suite pass.

Failure-Class: none
The five VM extensions were named omi.controls.*, which registerExtension
rejects, so enabling the surface threw and no test ever executed the real
registration. Names are now ext.omi.controls.*, capabilities advertise
exactly those five suffixes, and installed is set only after registration
returns.

Failure-Class: new
Co-authored-by: Cursor <[email protected]>
…lt-off switches (#14316)

#14165 merged a 402 on desktop proactivity completions, a 402 on Gemini proxy
embeds, and a deterministic-minimum landing for flag-off desktop first-open and
reprocess, all unconditional, while its description said production would stay
ungated. The next routine production deploy would have switched all three on
before any on-device replacement had shipped.

Each gate now reads its own call-time env switch (default off, explicit true in
dev, explicit false in prod, declared on every host of its code path, including
backend-sync-backfill). Off performs no authorize call and writes no marker.
Deploy admission accepts only exact true/false for the co-hosted switch. The
S14 generate/stream proxy gate that is already live in production is unchanged.

Failure-Class: new

Co-Authored-By: Claude Fable 5.1 <[email protected]>
The isolated conversation-processing fixture now loads the pure summary-selection module required by the production import, while preserving its dependency sandbox.

Verified: action-item date validation suite passes all 26 tests.

Failure-Class: none
…degrade instead of stalling (#14320)

The QA plane's sweep failed before dispatch on a 12,288-byte body cap that the
parser instructions plus a real profile always exceed, logged only the
exception type name, and left the day's fence pending so later days queued
behind it. Log and record the content-free reason code, trim the bounded input
instead of refusing it, and size the QA envelope to hold a real request
(16,384 in / 2,048 out, still ~$0.006 against the $0.05 run envelope). The
production path, which passes no input bound, is unchanged.

Failure-Class: FC-batch-fault-domain-head-of-line-poison

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…44pt touch targets, single-counted insets (#14312)

* fix(app): seat the bottom tab row directly on the system inset

#12858 reserved the window's bottom view padding under the home tab bar, which
was right for Android's 3-button bar, but it added the inset beneath a 100pt
bar that already kept ~27pt of empty space under its icons. On an iPhone the
two gaps stack: the icons sit ~74pt above the screen edge, against ~59pt for a
platform tab bar (UITabBar is a 49pt row on the 34pt safe area).

Split the bar into a 20pt fade and a 52pt tab row that ends exactly where the
inset begins, so the inset is the only space under the row on every device
(34pt home indicator, 16-48dp Android gesture pill / 3-button bar, or zero).
The gradient's fade stop is now derived from the fade height instead of a
fraction of a height that grows with the inset.

Everything tuned to the old 100pt literal now derives from the bar: the home
chat bar offset, the home/conversations/tasks/apps trailing scroll spacers and
the Tasks FAB. Those literals ignored the system inset entirely, so on an
inset device the last list row ended 34-48pt under the bar, and the apps
search results (bottom: 64) under-cleared it on every device.

Failure-Class: FC-bottom-control-under-system-inset

Verified: flutter test test/widgets/bottom_nav_bar_test.dart (6 passed); the
new geometry test fails with kBottomNavRowHeight restored to 80.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* feat(app): announce the icon-only bottom tabs to screen readers

The four home tabs are bare icons, and their label strings were only ever sent
to analytics, so VoiceOver and TalkBack read nothing for the app's primary
navigation. Give each tab a localized label with button and selected state.
Conversations, Tasks and Apps reuse existing keys; Home is a new key,
translated in all 49 locales (gen-l10n reports the same two pre-existing
untranslated keys, memoryAllowUse / memoryDontUse, and no new ones).

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* fix(app): give the home shell's small controls full-size touch targets

Apple's HIG asks for 44x44pt hit targets and Material for 48dp. The home
shell's most-used controls were well under both, because each one's touch
target was exactly the small shape it painted:

- all seven header buttons (settings, search, date filter, sync, task export,
  show-completed, create-app): 36x36, 8pt apart
- the "+" buttons for folders and goals (both tabs): 32x32
- conversation filter chips: 36pt tall
- the "clear completed" x on a task section: a bare 14pt icon, and the
  smallest target in the app guards a destructive action
- the section collapse chevrons: ~19pt tall with dead gaps between icon and
  label
- the chat bar's mic: 42pt, nested in the chat bar's own target, so a near
  miss opened text chat instead of voice

HeaderCircleButton keeps the painted circle and centers it in a 44pt target;
surrounding margins shrink by the overhang so nothing moves on screen. Chips
pad themselves inside a 44pt strip that still occupies 52pt. Task section
headers move their vertical padding inside each child so the tappable ones own
the header's full 36pt height (a task row starts 4pt below, so there is no
room for 44) and reach sideways into the Spacer. The mic owns the chat bar's
full height and rounded end.

Every converted control also gets a localized screen-reader label from
existing keys; none had one.

Verified: flutter test test/widgets/header_circle_button_test.dart
test/widgets/folder_tabs_tap_target_test.dart
test/widgets/goals_widget_performance_test.dart (all passed).

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* fix(app): reserve the bottom inset once on onboarding and transcription bars

Seven onboarding cards (sign-in, AI consent, name, language, permissions,
permissions checker, speech profile) and both bottom bars on the transcription
settings page added MediaQuery.padding.bottom to their own padding and then
wrapped their content in SafeArea(top: false), which adds the same inset again.
Nothing above them consumes it, so on an iPhone the primary button floated over
2 x 34 + 8 = 76pt of dead space; on Android 16 with a 3-button bar, 104dp.

Drop the manual term and let the SafeArea own the inset. Devices that report no
inset lay out exactly as before.

Failure-Class: FC-bottom-control-under-system-inset

Verified: flutter test test/widgets/onboarding_bottom_inset_test.dart passes;
with the name card's old padding restored it fails with 68.0 where 34.0 is
expected.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* fix(app): keep the conversation bar above Android's 3-button navigation bar

The conversation detail page floats its tab/play bar at a literal bottom: 32
over an extendBody Scaffold. That clears the iPhone home indicator, but Android
16 enforces edge-to-edge (targetSdk 36) and draws a 3-button navigation bar up
to 48dp tall over the same strip, covering the lower 16dp of the bar's buttons.
The bar now never sits lower than the bottom inset the window reports. iPhone
moves by 2pt (32 -> 34); devices with a smaller or zero inset do not move.

Failure-Class: FC-bottom-control-under-system-inset

Verified: flutter test test/unit/detail_floating_bar_offset_test.dart passes.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
…sts soniox (#14329)

da58f3e restored soniox to STT_SERVICE_MODELS in the pusher charts, but only
the listen charts bind the key, and pusher's startup admission rejects a listed
soniox with an empty key. Dev pusher has been crash-looping on it and blocking
its own deploys; prod pusher would do the same on its next rollout. Bind the
key exactly as listen does, and guard every chart's chain against the real
startup validator (the referenced secret key must carry the env var's name).

Failure-Class: FC-rollout-flag-absent-from-a-cohost-of-its-code-path

Co-Authored-By: Claude Fable 5.1 <[email protected]>
* perf(macos): load Rewind app-filter list after overlay ready

Defer getUniqueAppNames off the Rewind open path so first paint and
rewindPageDidLoad do not wait on a full-table DISTINCT. AVO rewind
lane measured ~466ms → ~427ms median navigate wall time on omi-e2e-3.

* ci(desktop): admit one batch-bisect cascade in the PR Swift step budget

Run 35106014508 (Desktop Swift Static & Test Contracts) went red only on
the step-wall guard (3923s vs 2700s) with all 836 executed suites green.
The overage is one legitimate order-dependent batch fallback: batch
worker-0-0 x100 exit=1 at 78s, bisected into a green half (40s) and a
wedged half that burned its full 1500s batch ceiling, then ~1020s of
isolated singles — every member green on the authoritative per-suite
path. Local reproduction of the exact 100-suite batch on the same Xcode
26.6 (17F113) exits 0 in 26s, so the batch exit names no failing test.

Raise the PR-lane OMI_SWIFT_TEST_STEP_BUDGET_SECONDS 2700s -> 4400s
(cold-tools 742s prelude + 4400s + 158s post-step still fits the 90m
desktop-swift-verify job ceiling) and update
test_desktop_swift_ci_contract.py to match, per the measured evidence.
…udio (#14337)

An iOS client re-uploaded the same 2.2 KB WAL to /v2/sync-local-files 39
times in ~21 hours. Every attempt was accepted with 202 and every job then
failed identically: the decoder produced no PCM, so decode_files_to_wav
raised and the pipeline finalized the job `failed` with
reason_code=sync_invalid_audio.

The client treated that verdict as retryable. syncJobTerminalPolicy returns
`retry` for every terminal status but `completed`, so reconcileUploadedWals
put each member WAL back to `miss` and bumped retryCount — and nothing
consulted retryCount afterwards. The automatic drain filtered only on
`status == miss && storage == disk`, so RecordingTransferCoordinator's
reconcile-then-drain pass re-sent the same bytes on every wake, forever.
walMaxAutoRetries existed but only coloured the sync row.

- Classify the failure: `syncJobFailureIsPermanent` treats a whole-job
  `failed` carrying an input-caused reason (sync_invalid_audio,
  stt_invalid_input) as unchangeable by another upload. `partial_failure`
  is excluded — segments that landed prove the batch is not wholly bad, and
  the backend drops individually unreadable files rather than failing their
  siblings, so a permanent verdict cannot strand a good recording.
- Spend the budget on that verdict instead of one attempt per pass, and
  gate every automatic loop on it: `isAutoUploadEligible` now applies
  walMaxAutoRetries in _syncAll and getOrphanedWals, so an unclassified
  permanent failure also stops after the budget rather than looping.
- Never drop audio: the recording stays `miss` on disk and renders as
  WalSyncDisplayState.failed, keeping its manual Retry and Delete. A
  deliberate single-recording retry restores the budget, including when
  SyncProvider coalesces that tap into a running drain.
- Transient failures (capacity, paced, backend-busy, upstream, timeout)
  keep their existing per-attempt accounting untouched.

Verified:
- flutter analyze on the touched files: no new diagnostics (9 pre-existing
  baseline infos on untouched lines).
- flutter test test/unit/capture_recovery_replay_scenarios_test.dart
  test/unit/sync_job_terminal_policy_test.dart
  test/unit/local_wal_sync_test.dart test/unit/wal_sync_display_state_test.dart
  test/unit/wal_sync_upload_test.dart test/unit/wal_upload_resilience_test.dart
  test/unit/sync_response_handling_test.dart test/unit/wal_delete_cascade_test.dart
  test/unit/session_wal_sync_test.dart test/unit/sync_manifest_claim_drain_test.dart
  test/unit/wal_recovery_test.dart — 162 passed.
- The new replay test reproduces the incident against unpatched code: 7
  wakes produced 7 uploads; with the fix, 1.
- bash test.sh — 2031 passed, 1 pre-existing failure
  (test/unit/search_rank_grouping_test.dart), reproduced on unmodified
  origin/main.

Not exercised on a device: this is the offline-sync policy seam, covered by
the deterministic replay world; a live run needs an undecodable WAL on a
real phone.

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
…orts (#14336)

* feat(app): bake git SHA and build number into analytics and crashes

Codemagic and the local harness pass --dart-define OMI_GIT_SHA /
OMI_BUILD_NUMBER (plus a dirty-tree marker). A single accessor defaults
to unknown, then PostHog super-properties and Crashlytics keys carry
them so a production signal resolves to a commit. Shorebird patches
also report the runtime patch number when the updater is present.

Co-authored-by: Cursor <[email protected]>

* fix(app): treat only tracked diffs as dirty and drop shorebird_code_push

Porcelain counted Codemagic's untracked env and Firebase files as dirty,
so a release SHA would not resolve. Validate dart-define values so
unquoted command substitution cannot word-split.

Failure-Class: none
Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
Failure-Class: new

ManualScheduler discarded the Future from LocalWalSync's async periodic
flush, so settle() returned on coordinator-idle while writeAsBytes was
still in flight.

Co-authored-by: Cursor <[email protected]>
…le-verify evidence paths and device doctor (#14313)

* fix(app): stop hermetic calendar tests depending on host timezone

UTC same-day .single and DateTime.now() as "today" are only true in the
author's zone. Build same-day fixtures with local DateTime via
localCalendarDay, default selectedDate through package:clock, and
document the TZ=Pacific/{Kiritimati,Pago_Pago} entrypoint.

Failure-Class: new
Co-authored-by: Cursor <[email protected]>

* harden(dev-harness): classify missing device binaries and evidence paths

#14305 caught empty OMI_VERIFY_EVIDENCE_DIR and the CLI default runner.
Relative --evidence-dir still wrote receipts under app/ (runner cwd)
while aggregation looked at the invocation cwd; AndroidTooling._run
still let FileNotFoundError escape past device_doctor. Resolve evidence
paths against the invocation directory, convert missing adb/xcrun to
DeviceRunnerError, and accept device doctor --json like the siblings.

Co-authored-by: Cursor <[email protected]>

* docs(app): keep the TZ second-pass contract in MOBILE_VERIFY.md

app/AGENTS.md is already at its lean budget. The documented
TZ=Pacific/{Kiritimati,Pago_Pago} entrypoint lives in the harness
guide, which CI can call without growing agent context.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
Auto-generated: consolidates unreleased changelog fragments into
v0.12.358 and regenerates CHANGELOG.json.
Adds sdks/python-cli/examples/quickstart.hi.md and one discovery line in the SDK README. Intentionally two files: the examples index is touched by every language PR and is what kept this one conflicted; the quickstarts that merged today (Latvian, Croatian) and the Sanskrit/Konkani entries skip it the same way. Guide content unchanged.

Co-authored-by: moon1ight13089703-cmyk <[email protected]>
* docs(cli): add Arabic, Vietnamese, Czech and Hebrew quickstarts

Closes #13871
Closes #13872
Closes #13873
Closes #13874

Four new localized quickstart guides for omi-cli, following the exact
structure and technical invariants of the accepted localized guides
(quickstart.ru.md et al.): package/command disambiguation, pipx and pip
install, interactive/browser/API-key auth, status vs whoami, memories,
conversations, action items, goals, ask, global --json placement,
exit-code table 0-5, env vars, Omi Desktop local API, profiles.

Verification: each file mirrors the accepted guide section-for-section;
all commands, flags, endpoints and exit codes are copied verbatim from
the English CLI surface and existing localized guides.

* docs(cli): address review — OAuth-scope auth refresh, document OMI_PROFILE, correct exit codes

* docs(cli): converge with upstream README and reposition quickstart entries
…es under Xcode 27 (#14322)

Three sites wrote [weak self] only on an inner closure while the enclosing
escaping closure captured self strongly. Swift 6.3 (Xcode 27) rejects the
mismatch; the CI-pinned Xcode 26.6 accepts it, so CI stayed green while local
builds on the newer toolchain failed. Move the capture list to the outer
closure; valid on both toolchains, no runtime change.

Failure-Class: new

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Git-on-my-level and others added 23 commits September 17, 2026 13:01
* fix(app): cancel HomePage announcement timer on dispose

A 2s Future.delayed survived unmount and failed flutter_test invariants; hold a Timer on the State and cancel it in dispose.

Co-authored-by: Cursor <[email protected]>

* fix(app): declare firebase_core_platform_interface as a dev dependency

The HomePage timer widget test added in this PR imports
firebase_core_platform_interface/test.dart for setupFirebaseCoreMocks.
That package is a transitive dependency of the already-declared
firebase_core and does not re-export the test helper, so the analyzer
ratchet counted a new depend_on_referenced_packages occurrence
(5 found, baseline 4) and Dart Analyze & Tests failed.

Declaring it changes no resolved version and adds no package to the
tree: pubspec.lock moves the same 5.4.2 from "transitive" to
"direct dev". This follows the existing convention in dev_dependencies,
where async and stream_channel are declared for the same reason.

Failure-Class: none

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
…sweep code requires (#14402)

#14393 raised QA_SWEEP_MAX_MODEL_CANDIDATES to 3 in both
backend/utils/memory/daily_memory_sweep.py and
backend/scripts/jit_qa_sweep_operator.py, but jit_qa_manual_operator.yml still
hardcoded 1 in the job env block and in the --update-env-vars string.

validate_qa_sweep_environment compares the running job's env against the code
constant, so every sweep-verify dispatch failed before doing any work:

  ValueError: QA sweep requires MEMORY_DAILY_MEMORY_SWEEP_MAX_MODEL_CANDIDATES='3'

Observed on execution daily-memory-sweep-qa-job-8kqzc against the QA plane at
0694d6b. The fail-closed validator worked as designed; this moves the two
stale literals.

check_workflow_contracts.py passed on #14393, so nothing pins this workflow's
sweep env to the code constants. Four values are duplicated between the
validator's required dict and the workflow; deriving them would close the class.

Co-Authored-By: Claude Opus 5 <[email protected]>
…nt (#14377)

On a basic (free) account, LiveNotes called the managed AI-notes endpoint on
every transcript segment and logged an error each time, producing a request per
sentence for a capability the plan does not include and no retry can satisfy.

It now consults the existing entitlement seam,
SubscriptionEntitlement.decision(plan:features:isByokActive:), where BYOK and
unknown plans fail open and only .basic is .planGated, and latches a typed
server plan_gated denial so the loop stops.

The latch carries a bounded 10-minute lifetime for a specific reason: a cached
unknown plan fails open to allow, so when such a user upgrades the decision
never changes and nothing else would ever clear the latch. One probe per
lifetime is the cost of noticing that upgrade without an app restart.

Verified: 22 LiveNotes tests pass; pre-push gates 44 PASS / 0 FAIL.

Known follow-up: the latch has no account identity, so switching from an
unknown-plan account to a paid one can briefly suppress notes until the
lifetime expires. LiveNotes re-evaluates per transcript segment, so it
self-heals within the window. Converging this onto the shared owner-aware
ManagedPlanGateLatch from the realtime-hub fix is tracked separately.

Co-Authored-By: Claude Opus 5 <[email protected]>
* docs: inventory the eight remaining B1 surfaces for B2

Co-authored-by: Cursor <[email protected]>

* docs: make the B2 inventory's file references repo-root-relative

The agent-doc-references gate rejected app-relative pointers such as
pages/home/page.dart, correctly: an agent reading the doc cannot
resolve them. It also caught that the memories row widget is at
app/lib/pages/memories/widgets/memory_item.dart, not widgets/.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
Map today's Recording/Device/Memory/Upload emits to the four F1 intents
so the design turn can reuse join keys instead of inventing toggles.

Co-authored-by: Cursor <[email protected]>
Offsets whose role defaults sit 2700 apart derive the same TCP port, so exclusive-locking the offset identifier lets two sessions share 10080. Claim the actual port numbers, including cross-role intersections, and assert that property across the whole offset space.

Failure-Class: new

Co-authored-by: Cursor <[email protected]>
…14388)

* fix(app): stop sending raw wearable identity on device analytics

Device Connected and Device Paired were spreading BtDevice.toJson()
onto PostHog beside the hashed fields. Name the payload explicitly.

Failure-Class: new
Co-authored-by: Cursor <[email protected]>

* fix(app): define FC-analytics-payload-copies-model-dump

Register the analytics model-dump class for the Device Connected/Paired
spread. The defect is copying a serialized model onto an event payload.

Failure-Class: new
Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
…14392)

Memory Created was reading getTranscript() on the analytics path to emit
length, word, and speaker counts. Those are not a product numerator.
Keep memory_id and memory_result.

Failure-Class: none

Co-authored-by: Cursor <[email protected]>
…ys (#14396)

* test(app): hermetic semantics-tree baseline before B2 identifier work

B1 requires real VoiceOver/TalkBack improvement, not just keys. Dump
per-surface unnamed controls now so B2 cannot bake omi.* grammar into
spoken labels — Flutter already keeps identifier off the announcement.

Co-authored-by: Cursor <[email protected]>

* test(app): clear the analyzer ratchet in the semantics harness

Dart Analyze & Tests failed on three new occurrences introduced by the
harness: prefer_const_constructors (1 vs baseline 0),
unnecessary_brace_in_string_interps (15 vs 13) and unnecessary_import
(13 vs 11).

Fixed rather than baselined: dropped the redundant braces in two
interpolations, removed the two imports that schema.dart already
provides, and made the GetMemoriesResult fixture a const declaration.
The one remaining hint is the pre-existing pipelineOwner deprecation,
which is inside its baseline.

Failure-Class: none

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
Ruling 5 sat open because "read-only" is not a scope. Name the
narrowest ASC, Play, and Crashlytics BigQuery grants, and recommend
deferring the two store APIs until C7 lands.

Co-authored-by: Cursor <[email protected]>
… engine (#14400)

sdkmanager --list_installed exiting nonzero was reported as engine present.
A missing emulator binary, a successful empty listing, and a failed look
are three different findings; cmdline-tools 23 slash paths still prove an
image is installed.

Failure-Class: none

Co-authored-by: Cursor <[email protected]>
…tory globs (#14401)

prepare matched scope_hints with fnmatch, so a prefix like
app/lib/pages/home/ never hit files under that directory. Eight
committed definitions already use that form.

Co-authored-by: Cursor <[email protected]>
Auto-generated: consolidates unreleased changelog fragments into
v0.12.361 and regenerates CHANGELOG.json.
…e port, dark (#14395)

The free tier replaces cloud conversation summarization with an on-device
summary. That pipeline (S10/S11) already shipped dark and complete, but its only
registered engine was an OpenAI-compatible loopback client defaulting to
127.0.0.1:11434 (Ollama), which ordinary users do not run — so a free-tier
conversation never got a summary at all. LocalInferenceEngineID.afm already
existed with the comment "S12 lands the adapter"; this is that.

AFMLocalInferenceAdapter conforms to LocalInferenceService; AFMJSONSchemaBridge
walks the port's JSON Schema into DynamicGenerationSchema/GenerationSchema, since
this SDK has no jsonSchema: initializer. Unsupported keywords throw
capabilityUnavailable rather than being dropped, and nesting is depth-capped.
Availability is fail-closed: anything other than .available becomes
engineUnavailable(.afm) and the runtime degrades to the deterministic minimum.

Dark: the default engine is still .localServer and
OMI_FORCE_LOCAL_INFERENCE_ENGINE=afm is the only way to select AFM.

Context window is read at runtime from SystemLanguageModel.contextSize (8192 on
macOS 27), not hardcoded; an earlier revision pinned 4096, which would have
doubled the summarizer's map passes. Out-of-range values fall back to a labelled
constant, because a zero window yields a nominal 64-token budget and Int.min
would trap in the chunker, bypassing the fail-closed ladder.

Known limitation: LanguageModelError is @available(macOS 27.0) and cannot be
named under the pinned Xcode 26.6 toolchain, so a 26.6-built binary on macOS 27
classifies a refusal as retryable. This is documented rather than hidden behind
a compiler gate; check-desktop-compiler-gates.py reports none found.

Verified live against the real on-device model: runtime=local model=afm, with a
real overview, 2 sections and 1 action item — not the deterministic minimum.

Note: this engine alone does not deliver a free-tier summary. The desktop client
drops wire.clientProcessing in ServerConversation.init and never renders the
projection it uploads. That is pre-existing and tracked separately.

Co-Authored-By: Claude Opus 5 <[email protected]>
…4378)

* ci(app): upload the debug APK and run Android JVM tests in parallel

The APK build stays android-arm64 on every event, matching main since
c8f3506. Extra ABIs still OOM ubuntu-latest.

Co-authored-by: Cursor <[email protected]>

* docs: document the APK artifact and parallel Android jobs

CI wiring lives in MOBILE_VERIFY.md so app/AGENTS.md stays inside its
lean budget.

Co-authored-by: Cursor <[email protected]>

* fix(ci): drop Gradle configuration cache that broke AGP 8.11.1

Warn mode does not downgrade a cache-state serialization failure of
builtInKotlinServices. Generate the gitignored wrapper with --config-only
so the parallel JVM job can run without an APK compile.

Failure-Class: none
Co-authored-by: Cursor <[email protected]>

* ci(app): report debug APK zip size without gating compile smoke

--analyze-size needs a second release compile (~10-15 min). The zip
breakdown of the APK this job already builds is a coarse, fork-safe
signal in under a minute, never a gate.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
* fix(app): name conversation-detail icon-only AppBar and tab controls

Back, star, share, search, and overflow currently announce nothing; keep the custom circle chrome and give each a localized or platform tooltip. Page-covering search-dismiss GestureDetectors leave the semantics tree.

Failure-Class: none
Co-authored-by: Cursor <[email protected]>

* fix(app): name remaining unnamed activate-controls and ratchet the dump

Memories graph/management, conversations calendar, settings search, and devices back now have spoken names. The tasks no-op GestureDetector is excluded from semantics rather than named. dumpSemanticsTree asserts unnamed-controls stay at zero on every pumped surface.

Failure-Class: none
Co-authored-by: Cursor <[email protected]>

* test(app): clear the analyzer ratchet in the semantics harness

Same three new occurrences the harness introduced on the baseline PR:
prefer_const_constructors, unnecessary_brace_in_string_interps and
unnecessary_import. Fixed rather than baselined. This branch carries its
own extended copy of the harness, so the fix is applied here directly
instead of merged.

Failure-Class: none

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
* fix(app): cancel HomePage announcement timer on dispose

A 2s Future.delayed survived unmount and failed flutter_test invariants; hold a Timer on the State and cancel it in dispose.

Co-authored-by: Cursor <[email protected]>

* fix(app): declare firebase_core_platform_interface as a dev dependency

The HomePage timer widget test added in this PR imports
firebase_core_platform_interface/test.dart for setupFirebaseCoreMocks.
That package is a transitive dependency of the already-declared
firebase_core and does not re-export the test helper, so the analyzer
ratchet counted a new depend_on_referenced_packages occurrence
(5 found, baseline 4) and Dart Analyze & Tests failed.

Declaring it changes no resolved version and adds no package to the
tree: pubspec.lock moves the same 5.4.2 from "transitive" to
"direct dev". This follows the existing convention in dev_dependencies,
where async and stream_channel are declared for the same reason.

Failure-Class: none

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(app): cancel HomePage tab prewarm timers on dispose

The 350ms-staggered IndexedStack prewarm Timers survived unmount the same way the announcement delay did. Hold them on the State and cancel in dispose.

Failure-Class: FC-timer-after-dispose
Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
Auto-generated: consolidates unreleased changelog fragments into
v0.12.362 and regenerates CHANGELOG.json.
…istory (#14408)

* harden(dev-harness): define V1 live-session and V8 spine contracts

Add strict Python/Dart pending contracts and introducing-commit protection.
Reserve the live-session CLI, wire, ownership/attachment seams and failing
builder acceptance tests. Add live attribution before freezing evidence v1.

Verification:
- bash scripts/dev-harness/run-tests.sh: 287 passed, 7 existing skips,
  40 strict xfailed (24 pending V1 markers), Python 3.11.15.
- make preflight: 16 checks passed, using supported PYTHON selection.
- make mobile-verify fast --paths harness/session contract inputs with an
  absolute evidence directory: 20 executed, 20 passed, no failures/skips.
- bash app/test.sh: 2014 passed, 5 skipped, one unchanged UTC+7
  search_rank_grouping_test failure; affected baseline inputs match main.
- Real module CLI refusals exit 2 without traceback; regression covered.
- Dart SDK probe proves ext. prefix required; marker-removal formatter
  probe proves no incidental Dart diff.

Runtime is intentionally unimplemented. App UI must repair current invalid
VM extension names before live acceptance; unsupported journeys block.
Simulator/emulator latency and detached-process acceptance remain V1 work.
make setup installed hooks but full backend wheel sync stalled; isolated
Python 3.11 harness dependencies ran the owner checks without any skip flag.

Failure-Class: none

* harden(dev-harness): scope the spine-contracts check to spine paths

The check protects files under the spine roots and their registry, so it only
needs to run when those change. A repo-wide trigger would run it, and its
full-history requirement, on every unrelated contributor PR.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(dev-harness): clarify the live journey adapter boundary

V1 must refuse live journey execution until a shared executable adapter exists;
B1 addressability alone cannot attach Dart integration tests. Pure admission
contracts remain valid with injected supported IDs.

Verification: harness 287 passed, 7 skipped, 40 strict xfailed;
make preflight passed 20 checks.

* harden(dev-harness): pin reviewed spine revisions and align B0 capabilities

Coordinator turn-4 review authorizes the V1 fixture correction. Exact before/after digests pin the revised oracle; immutable revision records do not permit builder assertion edits. Active tests reject missing/tampered records and prove the fake machine response. Verification: full harness 289 passed, 7 skipped, 40 strict xfailed; UTC app 2020 passed; spine 24 pending/7 protected; make preflight 16 passed. No live device acceptance claimed.

* harden(dev-harness): preserve marker retirement across spine revisions

Track retained marker occurrences rather than counts so retiring a second test cannot restore the first test's retired marker. The active regression covers this swap and legitimate continued retirement. Verification: full harness 290 passed, 7 skipped, 40 strict xfailed; spine 24 pending/7 protected; make preflight 16 passed. Dart sources unchanged after the earlier UTC app 2020-pass run.

* harden(dev-harness): retain corrected spine oracles through squash merges

A squash can introduce a corrected contract and its review records in the same commit. Absorb only the revision prefix ending at that introducing file's exact digest, preserving immutable records and later marker-only edits. Active temp-repo regression covers multiple corrections in one squash and rejects restoring old or altered assertions. Verification: harness 291 passed, 7 skipped, 40 strict xfailed; B1 make preflight 20 passed; final B1 journeys 20/20. Dart unchanged after UTC app 41 opt-in and 2051 ordinary passed.

* test(dev-harness): revise live session acceptance after builder review

* test(dev-harness): bind machine fixture to actual child identity

* harden(dev-harness): separate oracle revisions from implementations

Use the actual PR base and immutable exact scaffolding snapshots to reject mixed revision/implementation diffs. Exercise a real squash and child merge. Correct local_dev wire spelling from the simulator RPC and add adversarial V1 conformance oracles after reviewing the first broker.

Verification: UTC app 2064 passed; full harness 303 passed, 7 skipped, 55 strict xfailed; spine 37 pending/9 protected; preflight 16 checks passed. Isolated reviewed-broker probes failed 9/9 as documented in the conformance report. No real app/device launch.

* harden(dev-harness): retain pinned corrections after older parent merges

* harden(dev-harness): pin oracle content across shared runners and merge orders

Keep exact oracle digests and immutable revision records. Traverse full reachable history and match revision payloads by digest. Shared runner metadata requires direct fail-fast suite invocation instead of pinning shared file bytes. Both new regressions fail on the old checker. UTC app 2064 passed; final harness 306 passed, 7 skipped, 59 strict xfailed; spine 39 pending/10 protected; preflight 16 passed. No protected oracle bytes or legacy scope pins changed.

* harden(dev-harness): distinguish authorized revisions from rejected history

Rejected mixed proposals can be reverted without losing exact oracle protection. Scope is checked over the whole proposal; exact retired renderings require an immutable reviewed digest.\n\nVerified: full harness 309 passed, 7 skipped, 59 strict xfailed; Dart 2064 passed; spine check clean; make preflight 16 checks passed. Real chat tree 9f5548474f passes against its addressability contract target.

* test(dev-harness): pin V1 formatted oracle renderings

Preserve all eleven pending markers and the executable AST. Exact retired digests cover the builder's already-introduced unused-import cleanup without granting general edit permission. Full harness and preflight pass; AST evidence is recorded in .local/t11-v1-format-evidence.json.

* docs(app): consolidate duplicate code generation guidance

Retain every generator instruction beside the existing table and free 180 bytes for the queued contract pointers. Do not change the guide budget. make preflight passed all 16 checks.

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
Forward-merge #14408 (authorized vs rejected revision history) plus the landed HomePage timer and accessibility work. Keep B0's ext-prefix isolate and addressability checks; take main's spine checker.

Co-authored-by: Cursor <[email protected]>
…tent

Older B0 history forced replay of squash-erased intermediate bytes despite matching the accepted final digest. Resolve only target-accepted prefixes from exact pinned target versions; validate every new tail without absorbing cycles. No oracle pins or file-name exemptions changed.

Verification: regression reproduced the original digest mismatch; final harness 336 passed, 7 skipped, 59 strict xfailed; UTC app suite 2112 passed; preflight 14 checks passed. Exact B0 ea39b74 passes both merge parent orders with the patched checker; fixture edits and self-authored revision records remain rejected.

Failure-Class: none
The checker now resolves target-accepted revision prefixes from exact pinned content, so this branch can consume the already-accepted fake_flutter revision without a new digest pin.
@github-actions

Copy link
Copy Markdown
Contributor

Hey @Git-on-my-level 👋

Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request.

After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing.

Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out.

Thank you for being part of the Omi community!

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Auto-closed when its base branch was deleted after the parent squash-merged. Head unchanged at 92ee82f77; continued as #14571 targeting main.

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.

10 participants