Add versioned execution receipts#469
Draft
MaxGhenis wants to merge 1 commit into
Draft
Conversation
Introduce an engine-neutral provenance contract and bind validated receipts into simulation TRACE run records. Refs #468
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.
Fixes #468
Why
PolicyEngine needs reproducible execution identity across its current Python runtime and the planned migration to Axiom and Populace. Mutable selectors such as
latest,default, and dataset aliases describe intent, but they do not prove which runtime, rules, packages, or population artifact actually produced a result.What changed
execution-receipt.json, and bind it as the runtime artifact in the simulation TRACE record.policyenginepackage and document it with a Towncrier fragment.This gives API and application surfaces a stable provenance envelope during the Axiom/Populace transition while preserving the existing PolicyEngine TRACE representation.
Validation
uv run pytest— 736 passeduv run mypy src/policyengine/execution.py— passedmake lint— Ruff formatting and lint checks passedgit diff --check— passed