Repository navigation
Add /ledger-review: plain-language Decision Ledger review comment for spec PRs - #64
Merged
Merged
Conversation
…or spec PRs The owner runs `/ledger-review <PR>` to post one comment per changed spec that lists every Ledger decision and option in plain language, so a curriculum product manager can review and comment on them. - scripts/ledger_review.py renders every fixed and factual part from the spec (header, legend, headings with line links, the five columns, ids, labels, "Asked only if", test counts, skipped questions, footer) and leaves slots for the wording; `check` compares a draft with that skeleton line by line and rejects internal terms; `previous` finds the last review of the same spec, so rows whose spec text is unchanged reuse their wording. - SKILL.md carries the writing rules the reference comment (PR #63) was written with, plus the gist of the reference's typical lengths as guidance (no word limits). Examples in SKILL.md are invented (course-agnostic); the real comment is references/example-review.md. - disable-model-invocation: true — generators and build agents never see it. No change to CLAUDE.md, AGENTS.md, the guide or the overlay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
/ledger-review <PR>. It posts one comment per spec file a PR changes, listing every Decision Ledger decision and option in plain language, so a curriculum product manager can review and comment on them. The reference is the comment on #63.How it keeps the output consistent
scripts/ledger_review.py skeleton, from the specprevious: copied from that review (hidden markers hold a hash of each row's source)checkcompares the draft with the skeleton line by line: every fixed part must be identical, every slot filled, and no internal term (Invariant, litmus, stand-in, R12, AC7…) may appear in a slot. The draft is shown to the owner before posting.Experiments (Opus 5.5; files are local under
experiments/ledger-review/)check, but the wording was ~1.5–2× longer than the reference, more literal, and E3 wrote "None stated" in 25 of 34 Setup cellsThe length guidance is the reference comment's typical lengths, stated as guidance, not limits (owner decision: no word limits that the reference was not written with).
Isolation
.claude/skills/ledger-review/*(new)/ledger-review, typed by the owner (disable-model-invocation: true); generators and build agents never see itREADME.md(one tree line)SKILL.md's examples are invented, because every SKILL.md must stay course-agnostic (CLAUDE.md). The real #63 comment is
references/example-review.md. It restates only that spec's Ledger, which a build agent of that course already reads.Known limits
previousfinds earlier reviews through merged PRs that touched the spec file; a review on an unmerged PR is not reused.🤖 Generated with Claude Code