Skip to content

C8 slice 1: route eleven settings events plus the four C7 exemplars through TypedEvents - #14539

Closed
Git-on-my-level wants to merge 25 commits into
mainfrom
task/msd-product-c8-migrate
Closed

Git-on-my-level wants to merge 25 commits into
mainfrom
task/msd-product-c8-migrate

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

  • Second C3 slice, stacked on the typed-result branch: migrate action-items list GET only. Same safety property as PR1 — today's tryGetActionItems / empty-list coalescing makes a 503 render the Tasks empty hero (Create Action Item). An injected 503 against the real ActionItemsProvider and ActionItemsPage (not a typed-result unit test alone) now shows omi.action_items.error and never that hero; retry recovers to valid empty.
  • Old and new still coexist. getActionItems / tryGetActionItems stay on makeApiCall. ActionItemsApi.list is the typed path. Production ActionItemsProvider() is not flipped; tests use composeTypedActionItemsProvider. Parser keeps valid rows around a malformed one and counts rejectedRows.
  • 402/422 on this list have no Processing poller. executeApi already maps 402 → locked and 422 → terminal with retryable: false. I did not migrate create / update / delete / bulk / loadMoreActionItems / Home today-window fetch: those are not the empty-hero path, and changing their null-as-failure retry would be a behaviour change. Name them for a later slice rather than quietly retargeting.
  • Left pendingContract('C3') on the Dart Record.== / Map identity projection test. No workaround.
  • Null-swallow ratchet: action_items.dart stays unadopted (partial large file; baseline 11 makeApiCall / 17 null-swallow after the independent-row catch). Brand-new action_items_api_contract.dart is adopted for legacy-nullable-http (the only rule that applies at app/lib/backend/http/, not under api/). The scanner is changed-file-only: it constrains adopted files and brand-new files (prior_source is None); untouched legacy files may grow and are never taxed. False-positive shape: after comments/strings are stripped, unrelated catch (, return null, or ?? [] in an adopted file fire; aliases/wrappers evade it. Behavioral contracts remain authoritative.

Test plan

  • TZ=UTC flutter test test/spine/c3_action_items_test.dart — 3/3 (outage→error on provider + real page, parser keeps valid rows, retry recovers to empty)
  • TZ=UTC bash app/test.sh — exit 0
  • python3 scripts/check_spine_contracts.py — C3 projection marker still pending; new spine file registered
  • make preflight — 21 checks passed vs origin/main
  • dart format --line-length 120 on touched Dart files
  • make mobile-verify ARGS="fast --paths …action_items…" — 9/9 passed
  • scripts/pr-preflight --suggest — no locked invariants; no fix: commit so no failure class required. Ask before defining one.

Failure-Class: none

🤖 Generated with Claude Code

Review in cubic

Product invariants affected

INV-DATA-1 — the action-items list migration keeps production-family routing continuity: Home-today/load-more/retry resolve through the same production data plane via ActionItemsApi, now with explicit typed error and retry states.
Line-Count-Exception: backend/database/conversations.py | 2442 -> 2476 | growth arrived via main-side merges carried by this re-registration PR; file content is byte-identical to origin/main.

Product invariants affected

INV-MEM-4 — the C8 typed migration keeps memory-promotion authority intact: provider construction and event emission move to typed surfaces without changing which component promotes memories.
INV-TASK-2 — the action-items C8 slice keeps task data continuity: typed events carry the same wire names/properties verified by the registry contract.

Git-on-my-level and others added 25 commits September 17, 2026 13:42
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
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]>
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.
…lities

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.
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.
…rges

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.
C7 keeps legacy wire names and queue behavior, requires executable consumers, and constrains raw calls only after adoption or in new files. Four example events remain behind a pending dispatch skeleton. Verified UTC app 2067, harness 306 passed/7 skipped/44 xfailed, spine 31 pending/9 protected, preflight 19 checks, and 20 hermetic journeys.
Preserve wire property spelling independently from Dart identifiers and restrict raw-call enforcement to adopted files and the one typed bridge. Revise the protected payload oracle after a Flutter matcher probe exposed map identity inside records.

