Commit 2b8f825
committed
feat(prism): emit ExecutionProof in work-unit result payload (M3 prism-proof)
Add src/prism_challenge/proof.py: ExecutionProof v1 envelope (schema-compatible
with the base worker plane), canonical manifest hashing (sha256 over
json.dumps(manifest, sort_keys=True, indent=2) == the exact on-disk bytes of
prism_run_manifest.v2.json), tier computation from injected provider env
(tier 0 default; tier 1 needs BOTH image digest AND pod metadata; tier 2 only
with a non-null attestation payload), and an sr25519 worker signature over the
pinned message sha256(f'{manifest_sha256}:{unit_id}') (identical to the base
agent, VAL-AGENT-008/VAL-PRISM-006).
Wire emission into the validator finalization path: the dispatch result payload
carries exactly one signed proof at successful finalization, gated on a new
prism worker_plane config block (enabled by default OFF -> legacy behavior).
Proof construction reads only the manifest + a fixed non-secret provider env
allowlist and never the held-out split config or LLM keys (VAL-PRISM-008).
Fulfills VAL-PRISM-001/002/003/004/005/006/008.1 parent 5e0387f commit 2b8f825
7 files changed
Lines changed: 1104 additions & 7 deletions
File tree
- src/prism_challenge
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
12 | 32 | | |
13 | 33 | | |
14 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
15 | 39 | | |
16 | 40 | | |
| 41 | + | |
| 42 | + | |
17 | 43 | | |
18 | 44 | | |
19 | 45 | | |
| |||
0 commit comments