PrivateDAO maintains a reviewer-visible verification layer so the repository can be checked without trusting prose alone.
Run these from the repository root.
npm run verify:strategy-surfaceChecks that the strategy-facing review package is present and internally coherent.
npm run verify:submission-registryChecks that the canonical submission registry contains the required packages, links, gates, and core identity values.
npm run verify:registry-consistencyChecks that the submission registry and proof registry stay aligned on canonical live references.
npm run verify:generated-artifactsChecks that generated reviewer artifacts such as the audit packet and review attestation exist and remain structurally valid.
npm run test:devnet:allRuns the full 50-wallet Devnet harness, then rebuilds and verifies the reviewer artifacts that bind:
- wallet registry
- DAO bootstrap record
- explorer transaction registry
- adversarial rejection report
- zk proof registry
- performance metrics
- load-test report
This is the canonical reproducible multi-wallet execution command for the live Devnet package.
npm run test:devnet:multi
npm run test:devnet:race
npm run test:devnet:extendedThese commands extend the canonical 50-wallet run with:
- three live proposals executed in one DAO to prove proposal isolation
- cross-proposal voter-record and delegation-marker rejection evidence
- concurrent finalize races with one valid winner
- concurrent execute races with one valid winner
The generated reviewer-facing artifacts are:
docs/devnet-multi-proposal-report.jsondocs/devnet-multi-proposal-report.mddocs/devnet-race-report.jsondocs/devnet-race-report.md
npm run test:devnet:resilience
npm run verify:devnet:resilience-reportThis command adds operator-grade recovery evidence on Devnet for:
- fallback from a dead-end RPC endpoint
- stale blockhash rejection
- rebuilt transaction recovery on a fresh blockhash
The generated reviewer-facing artifacts are:
docs/devnet-resilience-report.jsondocs/devnet-resilience-report.md
npm run verify:cryptographic-manifestChecks that the sha256 manifest covering zk artifacts, live-proof anchors, and generated review materials still matches the canonical files on disk.
npm run build:mainnet-readiness-report
npm run verify:mainnet-readiness-reportBuilds and verifies the generated readiness report that summarizes what is already verified inside the repository and what still remains external before any production cutover should be claimed.
Review:
docs/mainnet-go-live-checklist.md
Review:
docs/phase-c-hardening.md
This document makes the current boundary explicit:
- Phase A is live
- Phase B is live
zk_enforcedis usablezk_enforcedis not yet promoted as the strongest production path
Related review docs:
docs/zk-verifier-strategy.mddocs/zk-enforced-threat-review.mddocs/zk/enforced-runtime-evidence.mddocs/zk/enforced-operator-flow.mddocs/zk-external-audit-scope.mddocs/canonical-verifier-boundary-decision.mddocs/zk/external-closure.generated.md
Commands:
npm run build:zk-enforced-runtime
npm run verify:zk-enforced-runtime
npm run build:zk-external-closure
npm run verify:zk-external-closureThis checklist is the shortest go or no-go surface for production cutover. It does not replace the generated proof package; it compresses the final blockers into one operator-facing checklist.
npm run build:deployment-attestation
npm run verify:deployment-attestationBuilds and verifies a machine-readable deployment attestation that binds the canonical program, governance anchors, token surface, readiness status, and verification gates into one review artifact.
npm run build:go-live-attestation
npm run verify:go-live-attestationBuilds and verifies a machine-readable go-live decision artifact that makes the current mainnet block conditions explicit instead of leaving them implicit in prose.
npm run build:runtime-attestation
npm run verify:runtime-attestationBuilds and verifies a machine-readable runtime summary for supported Devnet wallets, the diagnostics page, and the reviewer-visible wallet runtime surface.
npm run verify:runtime-surfaceChecks that the live diagnostics page, supported wallet labels, runtime attestation, and PDAO/runtime anchors stay aligned in the frontend itself.
npm run build:runtime-evidence
npm run verify:runtime-evidenceBuilds and verifies a generated runtime-evidence package that consolidates runtime attestation, wallet compatibility, Devnet canary, and resilience behavior into one reviewer-facing summary.
npm run build:real-device-runtime
npm run verify:real-device-runtimeBuilds and verifies the reviewer-facing intake package for real desktop and mobile wallet captures. This package keeps the boundary honest: diagnostics and wallet matrices are useful, but real-device evidence is tracked separately until actual captures are committed.
npm run build:operational-evidence
npm run verify:operational-evidenceBuilds and verifies a generated operational-evidence package that consolidates:
- full 50-wallet lifecycle execution
- zk companion proof activity
- adversarial rejection coverage
- multi-proposal isolation
- finalize and execute race behavior
- RPC interruption and stale-blockhash recovery
This package is the shortest reviewer-facing path for the project's preserved Devnet execution evidence, while the current operating path is Testnet.
npm run test:devnet:100
npm run test:devnet:500Runs the same Devnet stress harness at larger wallet counts while writing to profile-specific artifacts so the canonical 50-wallet reviewer package remains stable and explorer-visible.
npm run build:wallet-matrix
npm run verify:wallet-matrixBuilds and verifies a generated wallet compatibility matrix that documents the detected providers, connection fallback, transaction fallback, diagnostics visibility, and honest runtime-QA boundary for each supported wallet class.
npm run build:devnet-canary
npm run verify:devnet-canary
npm run ops:canaryBuilds and verifies a lightweight read-only Devnet canary that checks:
- primary and fallback RPC health
- canonical PrivateDAO anchor accounts
- governance mint supply visibility
- sustainable operational readiness between heavier stress runs
npm run build:supply-chain-attestation
npm run verify:supply-chain-attestationBuilds and verifies a generated supply-chain attestation that binds the top-level Cargo, Anchor, npm, and Yarn manifests and lockfiles into the reviewer-visible integrity surface.
npm run build:release-ceremony-attestation
npm run verify:release-ceremony-attestationBuilds and verifies a generated release-ceremony attestation that ties reviewed commit identity, required release gates, operator-facing cutover docs, and unresolved external blockers into one reviewer-visible artifact.
npm run build:release-drill
npm run verify:release-drillBuilds and verifies a repository-simulated release drill that makes the pre-cutover and blocked-external stages explicit rather than leaving them implied. The generated trace now also records which repository commands and reviewer-visible artifacts participated in the simulated release path.
npm run build:mainnet-acceptance-matrix
npm run verify:mainnet-acceptance-matrix
npm run build:mainnet-proof-package
npm run verify:mainnet-proof-packageBuilds and verifies the reviewer-facing acceptance matrix and proof package that separate repository-accepted surfaces from external blockers such as audit, real-device QA, and live rollout.
npm run verify:artifact-freshnessRebuilds the deterministic generated reviewer artifacts and packaged review bundle, then rejects drift between committed outputs and the current builders.
npm run build:zk-registry
npm run verify:zk-registryBuilds and verifies the machine-readable registry for the live Circom and Groth16 stack, including artifact paths, public signal counts, and per-layer commands.
npm run build:zk-transcript
npm run verify:zk-transcriptBuilds and verifies the reviewer-readable zk transcript that carries the proving system, ptau reference, per-layer commands, and tracked artifact hashes.
npm run build:zk-attestation
npm run verify:zk-attestationBuilds and verifies a machine-readable zk attestation that binds the registry, transcript, proving system, ptau, and per-layer proof artifacts into one reviewer-facing summary.
npm run verify:zk-docsChecks that the zk reviewer docs stay aligned on layer names, replay boundaries, and verification commands. This includes:
- threat extension
- assumption matrix
- capability matrix
- verification flow
npm run verify:zk-consistency
npm run verify:zk-negativeChecks that recomputed public signals match the stored outputs and that tampered public signals or proof objects are rejected.
npm run verify:live-proofChecks that the live-proof document stays aligned with the canonical proof registry and expected devnet evidence.
The wider review surface also tracks the documented Devnet governance-token profile:
docs/pdao-token.mddocs/token.md
The token presence gate confirms that governance identity and structured participation are visible in the reviewer surface.
This means the repository should make clear:
- why the governance token exists
- how it supports proposal participation
- how it reinforces lifecycle accountability
- how it fits inside the wider governance security model
npm run verify:release-manifestChecks that the release manifest, proof registry, README references, and generated handoff surfaces remain consistent.
npm run verify:program-id-consistencyChecks that the canonical PrivateDAO program id stays aligned across Anchor.toml, declare_id!, reviewer docs, the frontend constant, and supporting tooling.
npm run build:pdao-attestation
npm run verify:pdao-surface
npm run verify:pdao-attestation
npm run verify:pdao-liveChecks that the published PDAO token docs, local metadata asset, generated attestation, reviewer-facing surfaces, and preserved Devnet token state stay aligned with the canonical proof registry.
npm run verify:review-linksChecks that the canonical reviewer path remains visible from the README and the GitHub Pages frontend.
npm run verify:ops-surfaceChecks that production-ops, incident-response, monitoring, cutover, and operator docs remain present.
npm run verify:review-surfaceRuns the broader review-surface gate, including release-manifest, live-proof, registry, and reviewer-link consistency.
npm run verify:allThis is the canonical repo-wide verification command. It rebuilds generated reviewer artifacts and runs the verification gates needed to keep the reviewer, operator, and proof surfaces coherent.
The unified gate is also enforced in CI on push and pull request events, so review-surface drift is caught automatically.