Skip to content

fix(rhodibot): automated RSR compliance fixes - #11

Merged
hyperpolymath merged 1 commit into
mainfrom
rhodibot/rsr-compliance-20260413
Apr 22, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
rhodibot/rsr-compliance-20260413

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner
  • Deleted duplicate (keeping .md for GitHub)

Summary

Changes

RSR Quality Checklist

Required

  • Tests pass (just test or equivalent)
  • Code is formatted (just fmt or equivalent)
  • Linter is clean (no new warnings or errors)
  • No banned language patterns (no TypeScript, no npm/bun, no Go/Python)
  • No unsafe blocks without // SAFETY: comments
  • No banned functions (believe_me, unsafeCoerce, Obj.magic, Admitted, sorry)
  • SPDX license headers present on all new/modified source files
  • No secrets, credentials, or .env files included

As Applicable

  • .machine_readable/STATE.a2ml updated (if project state changed)
  • .machine_readable/ECOSYSTEM.a2ml updated (if integrations changed)
  • .machine_readable/META.a2ml updated (if architectural decisions changed)
  • Documentation updated for user-facing changes
  • TOPOLOGY.md updated (if architecture changed)
  • CHANGELOG or release notes updated
  • New dependencies reviewed for license compatibility (PMPL-1.0-or-later / MPL-2.0)
  • ABI/FFI changes validated (src/interface/abi/ and src/interface/ffi/ consistent)

Testing

Screenshots

- Deleted duplicate  (keeping .md for GitHub)

Co-Authored-By: rhodibot <[email protected]>
@hyperpolymath
hyperpolymath merged commit 7743986 into main Apr 22, 2026
11 of 19 checks passed
@hyperpolymath
hyperpolymath deleted the rhodibot/rsr-compliance-20260413 branch April 22, 2026 18:45
hyperpolymath added a commit that referenced this pull request Oct 14, 2026
## Summary

**This fixes `Grade kernel proofs (Idris2 0.8.0 + Agda)` on every fresh
checkout of `main`.**

`scripts/fetch-siblings.sh` pins occupancy-types at `6013483`. That
commit sits on the branch of hyperpolymath/occupancy-types#11. #11 was
squash-merged as `8f09c0b` at 11:31Z and its branch deleted.
`fetch-siblings.sh` clones and then runs `git fetch origin`, which
fetches branches only, so `6013483` is now unreachable:

```
$ git clone https://github.com/hyperpolymath/occupancy-types.git && git -C occupancy-types fetch origin
$ git -C occupancy-types checkout --detach 60134839efe2c6f51a31d977a72c1cf94457e71d
fatal: reference is not a tree: 60134839efe2c6f51a31d977a72c1cf94457e71d
```

This is task #18 from the MinMax work (#276): move the pin once #11
merged.

## Changes

- **`scripts/fetch-siblings.sh`**: occupancy-types `6013483` →
`8f09c0bb319dee99d532e261cd5da4d04ace479a` (occupancy-types `main`).
- The two trees differ only in occupancy-types' own
`scripts/check-agda.sh`, which CodeRabbit changed on #11.
  - The Agda sources this gate checks are identical.
- No module header cites this pin. The `af95728` citations in `HWM.idr`,
`typed-wasm.ipkg` and `LEVEL-STATUS.adoc` name the commit that R-1..R-5
were ported from, so they stay.
- **`ResourceAlgebra/MinMax.idr`**: the header comment "…the identity
for alternatives: and an unreachable alternative…" loses its stray
"and".
- **`CHANGELOG.adoc`**: an entry.

## RSR Quality Checklist

### Required

- [x] Tests pass (`tools/check-kernel-proofs.sh`, see Testing)
- [x] Code is formatted
- [x] Linter is clean
- [x] No banned language patterns
- [x] No `unsafe` blocks without `// SAFETY:` comments
- [x] No banned functions (the gate's own check: zero `believe_me` /
`assert_total` / `assert_smaller` / `idris_crash`)
- [x] SPDX license headers present on all new/modified source files
(headers unchanged)
- [x] No secrets, credentials, or `.env` files included

### As Applicable

- [x] `CHANGELOG` or release notes updated

## Testing

I ran `_build/dependencies` from scratch, the way CI does. The commands
were `scripts/fetch-siblings.sh`, then `tools/check-kernel-proofs.sh`,
with Idris2 0.8.0 and Agda 2.6.3:

```
resource-algebra at 0b338c9fc45cd04e7ee7d00b3855cd59d56a2afe
occupancy-types at 8f09c0bb319dee99d532e261cd5da4d04ace479a
choreographic-types at edb784a7d26c276c2abfa8399b773d346dbb101e
PASS: upstream: PASS: core proofs, unit tests and all 8 expected rejections
PASS: upstream occupancy-types: PASS: core proofs and all 2 expected rejections
PASS: upstream choreographic-types: KCut.agda (K-1..K-5) checks against the resource-algebra pin
PASS: idris2 --build typed-wasm.ipkg: 33 module(s) built, 0 errors
PASS: kernel: zero believe_me / assert_total / assert_smaller / idris_crash
… 11 rejections, each at its declaration …
PASS: Agda (pinned resource-algebra) accepts the table by refl: 269 equalities
PASS: Idris2 (port) accepts the table by Refl: 269 equalities
… 4 negative-control rows refused by both provers …
OK: kernel proofs — build, 11 rejection(s), table, and 4 negative control row(s)
```

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01Y6FD63UrriRBHqmhhEca9t

---
_Generated by [Claude
Code](https://claude.ai/code/session_01Y6FD63UrriRBHqmhhEca9t)_

Co-authored-by: Claude <[email protected]>
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