Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ jobs:
working-directory: ${{ matrix.dir }}
steps:
- uses: actions/checkout@v7.0.1
- name: Canon pin drift (rhodibot)
# The rule set is copied from hyperpolymath/standards and pinned by
# digest. This fails when the canon has moved since that pin, so a rule
# change arrives as a reviewable commit rather than silently changing
# what every repository is measured against.
if: matrix.module == 'rhodibot'
run: bash "$GITHUB_WORKSPACE/scripts/check-canon-drift.sh"
- name: Ensure clippy + rustfmt components
run: rustup component add clippy rustfmt
- name: Build (all targets)
Expand Down
40 changes: 40 additions & 0 deletions bots/rhodibot/canon/pin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# SPDX-License-Identifier: MPL-2.0
#
# The released identity of the canon copied into this directory.
#
# The rule set rhodibot applies is not written here: it is read from the canon
# (`0-canon/rsr/rsr-criteria-v2.a2ml` in hyperpolymath/standards), copied
# verbatim, and this file records which revision the copy came from. A test
# recomputes the digest of the copy and fails if it stops matching, so a canon
# movement cannot take effect by accident -- re-pinning is an ordinary,
# reviewable commit.
#
# To re-pin: copy the new criteria file over `rsr-criteria-v2.a2ml`, update the
# three version fields, the digest, and the `categories`, `criteria` and
# `weight_sum` shape fields below, then run `cargo test`. The canon's own
# arithmetic is re-checked on parse, so a half-copied file fails rather than
# silently losing criteria.
Comment thread
hyperpolymath marked this conversation as resolved.
#
# One discrepancy to be aware of, recorded rather than resolved here: the
# release in `canon.lock` is 2.0.4 while the criteria file's own `[meta]
# version` still reads 2.0.0-draft. Both are quoted below so the pin describes
# the artefact rather than a story about it. `canon.lock` also cannot be pinned
# by commit: its `commit` field is still the all-zero placeholder with the
# comment "fill at release".

[source]
repo = "hyperpolymath/standards"
path = "0-canon/rsr/rsr-criteria-v2.a2ml"
slot = "criteria"
canon_version = "2.0.4"
criteria_version = "2.0.0-draft"
released = "2026-09-17"
pinned = "2026-09-19"
sha256 = "37cb5f679b414f6ee99c6bb62c460fd5349ff7d50cc1dab25b1e1a8e8d3c7bb9"

# The shape of the pinned revision, checked after parsing as well as by digest.
# A rule set that silently shrinks is the failure mode that matters: these
# numbers make shrinking a test failure rather than a quieter scorecard.
categories = 11
criteria = 74
weight_sum = 88
249 changes: 249 additions & 0 deletions bots/rhodibot/canon/rsr-criteria-v2.a2ml

Large diffs are not rendered by default.

Loading
Loading