Skip to content

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

Merged
hyperpolymath merged 2 commits into
mainfrom
refactor/rhodibot-canary
Sep 19, 2026
Merged

hyperpolymath merged 2 commits 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

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • .github/workflows/actions.lock is excluded by !**/*.lock

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: fd8ebc23-68c4-4b9c-80f4-b1eab826b911

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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: 30c48475-a182-42a1-958e-0f1ccec1f4ea

📥 Commits

Reviewing files that changed from the base of the PR and between b917d12 and 9761f0b.

⛔ Files ignored due to path filters (1)
  • .github/workflows/actions.lock is excluded by !**/*.lock
📒 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. (30)
  • GitHub Check: governance / Exemption ratchet
  • GitHub Check: governance / Guix packaging policy (Nix retired)
  • GitHub Check: governance / Debt ratchet
  • GitHub Check: governance / Workflow security linter
  • GitHub Check: governance / Language / package anti-pattern policy
  • GitHub Check: governance / Well-Known (RFC 9116 + RSR)
  • GitHub Check: governance / Live Actions policy (credentialed advisory)
  • GitHub Check: governance / Code quality + docs
  • GitHub Check: governance / Licence consistency
  • GitHub Check: governance / Actions lockfile verify
  • GitHub Check: governance / Trusted-base reduction policy
  • GitHub Check: governance / Security policy checks
  • GitHub Check: governance / Check Workflow Staleness
  • GitHub Check: scan / rust-secrets
  • GitHub Check: governance / Allowlist Preflight
  • GitHub Check: scan / gitleaks
  • GitHub Check: scan / shell-secrets
  • GitHub Check: scan / Hypatia Neurosymbolic Analysis
  • GitHub Check: Validate A2ML manifests
  • GitHub Check: Validate eclexiaiser manifest
  • GitHub Check: Validate K9 contracts
  • GitHub Check: Groove manifest check
  • GitHub Check: Empty-linter (invisible characters)
  • GitHub Check: analyze (actions, none)
  • GitHub Check: Hypatia neurosymbolic scan
  • GitHub Check: estate-audit
  • GitHub Check: openssf-compliance
  • GitHub Check: Patch Bridge CVE triage
  • GitHub Check: Workflow and session contract validation
  • GitHub Check: panic-attack assail
🔇 Additional comments (1)
.github/workflows/rhodibot.yml (1)

3-73: LGTM!

Also applies to: 75-94


📝 Summary

Summary by CodeRabbit

  • Changes
    • Repository compliance checks now operate in report-only mode and no longer make automatic changes or open pull requests.
    • Detected compliance drift is reported with actionable warnings, including files or documentation that would require updates.
    • Compliance drift that would require changes now causes the check to fail, helping prevent issues from being overlooked.
    • Potential verification-bypass patterns are reported as advisory warnings.

Walkthrough

The RSR workflow is now a report-only compliance canary. It reads repository contents, reports detected drift, avoids file mutations and pull requests, and fails when drift is present.

Changes

RSR compliance canary

Layer / File(s) Summary
Canary workflow contract
.github/workflows/rhodibot.yml
The workflow uses canary naming, concurrency cancellation, read-only contents permission, and actions/checkout@v7.0.1.
Report-only drift detection
.github/workflows/rhodibot.yml
Banned files, rename candidates, duplicate files, SPDX drift, and missing compliance files now produce warnings instead of repository changes.
Canary result handling
.github/workflows/rhodibot.yml
Verification-bypass matches produce advisory notes. Detected drift fails the job and writes error and summary messages. Pull request creation and mutation logic are removed.

Priority: ⬇️ Low

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

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant GitHubActions
  participant CanaryJob
  participant Repository
  participant StepSummary
  GitHubActions->>CanaryJob: Run compliance canary
  CanaryJob->>Repository: Read files and scan patterns
  Repository-->>CanaryJob: Return compliance findings
  CanaryJob->>StepSummary: Write warnings and notes
  CanaryJob-->>GitHubActions: Exit 1 when drift is detected
Loading

Merge Risk: ⚪ Minimal · up to 9761f

The canary’s required-guide check remains aligned with its existing Markdown-guide policy, 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 and key changes, but it does not follow the repository template. It omits the RSR Quality Checklist, Testing, and Screenshots sections, and it does not document te… Restructure the description using the repository template. Add the Summary, Changes, RSR Quality Checklist, Testing, and Screenshots sections. Mark each applicable checklist item and describe the tests performed, or state why a section is n…
✅ 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.
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 and key changes, but it does not follow the repository template. It omits the RSR Quality Checklist, Testing, and Screenshots sections, and it does not document test or checklist results.

Resolution

Restructure the description using the repository template. Add the Summary, Changes, RSR Quality Checklist, Testing, and Screenshots sections. Mark each applicable checklist item and describe the tests performed, or state why a section is not applicable.


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 watches files in rows
No fix or patch the canary shows
Warnings hop into the light
Drift makes the workflow fail outright
The repository stays untouched

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

@sonarqubecloud

Copy link
Copy Markdown

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