Skip to content

fix(gates): fail the release audit gate when the audit covers a different diff - #242

Merged
danielvm-git merged 1 commit into
mainfrom
fix/assert-epic-gate-fail-open
Nov 26, 2026
Merged

danielvm-git merged 1 commit into
mainfrom
fix/assert-epic-gate-fail-open

Conversation

@danielvm-git

Copy link
Copy Markdown
Owner

Summary

Fixes BUG-2026-11-07-assert-epic-gate-fail-open: assert-epic-gate.sh release previously passed whenever specs/AUDIT_LATEST.md contained VERDICT: PASS, even when the audit belonged to a different branch or stale commit range.

  • Requires audited_range: { base: <sha>, head: <sha>, commits: <n> } in specs/AUDIT_LATEST.md for the release stage.
  • Fails closed unless head is an ancestor of HEAD and git rev-list --count base..HEAD matches commits, printing the audited vs actual range explicitly.
  • Keeps non-release stages (commit, advance) backward compatible.
  • Adds regression test tests/test-assert-epic-gate.sh (7/7 checks) and wires it into scripts/lib/golden-suite-gates.sh.
  • Marks BUG-2026-11-07-assert-epic-gate-fail-open fixed in specs/bugs/registry.yaml.

Verification

  • bash tests/test-assert-epic-gate.sh (7/7 PASS)
  • bash tests/test-artifact-assertions.sh (7/7 PASS)
  • bash scripts/golden-g13-script-orphans.sh (PASS)
  • npm run compliance && bash scripts/trace-stories.sh --strict (PASS)

@danielvm-git
danielvm-git merged commit b44137f into main Nov 26, 2026
5 checks passed
@danielvm-git
danielvm-git deleted the fix/assert-epic-gate-fail-open branch November 26, 2026 14:52
github-actions Bot pushed a commit that referenced this pull request Nov 26, 2026
## [2.96.3](v2.96.2...v2.96.3) (2026-11-26)

### Bug Fixes

* **gates:** fail the release audit gate when the audit covers a different diff ([#242](#242)) ([b44137f](b44137f))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.96.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant