You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Infra TV1: the test-value kit: ledger form and coverage before and after, first #803
The kit every group uses. A README that is the contract: the ledger's form (one row per test: kept, deleted, merged or moved; its keeper by path and name, or behaviour gone; the bug it catches when kept), what a pull request must carry, and the coverage method. A script that measures line coverage, test count, size and run time for one test target before and after a change, installing its coverage tool itself (not a project dependency). The baseline for every group, saved as evidence.
Owned paths
tools/test-value/
tools/test-value/evidence/baseline/
Relies on: nothing
Links
none
Acceptance criteria
The README pins the ledger form and the coverage method
The script prints the same numbers twice in a row on an unchanged tree
The baseline covers every test target in tests/
Test rule (The test rule: what earns a test, and what never does #687): every new test protects a supported behaviour, a contract others rely on or a safety invariant, and the pull request says per test catches: <the bug>, or no new test: <why>. No mock-returns-stub, source mirroring, compiler re-checks, quota tests or unreachable cases; a bug gets a failing test first.
Every test the pull request deletes names its keeper (a test that still catches its bug) or says the behaviour it protected is gone.
Proof
T2 and T4's measuring method; reviewed, with the repeat run.
Orchestrator ruling: narrow grant for this ticket (same intent, 2026-11-15). Besides its owned paths, this ticket may add its own CI registration lines in .github/actions/docs-only/run.py and .github/actions/docs-only/plan.py (shared: only the rows that select and run this ticket's tools/test-value/ tests), so the kit's tests run in CI. Nothing else in those files changes. The pull request lists these lines under this grant, and the reviewer checks they stay within it.
Orchestrator ruling: option (a). The criterion is met for the script: ten of twelve targets repeat exactly, and the two that vary (loops, web-api) vary by one or two named server lines whose execution depends on socket timing, not on the script. Write the variance down in the baseline's README with those exact lines, and have any group whose drop is confined to them rerun its measure before calling the drop real. List it under the PR's Gaps and as a Ruling: line. Making those two server tests deterministic is not this ticket's work; file it as a low follow-up.
Builder question: does the repeat ruling (option (a), comment) extend to two more lines of the same kind?
After #884's R2 and R3 fixes I regenerated the baseline and its repeat run on all 12 targets:
11 of 12 targets are now identical, loops included.
web-api covers 1 fewer line the second time. That line is in openwiz-store, not in the ruled server lines.
Three traced web-api runs differ only in crates/store/src/lib.rs:238 and 568-572:
line 238: a directory another concurrent request made first (AlreadyExists);
lines 568-572: waiting on a lock another request holds (WouldBlock).
These are race branches whose execution depends on thread timing, the same kind as the ruled socket reads.
Options:
(a) Same rule, these lines added: a drop confined to them means a rerun first. The README and the baseline already list them that way on the branch. Recommended.
(b) Treat them differently. Say how.
#892 names only the server lines. Whoever triages it may want to widen it to these store lines; I'm not editing it. I'm handing back the R2/R3 head with this listed under Gaps.
The builder's question (#803 (comment)): whether the repeat ruling (option (a), comment 6906133326) extends to two more timing-dependent lines in openwiz-store (crates/store/src/lib.rs:238, AlreadyExists from a concurrent request; 568-572, WouldBlock on a lock), which make web-api cover 1 line fewer on a repeat. 11 of 12 targets are now identical. Builder recommends (a): the same rerun rule with these lines added; it hands back the R2/R3 head with this under Gaps.
Orchestrator ruling: yes, the repeat ruling extends to the two race branches in openwiz-store (crates/store/src/lib.rs:238 and 568-572), on the same terms: name the exact lines in the baseline's README as timing-dependent, and a drop confined to named lines is rerun before it counts. From here the builder may add further lines of this same class itself and log each as a Ruling: line; ask only if a variance is not explained by a named timing branch.
Activity
jparker2006 commentedon Nov 15, 2026
launch-fleet: start checked, branch room/803-test-value-kit
jparker2006 commentedon Nov 15, 2026
Orchestrator ruling: narrow grant for this ticket (same intent, 2026-11-15). Besides its owned paths, this ticket may add its own CI registration lines in
.github/actions/docs-only/run.pyand.github/actions/docs-only/plan.py(shared: only the rows that select and run this ticket'stools/test-value/tests), so the kit's tests run in CI. Nothing else in those files changes. The pull request lists these lines under this grant, and the reviewer checks they stay within it.17 remaining items
jparker2006 commentedon Nov 16, 2026
Orchestrator ruling: option (a). The criterion is met for the script: ten of twelve targets repeat exactly, and the two that vary (
loops,web-api) vary by one or two named server lines whose execution depends on socket timing, not on the script. Write the variance down in the baseline's README with those exact lines, and have any group whose drop is confined to them rerun its measure before calling the drop real. List it under the PR's Gaps and as aRuling:line. Making those two server tests deterministic is not this ticket's work; file it as a low follow-up.#803: README and baseline record the ruled socket-timing variance (#892)
#803: merge main (#853's rows kept beside this ticket's), green
jparker2006 commentedon Nov 16, 2026
Builder question: does the repeat ruling (option (a), comment) extend to two more lines of the same kind?
After #884's R2 and R3 fixes I regenerated the baseline and its repeat run on all 12 targets:
loopsincluded.web-apicovers 1 fewer line the second time. That line is inopenwiz-store, not in the ruled server lines.web-apiruns differ only incrates/store/src/lib.rs:238and568-572:AlreadyExists);WouldBlock).These are race branches whose execution depends on thread timing, the same kind as the ruled socket reads.
Options:
#892 names only the server lines. Whoever triages it may want to widen it to these store lines; I'm not editing it. I'm handing back the R2/R3 head with this listed under Gaps.
#803: red: R2 size from dep-info and R3 child profiles fail on today'…
#803: size from rustc's dep-info (R2); merge cleared-environment chil…
#803: R2/R3 fixed; baseline and repeat regenerated, store race lines …
#803: merge main (keep #853's and setup-onboard-init's rows), green
jparker2006 commentedon Nov 16, 2026
launch-fleet: asked the orchestrator
The builder's question (#803 (comment)): whether the repeat ruling (option (a), comment 6906133326) extends to two more timing-dependent lines in
openwiz-store(crates/store/src/lib.rs:238,AlreadyExistsfrom a concurrent request;568-572,WouldBlockon a lock), which makeweb-apicover 1 line fewer on a repeat. 11 of 12 targets are now identical. Builder recommends (a): the same rerun rule with these lines added; it hands back the R2/R3 head with this under Gaps.jparker2006 commentedon Nov 16, 2026
Orchestrator ruling: yes, the repeat ruling extends to the two race branches in
openwiz-store(crates/store/src/lib.rs:238and568-572), on the same terms: name the exact lines in the baseline's README as timing-dependent, and a drop confined to named lines is rerun before it counts. From here the builder may add further lines of this same class itself and log each as aRuling:line; ask only if a variance is not explained by a named timing branch.jparker2006 commentedon Nov 16, 2026
launch-fleet: archived