Skip to content

ci: a new triage rule without an sq-map row fails here, at the source - #1127

Merged
hyperpolymath merged 1 commit into
mainfrom
ci/sq-map-source-check
Nov 14, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
ci/sq-map-source-check

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

The owner asked, through the proven-cicd advisor, for hypatia's own CI to catch a new ci_failure_triage rule, or one of the two ADR 0004 workflow_audit ids, that has no row in proven-cicd's proven/registry/sq-map.tsv. The author then adds the row in the same change. proven-cicd's weekly run stays as a backstop.

Changes

  • .github/workflows/sq-map-source-check.yml
    • Triggers: pull_request and push to main, plus workflow_dispatch.
    • Path filter: the praxis deed, its generator scripts/gen-rules-praxis.sh, every source the generator reads, and the check's own files.
    • It sparse-checks out proven-cicd-and-workflows at main (the map and its test only). main is used rather than a pin because the question is whether the rule is mapped now.
    • A failed checkout fails the job, and an if: failure() step reports it as NOT RUN.
    • Conventions: contents: read, a concurrency group, a 5-minute timeout, and no ${{ }} inside run:.
  • scripts/check-sq-map.sh
    • It runs the generator first, so the check judges what the rule sources emit now. quality.yml already fails a stale committed deed.
    • It then runs proven-cicd's tests/registry-sq-map.sh.
    • On failure it prints the exact row to add (<id>\tunassigned\tunmapped\tpresent\t<note>), says to open a proven-cicd PR first and then re-run here, and separates NOT RUN from a real miss.
  • tests/check-sq-map-test.sh: 13 controls. The job runs them before the check.
  • actions.lock: an entry for the new workflow, reusing the existing actions/checkout@v7.0.1 record. The proven lock kernel reports CONSISTENT with the entry and a defect without it.

Verification

  • Against proven-cicd main: exit 1, naming exactly hypatia_pin_drift and shellcheck_findings. This is the intended behaviour until hyperpolymath/proven-cicd-and-workflows proven/sq-map-current merges.
  • Against that branch: passes.
  • gen-rules-praxis.sh --check, tests/rules-praxis-test.sh (22/22), check-readme-claims.sh and the invisible-character scanner all pass.
  • actionlint was not available, so it was not run. The YAML parses.

Making this a required check is a ruleset decision for the owner; this PR doesn't do it.


Generated by Claude Code

A new hypatia/ci_failure_triage rule, or a lost row for one of the two
ADR 0004 workflow_audit ids (actions_lock_stale,
mirror_without_visibility_guard), now fails this repository's own CI and
names the row to add, so the author maps it in the same change.

- .github/workflows/sq-map-source-check.yml: on pull_request and push to
  main, path-filtered to hypatia_rules_praxis.deed, its generator
  (scripts/gen-rules-praxis.sh) and the sources the generator reads
  (lib/rules/**, lib/pattern_registry.ex, lib/hypatia/cli.ex,
  lib/hypatia/scanner_suppression.ex, lib/scorecard_ingestor.ex), plus
  workflow_dispatch. It sparse-checks out
  hyperpolymath/proven-cicd-and-workflows at main (public, no token
  needed) and runs that checkout's tests/registry-sq-map.sh. A failed
  checkout, generator or test is NOT RUN and fails the job. contents:
  read, a concurrency group, a 5-minute timeout, no GitHub context
  inside run:. Not a required check.
- scripts/check-sq-map.sh: runs the generator (--stdout) and checks the
  registry the rule sources emit now, not the committed deed (quality.yml
  already fails a stale deed). On a failure it prints the exact
  tab-separated row (<id> unassigned unmapped present <note>) and says to
  add it in a proven-cicd PR first, then re-run here.
- tests/check-sq-map-test.sh: 13 controls (pass, new id with the exact
  row, the printed row makes it pass, a deleted ADR row, NOT RUN for a
  missing checkout, test, deed or unreadable registry, generator path).
- actions.lock: the new workflow's entry (actions/checkout@v7.0.1, whose
  record is already in the lock), as gh actions-lock writes it. The
  proven lock kernel judges the lock CONSISTENT with it and a defect
  without it.

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

coderabbitai Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 8 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 1e8356e7-4228-4353-904e-0da3875fbba1
Commits

Reviewing files that changed from the base of the PR and between 6033a78 and 9e34ee7.

Files ignored due to path filters: 1

  • .github/workflows/actions.lock is excluded by !**/*.lock
Files selected for processing: 3

  • .github/workflows/sq-map-source-check.yml
  • scripts/check-sq-map.sh
  • tests/check-sq-map-test.sh
  • Autofix · 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T20:02:28.784225Z 9e34ee7 PR opened
🔒 Security Review ✅ Completed 2026-11-14T20:06:31.454212Z 9e34ee7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit f6bbce3 into main Nov 14, 2026
72 of 78 checks passed
@hyperpolymath
hyperpolymath deleted the ci/sq-map-source-check branch November 14, 2026 20:04
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.

3 participants