Skip to content

refactor(review): remove the unused ratchet_offer setting - #12458

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-11973-41493432093-1
Nov 2, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-11973-41493432093-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #11973

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Removes the review plugin's unused ratchet_offer setting: its userConfig option, schema key, README and reference/config.md rows, and the mention in the review row of the config-cascade contract. The setup skill's tests and evals that used the boolean now use the remaining enum keys: downstream_probe (run/report) where a single key was written or checked, and fanout_diversity where the case needed a second key next to downstream_probe (a bad value on another key, or a key accepted at its default). Both su-* eval cases were rewritten, not deleted, because each tests provenance recording (default vs chosen), which does not depend on ratchet_offer. The only cases dropped were the quoted-boolean ones. A quoted listed enum value is valid, so those became quoted out-of-list cases, and one positive case now checks that a quoted listed value passes. The issue's first done-when rg still prints one line, docs/contracts/config-cascade/README.md:688. That line is the corrections plugin's own row, which the issue puts out of scope, so it is left as it is.

Not verified

  • The issue's done-when rg -n 'ratchet_offer' plugins/review docs/contracts/config-cascade --glob '!**/CHANGELOG.md' still prints docs/contracts/config-cascade/README.md:688. That is the corrections plugin's own row, documenting corrections' ratchet_offer, which the issue's Out of scope keeps. The t
  • bash scripts/run-test-file.sh plugins/review/skills/setup/scripts/setup-apply.test.sh was not run: this lane cannot run node or bash test files. Left to the PR's CI.
  • python3 plugins/evals/skills/validate/scripts/validate-cases.py plugins/review/evals was not run: no interpreter is allowed in this lane, and check-evals-quality accepts only evals.json files, not case directories. Left to the PR's CI (evals-schema and evals-quality).
  • scripts/sync-plugin-options-docs.py was not run (no interpreter); the README options table was edited by hand to match plugin.json. CI's generated-docs check confirms it.
  • Tidy skipped: the change is over the tidy cutoffs (25 files and about 400 changed lines, against limits of 10 and 300; it spans 2 areas, plugins/review and docs/contracts).
  • git status lists untracked .bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile and .zshrc at the checkout root. They do not exist when read (they look like sandbox mount points), this run did not create them, and they are not part of the change.

Fix

  • plugins/review/schemas/review.schema.json: removed the ratchet_offer property
  • plugins/review/.claude-plugin/plugin.json: removed the ratchet_offer userConfig option
  • plugins/review/README.md: Configuration now says two settings and drops the ratchet_offer sentence; removed its row from the generated options table, done by hand to match plugin.json because the sync script cannot run in this lane
  • plugins/review/reference/config.md: removed the ratchet_offer row and intro clause; the example report line and the Older releases example now use fanout_diversity; the invalid-value list says 'an empty quoted string' in place of 'a quoted string', since a quoted listed enum value is valid
  • docs/contracts/config-cascade/README.md: dropped the ratchet_offer clause from the review row only; the corrections row is unchanged
  • plugins/review/skills/setup/SKILL.md: removed the skip-ratchet_offer clause from apply step 1 and 'a quoted boolean' from the check WARN list; the What-this-skill-does-NOT-do line now names the downstream_probe and fanout_diversity options
  • plugins/review/skills/setup/evals/evals.json: case 4 is now apply-writes-downstream-probe-after-diff-confirmation (run to report); case 5 is now check-warns-on-out-of-list-value (downstream_probe: always)
  • plugins/review/skills/setup/scripts/setup-apply.test.sh: every ratchet_offer case moved to downstream_probe (true->run, false->report); case 24's per-key cases use a bad fanout_diversity beside a valid downstream_probe: report; quoted-boolean cases became quoted out-of-list cases; added a case
  • plugins/review/skills/fanout/evals/evals.json: removed 'PASS ratchet_offer: (unset)' from the quoted --check output in cases 46, 47 and 48
  • plugins/review/evals/su-accepted-default-records-default/ (case.yaml, prompt.md, 6 samples): rewritten so fanout_diversity is the key accepted at its default (--default fanout_diversity) and downstream_probe=report is the chosen one
  • plugins/review/evals/su-chosen-default-value-records-chosen/ (case.yaml, prompt.md, 4 samples): rewritten to downstream_probe=run chosen on purpose, which records chosen (default run) and never default
  • plugins/review/skills/quality-gate/context/downstream.md: the WARN example list says 'an empty quoted string' in place of 'a quoted string'; this was already inaccurate for downstream_probe, and the local review found it
  • .changes/review/work-resolve-issue-issue-11973-41493432093-1-1ddcfad7.md: new major fragment under Removed
  • .changes/review/refactor-11969-remove-audit-enforceability-4b7e2c19.md: removed the unreleased sentence saying ratchet_offer 'stays for now', which this release contradicts

Verification

The runner ran each check from the base copy against aa1a47b:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • Grep 'ratchet_offer' over plugins/review excluding CHANGELOG.md: no matches
  • Grep 'ratchet_offer' over docs/contracts/config-cascade: one match, line 688, the corrections row (out of scope)
  • .lane/checks/bin/check-changelog-fragments: all 11 fragments valid (run before and after the review fixes)
  • .lane/checks/bin/check-changed-skills: fanout, quality-gate and setup PASS, 0 errors; the warnings are on lines this change does not touch
  • .lane/checks/bin/check-affected: 12 passed, 6 skipped (none failed) over 26 changed files
  • .lane/verify/bin/check-evals-quality on setup and fanout evals.json: PASS; its 5 warnings are on cases this change does not touch
  • Fresh-context review subagent over the whole diff: no correctness bugs; traced each converted test case and each eval grader against plugins/review/lib/setup-apply.mjs; two findings (a stale 'a quoted string' doc line, and no positive quoted-enum test case), both fixed
  • The new quoted-listed-value case follows plugins/verification/skills/setup/scripts/setup-apply.test.sh:474-477, which asserts the same behavior for proof_level
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41493432093

Left out: the items under Not verified.

Related

#11973

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed c1adad9ff051200fb43c1ef63204e5b87c30b6e5: read 25 of 25 changed file(s); 0 finding(s), 0 as inline comments.

