Skip to content

skills: no rule runs the full schema cases at a branch's final head before merge #2363

Done

Description

@OmarAlJarrah

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.

Related: #2174, #1268

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

  1. added
    type:feature
    priority:P4
    on Nov 29, 2026
  2. OmarAlJarrah commented on Nov 30, 2026

    @OmarAlJarrah
    MemberAuthor

    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 $ref were read as saying nothing when written on an entry, but not when written beside the allOf. So every case writing its object body beside a second $ref to 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:

    $ git diff --stat 5ae6c8e73 721310442 -- internal/harness/openapicases/
     .../openapicases/testdata/full/spelling.txt        | 154 +++++++++++++++++++--
     1 file changed, 145 insertions(+), 9 deletions(-)

    So the core cases, the ones make coverage reaches, 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 lists go test ./internal/harness ./compilers/openapi/... and go test ./..., which reach the core cases alone, and names no full run:

    $ git show origin/main:.claude/skills/morphic-openapi-compiler/SKILL.md | grep -n -E 'go test|make cases|-full'
    37:  `go test ./internal/harness ./compilers/openapi/...`.
    38:- Run `go test ./...` once: tests in other packages read the corpus too.

    As a draft, add a line there: a change under compilers/openapi runs make cases at its final head, citing the rule this issue adds beside race-before-done.

    (morphic @4a7a384c9 for the skill text, @721310442 for the records.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:P4type:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions