Repository navigation
Description
Problem
morphic-verifying-changes maps the claim "no regression against main" to scripts/sweep.py, whose base defaults to origin/main. sweep.py warns only when HEAD does not hold the base. No rule covers a change built on another change that has not merged, as a commit stacked on a branch's earlier commits or a stacked branch is. A sweep against main, or against the commit the branch started from, lists what both changes do, and the upper change's author reads the lower change's effects as their own.
$ git grep -n -i -E 'own parent|unmerged|built on another|stacked (branch|pr|change)' origin/main -- .claude/skills/morphic-verifying-changes; echo "exit $?"
exit 1Here is a change from the work on #2354 swept over a corpus of 1,954 OpenAPI documents, with python3.14 .claude/skills/morphic-verifying-changes/scripts/sweep.py -b <base> <corpus>. Against the branch's earlier base, 7cf2d54:
base exit codes: 0x1482 1x472; IR bytes: 315888376
head exit codes: 0x1480 1x474; IR bytes: 315962060
sweep: 68 of 1954 specs differ (n, then what):
367 .../negative/cyclic/allOf_double.json: exit(0->1) ir diagnostics
369 .../negative/cyclic/allOf_single.json: exit(0->1) ir diagnostics
Against 5a72e1e, the head of the unmerged change it was built on:
base exit codes: 0x1480 1x474; IR bytes: 315887349
head exit codes: 0x1480 1x474; IR bytes: 315962060
sweep: 62 of 1954 specs differ (n, then what):
5a72e1e and the head are not on #2354's branch yet. The 62 are a subset of the 68. The six only the first sweep lists, the two specs that now exit 1 among them, are the lower change's, and that sweep alone attributes them to the change under review.
Direction
A draft. Add a rule to references/differentials.md, and point the claim table's row to it. A change built on an unmerged change also sweeps against that change's head, -b <its head>. It claims as its own only what that sweep lists, and quotes the sweep against main as the two together.
Out of scope
The base a measurement takes (.claude/skills/morphic-measuring-performance/references/finding-cost.md#check-the-base-build), which concerns a base the branch lacks, not one it holds with another change on top.
Priority: P4, rule 1 (housekeeping): a skills change that alters no lowering, validation, IR or emit-contract behaviour. The git grep above → no match (morphic @4a7a384c9). The two sweeps → 68 and 62 differing specs, two of them exiting 1 only against 7cf2d54 (head: the tree of 93ad6e9, whose own commit touched only a test file).
Activity