Repository navigation
Mutation base: --base, gates.base_ref, then origin/HEAD; no base fails under CI - #55
Merged
Merged
Conversation
The mutation diff no longer assumes origin/main. The base is the --base flag, else gates.base_ref, else the remote default branch (origin/HEAD). A named base that is not a commit fails the layer and names the ref. With no base the layer fails under CI, naming fetch-depth: 0 and --base, and is vacuous otherwise, listing each source tried. The report names the base and its source on the mutation row. Both workflows pass --base. The schema, its copy, PROTOCOL.md 8.3 and the init goldens follow. The laws_gate fixtures leave origin/HEAD as a clone does and run without CI set. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Two mutants survived: git_line accepted a failed run or an empty line, and the base was looked up for any layer but mutation. The lookup is now base_for, and each has a test. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The no-base words had two owners: stdout knew about CI and the report did not, so a CI failure showed the vacuous detail and a problem line about a diff command that had not failed. steps::stop_note now words every stop once. The run keeps it, and stdout, the row detail and the problem line all print it. - No base under CI: detail and problem name fetch-depth: 0 and --base. - An unresolved base runs no git and counts no command; the problem names the ref. - A direct origin/HEAD that names a commit is a base, not "not set". - A base with no common history, as in a shallow checkout, gets the fetch-depth: 0 hint and a detail. - The row keeps other judged keys when it adds the base. - PROTOCOL.md states the CI rule evenly and the cookbook drops origin/main...HEAD. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
stop_note matched every base and diff pair in one function, which put its CRAP over the new-code threshold. Each base kind now has its own small function; the words and outcomes are unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Slice 1.2: the mutation layer gets a named base and stops passing silently when it has none.
--base, thengates.base_ref, thenorigin/HEAD. The hard-codedorigin/mainis gone from the gate path.CI(set, and not empty,falseor0) the layer fails, namingfetch-depth: 0and--base. Outside CI it isvacuous, and the detail lists each source tried.judged.baseholds{ref, source}.--base "origin/${{ github.base_ref || github.event.repository.default_branch }}". The eight init goldens were re-recorded withRUST_TOPS_BLESS.gates.base_refin the schema and its copy;PROTOCOL.md§8.3 states the order and the CI rule.tests/gate_base.rshas 21 cases, each with a real git repo: atrunkdefault branch, flag over key overorigin/HEAD,--base nope, CI set and unset, and a danglingorigin/HEAD.Gate at the head:
51 mutants tested in 3m: 41 caught, 10 unviable,ok: 8 command(s) passed.🤖 Generated with Claude Code