Skip to content

harden(app): typed API result contract (C3) - #14328

Closed
Git-on-my-level wants to merge 30 commits into
task/msd-spine-c3-revisionsfrom
task/msd-spine-a-api-result
Closed

Git-on-my-level wants to merge 30 commits into
task/msd-spine-c3-revisionsfrom
task/msd-spine-a-api-result

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

Revise C3 from the App core review: test real 401 refresh/replay execution, exact first-load/error projections, and the actual conversation page under an injected outage. Migrate endpoint families rather than one entire API file per PR. Remove mobile_reason from fallback wire fields so C7 retains vocabulary ownership. C3 addresses HTTP null/status failures, not all swallowed-error or wire-DTO defects.

The reviewer is right about missing execution/real-page coverage. The existing result test already required successful decode, FormatException classification, and programmer StateError propagation; those assertions remain, with an explicit decoder-programmer-error case added. No HTTP/provider/page implementation is supplied by this spine revision.

Product invariants affected

none

How it was verified

UTC app: 2062 passed. Harness: 291 passed, 7 skipped, 44 strict xfailed. Spine: 43 pending / 14 protected. Preflight: 21 passed. All C3 Dart files analyzed cleanly. Logs: .local/t5-c3-app.log, .local/t5-c3-harness.log, .local/t5-c3-spine-final.log, .local/t5-c3-preflight.log. Actual historical commits a7e57c5 and 2af0832 both pass the revised boundary scanner; conversations and memories remain unmigrated, so legacy growth does not block them (.local/t5-c3-real-commit-replay.log). New-file and adopted-file regression controls remain red. Fast journey receipt .local/t5-c3-journeys/verify-receipt.json: {'executed': 9, 'passed': 9, 'failed': 0, 'skipped': 0}. No production access, live backend, simulator, HTTP client redesign or complete migration is claimed.

Final delivery: make preflight passed 21 checks after merge and contributor-doc updates; .local/t5-c3-preflight-final.log. Complete command/result index: .local/t5-verification.md.

Tests

New protected execution contracts drive old header→401→typed refresh→rebuilt header→single replay, transient/terminal refresh, repeated 401 and expiration ownership. Revised projection matrix pins exact phases with and without old data. Actual ConversationsPage must render a descendant error and suppress EmptyConversationsWidget during fixture_backend 503, then recover to empty on valid success. Builder-owned fixture wiring is editable but cannot replace the real page/provider behavior. Existing independent-row decode tests remain unchanged. Reviewed revision records pin all changed protected assertions.

Failure class (fixes)

Failure-Class: none

Review risks:

  1. The shared 401 helper currently returns the original response for transient refresh; extraction must preserve the observed AuthTokenResult without creating a second auth policy.
  2. The real page's deferred loading/providers require careful hermetic fixture composition; an extracted status widget alone is insufficient.
  3. Large API files stay legacy until their last endpoint family migrates; lexical debt counts provide no protection inside partially migrated files.

Part of the mobile self-driving program (Spine A). Designed by Codex gpt-6-astra; revised after a buildability review by the lane that will build on it.

🤖 Generated with Claude Code

Git-on-my-level and others added 15 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.
Preserve auth results and existing endpoint protections while defining typed failures, partial row decoding, terminal locked/rejected states and bounded fallback telemetry. Verified UTC app (2058 passed), harness (287 passed, 7 skipped, 40 strict xfailed), 20 hermetic journeys and 21 preflight checks. Skeletons remain unreachable.
…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.
…i-result

# Conflicts:
#	scripts/dev-harness/PENDING_CONTRACTS.md
@Git-on-my-level
Git-on-my-level changed the base branch from task/msd-spine-a-live-session to main September 17, 2026 17:05
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.
Resolve spine registry and checks manifest as a union without changing owners or assertions. Keep the widget-contract guidance and main's hermetic runner guards. UTC app: 2135 passed. Harness: 308 passed, 7 skipped, 44 xfailed. Spine: 43 pending, 14 protected; final PR-scoped preflight follows the merge.
@mintlify

mintlify Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

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

Project Status Preview Updated
omi 🟢 Ready View Preview Sep 17, 2026, 6:56 PM

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

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

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.
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.
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.
Resolve the registry as an owner-preserving union and retain widget runner guidance alongside the collection equality rule. Verified with C3 correction in the working tree: Dart 2135 passed; harness 316 passed, 7 skipped, 59 strict xfailed; preflight 21 checks passed.
Dart Record equality compares Map identity. Revision 017 keeps the pending marker and exact closed fields while checking cardinality, event name and Map separately. Flutter matcher reproduction: 3 passed; Dart owner suite: 2135 passed; harness: 316 passed, 7 skipped, 59 strict xfailed; preflight: 21 passed.
@Git-on-my-level
Git-on-my-level marked this pull request as ready for review September 17, 2026 22:04
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Marked ready — and this is a second track, independent of #14408

Pushed at 468710e89b. 0 failing checks. The only two outstanding are
Desktop Swift Release Compile and Desktop Swift Static & Test Contracts, macOS jobs this PR
does not touch, woken incidentally because it edits .github/checks-manifest.yaml.

Why it is ready:

  • Both required consuming-lane review rounds are done, by the App core lane.
  • It carries the architect's revision 017, which fixes an oracle that could not pass: Dart
    Record.== compares Map fields by identity, so an expect over a list of records
    containing maps could never match equal content. The revision compares emission count, name
    and map content separately. That is the second oracle in this program to be unpassable for a
    Dart equality reason rather than an implementation one, and in both cases the builder left the
    marker pending and sent a reproduction rather than editing a protected assertion.
  • app/AGENTS.md is 11244 bytes, comfortably under the 11411 budget — so unlike the other
    three contract PRs, this one is not waiting on the shared guide consolidation in harden(dev-harness): distinguish authorized revisions from rejected history #14408.

That makes this the head of a second mergeable track. #14403 (typed ApiResult plus the
conversation list and detail migration) and #14409 (the action-items list) are both fully
green, 0 failures and 0 pending
, and both are stacked here. Merging this one releases that
chain without touching the capture stack.

What C3 exists to fix, so the review has the stakes: makeApiCall returns null on any
exception and callers render an empty list, so getConversationById returns null identically
for transport failure, 403, 503 and a missing row — an outage is indistinguishable from an empty
account. #14403 demonstrates the fix on the real page: an injected 503 renders the error surface
instead of the empty hero, and recovers to a valid empty state once the fault clears.

🤖 Generated with Claude Code

Retain both main's singleton testing guidance and C3's HTTP contract pointer; preserve widget and record-equality guidance. app/AGENTS.md measures 11316 bytes against the unchanged 11411 budget. Harness: 335 passed, 7 skipped, 59 strict xfailed.
Git-on-my-level added a commit that referenced this pull request Sep 18, 2026
Take the spine PENDING_CONTRACTS wording from #14328, including the
Map-identity expect rule, and retire the C3 fallback-map pending marker
now that recordFallback is implemented.

Co-authored-by: Cursor <[email protected]>
Git-on-my-level and others added 2 commits September 18, 2026 11:54
Six conflicts. Resolutions, and why each side rather than the other:

- .github/checks-manifest.yaml: rebuilt from MAIN's text, then re-inserted this
  branch's api-result-boundaries block, so no edit of main's can be lost by
  construction. Two shared ids differed: product-invariants took main's, which is
  #14465's three-dot-from-base fix, and mobile-boundary-check-tests took the
  UNION of triggers, since main watches app/contracts/capture/** and this branch
  watches app/contracts/**/boundary-baseline.json and both are wanted. 226 unique
  ids.
- contracts/spine/files.json: union to 33. Main has 17 C1 oracle entries, this
  branch 6 C3 ones, no key claimed by both with different content.
- .github/scripts/dead_code/flutter.allowlist.json: union to 11 entries — this
  branch's four api_* files plus main's three capture_* files.
- scripts/test_check_mobile_boundaries.py (add/add): took ours, verified a strict
  superset of main's (zero lines present only on main's side).
- app/AGENTS.md: union of the pointer rows. Each side deliberately deleted one
  base line; honoured both deletions and both additions. 11309 of 11411.
- docs/doc/developer/Contribution.mdx: aligned with main. This branch carries
  four spine revision records, and check_spine_contracts.py refuses a revision
  record riding with non-oracle paths, so the contributor-docs hunk cannot travel
  on it. Same call as on #14371.

Co-Authored-By: Claude Opus 5 <[email protected]>
The contract PR must not introduce a revision record of its own.
These records now come from task/msd-spine-c3-revisions.
Bring the compiling skeleton and oracle-only revision records in as the new base so this published contract branch no longer introduces either.
Git-on-my-level added a commit that referenced this pull request Sep 18, 2026
)

* chore(spine): land C3 oracle revision records without implementation

Split the four C3 revision records and the oracles they pin off #14328
so a revision no longer travels with flutter.allowlist.json.

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

* feat(app): land the C3 typed-result skeleton without oracle tests

These four api_* files are unreachable from main.dart until the first consumer is wired, so the dead-code allowlist entries travel with the skeleton. No revision records, no spine tests.

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

---------

Co-authored-by: Cursor <[email protected]>
@Git-on-my-level
Git-on-my-level deleted the branch task/msd-spine-c3-revisions September 18, 2026 09:35
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Auto-closed when base branch was deleted after its parent squash-merged. Head unchanged at 3599b0c74; continued as #14542 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!

Git-on-my-level added a commit that referenced this pull request Sep 18, 2026
* 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(app): define typed API results and consumer contracts

Preserve auth results and existing endpoint protections while defining typed failures, partial row decoding, terminal locked/rejected states and bounded fallback telemetry. Verified UTC app (2058 passed), harness (287 passed, 7 skipped, 40 strict xfailed), 20 hermetic journeys and 21 preflight checks. Skeletons remain unreachable.

* 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(app): revise typed HTTP execution and page acceptance contracts

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

* docs: align HTTP contributor guidance with staged adoption

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

* test(app): compare fallback emission maps by content

Dart Record equality compares Map identity. Revision 017 keeps the pending marker and exact closed fields while checking cardinality, event name and Map separately. Flutter matcher reproduction: 3 passed; Dart owner suite: 2135 passed; harness: 316 passed, 7 skipped, 59 strict xfailed; preflight: 21 passed.

* chore(spine): land C3 oracle revision records without implementation

Split the four C3 revision records and the oracles they pin off #14328
so a revision no longer travels with flutter.allowlist.json.

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

* feat(app): land the C3 typed-result skeleton without oracle tests

These four api_* files are unreachable from main.dart until the first consumer is wired, so the dead-code allowlist entries travel with the skeleton. No revision records, no spine tests.

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

* Merge remote-tracking branch 'origin/main' into task/msd-spine-a-api-result

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
Co-authored-by: Cursor <[email protected]>
Git-on-my-level added a commit that referenced this pull request Sep 18, 2026
…detail (#14600)

* 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(app): define typed API results and consumer contracts

Preserve auth results and existing endpoint protections while defining typed failures, partial row decoding, terminal locked/rejected states and bounded fallback telemetry. Verified UTC app (2058 passed), harness (287 passed, 7 skipped, 40 strict xfailed), 20 hermetic journeys and 21 preflight checks. Skeletons remain unreachable.

* 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(app): revise typed HTTP execution and page acceptance contracts

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

* docs: align HTTP contributor guidance with staged adoption

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

* feat(app): add typed ApiResult and migrate conversation list/detail

makeApiCall still returns null for the 28 existing conversations.dart callers;
ConversationApi is the first path where 403, 503, and a missing row are distinct,
and an injected outage renders error instead of the empty hero.

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

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

* test(app): compare fallback emission maps by content

Dart Record equality compares Map identity. Revision 017 keeps the pending marker and exact closed fields while checking cardinality, event name and Map separately. Flutter matcher reproduction: 3 passed; Dart owner suite: 2135 passed; harness: 316 passed, 7 skipped, 59 strict xfailed; preflight: 21 passed.

* fix(app): inject ConversationApi at production boot so a 503 cannot look like an empty account

main.dart and hermetic boot now call createProductionConversationProvider, which always constructs ConversationApi. An unused import would satisfy the dead-code ratchet; the new test asserts the live call site and that a 503 on that factory-built provider renders the error surface on ConversationsPage.

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

* chore(spine): land C3 oracle revision records without implementation

Split the four C3 revision records and the oracles they pin off #14328
so a revision no longer travels with flutter.allowlist.json.

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

* feat(app): land the C3 typed-result skeleton without oracle tests

These four api_* files are unreachable from main.dart until the first consumer is wired, so the dead-code allowlist entries travel with the skeleton. No revision records, no spine tests.

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

* fix(app): satisfy analyzer ratchet in the typed ApiResult surface

Add library directives to the two new doc-commented files, const the ApiFailure returns, and un-hide sendUncaughtApiCall from @VisibleForTesting — executeApi is a production entry point that must preserve the thrown cause, which the annotation wrongly flagged as test-only.

---------

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

This branch was successfully deployed

1 active deployment
staging - docs — 3599b0c7 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.

1 participant