Finish FLEX-WP-0019 layer-model v0.7 conformance
Close the remaining PDP obligations: mechanical layer declaration check, registry-snapshot digest in provenance, explicit allow TTL, per-input-class freshness deadlines, and the published decision-record contract. Document the canonical request digest as the §6.4.2 replay test. Assistant: grok Assistant-Session: 01a06256-fb71-7102-b3a9-27e6734257d0
This commit is contained in:
parent
9689894c15
commit
56940727bf
32 changed files with 1194 additions and 111 deletions
|
|
@ -137,6 +137,12 @@ func (s *Store) Snapshot() Snapshot {
|
|||
}
|
||||
}
|
||||
|
||||
// Digest is the SHA-256 of the canonical JSON snapshot. Two stores with the
|
||||
// same records agree; a changed record changes the digest.
|
||||
func (s *Store) Digest() string {
|
||||
return api.CanonicalDigest(s.Snapshot())
|
||||
}
|
||||
|
||||
// PutProtectedSystem stores or replaces a protected system manifest.
|
||||
func (s *Store) PutProtectedSystem(system api.ProtectedSystemManifest) error {
|
||||
if system.ID == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue