Skip to content

feat(certification): state binding phase 5 — full trust + portable bundled verifier - #209

Draft
IanFrelinger wants to merge 4 commits into
masterfrom
cursor/state-log-full-trust-1b05
Draft

feat(certification): state binding phase 5 — full trust + portable bundled verifier#209
IanFrelinger wants to merge 4 commits into
masterfrom
cursor/state-log-full-trust-1b05

Conversation

@IanFrelinger

Copy link
Copy Markdown
Owner

Summary

Implements Phase 5 of attested state log binding: full-trust integration and portable bundled artifact verification for Project C.

This branch includes Phases 2–5 if earlier PRs (#206#208) are not yet merged.

Portable bundled verifier (State assembly)

  • AttestedStateLogArtifactVerifier — bundled artifact verification entry point
  • FileBundledBehaviorCatalogResolver + BundledBehaviorPaths — path-safe sidecar lookup
  • FixedLiveStateHashReader, LiveStateSnapshot, live-state.json wire format

Full trust API

  • IAttestedStateLogTrustGate.VerifyFullTrust(...) — Tier-2 brick replay + Tier-3 live head

Tests (cert-gate: 71)

  • A5_FullyValidLogWithFullTrust_IsTrusted
  • Cross-project Tier-3 via live-state.json sidecar
  • Project C runnable in-repo with --bind-live

Test plan

  • cert-gate 71/71 green locally
Open in Web Open in Cursor 

cursoragent and others added 4 commits June 28, 2026 05:58
…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>
Add ILiveStateHashReader seam and optional Tier-3 verification in
StateLogVerifier: compare attested log head against live store hash.
Includes InMemoryLiveStateHashReader, R10 live-state-mismatch refusal,
A4 admission, trust gate coverage. cert-gate: 66 tests.

Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
…ndled verifier

Add AttestedStateLogArtifactVerifier and FileBundledBehaviorCatalogResolver
in Nexo.Certification.State for Project C parity (path-safe sidecars).
Introduce live-state.json sidecar wire format, IAttestedStateLogTrustGate.VerifyFullTrust,
A5 full-stack admission, cross-project Tier-3 sidecar tests, and Project C project refs.
cert-gate: 71 tests.

Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants