DashboardpublishAlways reproduce defects with fail-firs…

Always reproduce defects with fail-first regression tests before production fixes

Category: preference
Confidence: 0.80
ID: 01a08c1c-c612-7aa3-8d4e-1a077c37695a
Project ID: ac098440-8723-4582-9021-39e07a608100
Cross-project: No
Recalled in other projects: 0
Source session: 15DLBkeeMQ5MaUxaS
Created: 2026-09-10 16:01:31
Updated: 2026-09-10 16:18:11

Content

Before changing publication, approval, cleanup, or reporting behavior, add focused regression tests that encode the required safety invariant and run them against the existing implementation. Confirm each test fails for the intended production defect—not because of test placement, mocks, environment setup, shell interpolation, or overly broad assertions. Record the exact failing behavior, then implement the smallest fix and rerun the focused suites. Tests should cover failure paths and ordering, especially ensuring authorization cleanup, target restoration, issue closure, and publication progression remain correct when informational comments, telemetry, duplicate removals, parsing, or other non-critical operations fail.

Move to: