Repository navigation
C8 slice 1: route eleven settings events plus the four C7 exemplars through TypedEvents - #14694
Merged
Merged
Conversation
Closed
7 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tryGetActionItems/ empty-list coalescing makes a 503 render the Tasks empty hero (Create Action Item). An injected 503 against the realActionItemsProviderandActionItemsPage(not a typed-result unit test alone) now showsomi.action_items.errorand never that hero; retry recovers to valid empty.getActionItems/tryGetActionItemsstay onmakeApiCall.ActionItemsApi.listis the typed path. ProductionActionItemsProvider()is not flipped; tests usecomposeTypedActionItemsProvider. Parser keeps valid rows around a malformed one and countsrejectedRows.executeApialready maps 402 → locked and 422 → terminal withretryable: 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.pendingContract('C3')on the Dart Record.== / Map identity projection test. No workaround.action_items.dartstays unadopted (partial large file; baseline 11makeApiCall/ 17 null-swallow after the independent-rowcatch). Brand-newaction_items_api_contract.dartis adopted forlegacy-nullable-http(the only rule that applies atapp/lib/backend/http/, not underapi/). 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, unrelatedcatch (,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 0python3 scripts/check_spine_contracts.py— C3 projection marker still pending; new spine file registeredmake preflight— 21 checks passed vsorigin/maindart format --line-length 120on touched Dart filesmake mobile-verify ARGS="fast --paths …action_items…"— 9/9 passedscripts/pr-preflight --suggest— no locked invariants; nofix:commit so no failure class required. Ask before defining one.Failure-Class: none
🤖 Generated with Claude Code
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.