Skip to content

Infra CW1: the bolder test rule, its keep-reason ledger and one test-line counter, first #1142

Closed

Description

@jparker2006

Parent

Ticket CW1 of spec #1141 (Infra).

What to build

Write the shared form every later pass uses. The README states the bolder rule from DL4: a test is kept only for a user-visible behaviour, a contract another repository relies on, or a safety gate (privacy, security, data loss, money, release). The ledger form gains a keep-reason column, and the deletion row names a keeper or why the behaviour isn't one of the three. A counter reports test lines per area (tests/ by group, each apps/*, each crate's own tests, tools/, ci/, .github/, contracts/fixtures/), using the same test-file classification as TV14's budget guard (one definition, not two), and the baseline is recorded at a named main commit.

Owned paths

  • tools/test-value/README.md (shared: the rule section and the ledger form)
  • tools/test-value/count.py
  • tools/test-value/test_count.py
  • tools/test-value/evidence/cw1/

Relies on: nothing

Links

Acceptance criteria

  • The README's rule and ledger form, with one worked keep row and one worked delete row
  • The counter's tests, red first on synthetic trees, including a non-test file never counted
  • The baseline counts at a named main commit, with the share of tests in the whole codebase
  • 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

CW-B baseline: the counter's red-first tests and the recorded baseline.

Builder Codex Sol 6.1 High, reviewer Claude Code Opus 5.5 High, no helper agents.

Activity

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

    @jparker2006
    MemberAuthor

    launch-fleet: start checked, branch room/1142-test-line-counter

  4. added 2 commits that reference this issue on Nov 19, 2026
  5. jparker2006 commented on Nov 19, 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