Skip to content

fix(ci): semantic-audit-check fails closed instead of printing a pass - #77

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/semantic-audit-fail-closed
Oct 7, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
fix/semantic-audit-fail-closed

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

.github/actions/semantic-audit-check/action.yml printed a list of checks and then Semantic Audit Passed unconditionally. It checked nothing. The cicd-squabbler audit --semantic subcommand it names does not exist. It now fails closed: one step emits ::error title=semantic-audit-check::not implemented … and exit 1.

No workflow in this repo calls the action today (git grep semantic-audit-check origin/main -- .github matches only the action itself), so nothing goes red. But the first caller would have gained a gate that cannot fail. Same placeholder in 7 repos; same fix in each. Owner decision (2026-10-07): fail closed here, and do the real squabbling centrally from cicd-squabbler once it ships a pinned artifact. It has none today: no release, no tag, no container package.

Type of change

  • 🐛 Bug fix: a fake pass becomes an honest failure.
  • ✨ New feature: none.
  • 💥 Breaking change: not ticked; nothing calls the action.
  • 🕳️ Soundness fix: removes a gate that could not fail.
  • 📖 Documentation: n/a
  • 🧹 Refactor: n/a
  • ⚡ Performance: n/a
  • 🔧 Build / CI / tooling: one composite action.

📌 New pins

Head SHA: c98b1e9. No pins added or changed: no uses:, actions.lock, lockfile or digest is touched.

How has this been verified?

  • yq -o=json . .github/actions/semantic-audit-check/action.yml parses (KYAML content, D280; filename kept because Actions requires action.yml).
  • git diff --stat origin/main: exactly 1 file changed.
  • Caller check: git grep -l semantic-audit-check origin/main -- .github lists no workflow.
  • Commit c98b1e9 is signed (%G? = G).

Checklist

  • My commits are signed (git commit -S).
  • I ran the project's own checks/tests locally and they pass: not ticked as a test claim. This change touches no code; the check that applies is the parse above.
  • New files carry the correct SPDX-License-Identifier: not ticked. There are no new files; the modified file had no SPDX header before, and adding one is a licence edit left to the owner.
  • Docs are updated, and no public claim now overstates what the code does. The action's name and description now say "not implemented: fails closed".
  • I have not introduced a soundness hole; this PR removes one.

Notes for reviewers

A failing step is the intended behaviour. Wire this action into a workflow only once a real audit exists.

🤖 Generated with Claude Code

https://claude.ai/code/session_015bTuGfwCcvjrmNFejydTML

…pass

The action echoed a list of checks and then "Semantic Audit Passed"
unconditionally. It called nothing; the cicd-squabbler `audit` subcommand
it names does not exist. No workflow calls it yet, but the first caller
would have gained a gate that cannot fail. It now exits 1 with an
explicit not-implemented error until a real audit exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015bTuGfwCcvjrmNFejydTML
@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 40a6f800-d4ef-4c31-aec2-d60e7d69cd2c
📥 Commits

Reviewing files that changed from the base of the PR and between 32d6d9f and c98b1e9.

📒 Files selected for processing (1)
  • .github/actions/semantic-audit-check/action.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout. (10)
  • GitHub Check: scan / shell-secrets
  • GitHub Check: scan / gitleaks
  • GitHub Check: scan / rust-secrets
  • GitHub Check: build
  • GitHub Check: Validate DEED manifests
  • GitHub Check: Validate K9 contracts
  • GitHub Check: Empty-linter (invisible characters)
  • GitHub Check: Groove manifest check
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: Analyze (actions)
🔇 Additional comments (1)
.github/actions/semantic-audit-check/action.yml (1)

2-10: LGTM!


📝 Summary

Summary by CodeRabbit

  • Bug Fixes
    • The semantic audit check now fails with an error instead of reporting a successful audit when the audit is not implemented.

Walkthrough

The semantic audit action now identifies itself as unimplemented, emits a GitHub Actions error, and exits with status 1. This replaces placeholder checks that reported “Semantic Audit Passed.”

Changes

Semantic audit gate

Layer / File(s) Summary
Fail the unimplemented audit
.github/actions/semantic-audit-check/action.yml
The action reports that the audit is not implemented and exits with status 1. This replaces placeholder checks that reported “Semantic Audit Passed.”

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to c98b1

The semantic audit action now fails instead of falsely reporting a pass. The PR reports that no workflow uses it, so merging has little production impact.

Architecture Summary

Architecture risk: 🔵 Low · up to c98b1

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed systems: None identified.

Architecture concerns
No architecture-level concerns identified.

Review details

Before / after behavior

  • observed — Modified behavior in .github/actions/semantic-audit-check/action.yml: The action metadata now labels the gate as unimplemented and defines a composite step that emits an error and exits with status 1. This replaces the previous placeholder messages, which ended by reporting “Semantic Audit Passed.”
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarises the main change: the semantic audit action now fails closed instead of reporting an unconditional pass.
Description check ✅ Passed The description explains the action’s previous behaviour, the fail-closed change, and its verification. It is directly related to the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the audit gate,
No passing claim can seal its fate.
It raises errors clear and plain,
Then exits with a failing stain.
The burrow knows the check must wait.

Comment @coderabbitai help to get the list of available commands.

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR

@hyperpolymath
hyperpolymath merged commit 72e7a88 into main Oct 7, 2026
15 of 17 checks passed
@hyperpolymath
hyperpolymath deleted the fix/semantic-audit-fail-closed branch October 7, 2026 15:44
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