一键导入
dverity-repair
Diagnose and repair confirmed defects to Verified Local. Use for evidence-first bug repair; remote submission requires separate explicit authority.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Diagnose and repair confirmed defects to Verified Local. Use for evidence-first bug repair; remote submission requires separate explicit authority.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | dverity-repair |
| description | Diagnose and repair confirmed defects to Verified Local. Use for evidence-first bug repair; remote submission requires separate explicit authority. |
| metadata | {"dverity_class":"workflow-entry","reads":["../../DVERITY.md"],"resources":["scripts/repair-contract.js"]} |
dverity-repair diagnoses and repairs confirmed defects. Read
../../DVERITY.md; this Skill owns only its local phase and defaults to the
Verified Local terminal. A repair request never grants push, review-item,
approval, landing, issue-close, or any other remote mutation authority.
The operating discipline is a tight red loop: one command that the agent has already run, that reaches the user's exact symptom, and that can be repeated without human interpretation. Without that loop, return a blocked record. Do not manufacture a root cause or write product code to make progress look real.
Before diagnosis:
CONTEXT.md or the nearest project vocabulary when present.../postmortem/SKILL.md to recall likely recurrences, failed
verification lessons, or review escapes. Recall is a lead until current
evidence revalidates it.../dverity-research/SKILL.md only when a real external API,
dependency, platform, or stale-source Evidence Gap blocks a probe. Research
cannot substitute for reproduction.Build the fastest deterministic signal that reaches the real failure. Prefer, in order: a boundary test, HTTP/CLI invocation, replayed trace, minimal harness, property loop, bisect harness, or structured HITL script.
The loop is ready only when all are true:
For a non-deterministic defect, repeat, parallelize, stress, freeze time or randomness, and shrink the timing window. A low-rate signal that cannot support falsification is blocked, not “probably fixed.”
If no red loop can be established, report the attempted commands, the missing minimal artifact, and the next owner. Ask for the smallest useful item such as environment access, a HAR/log/core dump, or permission for temporary instrumentation. Do not mutate product code.
Run the loop and capture the exact failure more than once. Then remove one input, caller, config value, step, or environmental variable at a time. Rerun after every removal.
The minimum reproduction is complete when every remaining element is load-bearing, removing any element changes the verdict or symptom, and the small case still matches the original symptom. Record the real public boundary where the case can become a regression test. If the architecture exposes no correct boundary, record that as a follow-up instead of accepting a shallow test.
Create 3-5 evidence-backed candidates. When current evidence supports only one non-fabricated candidate, record why no second honest candidate exists. Never invent a second cause to satisfy a number.
Each row contains:
id, cause, observed result, abductive ECE,
disconfirming kill probe, independent confirm test,
rung, next check, evidence
An observed result names before-state, after-state, and where it was noticed. Build unknown-cause hypotheses as:
observed effect <= suspected cause => independent predicted effect
Write the kill probe before collecting support: “if X is the cause, expect Z; if not-Z appears, refute X.” A removal or action test is the confirm test and is recorded separately. One command cannot be both the kill probe and the confirm test.
Use this trust ladder:
conjectured: candidate tied to an observed result;standing: survived a serious disconfirming probe;corroborated: an independent predicted effect was observed;confirmed: an independent removal/action test passed;refuted: the killing fact stays visible.Only confirmed may use “root cause.” corroborated is “probable cause” and
must name the missing confirmation. Supporting evidence alone never advances a
hypothesis to confirmed.
Build a compact CRT only from standing-or-stronger rows. Every important edge must pass clarity, existence, and sufficiency checks. If competing needs create the defect, name the objective, both needs, both opposing wants, and the hidden assumption to break.
Run one probe for one predicted signal at a time:
Prefer a debugger or REPL, then a narrowly placed log. Prefix temporary logs
with a unique [DEBUG-...] token so cleanup can prove their removal. For a
performance regression, establish a timing/profile/query-plan baseline before
mutation.
Before adding any helper, validator, parser, script, schema, or reusable policy,
run ../do-not-repeat-yourself/SKILL.md and reuse the nearest correct wheel.
At the correct public boundary:
A corroborated probable cause may receive a minimal low-risk repair only when the packet keeps the missing confirmation and risk visible. It does not become a root-cause claim by virtue of the test turning green.
Remove every tagged debug probe and one-off prototype, then run the cleanup
scan. Submit the local evidence to
scripts/repair-contract.js#validateRepairPacket with:
remote_actions_performed: [].Only a passing validator result is verified-local-repair. Any missing gate is
blocked and must preserve attempted loops, the missing artifact, the next owner,
and zero product mutations.
Use scripts/repair-contract.js#routeRepairWork for the local ownership
decision. A confirmed defect routes only to dverity-repair. Feature gaps,
requirement changes, and product-intent gaps route to the external
Wayfinder/executor. Missing intent or less-than-confirmed defect evidence stays
blocked. Repair does not implement features and does not promote work remotely.
Review and land one authenticated provider-native review item. Use when current-head review, landing, closeout, and remote-main parity are in scope.
Submit a named verified source for remote review. Use when explicit authority covers push and one review item, but not approval or landing.
Simplify verified changes before remote submission. Use for deletion-first, YAGNI, native-library, structural, and test-seam review.
Create narrow auditable local commits. Use when verified Dverity work must be staged and committed without absorbing unrelated changes.
Resolve an in-progress merge or rebase conflict from proven product intent. Use only when Git reports an actual conflict.
Find and reuse the nearest correct mechanism before adding another. Use when a Dverity change would add reusable code, policy, or workflow meaning.