Dashboard › publish › Always reproduce defects with fail-firs…
01a08c1c-c612-7aa3-8d4e-1a077c37695aBefore 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.