You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Optional pre-registration receipt for recipe runs (commit acceptance criteria before the run) #489
Moonshot bundles datasets, prompt templates, metrics and a grading scale into a RecipeArguments unit and produces ResultArguments. Everything a relying party would want fixed before a run is already present in the recipe: dataset identity, metrics, grading scale. What is missing is a way to show, after the fact, that those were fixed before the results were produced.
Proposal (optional, off by default): a small exporter that serialises the recipe's evaluation criteria (dataset id + content hash, metric, comparison rule, threshold or grade band where applicable, seed where applicable) into a canonical record, computes its SHA-256, and optionally anchors it to an independent timestamp (RFC 3161 or a transparency log) before the run starts. The receipt is stored next to the result. PRML (application/vnd.prml+yaml, IANA-registered; MIT reference implementations in Python/JS/Go/Rust) is one candidate record format; the exporter could equally target a Moonshot-native schema, and I would follow the maintainers' preference. It complements, not overlaps, #488 (EvalPort covers datasets/results portability; this covers the chronology of the criteria).
Before writing code: is this something the maintainers would consider? If yes, I would open a PR with the exporter behind a flag, tests, and docs.
This looks useful if the receipt separates the run contract from the governance crosswalk.
For Moonshot, I would keep the pre-run record native to the recipe: dataset ids + content hash, prompt template version, metric, threshold or grade band, seed, model/SUT identity, and evaluator version. Then add an optional framework_profile block:
framework/version: NIST AI RMF 1.0, ISO/IEC 42001:2023, the EU AI Act obligation set, or an industry profile
control or requirement id being operationalized
evidence access assumed: public dataset, licensed internal dataset, or confidential red-team set
what the run can decide, for example threshold met for this recipe
does_not_prove: compliance, model safety, or suitability outside this dataset
That would let a bank, publisher, or lab rerun the same Moonshot recipe while attaching different governance obligations without changing the measurement path. The important failure control is a planted drift: same result record, but one pre-run criterion, dataset hash, or threshold changed. The verifier should report DRIFT/UNVERIFIABLE rather than letting a clean result file imply the criteria were fixed.
I do not mean this as a compliance layer or scorer-validity proof. It is just a chronology/evidence check beside the evaluation. If maintainers are open to this, I would suggest making the framework crosswalk optional metadata in a Moonshot-native receipt first, then PRML export later if there is demand.
Agreed on separating the measurement record from the governance crosswalk. I also like the planted-drift test: keeping the result fixed while changing one pre-run criterion is a clean way to make sure a verifier does not treat a valid result file as evidence that the criteria themselves were unchanged.
On a Moonshot-native receipt first, that is consistent with what I had in mind. The issue deliberately leaves the record format open, and I would follow the maintainers' preference rather than make PRML a requirement.
The framework_profile idea also seems cleaner as optional metadata than as part of the measurement contract itself.
Activity
HarperZ9 commentedon Sep 15, 2026
This looks useful if the receipt separates the run contract from the governance crosswalk.
For Moonshot, I would keep the pre-run record native to the recipe: dataset ids + content hash, prompt template version, metric, threshold or grade band, seed, model/SUT identity, and evaluator version. Then add an optional
framework_profileblock:does_not_prove: compliance, model safety, or suitability outside this datasetThat would let a bank, publisher, or lab rerun the same Moonshot recipe while attaching different governance obligations without changing the measurement path. The important failure control is a planted drift: same result record, but one pre-run criterion, dataset hash, or threshold changed. The verifier should report DRIFT/UNVERIFIABLE rather than letting a clean result file imply the criteria were fixed.
I have a small public byte-witness pattern in EMET 1.3.0 for changed bytes and missing evidence: https://github.com/HarperZ9/emet/blob/v1.3.0/test_reporter_flywheel.py
I do not mean this as a compliance layer or scorer-validity proof. It is just a chronology/evidence check beside the evaluation. If maintainers are open to this, I would suggest making the framework crosswalk optional metadata in a Moonshot-native receipt first, then PRML export later if there is demand.
sk8ordie84 commentedon Sep 15, 2026
Thanks, this is a careful read.
Agreed on separating the measurement record from the governance crosswalk. I also like the planted-drift test: keeping the result fixed while changing one pre-run criterion is a clean way to make sure a verifier does not treat a valid result file as evidence that the criteria themselves were unchanged.
On a Moonshot-native receipt first, that is consistent with what I had in mind. The issue deliberately leaves the record format open, and I would follow the maintainers' preference rather than make PRML a requirement.
The
framework_profileidea also seems cleaner as optional metadata than as part of the measurement contract itself.Thanks for taking the time to look at it.