Skip to content

feat(app):_migrate_the_action-items_list_onto_typed_ApiResult - #14409

Closed
Git-on-my-level wants to merge 8 commits into
task/msd-core-c3-typed-resultfrom
task/msd-core-c3-action-items
Closed

Git-on-my-level wants to merge 8 commits into
task/msd-core-c3-typed-resultfrom
task/msd-core-c3-action-items

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 17, 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

A 503 currently renders the Tasks empty hero. Typed list plus the real
page/provider now project error instead of empty; legacy wrappers stay
for unmigrated callers.

Failure-Class: none
Co-authored-by: Cursor <[email protected]>
Git-on-my-level and others added 4 commits September 18, 2026 07:50
…ay plus load-more through it

main.dart now calls createProductionActionItemsProvider so the shipped Tasks page takes the typed path. Home today and load-more share that list call; a 503 there keeps existing rows instead of looking like an empty account, and a live-call-site test plus a 503 on the factory-built provider prove engagement.

Co-authored-by: Cursor <[email protected]>
Git-on-my-level and others added 2 commits September 18, 2026 12:11
Forward the C3 revision split and the rebuilt contract branch so this published child still fast-forwards from typed-result. files.json is the union of C1 entries from typed-result and c3_action_items_test.dart from this branch.

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

The merge commit's pre-commit hook reformatted C1 spine tests and adjacent main-side Dart without flutter_lints resolved, which would break the after-hash pins. Restore the typed-result bytes exactly.

Co-authored-by: Cursor <[email protected]>
Forward the three-way C3 split so this published child still fast-forwards from typed-result.

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

Action-items typed ApiResult migration, no abuse signal; approve-only per standing account flag.

@Git-on-my-level
Git-on-my-level deleted the branch task/msd-core-c3-typed-result September 18, 2026 20:31
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Auto-closed when base branch was deleted after the parent squash-merged. Head unchanged at df5b6f19f; continued as #14613 targeting 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!

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