Repository navigation
Description
Problem
No review or shipping rule says to run the full schema cases at a branch's final head before it merges, and no CI run on a pull request runs them. .github/workflows/gate.yml runs make cases (go test ./internal/harness/openapicases -run 'TestFull_' -full) only in the race job, whose if: is github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'. The checks and suite jobs, which run on a pull request, reach only the core cases, through make coverage. So a change that moves a finding outside the core, or fixes one and leaves its line in testdata/full stale, merges green and is found by the nightly run on main.
CONTRIBUTING.md's compiler recipe gives the -full -update command, but as a rewrite step ("The lines of testdata/full are the findings outside the core, which the gate does not run"). The skills have the matching rule for the race detector, toolchain.md#race-before-done ("the gate runs no race detector, and the nightly make race meets a merged race only after the merge"), and nothing for the cases:
$ git grep -n -E 'make cases| -full|TestFull_' -- .claude/skills; echo "exit $?"
exit 1
$ git grep -n '^`race-before-done`' -- .claude/skills
.claude/skills/morphic-verifying-changes/references/toolchain.md:24:`race-before-done`rounds.md#ci-is-the-gate lists what a review runs locally because CI cannot ("probes, mutants, differentials, measurements, and the skills lint and scripts' tests"), and the full cases are not among them. During #2354's work, a review ran -full at a head whose CI was green and found 115 stale records.
Direction
A draft. Add a rule beside race-before-done. A change that can move what a schema case compiles to, anything under compilers/openapi or internal/harness, runs make cases at its final head before it is called done. Its review runs it again on the merged tree, and the round's report names that run as a cell. Add make cases to ci-is-the-gate's list of what a review runs because CI does not.
The alternative is to run make cases in a pull-request job. That costs CI time that #1268 tracks, so it is for that issue to weigh.
Out of scope
Whether make cases passes on an empty match (#2174). The nightly job itself.
Priority: P4, rule 1 (housekeeping): a skills change that alters no lowering, validation, IR or emit-contract behaviour. git grep -n -E 'make cases| -full|TestFull_' -- .claude/skills → no match (morphic @4a7a384c9).
Activity
OmarAlJarrah commentedon Nov 30, 2026
More evidence, and a second place the rule belongs.
On #2354's branch, only the full schema cases caught a spelling asymmetry, a defect in the lowering itself. Properties restating the referent of an
allOf's one$refwere read as saying nothing when written on an entry, but not when written beside theallOf. So every case writing its object body beside a second$refto the same body lowered differently from its spellings writing the body on an entry. e604645 fixes it, and 7213104 records what it moves. Neither touches a core record:So the core cases, the ones
make coveragereaches, neither found the asymmetry nor see its fix.The rule should also go in
morphic-openapi-compiler. Its "Before calling a change done" is where a change to the compiler is checked off. It listsgo test ./internal/harness ./compilers/openapi/...andgo test ./..., which reach the core cases alone, and names no full run:As a draft, add a line there: a change under
compilers/openapirunsmake casesat its final head, citing the rule this issue adds besiderace-before-done.(morphic @4a7a384c9 for the skill text, @721310442 for the records.)