Skip to content

test: consolidate harness migration matrices (stack 3/12) - #351

Draft
vishaltandale00 wants to merge 1 commit into
codex/test-depth-02-model-selection-onboardingfrom
codex/test-depth-03-harness-host-lifecycle
Draft

test: consolidate harness migration matrices (stack 3/12)#351
vishaltandale00 wants to merge 1 commit into
codex/test-depth-02-model-selection-onboardingfrom
codex/test-depth-03-harness-host-lifecycle

Conversation

@vishaltandale00

Copy link
Copy Markdown
Owner

Stack

3 of 12. Base: codex/test-depth-02-model-selection-onboarding / draft PR #350. Draft only; do not merge before the complete stack is presented.

Scope

Test-only, limited to three pre-existing parameterized matrices: product Codex state migration (8 rows), deferred schema-v5 migration (2 rows), and checked-in Codex configurations (2 rows). No independent HarnessHost lifecycle test is folded into another test and no production code changes.

Reduction

  • Scoped registrations: 111 -> 102
  • Full Vitest registrations: 1,762 -> 1,753
  • Cumulative from main: 1,829 -> 1,753
  • Net LOC: +36 lines for per-row settlement, labels, and frozen inventory checks.

Each prior it.each callback remains once. Its original tuples execute sequentially with per-row cleanup, labeled failure causes, ordered aggregate results, and explicit row-count assertions (8/2/2) so tuple deletion fails.

Verification actually run

  • Focused HarnessHost portfolio: PASS, 4 files / 102 tests.
  • HarnessHost package TypeScript check: PASS.
  • npm run build: PASS.
  • npm run check: repository gate remains RED only at test/provider-electron-evidence.test.mjs, timing out on same-turn retry submission; 147 Vitest files and 1,752 tests passed, 1 file/1 test failed, 1 skipped.
  • git diff --check: PASS.

Adversarial review

Reviewer /root/audit_provider_desktop; cached diff SHA-256 d6ef90f77161d6ed518af9bad89566cdb348a0a41b47717deea06bb3558b0995; reviewed honest shared-body matrix compaction, frozen tuple inventory, per-row settlement/labels, cleanup, targetability, and mutation resistance; verdict APPROVE with no blocking findings. Nonblocking: individual rows lose -t selection, while all three matrices complete in milliseconds.

Rejected alternative

A broader 111->55 callback-wrapper rewrite was discarded before commit after adversarial rejection as count hiding and a likely HTTP timeout flake. This PR intentionally claims only the compaction that shares an existing parameterized body.

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