verify-contract
Skill6 starsChanged 3 months agoMITView on GitHub
Record clear evidence that a task works, including commands, results, remaining risks, scope adherence, and whether the implementation stayed under the spec ceiling.
- Reads credentials
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- analyze-miniSkill
- bug-captureSkill
- build-oneSkill
- ceremony-budgetSkill
- checklist-miniSkill
- constitution-liteSkill
- context-checkSkill
- diagnose-loopSkill
- eco-modeSkill
- falsify-specSkill
- grill-with-docs-liteSkill
- handoffSkill
- lean-modeSkill
- mini-specSkill
- operator-profileSkill
- scope-freezeSkill
- ship-miniSkill
- teach-backSkill
- test-miniSkill
- thin-planSkill
- tool-noise-guardSkill
- workspace-checkpointSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 14 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
After implementation, tests, bug fixes, data runs, or smoke checks.
- Distinctive: line 31
Update VERIFY.md with date + task name.
- Distinctive: line 34
Keep each entry concise and auditable.
- Very specific: line 46
When SCOPE.md and scripts/scope_gate.py are available, run:
- Very specific: line 53
If SPEC.md marks the compatibility probe gate REQUIRED, rerun every named probe after implementation and record matching post-change …
- Very specific: line 61
Before recording PASS, add or refresh the verification freshness anchors and stamp the repository snapshot:
- Distinctive: line 80
Run the spec ceiling check against the implemented behavior and diff.
- Very specific: line 84
If an operator profile provides Verification depth, use it only to size optional proof beyond the required contract: targeted stops at …
- Distinctive: line 99
When the deterministic verify gate supplies review reason codes, preserve them as routing metadata.
- Very specific: line 100
If repeated iterations occurred without a loop contract, use REVIEW_REQUIRED.
- Very specific: line 101
If loop budget, ledger, revert rule, or stop condition was violated, use REVIEW_REQUIRED or FAIL depending on whether the behavior contract …
- Distinctive: line 103
Do not treat loop activity as success merely because the final output looks plausible.
- Very specific: line 107
When scripts/verify_gate.py returns REVIEW_REQUIRED, it also emits stable machine-readable review_reasons with code, category, and details.
- Distinctive: line 109
Keep the existing human-readable reason text.
- Very specific: line 129
Do not invent a different severity from a reason code.
- Very specific: line 156
When SPEC.md says Compatibility probe requirement: REQUIRED, record one block for every baseline Probe ID:
- Very specific: line 170
When SPEC says Change proof requirement: REQUIRED, VERIFY.md must carry one matching Change ID block for each recorded baseline:
- Distinctive: line 184
Do not rewrite the baseline after implementation to manufacture a clean before/after comparison.
- Very specific: line 190
When SPEC says Test sensitivity requirement: REQUIRED, VERIFY.md must carry one matching Sensitivity ID block for each declared probe.
- Distinctive: line 209
Read-only / forbidden paths touched: none | describe
- Distinctive: line 237
Do not enlarge the recorded budget after implementation merely to make the gate green.
- Distinctive: line 251
If a secret is needed, document only the environment variable name.
- Distinctive: line 252
Run a repo secret scan if one already exists and is easy to invoke.
- Distinctive: line 273
VERIFY.md entry with human-readable and machine-readable evidence
- Distinctive: line 278
Test-sensitivity fault-injection evidence when the spec requires it
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Verify Contract
Purpose
Prove the task actually works and leave durable evidence.
Verification also checks that the implementation did not exceed the behavioral contract or frozen write boundary merely because the extra work looked reasonable.
When to use
After implementation, tests, bug fixes, data runs, or smoke checks.
Inputs
- Task name
SPEC.mdacceptance criteria, non-goals, constraints, invalid-if rules, optional implementation diff budget, optional change-proof contract, and optional test-sensitivity contract- Optional persisted
SCOPE.mdplus its frozen Git base - Commands run or to run
- Changed files
- Evidence to record
- Known risks or untested areas
- Optional operator profile
Verification depth
Workflow
- Update VERIFY.md with date + task name.
- Record commands run as short evidence entries with command, exit code, relevant output, interpretation, acceptance criterion covered, and remaining uncertainty. Keep each entry concise and auditable.
- For new verification records, maintain a machine-readable
Structured verification evidenceJSON block alongside the human-readable evidence. Use schema version 1 and one record per meaningful check with:check,command,exit_code,evidence_source,status,evidence, plus at least one ofrecorded_atorcommit. Usenullfor command fields when evidence is manual or artifact-backed. Keep evidence short; do not copy raw logs or secrets into the JSON block. When SPEC explicitly labels every acceptance criterionAC-1,AC-2, etc., set the matching singleacceptance_criterionID in each supporting check. The optional PR coverage summary reports gaps; linking evidence does not prove semantic correctness. When
SCOPE.mdandscripts/scope_gate.pyare available, run:python scripts/scope_gate.py --base <frozen-base>Record its status and relevant violations or review triggers. A scope-gate
FAILprevents PASS.REVIEW_REQUIREDalso prevents PASS until the named review is resolved.- If SPEC.md marks the compatibility probe gate
REQUIRED, rerun every named probe after implementation and record matching post-change evidence under the same Probe ID. Missing or mismatched probe evidence requires review; an explicit failed post-change probe prevents PASS. - If SPEC.md marks
Change proof requirement: REQUIRED, rerun every declared baseline probe using the exact same command, record proof exit code/evidence, and classifyDelta resultasPASS | FAIL | REVIEW_REQUIRED. The baseline commit must match the verification base. Missing or mismatched evidence requires review; an explicitFAILmeans the intended change was not proven. - If SPEC.md marks
Test sensitivity requirement: REQUIRED, perform the narrow fault-injection pass fromtest-mini: run the exact declared targeted test against one reversible fault, confirm the expected protected-behavior failure, restore the implementation, and prove the same test returns to PASS. Record the matching Sensitivity ID evidence in VERIFY.md. A surviving fault or wrong failure mode requires review; it is not automatically a functional failure. - If
scripts/verify_gate.pyis available, run it before marking verification complete. When SPEC.md declares anENFORCEDimplementation diff budget, inspect the deterministicdiff-budgetresult before PASS. Budget overruns areREVIEW_REQUIRED, not automatic functional failures. If repeated iterations were used, check for a loop contract, budget, ledger, revert rule, and stop condition before calling the work done. - When multiple durable workflow artifacts are present and
scripts/check_artifact_consistency.pyis available, run the cross-consistency linter before final PASS. It composes existing lineage, acceptance-coverage, compatibility, change-proof, and test-sensitivity contracts plus SPEC↔SCOPE, SCOPE↔VERIFY, and VERIFY↔HANDOFF consistency seams. Do not invoke it merely to require absent optional artifacts. - Before recording
PASS, add or refresh the verification freshness anchors and stamp the repository snapshot:
## Verification freshness
- Snapshot commit: `_TBD_`
- Workspace fingerprint: `_TBD_`python skills/verify-contract/scripts/verification_freshness.py stampThe fingerprint excludes VERIFY.md itself, so recording or committing the
verification artifact does not immediately invalidate it. Any later source,
test, fixture, dependency, or other repository-state change makes the stamped
evidence stale until affected verification is rerun and stamped again.
11. List changed files.
12. Run the spec ceiling check against the implemented behavior and diff.
13. Note working directory / environment assumptions if relevant.
14. Link artifacts/screenshots if relevant (supporting evidence only; automated checks preferred).
15. Note what was not tested and remaining risks.
16. If an operator profile provides Verification depth, use it only to size
optional proof beyond the required contract: targeted stops at required
evidence, standard adds cheap relevant regression proof, and expanded
allows additional adjacent high-value checks when low-cost. Required gates,
compatibility probes, and named risks remain mandatory in every mode.
17. Name the next safest task.
Verify gate
Status: PASS | FAIL | REVIEW_REQUIRED
- PASS only when contract probes pass, structured verification evidence is valid when present, every REQUIRED compatibility probe has matching post-change PASS evidence, every REQUIRED change proof establishes the intended delta, every REQUIRED test-sensitivity probe has killed-and-restored evidence, the scope gate passes when a persisted scope exists, any enforced implementation diff budget passes, active durable artifacts are cross-consistent when that linter applies, no diff guard requires review, and no spec ceiling violation is present.
- FAIL when behavior or contract probes fail, a required change proof explicitly reports the intended delta was not proven, a required post-change compatibility probe fails, the scope gate fails, or an explicit non-goal / invalid-if rule was violated.
- REVIEW_REQUIRED when behavior passes but evidence integrity is questionable, required change-proof evidence is missing or does not match the verification base, required test-sensitivity evidence is missing or a declared fault survives the targeted test, stamped verification is stale, the scope gate requires review, active durable artifacts contradict one another without a clear functional failure, an enforced implementation diff budget is exceeded or unmeasurable, or plausible extra behavior exceeds the written acceptance criteria and intent is ambiguous.
- REVIEW_REQUIRED is not the same as functional failure.
- When the deterministic verify gate supplies review reason codes, preserve them as routing metadata. Codes explain why review is required; they do not change top-level severity.
- If repeated iterations occurred without a loop contract, use REVIEW_REQUIRED.
- If loop budget, ledger, revert rule, or stop condition was violated, use REVIEW_REQUIRED or FAIL depending on whether the behavior contract failed.
- Do not treat loop activity as success merely because the final output looks plausible.
Review-required reason taxonomy:
When scripts/verify_gate.py returns REVIEW_REQUIRED, it also emits stable
machine-readable review_reasons with code, category, and details.
Keep the existing human-readable reason text. Use the code for routing, not as a
replacement status.
Common codes include:
SPEC_MISSING/SPEC_INCOMPLETEVERIFY_REVIEW_REQUESTEDSTRUCTURED_EVIDENCE_INVALIDCOMPATIBILITY_UNCERTAINVERIFICATION_STALE/VERIFICATION_FRESHNESS_UNESTABLISHEDDIFF_BUDGET_INCOMPLETE/DIFF_BUDGET_UNMEASURABLE/DIFF_BUDGET_EXCEEDEDPROTECTED_PATH_CHANGEDTESTS_CHANGEDFIXTURE_DATA_CHANGEDDEPENDENCIES_CHANGEDCHANGE_PROOF_UNESTABLISHEDTEST_SENSITIVITY_UNESTABLISHED/TEST_SENSITIVITY_SURVIVEDUNCLASSIFIED_REVIEWfor a review state not yet assigned a dedicated code
Do not invent a different severity from a reason code. A TESTS_CHANGED review
is still REVIEW_REQUIRED; a failed compatibility probe remains FAIL.
Structured verification evidence:
- Schema version:
1 - Required fields per check:
check,command,exit_code,evidence_source,status,evidence - Provenance: at least one of
recorded_atorcommit - Evidence sources:
command | artifact | manual | inferred - Status:
PASS | FAIL | REVIEW_REQUIRED
Once the section exists, malformed JSON, duplicate check IDs, unknown fields,
placeholder evidence, missing provenance, or a PASS command with a nonzero exit
code prevents PASS. An explicit structured FAIL is a verification failure.
Legacy artifacts without the section remain compatible.
Contract probes:
- Public import/API seams:
- CLI/output behavior:
- Config/default behavior:
- Edge/no-match behavior:
- Existing behavior preserved:
Compatibility probe evidence:
When SPEC.md says Compatibility probe requirement: REQUIRED, record one block
for every baseline Probe ID:
- Probe ID: TBD
- Post-change command: TBD
- Result: PASS | FAIL | REVIEW_REQUIRED
- Evidence: TBD
The Probe ID must match the pre-change baseline in SPEC.md. Missing, duplicate,
undeclared, or incomplete probe evidence prevents PASS. An explicit FAIL
means the compatibility seam regressed. Do not rewrite the baseline after implementation to make a changed behavior look compatible.
Change proof evidence:
When SPEC says Change proof requirement: REQUIRED, VERIFY.md must carry one
matching Change ID block for each recorded baseline:
- Change ID: TBD
- Proof command: TBD
- Proof exit code: TBD
- Delta result: PASS | FAIL | REVIEW_REQUIRED
- Proof evidence: TBD
The proof command must exactly match the baseline command, and the recorded
baseline commit must match the verification base. PASS requires proof exit
code 0. Missing or mismatched evidence is REVIEW_REQUIRED; explicit FAIL
means the intended behavioral delta was not established.
Do not rewrite the baseline after implementation to manufacture a clean before/after comparison. Use the compatibility probe gate separately for seams that are expected to remain unchanged.
Test sensitivity evidence:
When SPEC says Test sensitivity requirement: REQUIRED, VERIFY.md must carry
one matching Sensitivity ID block for each declared probe. PASS requires:
- the exact declared
Test commandis rerun after fault injection; - the mutated run exits nonzero;
- the expected protected-behavior failure is explicitly observed;
- concise failure evidence is recorded;
- the fault is fully restored;
- the same targeted test returns exit code 0 after restoration.
A generic syntax/import/setup crash does not count as killing the fault. A fault
that survives, fails for the wrong reason, or cannot be restored cleanly remains
REVIEW_REQUIRED. This check validates evidence; it does not execute mutation
testing automatically.
Scope adherence:
- Scope gate: PASS | FAIL | REVIEW_REQUIRED | NOT_APPLICABLE
- Out-of-scope writes: none | describe
- Read-only / forbidden paths touched: none | describe
- Review triggers resolved: yes/no/not applicable
- Scope artifact widened after implementation began: no | describe
Any scope-gate FAIL prevents PASS. Unresolved scope-gate REVIEW_REQUIRED also prevents PASS.
Operator-profile Verification depth never lowers this floor. It controls only
optional proof beyond the task contract and deterministic gates.
Spec ceiling:
- Unspecified user-visible / API / schema behavior added: yes/no
- Explicit non-goal implemented: yes/no
- Adjacent refactor or cleanup beyond necessary support: yes/no
- Necessary spec expansion discovered but not written down first: yes/no
Any yes above prevents PASS. Use FAIL for a clear contract violation; use
REVIEW_REQUIRED when the extra behavior may be reasonable but was not authorized by the
written spec.
Implementation diff budget:
- Requirement:
ENFORCED | NOT_APPLICABLE - Max changed files: from SPEC.md
- Max added lines: from SPEC.md
- Workflow-control artifacts do not consume the implementation budget.
- Exceeding the budget requires review before PASS; it does not by itself prove a functional or contract failure.
- Do not enlarge the recorded budget after implementation merely to make the gate green.
Diff guards:
- Protected paths touched: yes/no
- Tests changed: yes/no
- Fixture/data changed: yes/no
- Dependencies changed: yes/no
Credential boundary check:
- Confirm
.envor local secret files were not modified unless they were explicitly in scope. - Confirm no API keys, tokens, cookies, passwords, or private URLs were added.
- If a secret is needed, document only the environment variable name. Environment variable names are okay; raw secret values are not.
- Run a repo secret scan if one already exists and is easy to invoke.
- Mark
REVIEW_REQUIREDif credential exposure is uncertain.
This is a lightweight workflow check, not a secret scanner or a replacement for permissions, secret scanning, or runtime controls.
Verification freshness:
- Snapshot commit:
_TBD_ - Workspace fingerprint:
_TBD_
A stamped freshness mismatch prevents PASS. Rerun the affected verification,
update VERIFY.md, and stamp the new repository state rather than carrying
forward old evidence.
Review required because:
- TBD
Outputs
- VERIFY.md entry with human-readable and machine-readable evidence
- Verify gate status
- Deterministic review reason codes when the verify gate requires review
- Matched compatibility probe evidence when the spec requires it
- Baseline-to-post-change proof evidence when the spec requires it
- Test-sensitivity fault-injection evidence when the spec requires it
- Scope-gate status when a persisted scope exists
- Diff-budget status when SPEC.md opts into enforcement
- Pass/fail summary + automated/manual/inferred status
- Spec ceiling result
- Remaining / untested risks
- Next safest task
Success looks like
Good VERIFY.md entry:
2026-06-09 - Implement user export
Environment: Python 3.11, clean venv
Command: ./run_export_test.sh
Exit code: 0
Relevant output: export summary matched fixture
Interpretation: passed
Acceptance criterion covered: user export happy path
Remaining uncertainty: large dataset edge case
Command: python -m pytest tests/export_test.py
Exit code: 0
Relevant output: 12 passed
Interpretation: passed
Acceptance criterion covered: test coverage for export behavior
Remaining uncertainty: none known
Scope gate: PASS — all changed files remained within SCOPE.md
Spec ceiling: PASS — no unspecified behavior or adjacent cleanup added
Changed: src/export.py, tests/export_test.py
Not tested: large dataset edge case
Remaining risks: large dataset edge case (monitor in prod)
Next: Add scheduling wrapperStop conditions
- Evidence is recorded clearly.
- Persisted scope was checked against the live diff.
- Spec ceiling was checked against the actual diff and behavior.
- Scope or verification failures trigger diagnosis; do not mark them as passed.
Anti-patterns
- "Looks good" without evidence.
- Adding machine-readable fields that contradict the human-readable result.
- Copying full logs, secrets, or noisy tool output into structured evidence.
- Hiding failed commands.
- Marking PASS after a scope-gate failure or unresolved review trigger.
- Editing code after verification and leaving the old PASS evidence stamped as current.
- Recording compatibility expectations only after implementation, when the baseline can no longer constrain the change.
- Recording or rewriting a change-proof baseline after implementation, when the before state can no longer constrain the proof.
- Rewriting
SCOPE.mdafter implementation to retroactively authorize the diff. - Calling extra behavior harmless because tests still pass.
- Using screenshots as primary evidence for non-visual tasks.
- Counting an unrelated test crash as a killed fault.
- Leaving a deliberate fault in the working tree after a sensitivity check.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

