zeugnis-assertion-audit
Use when the user asks whether their test suite would actually catch bugs, wants a mutation-testing pass over target source and test files, asks to check for weak or tautological assertions, or wants zeugnis's assertion audit run. Not for proving that a specific change, fix, wire, or numeric claim is correct -- use andon:andon-verify for adversarial verification of a change; this skill judges only the tests. Every finding is labeled real-tool or llm-reasoned.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- zeugnis-assertion-audit
- description
- Use when the user asks whether their test suite would actually catch bugs, wants a mutation-testing pass over target source and test files, asks to check for weak or tautological assertions, or wants zeugnis's assertion audit run. Not for proving that a specific change, fix, wire, or numeric claim is correct -- use andon:andon-verify for adversarial verification of a change; this skill judges only the tests. Every finding is labeled real-tool or llm-reasoned.
03 SKILL.md 正文
Check whether the given test files would actually catch plausible
mutations to the given target source files. This skill's Verify phase is
NOT optional — there is no --skip-verification flag on this domain's
writer script, and scripts/assertion_audit.py requires a --verify-json
argument it will refuse to run without. Do not look for a way to make
this run faster by skipping it; the capability does not exist.
Steps
- Determine
repo_root, the target source files and the test files. If the user wants a real mutation tool (e.g.mutmut), run it through the harness first. The agent cannot run it: the tool writes mutants into its working directory, and the Bash hook denies it outside a harness copy. Runscripts/mutation_harden.py prepare,run-shardandcollect, exactly as steps 2-4 ofzeugnis-mutation-hardendescribe, or reuse a results file a run already produced. With no real tool, the agent falls back to llm-reasoned findings with afallbackReason. - Optionally build (or reuse, if
zeugnis-cyclealready built one this invocation — see "Shared symbol index" below) a symbol index of the target files for the agent to use as evidence. - Dispatch the
assertion-auditoragent in Find mode: give it the target files, test files, the harness results file (if step 1 produced one), and the symbol index (if built) — if step 2 was skipped, tell the agent no symbol index exists and it should read the target files directly instead. Ask for{"findings": [...]}where each finding hastoolSourceset:"real-tool"withresultsFileandmutantIdfor a mutant read from that results file,"llm-reasoned"with an explicitfallbackReasonotherwise. Write its output to a scratch JSON file. - Dispatch the
assertion-auditoragent AGAIN, in Verify mode, once per Find-phase finding (or as a batch if your dispatch prompt makes the per-finding independence explicit) — a fresh, independent read of the source and tests, not a rubber stamp of step 3's description. Write{"findings": [{"evidence": "...", "confirmed": true|false}, ...]}to a second scratch JSON file. - Run:
This reconciles Find against Verify in three buckets:python3 -B "${CLAUDE_PLUGIN_ROOT}/scripts/assertion_audit.py" <repo_root> \ --find-json <path-from-step-3> \ --verify-json <path-from-step-4> \ [--requested-tool <name>]confirmed: truesurvives,confirmed: falseis dropped as refuted, and anything else (key missing, non-boolean, no record for a finding) is an abstain that is kept asverification: "unverified", warned about on stderr and counted in the summary'sunverifiedCount(an abstain is never a pass), drops every real-tool finding whoseresultsFile/mutantIdcitation does not re-derive from the tool's own sidecar, forces every surviving finding'sfixabilityto"advisory", and writesanalysis/zeugnis/reports/ASSERTION_AUDIT.md(real-tool and llm-reasoned findings in clearly separate sections — never blended) andanalysis/zeugnis/assertion_audit_summary.json. - Report the finding count, split by
toolSource, to the user.
Shared symbol index
If this skill is running as one pass inside zeugnis-cycle, do not build
your own symbol index from scratch — call
scripts/lib/symbol_index.get_or_build_snapshot (or the CLI wrapper the
cycle skill points you at) with the SAME invocation_id the cycle
provided. Building it twice inside one cycle invocation violates the
single-flight rule the rest of the plugin relies on.
For the snapshot contract itself (how to resolve analysis/zeugnis/current.json, the
single-flight lock, and when a repo is too small to be worth indexing), read
references/parallel-safe-research-protocol.md.
What NOT to do
- Do not present findings without having run step 4 — a Find-only result
is not a valid assertion-audit output, and the writer script will
refuse to run without
--verify-jsonregardless. - Do not mark any finding
fixability: "fixable"— ask the agent to always use"advisory"; the writer script forces it regardless, but a request that already respects the rule wastes less of the agent's effort correcting itself. - Do not run
mutmut runormutmut applyin the working tree to get a real-tool label: the hook denies it, and a real-tool finding is only accepted with a harness citation anyway. To also write the tests that kill the survivors, usezeugnis-mutation-hardeninstead. - Do not silently merge real-tool and llm-reasoned findings into one table when reporting to the user — keep the same separation the Markdown report uses.
04 同仓库更多 Skills
toy-check
A skill that checks things in the repository and reports what it finds.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
zirkel-verify-assumptions
Checks exactly ONE named assumption against real evidence in at most 3 steps and reports one outcome: confidence raised (>=90), reading changed, or still unresolved. Use to resolve a single load-bearing uncertainty — typically a blocking entry surfaced by zirkel-clarify-scope: "verify this one assumption", "is it actually true that X", "check this before we rely on it". For multiple uncertainties, invoke once per uncertainty — the step budget is never shared.