Domain the run answers for.
Stable run identity; non-blank.
Design revision read; non-blank.
Honest outcome, kept by reference in the sealed run.
Canonical text of every setting that changes the result; the run stores only its digest.
Solver identity, kept by reference in the sealed run.
Open subject label; non-blank.
Seal one run: digest the settings, check the record, and digest it only once it is known to validate.
Building and checking are the same call on purpose. A builder that can hand back an invalid artifact is a hole in exactly the contract this module exists to hold, so the seal applies the same contents rules a deserialized run faces (
validateAutoMovieAnalysisRunContents) and throws on the first violation rather than shipping it. The error names the run id and the first violation's path and expectation. The digest it then writes is the onevalidateAutoMovieAnalysisRunrecomputes, so the sealed run validates.The settings text is kept only as its SHA-256 digest. The returned run holds the caller's
solverandoutcomeobjects by reference rather than copying them, so editing a covered field after sealing generally breaks digest agreement; unencoded extra fields and numerically equivalent signed zeros do not change the canonical text, and a digest is not a collision-free identity proof.