Skip to content

spine: land the C3 oracle revisions separately from the contract - #14538

Merged
Git-on-my-level merged 4 commits into
mainfrom
task/msd-spine-c3-revisions
Sep 18, 2026
Merged

Git-on-my-level merged 4 commits into
mainfrom
task/msd-spine-c3-revisions

Conversation

@Git-on-my-level

Copy link
Copy Markdown
Member

What changed and why

This is the oracle-only half of the C3 typed-API-result contract, split out so the contract branch
does not carry a spine revision record alongside non-oracle paths.

scripts/check_spine_contracts.py refuses a change set that mixes a spine revision record with
implementation or non-oracle paths, and it says what to do: "Land the oracle-only revision
separately, then base the implementation on it. Separate commits in one PR do not satisfy this
rule."
On #14328 the single offending path was
.github/scripts/dead_code/flutter.allowlist.json, which the branch must change because its four
new api_* files are unreachable until the production wiring in #14403 lands.

Worth recording: this became necessary because main moved, not because the branch changed.
The pre-merge tip of #14328 fails the same rule against current main — #14327 added capture
entries to that same allowlist, so the branch and main now both touch a non-oracle path while the
branch carries four new revision records.

"Oracle-only" is not four JSON files

The obvious version of this PR — just the four revision records — fails with
revision owner differs from registry. A revision record pins a registry entry, so the record and
the entry it pins have to travel together. So this PR is:

  • the four revision records: 006-c3-conversation-test, 006-c3-projection-test,
    006-c3-result-test, 017-c3-fallback-map-comparison
  • the C3 spine tests those records pin, plus app/test/support/spine/widgets.dart
  • the six contracts/spine/files.json lines registering them

and nothing else — no allowlist, no manifest, no docs, no implementation.

Product invariants affected

none

How it was verified

python3 scripts/check_spine_contracts.py against origin/main → exit 0, 93 pending markers /
33 protected files.

The chain built on this fast-forwards end to end, each link green against its own base:

Tree vs base Exit Pending / Protected
this PR origin/main 0 93 / 33
#14328 this PR 0 93 / 33
#14403 #14328 0 78 / 33
#14409 #14403 0 78 / 34

#14328 still exits 1 against origin/main rather than against its base, which is the expected
stacked mechanic — CI evaluates --base {base} — and it clears once this PR is on main.

One hazard found while building this, worth knowing

The pre-commit formatting hook reformatted incoming C1 spine test files during a merge commit,
with flutter_lints unresolved. Spine tests are digest-pinned, so a reformat silently breaks the
after-hash a revision record asserts. It was caught and the affected bytes restored. Any merge that
brings spine tests across should verify the pins afterwards rather than trusting a clean commit.

Failure class (fixes)

Failure-Class: none

🤖 Generated with Claude Code

Review in cubic

Git-on-my-level and others added 3 commits September 18, 2026 12:06
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]>
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]>
Base the C3 oracle tests on the compiling skeleton so the revision records stay oracle-only against this parent.
# Conflicts:
#	contracts/spine/files.json
@Git-on-my-level
Git-on-my-level merged commit 27ef82c into main Sep 18, 2026
37 checks passed
@Git-on-my-level
Git-on-my-level deleted the task/msd-spine-c3-revisions branch September 18, 2026 09:35
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