Skip to content

feat(certification): state binding phase 2 — portable resolver, wire format, project C - #206

Draft
IanFrelinger wants to merge 1 commit into
masterfrom
cursor/state-binding-portable-resolver-1b05
Draft

feat(certification): state binding phase 2 — portable resolver, wire format, project C#206
IanFrelinger wants to merge 1 commit into
masterfrom
cursor/state-binding-portable-resolver-1b05

Conversation

@IanFrelinger

Copy link
Copy Markdown
Owner

Summary

Phase 2 of attested state log binding: makes Nexo.Certification.State callable and portable outside hermetic test fixtures.

WS1 — Certified behavior catalog + resolver

  • ICertifiedBehaviorCatalog + CertifiedBehaviorEntry (content-hash keyed)
  • InMemoryCertifiedBehaviorCatalog, FileCertifiedBehaviorCatalog ({hash}/record.json + source.txt)
  • CertifiedBehaviorCertificateResolver adapts catalog → ICertificateResolver

WS2 — Wire format + Tier-2 admission

  • AttestedStateLogWireFormat JSON serialize/deserialize for schema + log
  • A2: valid log + fake replayer → TRUSTED (Tier-2 admission)
  • AttestedStateLogWireFormatTests (bundled sample + round-trip)

WS3 — Project C cross-project reuse

  • samples/certified-state-log-reuse/Nexo.Certified.PhaseWitness/ bundled JSON artifacts
  • samples/certified-state-log-reuse/ProjectC/ — refs only Nexo.Certification.State + Contracts
  • scripts/pack-certified-state-log-reuse.sh
  • CrossProjectStateLogReuseTests: honest / tampered chain / forged cert

WS4 — Trust port + DI + ledger

  • IAttestedStateLogTrustGate + AttestedStateLogTrustGate
  • AddAttestedStateLogTrust() DI extension
  • Evidence section in docs/certification-evidence.md

cert-gate

60 tests (was 51), all green locally.

Out of scope (unchanged)

  • Durable log storage, execution-engine replay, domain consumers
Open in Web Open in Cursor 

…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>
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