Skip to content

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

Merged
Git-on-my-level merged 1 commit into
mainfrom
task/msd-product-c8-migrate-v2
Sep 19, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
task/msd-product-c8-migrate-v2

Conversation

@Git-on-my-level

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.


Successor of #14539 (its old branch ancestry predates the whole C1/C3 session and cannot fast-forward). Same owned content, rebased-clean onto current main via a real merge; audit clean; analytics + C3 wiring tests green; analyzer ratchet passed.

@Git-on-my-level
Git-on-my-level merged commit bc2569f into main Sep 19, 2026
62 checks passed
@Git-on-my-level
Git-on-my-level deleted the task/msd-product-c8-migrate-v2 branch September 19, 2026 04:18
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.

1 participant