Verified: TZ=UTC bash app/test.sh (2069 passed); full harness (308 passed, 7 skipped, 44 strict xfailed); spine (31 pending, 10 protected); make preflight (19 passed); fast journeys (20/20); three historical commits passed scanner replay.
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.
# Conflicts:
#	.github/checks-manifest.yaml
#	contracts/spine/files.json
…ge 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.
Add strict pending C7 oracles for initialized and pre-init queue payloads. Legacy event privacy remains C8 scope. Verification: UTC app 2071 passed; harness 320 passed, 7 skipped, 59 strict xfailed; spine 43 pending / 13 protected; preflight 19 passed.
Four exemplar events now reach the existing queue, including the
pre-init flush path, without copying caller-mutated property bags.

Co-authored-by: Cursor <[email protected]>
Capture public AnalyticsManager payloads for the empty and bool-only
events at c789b4e before those methods call TypedEvents.emit.

Co-authored-by: Cursor <[email protected]>
Register eleven pin-exactly settings events and route them plus the
four C7 exemplars through emit, matching goldens pinned at c789b4e.

Co-authored-by: Cursor <[email protected]>
The last row is no longer transcribeLaterToggled once C8 appends
events; look the boolean preference up by id instead of list position.

Co-authored-by: Cursor <[email protected]>
Bring in #14408 (AGENTS.md budget), #14388 (device identity), and
#14392 (Memory Created). Spine conflicts take main; analytics_manager
keeps both the C7 emit seam and main's newer payload contracts.

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

mintlify Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
omi 🟢 Ready View Preview Sep 18, 2026, 9:14 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Handed back — merge origin/main into task/msd-product-c8-migrate before this can land. The conflict is structural: this branch was built on the pre-rebuild C7 registry (old #14398 head), while main now carries the rebuilt registry (#14536, three-file unique diff: typed_events.dart + two C7 spine tests).

Resolution intent: take main's registry wholesale (new C7 is authoritative), then re-apply this slice's migrations (eleven settings events + the four C7 exemplars through TypedEvents) against the rebuilt API. The add/add collisions in events.g.dart, REGISTRY.md, the two C7 spine tests, contracts/analytics/* all resolve to main's version. .github/checks-manifest.yaml unions (resolver tool may be used); app/AGENTS.md keeps both sides' added pointer rows (≤11411-byte budget). Spine files: no edits beyond what the merge itself brings; marker deletions only if a test XPASSes.

Descendants note: #14449/#14441/#14459/#14461 inherit this base — fix here and they stack cleanly.

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TypedEvents migration slice, no abuse signal; approve-only per standing account flag, DIRTY needs manual rebase.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Superseded by #14694: this branch's ancestry predates the C1/C3 session merges and cannot fast-forward to the resolved state. The same C8 slice content (registry + TypedEvents wiring + goldens) lives on the clean-ancestry successor; all owned-file audits passed there.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Supersession audit (merge-loop, 2026-09-20): This PR's content landed via successor #14694 — same title, same C8 slice-1 scope — merged 2026-09-19 (bc2569f). File-level: 3/19 owned files already byte-identical to main; 8 more match #14694's merge tree exactly (main has since evolved them further — e.g. events.g.dart regenerated, contracts updated in later analytics commits). The branch's residual deltas vs #14694's tree (analytics_manager.dart ~206 lines, manifest/spine registry entries) are stale re-implementations superseded by #14694's approach and main's subsequent evolution. Holding open for owner decision: close as superseded, or rehome any surviving fragment as a fresh PR. Not merging as-is.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Closing as superseded per owner decision (David, 2026-09-20). Content landed via successor #14694 (same title, merged 2026-09-19, bc2569f); main has since evolved those surfaces further. File-level audit in the comment above. Any surviving fragment worth keeping can be rehomed as a fresh PR against current main.

@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!

This branch was successfully deployed

1 active deployment
staging - docs — 9b8a4942 Deployed Sep 18, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants