Skip to content

failure-classes: register FC-hardening-reachable-only-by-injection - #14616

Merged
Git-on-my-level merged 40 commits into
mainfrom
task/fc-hardening-reachable-only-by-injection
Sep 19, 2026
Merged

Git-on-my-level merged 40 commits into
mainfrom
task/fc-hardening-reachable-only-by-injection

Conversation

@Git-on-my-level

Copy link
Copy Markdown
Member

What changed and why

Registers one failure class: FC-hardening-reachable-only-by-injection.

A change that hardens a path must be on the path the shipped app takes, and something must
assert that it is. It is not enough that the hardened class behaves correctly when a test
constructs it. Three PRs in one night were green on their suites and inert or unasserted in
production: the typed API result (production never injected the client, so an outage still
rendered as an empty account), the capture generation fences (production took the ownerless
constructor), and the production capture composer (asserted only by a throw and a source scrape).

The trap is named in canonical_prevention, because it is the part that fooled us. Import
reachability is not execution. .github/scripts/check_dead_code.py's scan_flutter walks
import / export / part and never asks whether a function is called, so deleting a dead-code
allowlist row goes green on an unused import while the production entrypoint still constructs the
unhardened default. The guard that works is a test that fails if the production entrypoint
constructs the unhardened default
.

Product invariants affected

none

How it was verified

make preflight against origin/main → 13 of 13. Every scope_hints entry was checked against
git ls-files: app/lib/main.dart, app/lib/providers/conversation_provider.dart,
app/lib/providers/action_items_provider.dart,
app/integration_test/journeys/support/hermetic_boot.dart (1 hit each) and
app/lib/backend/http/** (29 hits). Two plausible hints —
conversation_api_contract.dart and action_items_api_contract.dart — were deliberately not
named because they match zero paths on origin/main today, and #14466 now makes a newly added
zero-match hint a hard error.

Merge ordering — this matters

This PR is deliberately stacked on #14409 rather than based on main. Its
canonical_prevention_artifact entries are app/test/unit/c3_production_wiring_test.dart and
app/test/unit/c3_action_items_production_wiring_test.dart, which arrive with #14403 and #14409.
Based on main today, scripts/failure-class validate fails with two
missing_canonical_prevention_artifact errors — verified, not assumed; it is what blocked the
first push attempt. Merging it before C3 would turn every later validate on main red.

Stacking it makes that dependency explicit in the PR graph instead of a note someone has to read,
and GitHub will retarget it to main automatically once #14409 merges. So the ordering enforces
itself: #14328 → #14403 → #14409 → this.

Failure class (fixes)

Failure-Class: new

🤖 Generated with Claude Code

Review in cubic

Git-on-my-level and others added 30 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
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.
…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.
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]>
…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.
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]>
…d-result

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

# Conflicts:
#	contracts/spine/files.json
#	scripts/dev-harness/PENDING_CONTRACTS.md
Git-on-my-level and others added 9 commits September 18, 2026 08:07
The remote tip carried a merge of an older origin/main; this branch already
contains current origin/main plus 20 commits. Merged to restore a
fast-forward path without rewriting published history.

Co-Authored-By: Claude Opus 5 <[email protected]>
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.
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]>
…ook 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]>
…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]>
…tion

A hardening that only tests can construct is not a shipped hardening. Tonight's three dark-but-green PRs all passed suites that injected the hardened object while production still built the default. Import reachability is not execution.

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, 10:38 PM

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

@Git-on-my-level
Git-on-my-level marked this pull request as ready for review September 18, 2026 22:38
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Merge-forward complete against main b38c5457a. Resolution: main's world wholesale for lib/test wiring; this PR's FC-hardening-reachable-only-by-injection definition re-applied; registries unioned (the check-manifest resolver refused the duplicate api-result-boundaries id — de-duplicated by hand keeping the single richer-reason entry, machine-checked union-of-ids vs both parents); app/AGENTS.md keeps both added pointer rows at 11407 bytes. Audit: committed diff vs main is exactly the PR's 5 owned files. Spine contracts exit 0 (40 pending/63 protected); failure-class validates. New head: 550f2b577d.

@Git-on-my-level
Git-on-my-level merged commit 93e9e88 into main Sep 19, 2026
41 checks passed
@Git-on-my-level
Git-on-my-level deleted the task/fc-hardening-reachable-only-by-injection branch September 19, 2026 00:44

This branch was successfully deployed

1 active deployment
staging - docs — 550f2b57 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