Skip to content

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

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: 08114b72-513c-4929-8481-fc54f9de90d4

📥 Commits

Reviewing files that changed from the base of the PR and between 7057c69 and 8edbb20.

📒 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. (35)
  • GitHub Check: governance / Exemption ratchet
  • GitHub Check: governance / Guix packaging policy (Nix retired)
  • GitHub Check: governance / Trusted-base reduction policy
  • GitHub Check: governance / Licence consistency
  • GitHub Check: governance / Debt ratchet
  • GitHub Check: governance / Well-Known (RFC 9116 + RSR)
  • GitHub Check: governance / Actions lockfile verify
  • GitHub Check: governance / Workflow security linter
  • GitHub Check: governance / Allowlist Preflight
  • GitHub Check: governance / Check Workflow Staleness
  • GitHub Check: governance / Live Actions policy (credentialed advisory)
  • GitHub Check: governance / Security policy checks
  • GitHub Check: governance / Language / package anti-pattern policy
  • GitHub Check: governance / Code quality + docs
  • GitHub Check: scan / gitleaks
  • GitHub Check: rust-ci / Detect Cargo.toml
  • GitHub Check: scan / shell-secrets
  • GitHub Check: analyze / analyze
  • GitHub Check: scan / rust-secrets
  • GitHub Check: scan / Hypatia Neurosymbolic Analysis
  • GitHub Check: Validate A2ML manifests
  • GitHub Check: Proof protocol contracts
  • GitHub Check: Empty-linter (invisible characters)
  • GitHub Check: Groove manifest check
  • GitHub Check: Hypatia neurosymbolic scan
  • GitHub Check: Validate K9 contracts
  • GitHub Check: Patch Bridge CVE triage
  • GitHub Check: E2E — Unit, P2P and End-to-End
  • GitHub Check: lint-workflows
  • GitHub Check: panic-attack assail
  • GitHub Check: Migrations + schema drift
  • GitHub Check: Validate eclexiaiser manifest
  • GitHub Check: Dependency audit
  • GitHub Check: openssf-compliance
  • GitHub Check: lint-workflows
🧰 Additional context used
🪛 zizmor (1.30.0)
.github/workflows/rhodibot.yml

[warning] 36-39: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)


[error] 37-37: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)

(unpinned-uses)


[info] 32-32: workflow or action definition without a name (anonymous-definition): this job

(anonymous-definition)

🔇 Additional comments (1)
.github/workflows/rhodibot.yml (1)

2-7: LGTM!

Also applies to: 9-17, 19-27, 30-32, 40-45, 47-47, 49-52, 55-55, 59-59, 62-64, 66-69, 72-74, 76-84, 87-94


📝 Summary

Summary by CodeRabbit

  • New Features

    • Added a read-only compliance canary that reports potential file changes, duplicate files, missing files, and licensing issues.
    • Added workflow summaries showing detected issue counts or confirming a clean result.
  • Bug Fixes

    • Prevented automatic file modifications, branch creation, and pull request creation during compliance checks.
    • Compliance warnings now cause the workflow to fail for manual review, while advisory verification warnings remain non-blocking.

Walkthrough

The workflow now runs a read-only RSR compliance canary. It detects repository drift, reports findings, and fails when required conditions are missing or would require mutation. It no longer edits files, creates branches, or opens pull requests.

Changes

RSR compliance canary

Layer / File(s) Summary
Canary identity and execution policy
.github/workflows/rhodibot.yml
The workflow is report-only. It uses read-only contents permission, removes the Hypatia trigger, and cancels concurrent runs.
Non-mutating drift detection
.github/workflows/rhodibot.yml
The checks report banned files, legacy names, duplicate or stub documentation, SPDX conditions, missing required files, and missing manifests, licences, or README content. Verification-bypass patterns produce advisory warnings only.
Summary and failure result
.github/workflows/rhodibot.yml
The workflow writes findings to the step summary and error output. It exits with status 1 when the drift count is greater than zero. Otherwise, it reports a clean canary result.

Priority: ⬇️ Low

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

Change: Bug fix

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: replacing the mutating rhodibot workflow with a report-only canary.
Description check ✅ Passed The description directly explains the workflow migration, removal of repository mutation, retained drift detection, and related security changes.
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.

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 branch is made, no fix is drawn
Warnings hop into the light
Missing pages fail the night
A clean canary rests just right

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

@hyperpolymath
hyperpolymath merged commit a3420aa into main Sep 19, 2026
40 of 47 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