Skip to content

Add receipt command for job run-efficiency metrics and supporting t…#17

Merged
professorpalmer merged 2 commits into
professorpalmer:mainfrom
kbentonferguson:bferguson/job-run-receipt
Jul 9, 2026
Merged

Add receipt command for job run-efficiency metrics and supporting t…#17
professorpalmer merged 2 commits into
professorpalmer:mainfrom
kbentonferguson:bferguson/job-run-receipt

Conversation

@kbentonferguson

Copy link
Copy Markdown
Contributor

Summary

Add an explicit puppetmaster receipt <job_id> command for objective run-efficiency telemetry.
This keeps existing show, status, and cost behavior unchanged while giving operators one compact receipt for context/performance tax: degraded tasks, typed artifacts, empty/unstructured signals, stdout-salvage markers, token totals, and tokens per typed artifact.

Why

No direct answer for: “Was this run useful, or mostly transport/degrade/context tax?” Operators currently infer that manually from stitched summaries, verification artifacts, token ledgers, and stdout captures.

Tests

• python3 -m pytest tests/test_puppetmaster.py::PuppetmasterTests::test_job_receipt_summarizes_run_efficiency_metricstests/test_puppetmaster.py::PuppetmasterTests::test_job_receipt_command_parses_explicit_json_flag -q
• python3 -m py_compile puppetmaster/receipt.py puppetmaster/cli/_parser.py puppetmaster/cli/_dispatch.pypuppetmaster/cli/commands_gate.py
• python3 -m puppetmaster receipt <last_job> --json | python3 -m json.tool
• python3 -m pytest tests/test_puppetmaster.py -q -k 'not test_claude_and_codex_gate_on_resolvable_binary and nottest_setup_installs_hooks'

kbentonferguson and others added 2 commits July 9, 2026 15:52
Implement jobs were scored as zero-typed without PATCH. Add puppetmaster_job_receipt MCP parity with cost, drop unused datetime imports, and use Optional for the 3.9 floor.
@professorpalmer professorpalmer force-pushed the bferguson/job-run-receipt branch from dd5db51 to 8a843cb Compare July 9, 2026 20:53
@professorpalmer professorpalmer merged commit f5bb35e into professorpalmer:main Jul 9, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants