Adjustment proof

From jleechanorg/claude-commands · View interactive version

Adjustment proof is an AI agent skill from the GitHub repository jleechanorg/claude-commands. Use when proving, rejecting, or deleting backend adjustment registry entries with real LLM evidence and independent disabled-adjustment worktrees.

How to use this skill

Skill file

Backend Adjustment Proof Protocol

Purpose

Use this skill before accepting any claim that a backend adjustment is proven

necessary or safe to delete. A subagent report, PR prose, or one successful

organic run is not proof. Proof requires an isolated red/green comparator for

each adjustment.

This skill extends:

Verdicts

Allowed verdicts:

exactly one adjustment disabled fails for the matching behavior.

worktree with exactly one adjustment disabled also passes. This is not enough

to delete by itself; it means the adjustment lacks positive necessity proof.

or do not demonstrate the claimed behavior.

Do not use delete from a single negative run. Deletion requires a separate

design decision after reviewing broader coverage, risk, and whether the code is

now redundant.

Non-Negotiable Proof Shape

For each adjustment ID:

  1. Start from the live PR HEAD or the exact SHA being reviewed.
  2. Create one green worktree with the adjustment enabled and unchanged.
  3. Create one red worktree with only that adjustment disabled.
  4. Run the same real-server, real-LLM evidence command in both worktrees.
  5. Save a manifest with:
  1. Validate the manifest with scripts/adjustment_proof_matrix.py validate.

One disabled worktree per adjustment is mandatory. A bundle named for one

adjustment cannot prove or delete another adjustment.

Required Artifacts

Each green and red evidence directory must contain:

For LLM-interacting level-up/rewards paths, unit tests are supporting evidence

only. They cannot establish proven or delete_candidate.

How To Run A Proof

Use the script to list registered adjustments:

./scripts/adjustment_proof_matrix.py list

Create a deterministic proof plan for one adjustment:

./scripts/adjustment_proof_matrix.py plan \
  --adjustment-id level_up_atomicity.suppress_unpaired_rewards_box \
  --test-command '<real testing_mcp invocation from the target repository owner>'

Create both independent worktrees with diskm worktree-new under

~/.worktrees/<repo>/<name>; the generated proof plan must point to those

approved Git worktree paths, never to /tmp or raw scratch paths. Keep evidence

and captures in a unique scratch evidence directory allocated via

diskm scratch-new <repo-path> <purpose> --kind evidence or

${CLAUDE_HOME:-$HOME/.claude}/skills/scratch-space/scripts/scratch-dir.sh

(which resolves the host Scratch volume and falls back to /tmp only when

unconfigured). In the red worktree, disable

only the named adjustment. Prefer the narrowest possible edit:

remove or bypass the exact correction/suppression branch that implements the

registry entry. Do not change prompts, test harnesses, unrelated adjusters, or

scenario inputs in the red worktree.

After both runs finish, collect and validate:

EVIDENCE_DIR="$(${CLAUDE_HOME:-$HOME/.claude}/skills/scratch-space/scripts/scratch-dir.sh <repo>/evidence/<unique-run-dir>)"

./scripts/adjustment_proof_matrix.py collect \
  --adjustment-id level_up_atomicity.suppress_unpaired_rewards_box \
  --green-worktree ~/.worktrees/<repo>/<green-worktree> \
  --red-worktree ~/.worktrees/<repo>/<red-worktree> \
  --green-evidence "$EVIDENCE_DIR/green" \
  --red-evidence "$EVIDENCE_DIR/red" \
  --test-command '<real testing_mcp invocation from the target repository owner>'

./scripts/adjustment_proof_matrix.py validate \
  "$EVIDENCE_DIR/proof_manifest.json"

The validator emits one of the allowed verdicts. Use that verdict in the PR body

or registry update; do not upgrade it manually.

Review Rules

Fail the proof as insufficient when:

not explicitly justified

mock-mode contamination instead of the adjustment behavior

If red and green both pass, record delete_candidate and recommend either

deleting in a separate cleanup PR with broader evidence or keeping the registry

entry as runtime evidence missing until that cleanup decision is made.

PR Body Language

Use precise wording:

the same command passed on green at <sha>."

failure under this proof command. This does not prove deletion is safe across

all paths."

real-LLM artifacts."

Never write "all blockers resolved" or "all adjustments proven" unless every

registered adjustment has its own validated manifest.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.