Skip to content

Infra TV1: the test-value kit: ledger form and coverage before and after, first #803

Closed

Description

@jparker2006

Parent

Ticket TV1 of spec #787 (Infra).

What to build

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.

Activity

  1. added this to the Infra milestone on Nov 15, 2026
  2. added
    ready-for-agent
    on Nov 15, 2026
  3. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: start checked, branch room/803-test-value-kit

  4. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    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.

  5. 17 remaining items

  6. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    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.

  7. removed
    needs-info
    on Nov 16, 2026
  8. added 2 commits that reference this issue on Nov 16, 2026
  9. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    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.

  10. added
    needs-info
    on Nov 16, 2026
  11. added 4 commits that reference this issue on Nov 16, 2026
  12. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    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, 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.

  13. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    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.

  14. removed
    needs-info
    on Nov 16, 2026
  15. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: archived

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions