Skip to content

ci(rhodibot): switch to the report-only canary (standards#759) - #84

Merged
hyperpolymath merged 1 commit into
mainfrom
refactor/rhodibot-canary
Sep 19, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
refactor/rhodibot-canary

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

The RSR workflow in this repository is the mutating variant of rhodibot: it runs on a
weekly cron with contents: write + pull-requests: write, deletes files by glob, and
bulk-rewrites SPDX headers — which the standing licence policy forbids. It also interpolates
${{ steps.fix.outputs.FIXES }} into a run: block (repo-derived filenames, so
attacker-influenceable) and hardcodes a personal e-mail address.

This replaces it with the report-only canary that the estate template already ships — the
already-approved design, not a new one. Same weekly schedule, same drift signal, no mutation:
it reports what an auto-fixer would have changed and fails the run when it finds drift,
rather than editing anything. Licence/SPDX drift is reported for manual, owner-only
correction; rhodibot must never edit a licence header.

Part of the standards#759 migration (canary propagation, option (a)). The workflow's uses:
pins are unchanged, so actions.lock is unaffected.

The RSR workflow here is the mutating variant: weekly cron, write permissions,
glob deletes, a bulk SPDX `sed` sweep the licence policy forbids, a
`${{ steps.fix.outputs.FIXES }}` injection sink, and a hardcoded personal
e-mail. Replaced with the canary the template ships: same schedule, same drift
signal, reports instead of mutating.

Refs hyperpolymath/standards#759 (option (a), canary propagation).
@coderabbitai

coderabbitai Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Review Change StackReview 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: b5b8f6d7-d7c1-4765-9ad6-5d17e2dc8877

📥 Commits

Reviewing files that changed from the base of the PR and between ba9ecbc and bc17a49.

📒 Files selected for processing (1)
  • .github/workflows/rhodibot.yml

Included review availability: 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. (24)
  • GitHub Check: scan / rust-secrets
  • GitHub Check: scan / shell-secrets
  • GitHub Check: scan / gitleaks
  • GitHub Check: governance / Licence consistency
  • GitHub Check: governance / Trusted-base reduction policy
  • GitHub Check: governance / Language / package anti-pattern policy
  • GitHub Check: governance / Well-Known (RFC 9116 + RSR)
  • GitHub Check: governance / Workflow security linter
  • GitHub Check: governance / Exemption ratchet
  • GitHub Check: governance / Debt ratchet
  • GitHub Check: governance / Security policy checks
  • GitHub Check: governance / Code quality + docs
  • GitHub Check: governance / Allowlist Preflight
  • GitHub Check: governance / Guix packaging policy (Nix retired)
  • GitHub Check: governance / Check Workflow Staleness
  • GitHub Check: scan / Hypatia Neurosymbolic Analysis
  • GitHub Check: Hypatia neurosymbolic scan
  • GitHub Check: panic-attack assail
  • GitHub Check: Patch Bridge CVE triage
  • GitHub Check: Groove manifest check
  • GitHub Check: Validate A2ML manifests
  • GitHub Check: Validate K9 contracts
  • GitHub Check: Empty-linter (invisible characters)
  • GitHub Check: Analyze (actions)

📝 Summary

Summary by CodeRabbit

  • Bug Fixes

    • Compliance checks now report detected drift without automatically modifying files or opening pull requests.
    • Checks fail when actionable drift is detected, with warnings and errors shown in the workflow summary.
    • Dangerous-pattern findings are now reported as advisory warnings.
  • Chores

    • Workflow execution now uses read-only permissions, a 15-minute limit, and cancellation of superseded runs.

Walkthrough

The workflow now runs as a read-only compliance canary. It reports detected drift, avoids repository mutations and pull request creation, and fails when drift is present.

Changes

Compliance canary

Layer / File(s) Summary
Workflow controls
.github/workflows/rhodibot.yml
The workflow uses scheduled or manual triggers, read-only contents access, concurrency cancellation, and a 15-minute canary job.
Drift detection
.github/workflows/rhodibot.yml
Compliance checks now report findings without deleting, renaming, creating, or rewriting files. Dangerous-pattern findings are advisory.
Canary result handling
.github/workflows/rhodibot.yml
The workflow writes annotations and a step summary. It exits with status 1 when DRIFT is greater than zero. It no longer creates branches, commits, pushes, or pull requests.

Priority: ⬇️ Low

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

Change: Bug fix

Merge Risk: ⚪ Minimal · up to bc17a

The canary’s current checkout does not contain the directory implicated by the proposed timeout concern, so no actionable merge risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the purpose, key changes, security concerns, and migration context. However, it omits the required template sections for the RSR Quality Checklist, Testing, and Screenshots, a… Add the required template headings. Complete the RSR Quality Checklist, describe the tests that were run and their results, and state whether screenshots or terminal output are applicable.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: switching rhodibot to a report-only canary. It is concise and specific.
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.
Full details: Description check

Explanation

The description explains the purpose, key changes, security concerns, and migration context. However, it omits the required template sections for the RSR Quality Checklist, Testing, and Screenshots, and it does not record which checklist items apply.

  • Fix all pre-merge checks with AI

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 files at dawn
No careless edits linger on
Drift is noted, clear and bright
Warnings guide the keeper’s sight
The canary guards the burrow right

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

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit 1fed52f into main Sep 19, 2026
28 of 33 checks passed
@hyperpolymath
hyperpolymath deleted the refactor/rhodibot-canary branch September 19, 2026 18:51
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