Skip to content

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

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
Contributor

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: ce475e97-79eb-4ccd-9e48-92ed917794cf

📥 Commits

Reviewing files that changed from the base of the PR and between 3afd9a3 and 26f8fcd.

📒 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. (2)
  • GitHub Check: Dogfooding compliance summary
  • GitHub Check: Deposit findings for gitbot-fleet
🔇 Additional comments (1)
.github/workflows/rhodibot.yml (1)

2-3: LGTM!

Also applies to: 5-7, 9-17, 19-19, 22-23, 25-30, 32-32, 34-34, 40-45, 47-52, 55-55, 57-59, 61-69, 72-84, 87-94


📝 Summary

Summary by CodeRabbit

  • Chores
    • Compliance checks now run in report-only mode, identifying potential file changes without automatically modifying files, committing updates or opening pull requests.
    • Findings are displayed as workflow warnings and in the step summary.
    • Detected compliance drift now causes the workflow to fail, while verification-bypass patterns remain advisory.
    • Workflow permissions are read-only, with execution safeguards including concurrency control and a 15-minute timeout.

Walkthrough

The workflow is now a read-only RSR compliance canary. It detects drift, reports warnings and summaries, and fails when corrective changes would be required. It no longer changes files, commits changes, or opens pull requests.

Changes

RSR compliance canary

Layer / File(s) Summary
Read-only workflow scope
.github/workflows/rhodibot.yml
The workflow uses read-only contents permission, removes the Hypatia completion trigger, adds concurrency control, renames the job, and limits execution to 15 minutes.
Detect-only compliance checks
.github/workflows/rhodibot.yml
The checks report banned, stale, duplicate, missing, rename, licence-header, and unfixable-file findings. They no longer modify files. Verification-bypass findings remain advisory.
Summary and failure result
.github/workflows/rhodibot.yml
The workflow writes results to $GITHUB_STEP_SUMMARY. It exits with status 1 when counted drift exists and exits successfully when no drift exists.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant GitHubActions as GitHub Actions
  participant Checkout as actions/checkout@v7.0.1
  participant Canary as rhodibot canary shell
  participant Summary as GITHUB_STEP_SUMMARY
  GitHubActions->>Checkout: checkout repository
  Checkout-->>Canary: provide working tree
  Canary->>Canary: scan for compliance drift
  Canary->>Summary: write warnings and summary
  alt DRIFT > 0
    Canary-->>GitHubActions: exit 1
  else DRIFT = 0
    Canary-->>GitHubActions: exit 0
  end
Loading
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the purpose and key changes, but it does not follow the required template. It omits the Summary, Changes, RSR Quality Checklist, Testing, and Screenshots sections. Restructure the description using the repository template. Add the required sections, list the key changes, complete the required and applicable checklist items, and describe the tests run. State that screenshots are not applicable if none …
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: switching rhodibot to a report-only canary.
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

Resolution

Restructure the description using the repository template. Add the required sections, list the key changes, complete the required and applicable checklist items, and describe the tests run. State that screenshots are not applicable if none are available.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR

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 night
No paws will move them left or right
Warnings hop into the log
Drift sends a signal through the fog
The summary records each trail
A clean run ends with ears held high

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

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit b2dd72b into main Sep 19, 2026
14 of 17 checks passed
@hyperpolymath
hyperpolymath deleted the refactor/rhodibot-canary branch September 19, 2026 18: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