ZK Release Integrity & VK Rotation Hardening (ZK-119, ZK-120, ZK-127, ZK-128)
This PR introduces a deterministic ZK release management and verification workflow by adding structured release bundles, deployment preflight validation, benchmark baseline persistence, and append-only verifying-key (VK) rotation evidence tracking.
Together, these changes strengthen operational safety, reproducibility, and auditability for PrivacyLayer ZK deployments and VK rotations.
Introduced a deterministic release bundle format that couples:
- circuit artifacts
- proving/verifying metadata
- verifier schema
- contract-facing metadata
The release bundle is now generated directly from the rebuild pipeline and validated for compatibility across SDK consumers and deployment tooling.
- Deterministic artifact packaging
- Manifest-linked bundle versioning
- Unified artifact structure for operators and SDK consumers
- Validation support for SDK and deployment loaders
Added deployment/VK-update preflight checks that automatically compare:
- local release bundle metadata
- target pool VK metadata
- expected verifier schema contract
The preflight now fails fast on critical mismatches before any admin transaction is signed.
- circuit ID mismatch detection
- manifest hash verification
- public input arity validation
- schema compatibility verification
- safer VK rotations
- deterministic dry-run validation workflows
- reduced operator error from manual diffing
Implemented benchmark baseline persistence and regression validation during release rehearsal workflows.
Benchmarks are now stored alongside release artifacts and compared against configurable regression thresholds.
- cold-start performance
- warm-start performance
- proof generation throughput
- memory usage
- machine-readable benchmark baseline format
- deterministic benchmark comparisons
- regression failure reporting during release checks
- artifact-linked performance history
Added append-only verifying-key rotation evidence generation for each pool.
Each rotation now produces a machine-readable evidence bundle containing both pre-rotation and post-rotation metadata.
- pool ID
- old/new VK hashes
- manifest hash
- circuit ID
- schema version
- operator identity
- timestamps
- rollback context
- reusable preflight validation integration
- append-only rotation audit records
- human-readable + machine-readable logs
- improved rollback investigation support
Run validation checks:
node scripts/zk_ticket_check.mjs --issue-key ZK-119 --run
node scripts/zk_ticket_check.mjs --issue-key ZK-120 --run
node scripts/zk_ticket_check.mjs --issue-key ZK-127 --run
node scripts/zk_ticket_check.mjs --issue-key ZK-128 --runThis PR improves:
- release determinism
- deployment safety
- operational auditability
- regression visibility
- VK rotation traceability
- tooling consistency across SDK and deployment workflows
- ZK-119
- ZK-120
- ZK-127
- ZK-128