Repository navigation
spine: land the C3 oracle revisions separately from the contract - #14538
Merged
Merged
Conversation
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
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.
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.pyrefuses a change set that mixes a spine revision record withimplementation 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 fournew
api_*files are unreachable until the production wiring in #14403 lands.Worth recording: this became necessary because
mainmoved, not because the branch changed.The pre-merge tip of #14328 fails the same rule against current
main— #14327 added captureentries to that same allowlist, so the branch and
mainnow both touch a non-oracle path while thebranch 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 andthe entry it pins have to travel together. So this PR is:
006-c3-conversation-test,006-c3-projection-test,006-c3-result-test,017-c3-fallback-map-comparisonapp/test/support/spine/widgets.dartcontracts/spine/files.jsonlines registering themand nothing else — no allowlist, no manifest, no docs, no implementation.
Product invariants affected
none
How it was verified
python3 scripts/check_spine_contracts.pyagainstorigin/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:
origin/main#14328 still exits 1 against
origin/mainrather than against its base, which is the expectedstacked mechanic — CI evaluates
--base {base}— and it clears once this PR is onmain.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_lintsunresolved. Spine tests are digest-pinned, so a reformat silently breaks theafter-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