feat(certification): state binding phase 3 — brick transition replayer + R9 - #207
Draft
IanFrelinger wants to merge 2 commits into
Draft
feat(certification): state binding phase 3 — brick transition replayer + R9#207IanFrelinger wants to merge 2 commits into
IanFrelinger wants to merge 2 commits into
Conversation
…format, project C - ICertifiedBehaviorCatalog with in-memory and file-backed catalogs - CertifiedBehaviorCertificateResolver and AttestedStateLogTrustGate + DI - AttestedStateLogWireFormat JSON round-trip - Project C cross-project reuse sample with bundled phase-witness artifacts - A2 Tier-2 admission, catalog/wire/cross-project/trust-gate tests - cert-gate count 60; evidence ledger section added Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
…r + R9 Implement production Tier-2 replay via BrickTransitionReplayer: Roslyn-compiles certified brick source, executes deterministically, and compares resulting state hashes. Add compilable phase witness bricks, path-safe behavior catalog dirs, IBrickTransitionReplayerFactory DI registration, R9 out-of-band tamper test, A3 brick replay admission, and trust gate Tier-2 coverage. cert-gate: 63 tests. Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Phase 3 of attested state log binding: production Tier-2 replay via certified brick execution.
This branch includes Phase 2 commits (
26b4003e) if PR #206 is not yet merged.Production replayer
BrickTransitionReplayer— compiles certified brick source (Roslyn), executes deterministically, comparesresultingStateHashCertifiedBrickInstantiator— shared Roslyn loader for replayIBrickTransitionReplayerFactory+ DI registration inAddAttestedStateLogTrust()Witness behaviors
PhaseAdvanceBrick/PhaseReleaseBrickunderNexo.Certified.PhaseWitness/bricks/FileCertifiedBehaviorCatalogpath-safe dirs (/→_) for base64 content hashesTests (cert-gate: 63)
R9_OutOfBandStateTamperReplayMismatch_RefusesA3_FullyValidLogWithBrickReplay_IsTrustedTrustGate_FromDi_TrustsBundledSampleLogWithBrickReplayExisting R8 (swapped cert) and A2 (fake replayer seam) unchanged.
API
StateSchema.StateBindingVersionexposed for replay inputsTest plan
bash scripts/run-cert-gate.sh— 63/63 passed locallyAttestedStateLogBindingTestsR1–R9, A1–A3, G1AttestedStateLogTrustGateTestsTier-1 + Tier-2CrossProjectStateLogReuseTests(bundled artifacts updated)