feat: add execution receipts and direct terminal work-order lane#8402
Closed
MestreY0d4-Uninter wants to merge 1 commit into
Closed
feat: add execution receipts and direct terminal work-order lane#8402MestreY0d4-Uninter wants to merge 1 commit into
MestreY0d4-Uninter wants to merge 1 commit into
Conversation
Contributor
Author
|
Quick CI note after opening this PR:
So the current red CI does not appear to come from this H007 change set itself. If maintainers want, I can still help split out or separately investigate the existing Docker/test baseline issues. |
Contributor
Author
|
Superseded by #9209 — clean reimplementation on current main (v0.9.0). The original branch was too far behind main to refresh cleanly. #9209 reimplements the same concepts (receipt ledger, SQLite index, operator surfaces) from scratch with:
See #9209. |
MestreY0d4-Uninter
added a commit
to MestreY0d4-Uninter/hermes-agent
that referenced
this pull request
Apr 14, 2026
Durable execution receipt system for Hermes — makes delegated task execution inspectable, auditable, and manageable. ## Receipt Ledger (tools/execution_receipts.py) - ExecutionReceipt: task_id, status, duration, execution_path, tool_calls - JSON persistence under HERMES_HOME/execution-receipts/ - SQLite ledger indexed by task_id, timestamp, status - CRUD: create, finalize, get, list, query, prune, reconcile - Lazy auto-prune (~2% chance per receipt, keeps 1 week + min 50) ## Auto-Instrumentation (tools/delegate_tool.py) - Receipt automatically created when _run_single_child starts - Receipt automatically finalized on success/error - Non-fatal: receipt failures never break delegation ## Tool Surface (tools/execution_receipts_tool.py) - 'execution_receipts' tool in 'execution' toolset - Actions: list, query, get, prune, reconcile, maintenance_status ## CLI (hermes_cli/receipts.py) - /receipts list|get|query|prune|reconcile|status ## Tests: 22 passed (13 new + 2 integration + 7 tool surface) Supersedes NousResearch#8402.
MestreY0d4-Uninter
added a commit
to MestreY0d4-Uninter/hermes-agent
that referenced
this pull request
Apr 19, 2026
Durable execution receipt system for Hermes — makes delegated task execution inspectable, auditable, and manageable. - ExecutionReceipt: task_id, status, duration, execution_path, tool_calls - JSON persistence under HERMES_HOME/execution-receipts/ - SQLite ledger indexed by task_id, timestamp, status - CRUD: create, finalize, get, list, query, prune, reconcile - Lazy auto-prune (~2% chance per receipt, keeps 1 week + min 50) - Receipt automatically created when _run_single_child starts - Receipt automatically finalized on success/error - Non-fatal: receipt failures never break delegation - 'execution_receipts' tool in 'execution' toolset - Actions: list, query, get, prune, reconcile, maintenance_status - /receipts list|get|query|prune|reconcile|status Supersedes NousResearch#8402.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
H007 line overview
This PR is part 1 of the H007 line: a narrow, evidence-backed durable execution fabric for direct structured terminal work orders.
The line is intentionally split for reviewability:
The key goal is to keep the claim narrow and testable rather than implying that general orchestration is solved.
Motivation
Hermes can already delegate work, but delegated execution is hard to audit and hard to reason about operationally.
This PR makes delegated execution inspectable:
HERMES_HOMEWhat this PR changes
tools/execution_receipts.pytools/execution_receipts_tool.pylist,query,prune,reconcile,maintenance_status,install_maintenance,remove_maintenancehermes receipts .../receipts ...execution_envelopeandcontext_packagethrough the delegate pathValidation
Focused local validation on this branch:
Result:
421 passed, 1 warningExternal real-run evidence for the supported direct lane that this PR surfaces:
4.35s0.20s95.4%faster on the validated supported slice40/40valid runs40/40exact-match runsNotes for reviewers
This PR intentionally does not claim:
The claim is intentionally narrow:
If the overall H007 direction looks good, the follow-up queue/control-plane PR is already prepared as #8403.