Skip to content

fix(build_pipeline): FIN-100g-4 deploy-parity must not rescue a malformed test run (H-1)#385

Merged
urlmonitor merged 1 commit into
mainfrom
fix/finalize-deploy-parity-h1-rebased
Jul 23, 2026
Merged

fix(build_pipeline): FIN-100g-4 deploy-parity must not rescue a malformed test run (H-1)#385
urlmonitor merged 1 commit into
mainfrom
fix/finalize-deploy-parity-h1-rebased

Conversation

@urlmonitor

Copy link
Copy Markdown
Owner

Rebased successor to #383 (its branch could not be force-pushed onto the new main that carries the BO-2500b proof-of-done workflow from #378).

Summary

FIN-100g-4's post-merge deploy-parity rescue in finalize-feature.js could flip testPassed to true on an empty exclusion set (H-1). This gates the rescue on postMergeFailures.length > 0, adds a still-failing contradiction guard so a target that is both build-state-only and still-failing is never excluded, and adds behavioral tests that execute the JS under the E2 harness.

Test plan

  • unit_tests/workflows/test_finalize_baseline_recovery.py — H-1 / 4-i / M-2 behavioral tests (execute real JS via run_workflow_under_e2)
  • unit_tests/workflows/test_finalize_feature_preflight.py — source-order + prompt guards

Supersedes #383.

🤖 Generated with Claude Code

…rmed test run (H-1)

Post-merge code review found a HIGH defect in the FIN-100g-4 deploy-parity self-check: a malformed Step-3 test-runner reply is treated conservatively as testPassed=false with an EMPTY postMergeFailures, but the block ran on any !testPassed and, filtering an already-empty set, flipped testPassed->true — skipping triage/HALT and merging on a malformed test run.

Fix: gate the block AND the flip on postMergeFailures.length > 0 (H-1), so an empty/ambiguous result can never be rescued to passed. Add an M-2 contradiction guard: exclude a failure only if the agent reports it build-state AND NOT in still_failing (previously the still_failing field was ignored) — bounding trust in the classification; triage stays the sole authority that can HALT.

Backfills the load-bearing behavioral tests the audit flagged (execute real JS via the E2 harness): H-1 empty-set skips deploy-parity; FIN-100g-4-i a genuine failure survives exclusion and reaches triage; M-2 contradiction not excluded; plus a FIN-100g-3-i source-order guard (found:false return precedes the main-branch abort). 38 passed; ruff clean. Residual (noted follow-up): a well-formed-but-wrong agent reply is still trusted (M-1) — full mitigation would forward to triage as sole authority.
@urlmonitor
urlmonitor merged commit f8a0f53 into main Jul 23, 2026
7 checks passed
@urlmonitor
urlmonitor deleted the fix/finalize-deploy-parity-h1-rebased branch July 23, 2026 09:57
urlmonitor added a commit that referenced this pull request Jul 23, 2026
…ting, deploy-parity (FIN-100g/FIN-100c) (#386)

Adds one changelog entry (type: fix, component build_pipeline) recording the
finalize-feature hardening effort merged across PRs #379-#382 and #385:
pre-flight accepts string-or-object targets, actionable unresolvable-target
errors, and a deploy-parity self-check (with the H-1 empty-set guard) that
suppresses false test_regression halts.

Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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