ADR-0009: Every verdict is readable by a machine, a reviewer and a badge, and every survivor says how to reproduce it and what the tests miss
Status: Accepted Date: 2026-09-29
Context
The in-house gate reports through Pest's console output and one exit code.
When a shard fails, a person opens that shard's log, finds the UNTESTED block
and works out from the diff what the tests did not check. There is nothing for a
machine to read, nothing on the pull request's diff and no history.
A gate other people adopt has more readers:
- CI systems, which read JUnit and SARIF;
- reviewers on a pull request, who read annotations on the diff and one summary comment;
- the developer who has to fix a survivor, who needs one command to see it fail and a sentence saying what the tests miss;
- visitors to the repository, who read the badge;
- maintainers, who watch the trend.
All of it comes from the same normalised records (ADR-0004), so every reader sees the same verdict.
Decision
The Reporter port takes the whole verdict. One immutable value holds:
- every tree, with its declared floor, baseline floor, score, counts by status and verdict: passed, failed or nothing to mutate;
- the new-code set;
- every unit, and whether its result was run, proved or carried;
- every mutant's record, with its hint and reproduce command;
- every test, with the mutants it covers and those it killed (ADR-0014);
- the reach and its reasons;
- warnings: unheld hot paths (ADR-0005); expired or expiring ignores (ADR-0008); and a shard target the plan could not meet, an ignore a proof of equivalence makes redundant, a check for equivalence that could not run, and a proof store opened read-only (ADR-0013);
- failures that belong to no floor: stale ignores (ADR-0008) and held paths their group does not cover (ADR-0005);
- where it comes from: the gate's version, the commit judged, the runner
and the packages it drives, and the baseline file, which the JSON
report writes as
provenance, with how long the run took and whether the baseline is current, stale (a score rose above a floor) or missing (a set with a score has no floor).
The JSON report also writes, for each tree, new-code and security set, the sentence every report says of it, as
said.Which reporters run, each registered by its name in the package's own extension (ADR-0001):
- The console (
console) always. With--output=problemsit prints one line per result for editors instead of its table (ADR-0015). Every line the gate's console writes, to standard output or standard error, starts no command in a CI runner's log. Split at\r\n,\rand\n, as the runners split it, a line whose trimmed text starts with::gets a\before it, and##[or##vso[anywhere gets a space before its[. So text from outside, such as a test's name, a process's output or an analyser's message, reaches the log only as text, and so does text the gate prints for a person to read or copy, such asconfig:showandinit --stdout, where a##[a project's path holds is printed## [. Text from outside inside a line, such as the analyser's rejection, is also one plain line with no control or format character. Two kinds of output are written past the console: the gate's own commands, the annotations with their encoding and the Azure plan's output variable; and a plan printed for a CI to read, JSON with each#written\u0023, which every reader decodes back and no log reads a command in. - File reports, listed in
reports(ADR-0002): each entry is{"use": <name or class>, "path": <file or directory>, "with": <options>}. The built-in names arejson,junit,sarif,html,testsandkill-matrix(ADR-0014),gitlab, GitLab's Code Quality JSON (ADR-0016), andsonar, SonarQube's generic external-issues format (ADR-0028), each needing apath.reportsis empty by default, and--report=<name>:<path>adds one for a single command. ADR-0046 amends this:stryker, the Stryker report on its own, is a built-in file report too. - GitHub annotations (
github-annotations) and the step summary (github-summary, written toGITHUB_STEP_SUMMARY) wheneverGITHUB_ACTIONSis set. - The sticky PR comment (
github-comment) under GitHub Actions on apull_requestevent whenGITHUB_TOKENis set, as the package's action and reusable workflow set it. - The badge and the trend (
badge) when the verdict runs in CI on the default branch. - Chat alerts,
slack,discordandwebhook, when listed inreportsand the verdict runs in CI on the default branch and changes its state, and OpenTelemetry,otlp, when listed (ADR-0016).
A file report reads the
pathof its entry from its options, besidewith.A reporter that fails to write says so, and it does not change the verdict's exit code.
The formats a machine reads.
- JSON (
json), the gate's own format with a"format": 2field. Its schema is generated like the config's and committed atresources/report.schema.json. It carries everything in the verdict, and it is public API (ADR-0011). A mutant proven equivalent has the judgementequivalent, while its runner'sstatusstayssurvived, and each killed mutant names the test that killed it first, where one is known (ADR-0013). It lists the tests once, in ateststable, and gives each mutantcoveredByandkilledByas indices into it (ADR-0014), so each test's id is written once, however many mutants it covers, and the report grows with the mutants and the tests, not their product. Beside those:- At the top:
format,judgement,cutShort,uncovered, the project'sscoreandcountsby judgement, thentrees,newCode,mutants,reach,warningsandfailures. - Each tree has its
pathandpackage; itsdeclaredfloor or the reason it isexempt; itsbaseline,floor,score, thebase's score and the floor itraisedto, where each is known; itsjudgementandcounts; itsunits, each with itspath, thegrouporfilterthat holds it, and itsorigin; and the ids of itsmutants. - Each new-code set has its
package,floor,scorewhere it has one,judgement,countsand the ids of itsmutants. - Each mutant is written once, at the top:
id,file,line,end,mutator,family,diff, the runner'sstatus, the gate'sjudgement, thereasonits record gives, therejectionthat killed it where a static analyser did, with the analyser, the file its finding sits in and the finding's code and message (ADR-0020),changedLine,judgedBy, the indices of the tests that judged it, where they are not every test that covers it, as a held unit's holding tests are not, itshint, itsreproducecommand, and thesecondsit ran and thelimitit was allowed where the runner says. - A value that is not known is left out, never written as null.
- The mutants a run reported in full come first, then the kills a
ledger proved. A ledger keeps a kill's id, line, mutator and killing
tests, so a proved kill has no
family,difforend. - Every score and floor is a percentage: a number from 0 to 100 with at
most two decimals, truncated from hundredths, as
83.41or100.0.
- At the top:
- JUnit XML (
junit). One<testsuite>per tree, and one for new code. In each suite, one<testcase>stands for its floor. It fails exactly when the gate fails that tree, and the failure body lists every mutant it counts as not killed, with line, mutator, diff, hint and reproduce command. A tree at 80% that passes its floor of 80 does not show as a failed test. One more suite,run, holds a<testcase>for each failure that belongs to no floor. JUnit failures match gate failures one to one.- A tree's suite is named by its path, and its test case is
name="floor"with the tree's path asclassname, so a CI's history follows it from run to run. - The
new codesuite has a test case per package, named by its path. - An exempt tree's test case is skipped, with its reason.
- The
runsuite names each test case by its failure, and is left out when there is none.
- A tree's suite is named by its path, and its test case is
- SARIF 2.1.0 (
sarif).- One run, with the tool named
mutation-gate. Paths are relative to the repository. A local run (CIunset) also gives the absolute root asoriginalUriBaseIds.SRCROOT, for editors (ADR-0015). - Four rules:
survived,uncovered,unjudgedandflaky. Theunjudgedrule reports unjudged mutants and those too slow or too heavy to judge. A mutant proven equivalent is not a result (ADR-0013). - Each result is at the mutant's file and lines. Its level is
errorwhen the mutant is in a set that failed (new code, or a tree below its floor) andwarningotherwise. - Each result carries the gate's id, itself a digest (ADR-0004), as
partialFingerprints.primaryLocationLineHash, the one fingerprint GitHub code scanning reads. Code scanning can then match a result across commits when code above the mutant moves. - The README says to upload it with
github/codeql-action/upload-sarif.
- One run, with the tool named
- JSON (
What GitHub shows on the pull request.
Line annotations. Written as workflow commands, which need no permissions. Property values escape
%,:,,and line breaks, and the message escapes%and line breaks:::error file=src/Money.php,line=42,title=Mutant survived%3A LessThan::Add a test that uses a value at the boundary of `$amount < $limit`. Reproduce: vendor/bin/mutation-gate reproduce 3f9a1c2b7d04Errors mark mutants in a failing set, and warnings mark the rest; the title names the gate's judgement and the mutator, as Mutant survived: LessThan. Where the mutant's record gives a reason, such as why it was left unjudged, the message starts with it, before the hint, as the step summary's row does. Each warning of the verdict is a notice. GitHub keeps at most 10 error, 10 warning and 10 notice annotations per step, and 50 per job, and drops the rest silently. So the gate writes all its annotations from one step, at most 10 of each, ranked: changed lines first, then sets that failed. The Infection adapter turns Infection's own annotations off (ADR-0004), so they do not use up that step's share. The step summary always carries the full table.
The sticky PR comment.
Where it lives. One comment per pull request, found by the hidden marker
<!-- mutation-gate -->among comments by the token's identity: the user GitHub's/usernames, orgithub-actions[bot]forGITHUB_TOKEN, which cannot read/user. The optionidentitynames another. It is updated in place on every run, passing runs included, so an old failure never lingers. The token needspull-requests: write.Planned, then judged.
plan, andrunwithout a plan, post it first, in a planned state: the units to be mutated, the estimate (ADR-0017), and the changed lines no test runs. The coverage map holds each executable line no test ran beside those some test ran, so a changed comment or blank line is never one of them. In order: the marker;## mutation-gate: planned; Mutating 12 units in 3 shards: about 6m wall, 14m runner time (94% measured), or Nothing to mutate where the plan has no units; the units, folded as<details><summary>Units (12)</summary>; Changed lines no test covers (3) as a heading over onepath:linea line; and the link to the run, which says the verdict links the HTML report and that until then there is none. Each list is cut like the verdict's. The plan file holds the untested lines asuntested. The flows write the state withPullRequestComment::planned(PlannedWork), wherePlannedWorkholds the plan, its estimate, the share of the estimate that was measured, and the untested lines by file. The verdict replaces that state with what follows (ADR-0019).What it holds:
- the verdict, with the line saying what the run saved directly under it (ADR-0017);
- each tree's floor and score, with the change against the base;
- the new-code score;
- up to 20 survivors on changed lines, each with its diff, hint and reproduce command;
- unjudged and flaky mutants;
- warnings;
- floors that must or can rise (ADR-0003);
- a link to the run's HTML report and to the run;
- the run's cost, collapsed (ADR-0016).
In that order: the marker; a heading with the verdict and the project's score; the line saying what the run saved; a table of the trees (tree, floor, score, change against the base, result); a line for each new-code set; each survivor on a changed line as a folded block with its diff, hint and reproduce command; a table of the unjudged and flaky mutants; the failures; the warnings; the floors that can rise with
vendor/bin/mutation-gate baseline --write; the link; and the cost.The link to the HTML report. Every run of the action and the reusable workflow writes the HTML report with its verdict and uploads its
index.htmlunarchived, as the artifactmutation-gate-report.html. GitHub serves an unarchived artifact as the file itself, inline, so the link opens the page. The comment is rendered with a slot,<!-- mutation-gate: html report -->, whichPullRequestCommentfills as it writes the comment: it finds that artifact among its own run's withactions: readand links<run>/artifacts/<id>in the line The HTML report of this run, each half a link. A comment updated in place thus always links the run that wrote it. Where the run holds no such artifact, it has expired, or its artifacts cannot be read, the line says so and links the run instead: This run left no HTML report to link: no artifact of it is namedmutation-gate-report.html, so the verdict wrote none or it was not uploaded. A list longer than 20 says how many more there are. GitHub takes at most 65,536 characters in a comment, so where the comment would hold more, each list shows half as many entries, and again, down to none, each saying how many it left out. Each diff and hint shows at most 1,500 characters, so one long line of code cannot fill it alone.The step summary has the same layout without the marker, and lists every mutant counted as not killed in one table. A step's summary holds at most 1 MiB, so a table that does not fit is cut and says how many rows the JSON report holds beyond it.
What the project wrote stays text. Paths, diffs, test names and reasons come from the project under test, so every one is escaped where it lands: no markup, link, bare address, mention or table cell in Markdown, no control or format character, a bidirectional override included, and a diff's fence is longer than any run of its fence character inside it. The config's currency is escaped the same way. In a log, no line starts a command of GitHub, Azure Pipelines or TeamCity: not in any case, not after the console's colour or a character a runner trims or skips, and not across the writes that make one line. Text from outside reaches a terminal or a CI's log with no control or format character but a tab and the ends of lines, dropped before the console adds its own colour and before a workflow command is escaped, so the only escape sequences the gate writes are the colours of its console.
Fork pull requests. The token GitHub gives a
pull_requestrun from a fork is read-only, so no comment is written. The step summary carries the same content, and the reporter says why without failing. The README's examples usepull_request, notpull_request_target, which would run the fork's code with a token that can write.Other CIs have no comment. The console, JUnit and the HTML report carry the same content there.
The HTML report is the gate's own page of the verdict. The HTML reporter (
html, whosepathis a directory) writesindex.html, one self-contained page whose style and script are inlined, so it loads nothing from a network, and the report in the openmutation-testing-report-schemaformat asmutation-report.json. The page is rendered from the JSON report (decision 1), so every reader of a run reads one verdict.The overview is read on the first screen, and without a script:
- the verdict as a pill, sampled or cut short beside it where it
was, one plain sentence on what mutation testing is, and why: the
JSON report's
why, what kept the run from judging, each set below its floor, as every report says it, each failure no floor decides, and the project's score; - what to do, the JSON report's
next: for each set below its floor, how many more mutants its tests must catch to reach it, worked out from its counts; for a run that passes, that nothing has to change; - how many mutants came to each outcome, each graded Good, Needs attention or Bad in a word, never by colour alone, with a sentence on why, and how many the score leaves out;
- each tree, new-code and security set's score as a bar, its floor marked on it;
- the survivors, those on changed lines first, by file, line, mutator and outcome, with the first sentence of its hint, which says what test would catch it, each a link to it below, the first 25 named;
- the files judged, how many mutants are on changed lines and how many of those survive, and the files with the most survivors;
- where the verdict comes from, read from the JSON report's
provenance: the gate's version, the commit judged, the runner and the packages it drives, how long the run took, and whether the baseline file is current, stale or missing.
- the verdict as a pill, sampled or cut short beside it where it
was, one plain sentence on what mutation testing is, and why: the
JSON report's
Each file is in a list beside a pane of the one chosen, the files with the most survivors first; at phone width the list is a picker above the pane. In the pane, each mutant that needs a test comes first, with its outcome, line, mutator, the gate's own judgement, its change, the tests that killed it or that none did with how many cover it, its hint and the command that reproduces it; the killed and the left-out are folded away. A change is shown as the lines it changed, red and green, or, as the reader picks for the page, as a diff with context or side by side. A file of a unit this run did not judge, whose result a proof or an earlier run carried, shows its counts alone. The list and the pane need the script; the overview says so where it does not run.
The outcomes the page names, with the gate's own judgement beside each as detail, and the grade every report gives each:
Outcome Grade Gate judgement Killed good killed, killed by static analysis (ADR-0020), killed by the memory cap (ADR-0004) Escaped bad survived, unjudged, flaky, too heavy to judge Untested bad uncovered Timed out needs attention killed by timeout, too slow to judge Errored needs attention errored Left out needs attention ignored, ignored by a native marker, equivalent (ADR-0013) A reader new to mutation testing can follow it. Every word the page uses that such a reader may not know, mutant, each outcome, score, floor and carried, has a What is this? beside it, a native disclosure that opens without a script on what it means in plain English and a link to that word's section of the guide to reading the report, at the tag of the gate that rendered the page, or
mainfor a gate that is not a release.Everything a project writes is escaped. A path, a diff, a test name or a reason is set as text: escaped in the page, and in the page's data, whose index is JSON in its own script element with every
<,>and&escaped, and whose mutants are gzip in base64, a script element for each file, read withJSON.parseand set as text by the script. Nothing a project writes can end an element or run. Every control, separator and format character in it, a bidirectional override among them, is shown as an escape, by the page and by its script, so none reorders what the reader sees.It is ready as soon as its list of files is, whatever the run's size: its script comes before the files' mutants, so it runs while the rest of the page is still arriving, as from a host that serves it uncompressed; a file's mutants are inflated when the file is first shown, once they have arrived whole; a mutant carries only what the page shows of it; and a card off screen is laid out when it scrolls into view.
It reads light and dark, as the reader's system prefers, and at phone width.
The Stryker report. In
mutation-report.json(schemaVersion2, Stryker's own thresholds of 80 and 60), each mutant is given the Stryker status the gate's score treats the same way, and the gate's own status goes instatusReason:Gate status Stryker status killed, errored, killed by static analysis (ADR-0020), and killed by the memory cap (ADR-0004) Killedkilled by timeout Timeoutsurvived, unjudged, flaky, too slow to judge, and too heavy to judge Surviveduncovered NoCoverage, orIgnoredunderuncovered: excludeignored, and ignored by a native marker Ignoredequivalent, proven (ADR-0013) IgnoredJudging tests, hints and reproduce commands go in each mutant's
description. ItscoveredBy,killedByandtestsCompleted, and the report'stestFiles, come from the kill matrix (ADR-0014). The schema requires a column for each location. The gate takes it from the file's tokens, and a mutant it cannot place there spans its lines from the first column to the end. A kill a ledger proved spans its line that way too, and has noreplacement, since the ledger keeps no diff.
The digest is the verdict for an agent. An agent, or a terminal, reads the verdict one fact a line, at a cost in tokens that does not grow with the run: rendered from the JSON report as every report is, so it says the verdict, the counts and the provenance as the JSON and HTML reports do.
- The overview opens each line with a word that never changes:
mgthe verdict and the project's score, sampled or cut-short after it where the run was;whyeach sentence of the report'swhy;nexteach of itsnext;countshow many mutants came to each outcome with its grade,killed=450(good);seteach tree, new-code and security set's score, floor and judgement;provthe gate's version, the commit, the runner and its packages, the seconds the run took and the baseline's state;warneach warning; then the survivors the HTML report lists, in its order, each under the@line of its file, as its outcome, line, mutator, the code it replaced and what it put there, its id,changedwhere the change touched its line, and the first sentence of its hint; andmorehow many it left out. It lists 25 survivors, as the page does, and--survivors=<n>or--survivors=alllifts that. - Depth comes on request, one target a call, with
--detail=<target>: a file's counts and every mutant of it not killed, the killed counted alone, or its counts alone where its result was carried; a mutant, by its id or a prefix of six or more asexplainfinds one, with its diff, its hint, the tests that cover it, the first five by id, those that killed it and its reproduce command; a cluster, each member as the overview lists it, with itsstubcommand; orlegend, what each word the reports use means. A target the run does not hold exits 2. - Nothing the code under test wrote can forge a line. Each value a
report took from the project, a path, a change, a hint, a test's id, a
warning, is written on one line with a backslash and every control,
line or paragraph separator and format character as a visible escape,
\nor\u{202e}, so no value ends its line, starts one an agent would read as the gate's, or acts on a terminal. A mutant's diff is set in by two spaces below itsdiffline. - Where it is read.
mutation-gate digestrenders the JSON report every verdict keeps at.mutation-gate/report.json, running nothing. Thedigestreporter writes the overview to itspath; the action and the reusable workflow write it beside the HTML report and upload it asmutation-gate-digest.txt. Nothing of it goes into the pull request's comment, which is written for a person. - Measured. On a run of 475 mutants with 19 survivors the overview is about 1,200 tokens, and on one of 35,548 with 1,111 survivors about 1,600; the JSON report of the second is about 32 million.
- The overview opens each line with a word that never changes:
The badge and the trend on the default branch.
The badge. The verdict writes
badge.jsonfor shields.io's endpoint badge:{ "schemaVersion": 1, "label": "mutation score", "message": "87.41%", "color": "green" }The score is over the whole project's mutants, by the same formula as a tree's (ADR-0003). Colours follow
badge.colors, a map from a shields.io colour to the lowest score that earns it, which defaults to:- brightgreen at 90 or above;
- green at 80;
- yellow at 70;
- orange at 60;
- red below the lowest.
The trend.
trend.jsongets one entry per run on the default branch: commit, time, the verdict, the project's score, each tree's score, and the run's runner time and full-run time (ADR-0017). The verdict is what chat alerts compare against (ADR-0016). It keeps the newest 500. Its commit, time and scores are written so:{ "format": 1, "runs": [ { "commit": "3f9a1c2", "time": "2026-09-30T10:00:00Z", "score": 87.41, "trees": { "src": 87.41 } } ] }A score a set does not have is left out, and an entry that is not in that shape is dropped when the file is read. The verdict also draws
trend.svg, a plain sparkline with no script, 240 by 40 pixels on a scale of 0 to 100, which the step summary and the HTML report show.Where they are written. Only a verdict in CI (the
CIenvironment variable is set) on the default branch writes them, into--publish-dir=<dir>, an option ofverdictand of a one-process run,.mutation-gate/publishby default. It appends to thetrend.jsonit finds there, so the files published last time are restored into that directory first. It also writessavings.json, a shields.io endpoint with the time saved in the last 30 days (ADR-0017), published with the others.What never updates them. A run cut short by its budget (ADR-0008).
Where they are published. The reusable workflow (ADR-0011) restores the four files from a branch named
mutation-gatein the same repository before its verdict, and its publish job pushes them back through GitHub's contents API with the job's own token and no custom author. GitHub signs commits made that way, so a ruleset that requires signatures accepts them. The publish job runs only on the default branch, and it is the only job that needscontents: write. The one-step action leaves them in--publish-dir, because its job would needcontents: writeon pull requests too. The README's badge line is:On other CIs, restoring and publishing
--publish-diris the pipeline's job.
Every survivor has a one-line reproduce command. In every report it is
vendor/bin/mutation-gate reproduce <id>. It works on any machine with the same code, because the id holds no absolute path (ADR-0004). Every mutant the score counts as not killed has one, so it is also the command that judges an unjudged mutant (ADR-0008). The console, HTML and JSON reports also givevendor/bin/mutation-gate explain <id>, which explains it without running anything (ADR-0014).Every survivor says what test would catch it. Each runner adapter maps its native mutator names to a family. Each family has one sentence, an instruction a reader new to mutation testing can act on, filled in from the diff and from the enclosing function, found by the file's tokens. The sentence names the judging tests (ADR-0004), where there are any: up to three, then and n more.
Family Example What the hint says Boundary <→<=Add a test that uses a value at the boundary of $amount < $limit.Condition ===→!==,if ($x)→if (! $x)Assert on something this condition decides: these tests run it, but none checks what it decides. Logical &&→||Add a test where exactly one side of the &&is true.Arithmetic +→-Add a test that checks the result of $a + $bwith a non-zero operand.Return value return $total;→return 0;Assert on what total()returns: tests call it, but none checks its result.Removed call $this->save($order);removedAssert on what save()does: every test passes without the call.Literal 3→4,true→falseAdd an assertion that fails unless this value is 3.Collection an array item removed, a loop given no items Add a test that notices the item missing, or runs the loop with items and checks the outcome. Exception throwremovedAdd a test that expects this exception. Unwrap array_values($xs)→$xsAdd a test that passes a value array_values()would change.Visibility public→protectedMake this narrower: nothing outside the class calls it. Uncovered (a status, not a family) Add a test that runs line 12: no test runs it yet. A mutator with no family gets the general sentence: Add an assertion that fails when line N becomes
<mutated line>: these tests run it, but none notices. A table test fails when a mutator of a supported runner version has no family and is not explicitly marked as having none.A mutant the gate judged otherwise than survived gets the sentence of its judgement. The sentence of every mutant counted as not killed names its judging tests: a survivor's, and a flaky, unjudged, too slow or too heavy mutant's, whose tests are the suspects.
Judgement What the hint says Flaky Its tests killed it on one run and let it survive on another, so they are the suspects. Too slow to judge Its time limit was too short beside its tests' own time, so a timeout says nothing about it. Hold <file>with a group of the tests that assert on it, or raisetimeouts.most.Too heavy to judge The unmutated suite holds more than half the memory cap, or was not measured, so the cap says nothing. Raise runner.memory; doctor --measure says what the suite needs. Unjudged Nothing judged it, so it counts as not killed. Ignored An ignore in the config leaves it out of the score. Ignored by a native marker A native ignore marker leaves it out of the score. Killed A test fails with it in place. Killed by static analysis The static analyser the project runs rejects it, so it could not pass CI, which counts as killed. Errored It crashes its tests, which counts as killed. Killed by timeout Its tests ran far past their usual time with it in place, so the timeout counts as a kill. Killed by the memory cap It ran out of the memory cap, at least twice what the unmutated suite holds, so the cap counts as a kill. The judging tests are named as It is judged by
A,B,Cand n more.The verdict takes a mutant's judging tests from the kill matrix: the tests that cover its line and those its record names as killers. For a held unit it keeps those of them its holding tests that run it are among, as the shard's result or the unit's proof lists them (ADR-0005). A held unit's result that lists none, from a proof an earlier gate wrote, names none.
Alternatives considered
| Option | Why it lost |
|---|---|
Stryker's mutation-testing-elements viewer as the HTML report | It shows each file's source with its mutants, and nothing of the verdict: not whether the run passed or why, not the sets against their floors, not where the verdict comes from. Its own score leaves out what the gate counts, and its bundle is most of every page. The gate's page reads the verdict first and each file below it. |
| The Stryker dashboard as the report's home | An outside service with its own account, and nothing there for Pest. An extension can add it. |
| Annotations through the Checks API | More annotations per request, but it needs checks: write and an API client. Workflow commands need nothing, and the step summary holds the full list. |
| A review comment on every surviving line | One notification per survivor per push. One sticky comment says it once and keeps saying it correctly. |
| JUnit with a failing test case per surviving mutant | At a floor below 100 the gate passes with survivors, and a JUnit report full of failures would contradict it. |
| Badge and trend through a gist, GitHub Pages or a commit to the default branch | A gist needs a personal token. Pages needs a site and a deploy job. A commit to the default branch meets its protection rules and fills its history. A data branch written through the contents API needs neither. |
| Publishing from the one-step action | Its one job runs on pull requests as well, so it would need contents: write wherever a pull request's code runs. The reusable workflow keeps that permission in a job that runs only on the default branch. |
| The digest as terse JSON, JSONL or Markdown | Measured on the same two runs, each costs more tokens for the same facts: terse JSON about a quarter more, JSONL about half more, Markdown a tenth to a fifth more. The JSON report stays the machine contract; the digest is read, and its line words are as stable. |
| Depth as a flag per section, or as commands of its own | A section of a whole run grows with the run, which is what the digest exists to avoid; a command per depth is more to learn for the same output. One target a call keeps each answer small. |
| The digest in the pull request's comment | It would share the comment's 65,536 characters with what a person reads. An agent reads the artifact, or runs digest. |
| The explanations behind a New here? switch | A reader new to mutation testing has to find it first, and it needs a script. A disclosure beside each word is there for whoever needs it and out of the way of whoever does not. |
| Hints written by a language model | Needs a network and a key, and gives a different sentence each run. A hint has to be reproducible and reviewable, like the verdict. |
Consequences
One verdict, many readers. JSON, JUnit, SARIF, annotations, comment, HTML and badge are all rendered from the same value, and a test holds every reporter to the same example verdict.
A developer's first contact with a survivor is actionable: where it is, what changed, which tests ran it, what they miss and one command to see it.
The default branch gets a visible history, on a branch that holds nothing but data.
Related
- ADR-0003: the score the badge shows
- ADR-0004: records, ids and mutator families
- ADR-0005: hot-path warnings and reach reasons
- ADR-0008: unjudged, flaky and ignored mutants
- ADR-0011: the action and workflow that post and publish
- ADR-0013: equivalent, proven, the first killer, and a shard target the plan could not meet
- ADR-0014: test-level data, the
testsandkill-matrixreports, andexplain - ADR-0015: the problems output, and SARIF's local root
- ADR-0016: the
gitlab, chat andotlpreporters, the JSON report'scostandrun, andtrend.json'sverdict - ADR-0017: the savings line, the JSON report's
savings,trend.json's times andsavings.json - ADR-0018: the package vendors no third-party code, the HTML report's included
- ADR-0019: the comment's planned state
- ADR-0028: the
sonarreporter