Skip to content

Remove low-signal delivery tests with retained mutation coverage - #1677

Merged
mergify[bot] merged 1 commit into
mainfrom
lean178/1676-low-signal-tests
Nov 26, 2026
Merged

mergify[bot] merged 1 commit into
mainfrom
lean178/1676-low-signal-tests

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Remove low-signal delivery tests with retained mutation coverage

Context and goal

  • Goal: Free 49 test lines while preserving the workflow tests that catch regressions.
  • Problem: Some helper checks and exact-copy assertions add little detection beyond workflow tests. The help smoke test passes even when resolve is renamed.
  • Context: Retained tests drive native review framing, hosted eligibility, finding resolution, PR check refresh, and task creation.

Closes #1676
Refs #575

Acceptance

  • Limit the diff to deletions in tests.
  • Retained tests fail for each selected mutation and pass after restoring the source.
  • Keep task heading, field order, and base assertions. Rephrasing the Context prompt passes.

Base

Base: 21e712a

Validation

Recorded for d1c310515d50

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

Retained tests passed on normal source and failed for each isolated mutation after the test deletions.

Product mutation Retained failures
Set the review prompt diff byte count to zero 8
Require the version prefix on legacy review markers 1
Rename the resolve parser 3
Stop recognizing legacy Checks headings 1
Skip slug title normalization 3
Change the Context field label to Background 3

The deleted help case still passed against the renamed resolver. The retained start test passed after harmless Context prompt rewording. Restored each mutation. Ruff and git diff --check passed.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

  • primary, claude, d1c3105, approve

Architecture-Review: unchanged; test-only deletions preserve delivery and trust behavior.
Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loopzero primary review by claude on d1c310515d505ecd69e402df639a22fde7a268b2, 12.5s: approve (0 critical, 0 important, 1 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Native Claude output is retained in the restricted local review receipt.

Comment thread tests/test_worktree.py
assert "- **Problem:** <one or two plain sentences before code names: what goes wrong (one problem only), who notices, and evidence/cost; refs in brackets at the end>" in text
assert "- **Goal:** <one plain sentence: what the owner or users now notice (and cost/saving if known), because this change fixes the problem>" in text
prompts = [ln.split(":**", 1)[0] for ln in text.splitlines() if ln.startswith("- **")]
assert prompts == ["- **Goal", "- **Problem", "- **Context"], "owner-facing goal leads"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Refs template line assertion removed without a covering mutation

The diff also deletes the assertion on Refs #<issue number, or remove this line> (template at src/loopzero/worktree.py:25). None of the six mutations in the validation table covers it, and the acceptance criteria only require keeping the heading, field order and base assertions. I couldn't find any other test that checks this line, so if it is dropped from or changed in the template, no test will fail. Either confirm that losing this coverage is intended and say so in the task notes, or keep that one assertion. It's a single line and its wording is stable, so it isn't the brittle prompt text the other deletions target.

@eowca
eowca marked this pull request as ready for review November 26, 2026 08:20
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as b37e6bb at 08:25 UTC

4 min in the queue, 3 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 08:21 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1701
  • ✅ Merged 08:25 · b37e6bb · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 26, 2026
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit b37e6bb into main Nov 26, 2026
18 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/1676-low-signal-tests branch November 26, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove low-signal delivery tests with retained mutation coverage

1 participant