semi implemented and features implemented save checkpoint

This commit is contained in:
master
2026-02-08 18:00:49 +02:00
parent 04360dff63
commit 1bf6bbf395
20895 changed files with 716795 additions and 64 deletions

View File

@@ -0,0 +1,31 @@
# Single Canonical Verdict Attestation per Subject
## Module
Attestor
## Status
IMPLEMENTED
## Description
VerdictBuilder service produces signed verdict attestations with DSSE envelopes, enabling single canonical verdict per artifact.
## Implementation Details
- **Verdict Receipt Statement**: `src/Attestor/__Libraries/StellaOps.Attestor.ProofChain/Statements/VerdictReceiptStatement.cs` -- in-toto statement wrapping the single canonical verdict for a subject.
- **Verdict Receipt Payload**: `Statements/VerdictReceiptPayload.cs` -- payload with decision, inputs, outputs, and rationale.
- **Verdict Decision**: `Statements/VerdictDecision.cs` -- the canonical decision (Pass/Fail/Warn).
- **Statement Builder**: `Builders/StatementBuilder.cs` -- builds the verdict statement with subject binding.
- **Proof Subject**: `Builders/ProofSubject.cs` -- binds the verdict to a single artifact digest (subject).
- **DSSE Signing**: `Signing/ProofChainSigner.cs` -- signs the canonical verdict into a DSSE envelope.
- **Content-Addressed ID**: `Identifiers/ContentAddressedIdGenerator.cs` -- generates a unique content-addressed ID for the verdict.
- **Verdict Ledger**: `__Libraries/StellaOps.Attestor.VerdictLedger/VerdictLedgerService.cs` -- ensures single canonical verdict per subject in the ledger.
- **Trust Verdict Service**: `__Libraries/StellaOps.Attestor.TrustVerdict/Services/` -- trust verdict service managing canonical verdicts.
- **Tests**: `__Tests/StellaOps.Attestor.ProofChain.Tests/VerdictCanonicalTests.cs`
## E2E Test Plan
- [ ] Create a verdict for a subject digest via `StatementBuilder` and sign it; verify the DSSE envelope binds to exactly one subject
- [ ] Verify the verdict content-addressed ID is deterministic for the same decision and inputs
- [ ] Create a second verdict for the same subject and verify the canonical verdict is the latest one
- [ ] Query the verdict ledger for a subject and verify only one canonical verdict is returned
- [ ] Verify the canonical verdict contains complete inputs and outputs for auditability
- [ ] Create verdicts for different subjects and verify each subject has its own canonical verdict
- [ ] Verify the DSSE signature binds the verdict to the immutable artifact digest