Skip to content

test: remove 36 low-value terminal lifecycle cases - #40503

Merged
OrcaWin merged 1 commit into
mainfrom
rm-tests/audit3043-terminal-lifecycle-cuts
Nov 9, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
rm-tests/audit3043-terminal-lifecycle-cuts

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

Remove 36 low-value terminal lifecycle tests (37 expanded cases), cutting 1,200 net lines while keeping the state and identity races that justify their fixtures.

Files Added Deleted Net
Test 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1201 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1200
Prod 0 0 0 0

What Changed

Five registration modules shrink from 63 to 27 authored cases; the four unchanged shutdown-deferral cases were also reviewed. Across all six reviewed modules, 67 declarations / 68 expanded cases become 31 / 31.

  • Sleep/wake: remove ordinary hold/release, supplied liveness, alias/startup examples and registry snapshots. Keep generation fencing, listener disposal, repeated sleep, pending replacement claims, retry and reattach/fallback ownership.
  • Exit/liveness: remove repeated ordinary exits, simple missing/live/unknown and remote-shaped no-op examples, and mock-only agent-row forwarding. Keep replacement identity, stale async results, pre-bind timestamps and exit/reconciliation races.
  • Remove exclusively unused imports and local helpers. Every surviving test registration, callback and hook remains unchanged. Wrappers and their timing samples survive.

Why

These long fixtures mostly add another supplied-input composition or mock assertion. Whole-suite removal was considered for each module; the retained cases exercise useful state transitions at the real owner. No equivalent replacement coverage is claimed for deleted cases.

Linked Issue

Maintainer-requested test-value audit; no separate issue.

Visual Proof

N/A — test removal only; no application behavior or UI change.

Testing

  • All 27 changed-file checks passed on the rebased patch, including selected unit tests, typecheck, formatting, lint and repository guards; immediate prepush check repeated successfully.
  • Main-layout mode: selected lifecycle groups passed, 42 tests across three wrappers (includes neighboring cases).
  • Full optional main-layout wrapper run: two failures in untouched resume-banner and remote-runtime tests. Both reproduce on the base before these removals; the base also fails the deleted failed-split test. The full optional-mode run is not reported green.
  • AST census verifies 36 declarations / 37 expanded removals and exact surviving registrations, callbacks and hooks. Independent private-index replay reproduces the entire committed tree; 82 finite source/context records authenticated with explicit current-main drift review.
  • Automated tests removed intentionally under the test anti-pattern policy; no new tests needed.

Linux background execution only. No native process, rendered UI, actual phone wake, SSH server, macOS or Windows execution claim.

Risk

Level: Low application risk; intentional coverage reduction. We lose exact alarms for ordinary wake/liveness policy, remote/SSH guards, mode-reset bytes, startup exceptions and agent-row forwarding. The retained tests do not replace those compositions. Revert this PR to restore them.

Review

Source reviews cover all selected case bodies, fixtures and bounded production owners. Root reviewed both complete patches, per-case decisions, consumer/metadata cleanup and current-main drift. Historical test receipts receive no fresh coverage credit.

Agent skill upstream boundary

  • Not applicable; no upstream skill source copied.

Checklist

  • Focused test removal, self-reviewed; application security, paths, platforms, mobile, remote and folder-workspace behavior unchanged.
  • Scope, validation limits, coverage losses and revert described.
  • No visual change. CI covers remaining applicable checks.

@OrcaWin
OrcaWin merged commit cdcb7c5 into main Nov 9, 2026
40 of 41 checks passed
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.

1 participant