Skip to content

feat(cli): add /receipts slash command for execution receipts management#14838

Closed
MestreY0d4-Uninter wants to merge 10 commits into
NousResearch:mainfrom
MestreY0d4-Uninter:feat/execution-receipts-cli
Closed

feat(cli): add /receipts slash command for execution receipts management#14838
MestreY0d4-Uninter wants to merge 10 commits into
NousResearch:mainfrom
MestreY0d4-Uninter:feat/execution-receipts-cli

Conversation

@MestreY0d4-Uninter

Copy link
Copy Markdown
Contributor

Depends on #14836 (core engine).

Adds operator-facing CLI for execution receipts:

  • hermes_cli/receipts.py — list, get, query, prune, reconcile, status
  • cli.py — register /receipts slash command
  • hermes_cli/commands.py — register in COMMAND_REGISTRY

Split from #9209.
Closes #9209 (partial)

- Add tools/execution_receipts.py: durable JSON receipt artifacts
  indexed in SQLite for query, reconcile, and prune operations.
- Add tools/execution_receipts_tool.py: operator-facing tool
  registration for list/query/get/prune/reconcile/maintenance.
- Register execution_receipts in HERMES_CORE_TOOLS.
- Add tests for receipt dataclass, ledger, and tool surface.

Split from NousResearch#9209.
Closes NousResearch#9209 (partial)
Add hermes_cli/receipts.py with subcommands:
  list, get, query, prune, reconcile, status

Register /receipts in HermesCLI slash command dispatcher and
COMMAND_REGISTRY.

Split from NousResearch#9209.
Closes NousResearch#9209 (partial)
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard comp/tools Tool registry, model_tools, toolsets tool/delegate Subagent delegation labels Apr 24, 2026
@MestreY0d4-Uninter

Copy link
Copy Markdown
Contributor Author

Audit/update 2026-04-25:

This was part of the open-PR cleanup pass against current upstream/main.

@MestreY0d4-Uninter

Copy link
Copy Markdown
Contributor Author

Refreshed this PR onto current main and the execution-receipts core branch, then re-applied only the /receipts CLI integration on top.

Validation run locally:

  • python3 -m py_compile cli.py hermes_cli/commands.py hermes_cli/receipts.py tools/execution_receipts.py tools/execution_receipts_tool.py
  • /receipts smoke check via resolve_command, COMMANDS, SUBCOMMANDS, handle_receipts_command('status'), and handle_receipts_command('list --limit 1')
  • ./scripts/run_tests.sh tests/test_execution_receipts_impl.py tests/tools/test_registry.py tests/hermes_cli/test_commands.py -q183 passed
  • Targeted check for CI-only PR-delta-looking failures also passed locally on both this branch and clean main.

Remote state after push:

  • Head: 3d36f045016a8225ca1098fb5711c5675ab87d3c
  • GitHub reports MERGEABLE.
  • Passing checks: attribution, lockfile check, supply-chain audit, e2e, Nix macOS.
  • Failing checks appear baseline/unrelated: current main at 42b917c92ce8a1e306bdbcaf04029e8f80ceba83 is also red for both Tests and Nix; the Nix Ubuntu failure is the same npmDepsHash is out of date / package-lock.json mismatch.

I kept the remediation scoped to the receipts CLI surface and did not fold in unrelated fixes for the current main CI noise.

@MestreY0d4-Uninter

Copy link
Copy Markdown
Contributor Author

Closing this for now to reduce stale review surface. The execution-receipts stack has drifted from current main, and this top PR now conflicts in cli.py / hermes_cli/commands.py. If the feature is still needed, rebuilding it as a fresh smaller slice would be cleaner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard comp/tools Tool registry, model_tools, toolsets P3 Low — cosmetic, nice to have tool/delegate Subagent delegation type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants