Skip to content

feat(rsr): write the RSR scorecard as a deed, not rsr.scorecard.a2ml - #1115

Merged
hyperpolymath merged 3 commits into
mainfrom
rsr/scorecard-deed-writer
Nov 14, 2026
Merged

hyperpolymath merged 3 commits into
mainfrom
rsr/scorecard-deed-writer

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

On 2026-11-14 the owner ruled that the RSR scorecard gets a new deed clause and the writer switches to it. This PR switches hypatia's writer. The clause itself is metadatastician/standards#1583.

Changes

  • RsrConformance.to_deed/2 replaces to_record_dialect/1. After this, nothing in hypatia writes A2ML scorecards.
  • It writes .machine_readable/scorecards/rsr-scorecard_praxis.deed, a praxis-deed with :profile rsr-scorecard.
  • deed_context/1 takes :repo and :beholding-chora from the scored repo's chora deed.
  • A new --source-commit flag. rsr-oracle.yml passes the checkout's HEAD, and its summary step shows the new file.
  • An existing rsr.scorecard.a2ml is noted in the output and never deleted.
  • docs/consumers/rsr-oracle.adoc is updated.

Verification

  • rsr_conformance tests: 27/27.
  • Full mix test: 3219 tests, with the same 10 HttpcRedirectCredentialsTest failures that main has.
  • The output written for hypatia, standards, an empty repo and a simulated CI run all pass deed_lint --rsr-scorecard from standards#1583.

Known

  • In CI, a repo with no chora deed gets :repo "repo", the checkout directory name. The old writer did the same.
  • If this lands next to rsr/criteria-accept-chora-deed, the two need a small merge in rsr_conformance.ex and its test.

This is a draft until standards#1583 merges.


Generated by Claude Code

`mix hypatia.rsr_score --write` and the reusable rsr-oracle.yml wrote
.machine_readable/scorecards/rsr.scorecard.a2ml into every scored repo:
an estate-wide A2ML producer. The owner ruled on 2026-11-14 to give the
RSR scorecard a deed clause and switch the writer to it.

The writer now emits .machine_readable/scorecards/rsr-scorecard_praxis.deed,
the one (rsr-scorecard …) clause of a praxis-deed with :profile
rsr-scorecard (standards branch deed/rsr-scorecard-clause:
clauses/rsr-scorecard.abnf v0.1.0, DRAFT; checked by
deed_lint.js --rsr-scorecard):

- RsrConformance.to_deed/2 replaces to_record_dialect/1: tier, score,
  provisional, coverage and weights, and one (criterion …) per catalogue
  criterion, na included, so the score can be recomputed; decimals are
  strings, never exponent form; strings escaped to the grammar's four
  escapes.
- RsrConformance.deed_context/1 takes :repo from the scored repo's chora
  deed :canonical-name and copies its :beholding-chora (#uuid or #u8;
  a #u5 is not copied).
- --source-commit SHA records the scored commit; rsr-oracle.yml passes
  the checkout's HEAD.
- An existing rsr.scorecard.a2ml is neither written nor deleted: the task
  notes it and leaves it for the repo's own migration PR.

Tests replace the record-dialect round trip: the output parses with
Hypatia.Deed as a praxis-deed, carries every criterion, takes the chora
context, and escapes names. Outputs for hypatia, standards, an empty
repo and a simulated CI checkout all pass the standards profile checker.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0136P7ZoBy5xGnGDLk7wQ8jC
@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 2a97582c-a782-4c3b-a5e7-62ee91a24179
Commits

Reviewing files that changed from the base of the PR and between 2ea0300 and 58814af.

Files selected for processing: 5

  • .github/workflows/rsr-oracle.yml
  • docs/consumers/rsr-oracle.adoc
  • lib/mix/tasks/hypatia.rsr_score.ex
  • lib/rules/rsr_conformance.ex
  • test/rules/rsr_conformance_test.exs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 14, 2026 19:18
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T19:36:38.105684Z 58814af New commits
🔒 Security Review ✅ Completed 2026-11-14T19:39:03.247722Z 58814af New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@hyperpolymath
hyperpolymath merged commit 3b8551c into main Nov 14, 2026
1 check passed
@hyperpolymath
hyperpolymath deleted the rsr/scorecard-deed-writer branch November 14, 2026 19:33
@sonarqubecloud

Copy link
Copy Markdown

hyperpolymath added a commit that referenced this pull request Nov 14, 2026
)

## Summary

Main does not compile since #1117. `descriptiles_parse/1` calls
`deed_state/1`, which nothing defines. A duplicate `record_files == []`
branch could never run, and `descriptile_carrier/0` was never called.

## Changes

- 3.1.1 now uses `descriptile_carrier/0` (deed first, then the
directory), as #1117 describes.
- `deed_state/1` replaces `deed_parses?/1` and returns `:ok`, `:none` or
`:broken`.
- 3.2.1: a broken chora deed fails even when the `.a2ml` files parse, as
#1117 says. The dead duplicate branch is removed.

## Verification

- `mix compile --warnings-as-errors`: clean (it failed before with the
undefined function and the unused function).
- `mix format --check-formatted` on the file: clean.
- `mix test`: 3514 tests, 0 failures, 246 excluded (LANG=C.UTF-8).

Not run: Rust, Zig and Idris2 checks.

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

Signed-off-by: Jonathan D.A. Jewell <[email protected]>
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.

3 participants