verify-contract
Skill4 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 repository20 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
- grill-with-docs-liteSkill
- handoffSkill
- lean-modeSkill
- mini-specSkill
- 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
17 rules. About 0 are common, 10 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
7
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 30
Update VERIFY.md with date + task name.
- Distinctive: line 33
Keep each entry concise and auditable.
- Very specific: line 34
When SCOPE.md and scripts/scope_gate.py are available, run:
- Very specific: line 41
If SPEC.md marks the compatibility probe gate REQUIRED, rerun every named probe after implementation and record matching post-change …
- Very specific: line 45
If scripts/verify_gate.py is available, run it before marking verification complete.
- Distinctive: line 46
If repeated iterations were used, check for a loop contract, budget, ledger, revert rule, and stop condition before calling the work done.
- Very specific: line 48
Before recording PASS, add or refresh the verification freshness anchors and stamp the repository snapshot:
- Distinctive: line 67
Run the spec ceiling check against the implemented behavior and diff.
- Very specific: line 81
If repeated iterations occurred without a loop contract, use REVIEW_REQUIRED.
- Very specific: line 82
If loop budget, ledger, revert rule, or stop condition was violated, use REVIEW_REQUIRED or FAIL depending on whether the behavior contract …
- Distinctive: line 84
Do not treat loop activity as success merely because the final output looks plausible.
- Very specific: line 96
When SPEC.md says Compatibility probe requirement: REQUIRED, record one block for every baseline Probe ID:
- Distinctive: line 112
Read-only / forbidden paths touched: none | describe
- Distinctive: line 140
If a secret is needed, document only the environment variable name.
- Distinctive: line 141
Run a repo secret scan if one already exists and is easy to invoke.
- Distinctive: line 162
VERIFY.md entry with evidence
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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, and invalid-if rules- Optional persisted
SCOPE.mdplus its frozen Git base - Commands run or to run
- Changed files
- Evidence to record
- Known risks or untested areas
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.
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
scripts/verify_gate.pyis available, run it before marking verification complete. If repeated iterations were used, check for a loop contract, budget, ledger, revert rule, and stop condition before calling the work done. 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.mditself, 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.- List changed files.
- Run the spec ceiling check against the implemented behavior and diff.
- Note working directory / environment assumptions if relevant.
- Link artifacts/screenshots if relevant (supporting evidence only; automated checks preferred).
- Note what was not tested and remaining risks.
- Name the next safest task.
Verify gate
Status: PASS | FAIL | REVIEW_REQUIRED
- PASS only when contract probes pass, every REQUIRED compatibility probe has matching post-change PASS evidence, the scope gate passes when a persisted scope exists, no diff guard requires review, and no spec ceiling violation is present.
- FAIL when behavior or contract probes fail, 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, stamped verification is stale, the scope gate requires review, or plausible extra behavior exceeds the written acceptance criteria and intent is ambiguous.
- REVIEW_REQUIRED is not the same as functional failure.
- 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.
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.
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.
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.
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 evidence
- Verify gate status
- Matched compatibility probe evidence when the spec requires it
- Scope-gate status when a persisted scope exists
- 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.
- 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.
- 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.
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.