Code review: refactor(review): remove the unused ratchet_offer setting (#12458)

No blocking or advisory findings.

The new head c1adad9f only merges main into the branch. I read every hunk of the 25 changed files in .claude-lane/pr.diff. su-chosen-default-value-records-chosen/samples/file-records-chosen.json has exactly the same change as file-not-recorded-default.json, so I reviewed that change once. Its path does not change what the file does.

Since the last review at aa1a47bd, the diff has one fewer file. The earlier edit to .changes/review/refactor-11969-remove-audit-enforceability-4b7e2c19.md is gone because main has already released that fragment. Its sentence that ratchet_offer "stays for now" is now in the released plugins/review/CHANGELOG.md:14, which is release history and does not need changing. The new fragment's ### Removed entry records the removal.

What I checked

  • The removal is complete within scope. I searched the merged tree for ratchet_offer:
    • Under plugins/review it appears only in CHANGELOG.md.
    • Under .changes/ it appears only in this PR's new fragment.
    • Under docs/contracts it appears only on the corrections row at docs/contracts/config-cascade/README.md:688.
  • The converted tests in setup-apply.test.sh and the eval graders still test what they tested before.
    • Each ratchet_offer case now uses an enum key (downstream_probe or fanout_diversity) with a matching valid or invalid value. The cases that relied on a quoted boolean being invalid now use quoted out-of-list values. The new case 5 positive check confirms that a quoted listed value is valid.
    • Case 24 still checks that a bad value on one key leaves downstream_probe: report (the policy floor) in place.
    • The two su-* eval cases still test whether the setup file records each value as chosen or as the default. Each grader regex agrees with its pass and fail samples.
  • Documentation matches the behaviour. Changing "a quoted string" to "an empty quoted string" in reference/config.md and quality-gate/context/downstream.md agrees with the writer, which accepts a quoted listed enum value. The new fragment's claim that a leftover key gets an unknown-key WARN while the file's other keys still count agrees with the check row in skills/setup/SKILL.md.

Plugin manifest

  • manifest userConfig.ratchet_offer (removed): pass. The PR and the new fragment say why it was removed (no skill read it) and point users to the corrections plugin's setting.
  • manifest version (fragment bump): pass. Removing a user option is a breaking change, and the fragment declares bump: major.
  • manifest description/keywords: pass. The review plugin.json description does not mention ratchet offers.

Closing issue #11973

  • Task list: both items are met.
  • Done-when item 1 (rg -n 'ratchet_offer' plugins/review docs/contracts/config-cascade --glob '!**/CHANGELOG.md'` prints nothing) is not met word for word: the command still prints docs/contracts/config-cascade/README.md:688. That line is the corrections plugin's own row, and the issue's Out of scope section keeps corrections' ratchet_offer. The criterion contradicts the issue's own scope, and the PR body says so, so I did not count it as a finding.
  • Done-when items 2–4 (the setup-apply.test.sh run, check-skill.sh, validate-cases.py, check-changelog-fragments.sh) cannot be checked in this lane, which has no shell. The author reports some of these as passing, but I did not verify them, and the rest are left to CI.

Notes

  • Path-scoped rules: .claude/rules/eval-case-transcripts.md and skill-bodies-state-current-rules.md apply to these files, and neither is broken.
  • No embedded instructions in the PR context or the prior-findings file.
  • Prior findings: none with a line anchor. The earlier summary reported 0 findings, so nothing is repeated here.
  • No hold: the change starts no charge.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head c1adad9ff051200fb43c1ef63204e5b87c30b6e5. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-security-review: 1 inline finding(s) on aa1a47bd068d5a34fc2e63a463489930b47d2da3; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed c1adad9ff051200fb43c1ef63204e5b87c30b6e5: read 25 of 25 changed file(s); 1 finding(s), 0 as inline comments.

Security review: PR #12458 (remove the unused review ratchet_offer setting)

I found no new security issue. The one finding is the manifest flag the default-deny rule requires. This lane already posted it, the lines have not changed since, and it is counted again below.

already posted: #12458 (comment)

manifest userConfig.ratchet_offer: already posted, #12458 (comment)

What I checked

  • Manifest (plugins/review/.claude-plugin/plugin.json): the only change is removing the ratchet_offer boolean (default true). Every description of the key, and the prior round's search, say no skill, script or lib in the review plugin reads it. Removing it therefore turns off no guard, widens no action and runs no new code. Under default deny it is still a flag, at IMPORTANT. No hooks, mcpServers, dependencies or other key that installs or runs code changed.
  • Schema (plugins/review/schemas/review.schema.json): dropping the property means a review.yaml that still sets ratchet_offer gets an unknown-key WARN. setup/SKILL.md and reference/config.md both say the reader keeps the other keys in that case. Test cases 6, 12 and 24 assert it, so a valid downstream_probe: report policy floor beside a stray key still counts. The floor's default-branch read (--ref) and its any-layer-wins rule are unchanged.
  • Instruction surface (setup/SKILL.md, quality-gate/context/downstream.md): the removed text is a "skip ratchet_offer" step in apply, "a quoted boolean" in the WARN example list, and a WARN example reworded from "a quoted string" to "an empty quoted string". None of these is a guardrail: they describe validator output and do not forbid any action. No protected class applies, and I did not consult the instruction exception register.
  • Tests and evals (setup-apply.test.sh, setup/fanout evals.json, the su-* eval cases): these only swap keys. All the hardening cases still run, now against downstream_probe: symlinked and hard-linked targets, a symlinked docs/conventions, a root equal to or above $HOME, a substitution-shaped root (case 10), ref-shape substitution (case 22), and the TOCTOU and fs-failure preloads (cases 17–19). One new positive case checks that a quoted listed value ("report") passes. It loosens nothing: report is the tighter value of the floor.
  • Docs and changelog fragments (docs/contracts/config-cascade/README.md, plugins/review/README.md, reference/config.md, .changes/review/…): prose only.
  • Trust controls: no changed file matches a trusted path or a trust control: trusted-trigger, lane token, kill switch, broker, merge holds and actions are all untouched.
  • PR context: contains no directive aimed at this lane.
  • Identical files: su-chosen-default-value-records-chosen/samples/file-records-chosen.json copies file-not-recorded-default.json. Both are eval sample data at a path with no special meaning, so the copy acts the same as the original.

Spend: none.

critical-findings: 0

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head aa1a47bd068d5a34fc2e63a463489930b47d2da3.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped resolve-conflicts on this pull request: the lane could not resolve every conflict. The lane sets no label: the run ends in a failing pr-unblock/conflict status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=12458 -f activity=resolve-conflicts

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on aa1a47b.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 2, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the lane left a review finding open and no adjudicator verdict settled it: none was recorded, it found the finding does not hold where the lane had not disputed it (an UNCERTAIN or VALID-defer reply), which only an INCORRECT reply lets a verdict resolve, it found the finding asks only for tests whose covering check runs had not all passed when the round began, or it raised a security question on a finding the security-review lane rated below CRITICAL; so a session builder takes it. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=12458 -f activity=address-feedback

Main released the refactor-11969 review fragment into the changelog;
keep main's deletion. This branch's own fragment carries the
ratchet_offer removal note.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vcupoj8x1y7iioJDxS6fST
@melodic-automation-lanes melodic-automation-lanes Bot removed the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 2, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 2, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on c1adad9.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head c1adad9ff051200fb43c1ef63204e5b87c30b6e5.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 2, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 6cc3199 Nov 2, 2026
66 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-11973-41493432093-1 branch November 2, 2026 21:37
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 6cc3199844621fe7b4bc147e00d2003d45ab701f; later checks count it verified from this comment.

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.

refactor(review): remove the unused ratchet_offer setting

1 participant