mirror of
https://github.com/github/awesome-copilot.git
synced 2026-08-14 13:16:54 +00:00
1.8 KiB
1.8 KiB
Machine-readable receipt contract
Use JSON only when the user, CI, or another tool needs a structured artifact. Keep the normal final answer human-readable.
Required fields
version: integer2for new receipts. Version1remains accepted for compatibility.status:verified,partial, orblocked.evidenceSource:executed-now,supplied, ormixed(required in version2).problem: concise defect and intended behavior.baseline: object withcommand,result, andevidence.rootCause: object withsummaryand at least one evidence item forverified.changes: array of{ "file", "summary" }objects.verification: array of{ "command", "result", "evidence" }objects.gaps: array of explicit missing proof statements.
Baseline results are failed, observed, or not-run. Verification results are passed, failed, or not-run.
Status invariants
For verified:
- Require an observed baseline:
failedorobserved, nevernot-run. - Require at least one concrete root-cause evidence item with
locationandobservation. - Require at least one changed file or artifact.
- Require at least one verification item.
- Require every verification result to be
passed. - Require
gapsto be empty.
For partial:
- Preserve all evidence obtained.
- Put every missing or inconclusive proof layer in
gaps. - Never convert an unrun check into
passed.
For blocked:
- Require at least one gap naming the external blocking condition.
- Leave unperformed work empty or mark it
not-run; do not speculate about the result.
Validate against receipt.schema.json, run node scripts/validate-receipt.mjs <file> from the skill directory, pipe JSON to node scripts/validate-receipt.mjs - --json, or use bug-receipt check <file> when the package CLI is installed.