后端调整条目验证
adjustment-proof
当需要使用真实的 LLM 证据和独立的禁用调整工作树来证明、驳回或删除后端调整注册表中的条目时使用。
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- adjustment-proof
- description
- Use when proving, rejecting, or deleting backend adjustment registry entries with real LLM evidence and independent disabled-adjustment worktrees.
03 SKILL.md 正文
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:
.claude/skills/zfc-adjuster/SKILL.md.claude/skills/evidence-standards/SKILL.md- for level-up/rewards changes, if an installed product plugin provides a companion
zfc-leveling-roadmapskill, read it
Verdicts
Allowed verdicts:
proven: Current-head green evidence passes, and a separate worktree with exactly one adjustment disabled fails for the matching behavior.delete_candidate: Current-head green evidence passes, and a separate worktree with exactly one adjustment disabled also passes. This is not enough to delete by itself; it means the adjustment lacks positive necessity proof.insufficient: Required artifacts are missing, stale, non-real, not isolated, 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:
- Start from the live PR HEAD or the exact SHA being reviewed.
- Create one green worktree with the adjustment enabled and unchanged.
- Create one red worktree with only that adjustment disabled.
- Run the same real-server, real-LLM evidence command in both worktrees.
- Save a manifest with:
- adjustment ID
- base SHA
- green worktree path and evidence directory
- red worktree path and evidence directory
- the red worktree diff that disables the adjustment
- exact commands used
- raw evidence paths
- 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:
run.jsonmetadata.json- real HTTP request/response capture, such as
http_request_responses.jsonl - real LLM capture, such as
llm_request_responses.jsonl - matching git SHA provenance for the worktree that produced the evidence
- checksums when the harness provides them
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. Keep evidence and captures in a
unique /tmp/<repo>/evidence/<run-dir>/ directory. 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:
./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 /tmp/<repo>/evidence/<unique-run-dir>/green \
--red-evidence /tmp/<repo>/evidence/<unique-run-dir>/red \
--test-command '<real testing_mcp invocation from the target repository owner>'
./scripts/adjustment_proof_matrix.py validate \
/tmp/<repo>/evidence/<unique-run-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:
- the green or red bundle is missing
run.jsonormetadata.json - the bundle has no real LLM capture
- the evidence SHA does not match the worktree SHA and staleness tolerance was not explicitly justified
- the red worktree diff is empty
- the red worktree diff disables more than the named adjustment
- the same red run is reused for multiple adjustments
- a red run passes but the report calls the adjustment
proven - a red run fails for harness setup, auth, server boot, missing classifier, or 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:
proven: "Disabling<adjustment_id>alone caused<failure>in red while the same command passed on green at<sha>."delete_candidate: "Disabling<adjustment_id>alone did not reproduce a failure under this proof command. This does not prove deletion is safe across all paths."insufficient: "Evidence did not isolate<adjustment_id>or lacked required real-LLM artifacts."
Never write "all blockers resolved" or "all adjustments proven" unless every registered adjustment has its own validated manifest.
04 同仓库更多 Skills
disk-reclaim-playbook
Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.
claudea-bench
Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.
pr
Alias for the canonical pr-lifecycle PR workflow skill (/pr-workflow, /prw).
whisper
OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
pr-report
This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, /pr-report, or wants per-PR summary with delta files/lines. Generates a structured report for one or more open PRs covering purpose, files changed, +/− line counts, /code-standards + /thermo review findings, /ponytail simplification opportunities, file-overlap combination candidates, and /green status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.