Skip to content

ADR-0339: A stream names the test it stopped a child in, and that test's control confirms the timeout

Status: Accepted Date: 2026-12-01 Amends: 0117: decision 6, for a timeout

Context

A split stream stops a child past its limit, and its mutant times out at that test; its verdicts run no control (ADR-0117, decisions 5 and 6). A timeout counts as a kill only where the mutant holds both its limit and the time its tests need unmutated, and that need leaves headroom under the limit (ADR-0008). A mutant an own run timed out gets its need from its control, which runs the one test its run was stopped at where the run names it (ADR-0090).

A stream noted only that it judged the mutant. Its timeout held the limit planned for the mutant’s own run and no need, and no control gave it one, so every stream timeout came out too slow to judge. In run 46591549969 the five shards recorded 18 timeouts with the limit 1766 s and no need, reason or run time, and the verdict listed 18 mutants too slow to judge, among them e6d393753608 of src/Cli/Command/PlanStepsSaid.php:67 on a changed line, which failed the verdict there and in run 46631297202.

Decision

  1. A stream that times a mutant out notes the test. Beside the note that a stream judged the mutant, it writes the test its child overran in, as the record child-overran with the mutated copy and the test.
  2. The mutant’s reason names that test as where it stopped. It says a child of it a stream forked ran past its limit in that test. It names no limit: a child’s limit is the stream’s, and one stopped past its steps has none in seconds.
  3. That test’s control confirms the timeout. A timeout a stream judged that names its test is controlled as an own run stopped at one test is (ADR-0090): the test alone, unmutated, under the mutant’s limit. A control that passes gives the mutant its need, one that fails leaves it unjudged, and one that runs out leaves it too slow to judge. A stream’s kills and survivors, and a timeout that names no test, run no control as before.

Alternatives considered

  • Raise timeouts.most: the limit was not what kept these timeouts from counting; at 900 seconds run 46607588785 left 477 mutants unjudged.
  • Take the parent’s time of the test as the need, with no control: the need is then judged against the limit of the mutant’s own run, which the child was not held to, and the child’s own limit is not always in seconds.
  • Run the mutant again against its recorded killers alone: a new run step, and no killer is recorded for a mutant no run has killed.

Consequences

  • Each stream timeout costs the control of one test.
  • A results file may hold the record child-overran; a reader that does not know it refuses the file, as for any event it does not know.