diff --git a/skill-template/CHANGELOG.md b/skill-template/CHANGELOG.md new file mode 100644 index 0000000..34f1f78 --- /dev/null +++ b/skill-template/CHANGELOG.md @@ -0,0 +1 @@ +6/16/26: improved the receipt sections so that a durable, first class artifact is left so any future agent/process will know exactly what was run and how to accomplish the task. Pulled from https://x.com/ishaansehgal/status/2065129901427130678 \ No newline at end of file diff --git a/skill-template/ratchet-based-skill-framework.md b/skill-template/ratchet-based-skill-framework.md index 694a20d..6a3dc7b 100644 --- a/skill-template/ratchet-based-skill-framework.md +++ b/skill-template/ratchet-based-skill-framework.md @@ -178,9 +178,17 @@ Before finishing, verify: ## Run Receipt -For serious skills, leave a durable receipt containing: +For serious skills, leave a durable, inspectable receipt. Treat the receipt as the replay/audit record for the skill run, not merely a human-readable final summary. +The receipt should let a future agent answer: + +- what skill ran +- under what version/context it ran - inputs used +- assumptions made +- capabilities used +- tool calls or commands executed +- external state changed - outputs produced - validations run - failures found @@ -188,6 +196,9 @@ For serious skills, leave a durable receipt containing: - ratchet artifacts added - unresolved risks - follow-up recommendations +- how the run could be resumed, audited, forked, or repeated + +If the receipt is compacted into a final response, preserve the full receipt as a file, JSON artifact, test log, or run directory whenever the workflow is important. A final-response summary is a projection of the receipt; it is not the receipt itself. ## Edge Cases @@ -228,6 +239,8 @@ Report: - what was validated - what failed and was fixed - what ratchet artifact was added or updated + +The final report is for the user. The run receipt is for future agents, auditors, and maintainers. Do not rely on the final response as the only record of a serious skill run. ``` ## The Ratchet Loop @@ -572,9 +585,19 @@ For serious skills, require an inspectable receipt. ```md ## Run Receipt +Treat the receipt as the replay/audit record for the skill run, not merely a human-readable final summary. + Record: +- skill name +- skill version or source +- executor context +- user request - inputs used +- assumptions made +- capabilities used +- tool calls or commands executed +- external state changed - outputs produced - validations run - failures found @@ -582,9 +605,18 @@ Record: - ratchet artifacts added - unresolved risks - follow-up recommendations +- resume notes ``` -The receipt can be a Markdown report, JSON artifact, test log, run directory, or final-response block. The key is that future agents can inspect what happened without reconstructing it from memory. +The receipt can be a Markdown report, JSON artifact, test log, run directory, or final-response block. For important workflows, preserve the full receipt outside the final response. The key is that future agents can inspect what happened without reconstructing it from memory. + +### Receipt Vs Final Report + +The final report is for the user. + +The run receipt is for future agents, auditors, and maintainers. + +Do not rely on the final response as the only record of a serious skill run. If the workflow changed files, made decisions, ran validations, skipped validations, discovered failures, or added ratchet artifacts, preserve those facts in the receipt. ### Responsibilities