Skip to content

Testing-4: pre-release sweep with a published mutation score and unpinned-invariant list #72

Closed

Description

@abogartz

Part of #68. A sweep that runs once is a snapshot of an argument; the point is that it keeps being
true after the suite starts growing again.

Scope

  1. Pre-release gate: run bun run sweep:test as part of the release checklist and put the
    mutation score (and the survivor count) in the release notes, next to the existing bench numbers.
  2. Publish the known limits. The remaining equivalent: true mutants and any invariant that is
    deliberately unpinned get listed in the README near the troubleshooting section, with a one-line
    reason each (e.g. "cross-process snapshot-name collision: pinned by design, not by test — the
    single-process mutant is equivalent"). An honest unpinned list is worth more than a reassuring
    percentage.
  3. New-code rule: a PR that introduces a new claimed invariant adds the mutant for it in the
    same PR, or says in the body why not. This is the rule that would have prevented the fix: serialize store writes across concurrent sessions #60
    fake fix; it costs one spec entry.
  4. Optional nightly job running the sweep on main and filing/noising only on regression.

What this is explicitly NOT

Not a required PR check. A full sweep on the current set is ~11 min and will grow; race-adjacent
mutations make a required check flaky, and a flaky required check teaches everyone to click
through it. Pre-release (plus optional nightly) gets the value without the tax.

Acceptance

  • Release notes for the next release carry a mutation score.
  • README lists the unpinned invariants with reasons.
  • One sentence in AGENTS.md / contributing notes stating rule 3, so it survives me.

Decision needed before starting

Cadence: pre-release only, pre-release + nightly, or every PR onto main? (Proposed: pre-release.)
And is any single mutant load-bearing enough to be its own required check? I would nominate only
gate-blocks-ignored (a write rejected by a gate must never reach the store) and repo-floor-off
(another repo's rows must never surface or be deleted here).

Activity

  1. added
    test-integrity
    on Oct 23, 2026
  2. WhollyMindless commented on Oct 26, 2026

    @WhollyMindless
    Contributor

    Claiming this too, to be the tail of the #70 line: the gate is a thin job (run the merged sweep instrument pre-release, fail on a NEW survivor, publish the score + unpinned list where users can read it) — so it ships right after #110 lands, before the #71 triage finishes. Score methodology stays the one already published: quiet-machine runs, baseline subtraction, confirm-runs for survivors, per #68's honesty rules.

  3. added
    severity:low
    on Oct 30, 2026
  4. WhollyMindless commented on Nov 2, 2026

    @WhollyMindless
    Contributor

    Unpinned items from recent reviews, recorded here for the list in scope item 2 so they don't need their own issues. All are test gaps: the behaviour is correct on main at d286e7a, and I'm not asking for any of this to be prioritized.

    Claim Mutation that survived Run against
    Missing and blocklisted merge losers get the same reply (#259 body) Refusal text changed to say the row is blocklisted Full unit suite
    memory_merge_review refuses a blocklisted survivor (tool description, #259) Blocked survivor no longer refused Full unit suite
    The ledger's cap bounds nextAttempt (#256) Cap removed; also evicting only one key at a time test/hits.test.ts only

    The blocked-survivor behaviour was also confirmed directly: the reply was a refusal and the day file was unchanged. For the first row, no test asserts the missing or unavailable text.

    From reviews by Claude: mutations run on Windows, Bun 1.4.4, at 3d9a1df (#259) and 59e6744 (#256).

  5. WhollyMindless commented on Nov 2, 2026

    @WhollyMindless
    Contributor

    Releasing my claim from 2026-10-26. Reason: clarification needed. No work is in progress, so anyone can take this.

    Two questions need your answer before the remaining work can be scoped:

    1. Cadence: the issue's "Decision needed before starting" is still open: pre-release only, pre-release plus nightly, or every PR onto main?
    2. Does scope item 1 still fit? It runs the sweep as part of a release checklist and puts the score in the release notes. Every releasable merge to main now publishes automatically, and wiring the sweep into that means changing .github/workflows/.

    Status on main at d286e7a:

    Scope Status
    Sweep tool (sweep:test, --fail-on-survivors) Shipped; the README describes it as an option
    1. Sweep in the release process, score in release notes Not done
    2. README list of unpinned invariants with reasons Not done; the three items in my comment above are not in the README either
    3. New-code rule written down Not done; there is no AGENTS.md or contributing file
    4. Optional nightly job Not done

    Status checked by Claude.

  6. added
    agent:ready
    on Nov 3, 2026
  7. ocsi-triager commented on Nov 3, 2026

    @ocsi-triager

    osi-spec-hash: fdc135a2be4fb4b4 2026-11-03T22:31:40Z - acceptance criteria frozen at this text. A later edit to the body changes this hash, and the reviewer will withhold approval until a maintainer replies spec ok.

  8. added
    fix:blocked
    on Nov 4, 2026
  9. ocsi-fixer commented on Nov 4, 2026

    @ocsi-fixer

    fix:blocked — this ticket cannot be built as written, for two reasons. First, the body's own "Decision needed before starting" is still open: the cadence choice (pre-release only, pre-release + nightly, or every PR onto main) has not been answered by the repository owner, and the last status comment (WhollyMindless, 2026-11-02T23:59:05Z) says the remaining work cannot be scoped until it is. Second, acceptance criterion 1 ("Release notes for the next release carry a mutation score") is not mechanically checkable and its implementation route — scope item 1, running bun run sweep:test in the release process — requires editing .github/workflows/, which is outside any file scope a fixer may touch. Acceptance criteria 2 (README unpinned-invariant list with reasons) and 3 (one sentence in AGENTS.md / contributing notes stating the new-code rule) are mechanically checkable and would be buildable on their own, so if the owner wants them shipped now, split them into a ticket that carries only those two criteria, or reply here with the cadence decision and drop criterion 1 from this one. No labels other than fix:blocked were changed; the three unpinned items already recorded in the 2026-11-02T23:45:00Z comment are noted for whoever builds item 2.

  10. abogartz commented on Nov 5, 2026

    @abogartz
    OwnerAuthor

    Ruled 2026-11-04: pre-release cadence, human-run, score published to bench/RESULTS.md — ritual documented in PR #. Not CI: full suite per mutant would cost more than it informs.

  11. abogartz commented on Nov 5, 2026

    @abogartz
    OwnerAuthor

    Correction to the close above: the ritual PR is #310 (the placeholder was pasted literally). Ritual documented in README; cadence pre-release only, human-run, score to bench/RESULTS.md.

  12. added a commit that references this issue on Nov 5, 2026
  13. abogartz-opencode-self-improvement commented on Nov 5, 2026

    @abogartz-opencode-self-improvement

    🎉 This issue has been resolved in version 0.15.38 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

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

    agent:readyfix:blockedreleasedseverity:lowtest-integrity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions