Skip to content

P0 V2 network lab: launch independently fenced validator processes and verify QC finality across Docker hosts #211

Open

Description

@the-code-learner

Refs #208 #42 #54 #55. cmd/node is a legacy API/ledger process; cmd/v2-observer exposes observer-only operation. The existing V2 integration test instantiates in-memory node.Service validators in the same Go process. Docker wrapping the test or running legacy cmd/node containers is insufficient to demonstrate real V2 distributed validators.

Acceptance (GitHub resources first)

  • Implement a devnet-only V2 validator executable/test harness with canonical pinned genesis, chain/network ID, validator root, verified validator roster, persistent non-exported signing keys and a protected NewProtectedService signer journal for every process; never embed keys in repository/logs.
  • Spawn >=4 actual V2 validator OS processes (separate containers and state dirs) with authenticated libp2p QUIC peers, bootstrap trust pinning and independently QC-replayed finalized history; expose only test-only status/driver endpoints with explicit local/non-production guards.
  • Prove >2/3 QC on blocks across 4/7 validators using a nonvoting V2 observer process; verify height/hash/state root and restart/historical proof independently, avoiding single-process direct method shortcuts.
  • Inject disconnection, one-third offline, delayed votes, equivocation, killed/restarted processes, separate-directory rollback and signed-ancestry replay. Ensure no conflicting finalized checkpoint or double-sign; fail closed and upload packet/consensus diagnostics.
  • Run on separate GitHub-hosted runners using secure temporary overlay (not merely a matrix), verify actual cross-runner connectivity and host identity. Record exact SHA, config, CPU/RAM/latency, signed QC evidence, full logs and workload; cleanup after every run.
  • Require five protected exact-head PR gates and three main-push checks. Keep P0 Mainnet NO-GO: independent security, multi-host consensus and full production release gates #42/P0 GO blocker: deploy and audit independent monotonic finalized-checkpoint witnesses #54/P0: independently operated witness publication, monotonic freshness and multi-host adversarial recovery gate #55 open until genuinely independent operators and rollback-resistant key custody proven; do not describe this CI lab as external security audit.

No external provider is needed to begin building and testing this harness. Escalate only with reproducible GitHub resource limitation.

2026-11-13 — Initial V2 standalone lab validator tranche (#213; validation pending)

2026-11-13 — PR #213 protected merge, postmerge pending

2026-11-13 — Four real V2 OS processes, draft PR #214

2026-11-13 — #213 final main validation and #214 corrected CI head

2026-11-13 — PR #214 protected merge; signed-QC still pending

  • Corrected exact PR head fa02a4461de127f1f72b32c837a7e0e16960261f passed 6/6 completed GitHub workflows (five core protected gates plus V2 Four-Process Lab Validator Smoke, run 43483232949). Process smoke verified four separate PIDs, four libp2p identities, exclusive signer lock and three surviving processes after one termination; ephemeral keys remained in private runner temp and were not uploaded.
  • Protected expected-head squash PR #214 MERGED to main f2f1e711c47256bf746dff30efe8984c71ba04fd. Three main push workflows running; need independent completed success before calling postmerge green.
  • Next tranche: connect the four V2 processes with pinned peers, trigger height-one proposer, and verify transferable signed QC, identical height/hash across nodes and nonvoting observer. Keep P0 V2 network lab: launch independently fenced validator processes and verify QC finality across Docker hosts #211 and parent P0 Mainnet NO-GO: independent security, multi-host consensus and full production release gates #42 NO-GO until those actual checks and adverse recovery evidence pass. No external resources needed.

2026-11-13 — #214 postmerge validated; new draft real signed QC PR #215

2026-11-13 — PR #215 signed QC proof obtained; strict CI re-run

  • First head 8f9cafd84dffbe6921b6cf061ed48de043be237b, GitHub V2 Four-Process Signed QC Lab run 43485115276: SUCCESS. Four actual validator OS processes connected with pinned libp2p QUIC peers, finalized SAME height-one empty block with signed quorum; full snapshot separately verified via lightapi.Snapshot.Validate against pinned genesis/validator root and expected header. Logs confirm both finalization and separate proof verification. Initial CI failed only gofmt in cmd/v2-lab-validator/control.go.
  • Corrected head d594855a2035da98ab0005031a3b21f03635618d has new exact-head workflows starting; old-head success cannot be used for merge. Keep P0 V2 network lab: launch independently fenced validator processes and verify QC finality across Docker hosts #211 P0 OPEN until corrected exact-head 5 core gates + QC workflow and after-merge main gate pass, and ultimately independent observer, crash/restart, multiheight, cross-runner partition and custody proof. Zero extra external resources.

2026-11-13 — #215 protected merge completed; postmerge running

2026-11-13 — Draft #216: real 4/7-process QC with adversarial negative verification

  • PR #216 exact head 0a9b4846774b758c534479e5d8c4b93b626cac1f adds independent GitHub runner matrix jobs with 4 and 7 distinct V2 QUIC validator processes per single runner, verifies 3/4 and 5/7 signed quorum and identical QC-finalized height-one header on every replica, and explicitly tests that the separately pinned proof verifier rejects a snapshot containing a mutated vote signature. All tests pending until exact-head CI and QC matrix finish; mainnet NO-GO.
  • Main PR ci(v2): real four-process signed QUIC quorum with independent snapshot verifier #215 squash 1f310368c781b82825cf5d1978d360a51e81019c: CI and V2 Lab push SUCCESS, Security Regression still running at latest check. Do not label its independent main 3/3 before the final security result. Cross-runner networking, independent non-voting observer, persistent multiheight recovery and independently operated signer custody still outstanding.

2026-11-13 — PR #216 protected MERGED; live nonvoting observer #217 draft

  • PR ci(v2): 4/7-process QUIC quorum matrix and tampered QC rejection #216 exact head 0a9b4846774b758c534479e5d8c4b93b626cac1f 6/6 completed SUCCESS: 5 required baseline CI+security gates plus the 4/7-process QC GitHub matrix run 43507615410. Both 4 validators (3/4) and 7 validators (5/7) finalized actual signed height-one QC across distinct OS processes within a single GitHub runner per job; separate verifier accepted valid signed snapshots and rejected a vote-signature-mutated snapshot. Protected expected-head squash merged to main 28d7386923aadf635a2e3baa83677a65614ce328. Three new postmerge push gates running (NOT YET COMPLETE).
  • Draft PR #217, head 1f4adfaf33e7b0fcfdb4a06667786e8cd3c6ec6a, adds true observer-only V2 process without voting key/journal on same GitHub runner; it receives certified QUIC commits and checks pinned genesis and QC in a local owner-only Unix status socket. All PR tests still pending; do NOT count untested observer as evidence yet.
  • Still P0 OPEN: multiheight restart/replay, partitions and equivocation on real processes, cross-runner network overlay, true independent custodians and externally anchored signer recovery. Mainnet remains NO-GO, no external connector needed for current lab.

2026-11-13 — #218 actual live unkeyed observer QC verified in GitHub, not yet merged

2026-11-13 — #216 exact-main success and #218 corrected head

2026-11-13 — PR #218 merged; #219 live QC restart/corruption 2/2 succeeded

  • PR ci(v2): nonvoting live observer checks 4/7 validator QUIC finality #218 exact head 481cbe1da05c4ccb2daa55499d3742d448cd7f7f 6/6 workflow SUCCESS (5 protected baseline gates + live nonvoting observer 4/7 QC matrix). Protected expected-head squash MERGED to main 3376c3baaa67b0122937e5908f3b24394449d17d. The 3 exact-main independent push workflows are running (CI and V2 Lab success, Security Regression still active at latest check), not yet 3/3.
  • Draft PR #219 exact head 56a72d6161afae1715109e4377fd9a393e399572: V2 4-7 Process Signed QC Lab 43510570223 BOTH matrix jobs SUCCESS. Each real nonvoting V2 observer, after confirming QC-finalized height one from 4/7 live QUIC validators, was restarted with its existing on-disk state, successfully revalidated genesis-to-tip QC-certified history and exact finalized hash, then refused startup after a deliberately appended corrupt byte in its private lab certified-history.log. No keys included in artifacts. Five baseline PR gates pending. PR not yet merged, P0 issue not closed.
  • Still missing: multiheight with nonempty workload, actual network partitions/offline Byzantine quorum, separate runner linked network, independently controlled signer/custody and operator runbooks. No external resources currently needed for ongoing GitHub test tranches.

2026-11-13 — #218 postmerge exact-main 3/3 fully green

2026-11-13 — Draft #224 signed-but-underquorum QC negative evidence (pending)

2026-11-13 — #224 authentic signatures but underquorum rejected in real QUIC lab

  • PR ci(v2): reject valid signed certificates below 3/4 and 5/7 quorum #224 exact head a348e254925338b6c45060d73ea8fcf32489ae14 live QC matrix 43523255699 2/2 SUCCESS: 4 real processes plus observer and 7 real processes plus observer independently certified two consecutive heights; a separate verifier rejected valid P-256 vote signatures with only 2 of 3 required or 4 of 5 required votes, while retaining authentic fully certified positive controls, corrupted signature negative checks and restarted certified-history replay. CI/V2 Lab/Devnet/Dependency also successful; Security Regression still running. PR remains draft/unmerged pending all protected exact-head gates; no independent provider or multi-host evidence, issue P0 remains OPEN.

2026-11-14 — protected main update and replacement #225

2026-11-14 — signed QC underquorum integrated; signer audit P0 #226 in progress

  • PR #225 final head ba9bb4bd91a7d02063bb0a92fb2f177446e0d7c8 passed 6/6 exact-head GitHub checks including 4/7-process QC positive and signed-but-underquorum negative; protected squash merged main f3d7766ceb215965f021f3af910dd896f248dd28; independent 3 main push gates running. Draft PR ci(v2): reject valid signed certificates below 3/4 and 5/7 quorum #224 was closed as obsolete, not merged.
  • Static audit exposed P0 issue #226: V2 signer guard previously allowed conflicting same-height targets across successive rounds, allowing possible conflicting QC without a BFT lock/unlock proof. A conservative fail-closed guard/replay mitigation is in draft #228, current main base, CI pending. No complete multi-round unlock/liveness proof, host independence or external custodian; mainnet NO-GO.

2026-11-14 — P0 guard mitigation integrated (full unlock protocol outstanding)

2026-11-14 — postmerge security verification of P0 signer lock

2026-11-14 — Protected seven-process offline minority + rejoin fixture integrated

2026-11-14 — Seven-process kill/rejoin protected main verification

2026-11-14 — External Kaggle CPU-only probe started (NOT cross-host QC evidence)

2026-11-14 — Kaggle free-tier CPU probe confirmed on remote provider

  • GitHub Actions Kaggle CPU-only run 43540304344 COMPLETED/SUCCESS on exact main 9ff7199388d5be5b411a9af9bb1c5e082a8ec3b1. Private Kaggle kernel itsameeee/zephyr-chain-cpu-validation-probe completed; independent evidence JSON was downloaded and validated by Actions. Reported CPU affinity 4, effective cgroup memory limit 32212254720 bytes = 30 GiB. Runtime did not request GPU/TPU and notebook metadata explicitly disabled accelerators.
  • Exact-main independent push CI 43540304371, V2 Lab 43540304350, and V2 Security Regression 43540304269 all completed SUCCESS. The Kaggle probe validates independent Python quorum and quota arithmetic only, not real remote Go validator networking, mainnet key custody, or cross-host BFT QC; NO-GO remains.

2026-11-14 — External Kaggle adversarial CPU quorum matrix verified

  • PR #235 exact head a891b5b6e7aac9d841bbb5d431ee47cf7439d6f3 passed 5/5 CI/V2 Lab/Security Regression/Devnet/Dependency gates, 180-second observation and protected squash merged into main e087c733018df5df6a3eb0ca86590e654b8434cf.
  • Kaggle CPU-only run 43541629553 SUCCESS: GitHub CPU preflight passed; separate private Kaggle runtime completed its 320-set adversarial weighted quorum checks and proposer streak diagnostics; the remote JSON passed exact schema/acceptance checks. GitHub preflight logged 273,021 pairwise quorum-intersection checks. Remote Kaggle evidence confirmed CPU affinity 4, memory cgroup 32212254720 bytes = 30 GiB. No GPU/TPU flags or resource requests.
  • This validates offline reference mathematics; it does NOT establish remote running Go validators, signed QC across distinct operators, real partitions, protected signing custody or mainnet GO. Draft PR #236 investigates SHA-256-pinned actual Go consensus unit tests on Kaggle CPU via private dataset; not yet integrated.

2026-11-14 — Real Go-on-Kaggle external test attempted; remote ERROR under investigation

  • PR #236 passed 5/5 exact-head protected checks and squash merged as main 2c44c2d9563802c975bea893b0590d616c8632df; subsequent exact-main CI 43542642776, V2 Lab 43542642758 and Security Regression 43542642759 3/3 SUCCESS.
  • Kaggle Offline Real Go CPU run 43542642809 successfully compiled a CGO-free Linux/amd64 Go consensus test binary, pinned SHA-256 and source SHA, created a private Kaggle dataset, and pushed a private CPU-only notebook with GPU/TPU/Internet disabled. After initial QUEUED status, Kaggle reported KernelWorkerStatus.ERROR at the next 180s poll; the GitHub job FAILED and did not download or accept a signed/exact-source Go test report. Root cause unknown until remote logs reviewed. No assertion of external Go test PASS or real independent-host QC.
  • Draft PR #237 adds diagnostic-only GitHub action to retrieve sanitized logs from the existing Kaggle kernel without launching another Kaggle session. No mainnet GO, independent operator or network partition claim.

2026-11-14 — Root boundary of failed external Go test established

  • Sanitized Kaggle diagnostic run 43544410478 retrieved the actual private notebook traceback from the existing ERROR execution: Python /kaggle/src/script.py line 40 explicitly raised RuntimeError: Missing trusted private dataset binary or hash pins. No Go binary was executed, so this is a remote dataset attachment/path/files problem, NOT evidence that Go consensus or quorum failed.
  • PR #238 corrected diagnostics to use CLI kaggle kernels output rather than unavailable kaggle kernels logs; protected and merged as main 2bb8cb638296779b4cc479339463888612a3b666.
  • Draft PR #239 adds a diagnostic-only Kaggle dataset status/file listing to determine whether SHA pins and binary were published, without another CPU/GPU session. NO-GO remains; real external Go evidence not accepted.

2026-11-14 — PR #240 protected merge and remote Go CPU re-run started

  • PR #240, exact head 332b61119686e06f7f195eec15359e6b7ea567ba, passed 5/5 protected CI/V2 Lab/Security Regression/Devnet/Dependency workflows. Protected squash merged to main c670726e5521ec14d4056c7eac7458dfbbe4031f.
  • Introduces SHA-pinned private dataset mount discovery constrained to /kaggle/input, refuses ambiguous/missing trusted files, checks published Kaggle dataset status and all expected filenames before CPU submission, and captures sanitized remote traceback on failure. No GPU/TPU and no live multi-host validator claims.
  • Exact-main Kaggle Go CPU run #43581625479 passed compilation/publication and Kaggle submission, polling remote at time of update; independent main-push CI/V2 Lab/Security Regression also in progress. Do NOT count real external Go execution or close this P0 issue until remote verified report confirms it.

2026-11-14 — First actual external Kaggle CPU execution of pinned Go consensus tests SUCCESS

2026-11-14 — Kaggle exact-main 7 Go tests success; signer guard expansion drafted

2026-11-14 — PR #241 protection passed, postmerge Kaggle workflow parser failed, recovery PR #242

2026-11-14 — Kaggle real Go signer/QC 12-test matrix verified on latest main

2026-11-14 — PR #242 independent main-push verification complete

2026-11-14 — Exact-name 12-test external Kaggle Go CPU evidence verified

  • Protected PR #243 merged main 61410711fec6f9ae2b0819fb171e792a005201a4 after 5/5 exact-head gates. Kaggle exact-main run 43587630386 COMPLETED/SUCCESS: 12 compiled Zephyr Go consensus test identities exactly matched the required set, 0 skipped/failed, names independently verified in GitHub after downloaded report; source SHA and SHA-256 binary pins verified. Private offline CPU-only kernel, no GPU/TPU, 180s remote status wait. Artifact kaggle-offline-go-consensus-cpu-evidence id 14111715356.
  • CI 43587630323 and V2 Lab 43587630337 independently SUCCESS; postmerge Security Regression 43587630408 still in progress when written. No live external validator QC or multi-round unlock proof claimed, P0 stays OPEN; P0 Mainnet NO-GO: independent security, multi-host consensus and full production release gates #42 mainnet NO-GO.

2026-11-14 — PR #243 full exact-main independent push gates complete

2026-11-14 — External CPU cross-process host-fence Go tests proposed (#244)

2026-11-14 — Protected external Kaggle 15-name Go host-fence test matrix passed

  • PR #244 merged to main 973edcc767efff74654f24707d4b8c7c381af449 after 5/5 protected gates, but its exact-main Kaggle workflow 43588671404 failed at YAML parsing (zero jobs) due to a duplicate appended workflow suffix and broken host-fence preflight command; no remote compute spent from this failed workflow.
  • Corrective PR #245 passed 5/5 protected gates and merged main 209a7b8d5c749f9a8496659fa0841e1506632ba7. It repairs Kaggle YAML and adds mandatory regular CI checks for YAML parse, duplicate section rejection, complete anchored Go preflight filters, exact required test identities and no GPU/TPU. The new static CI check was exercised successfully.
  • Independent exact-main Kaggle 43589324906 COMPLETED/SUCCESS, 15 named Go consensus tests passed with no omissions/skips, source commit and SHA-256 binary verified; includes three cross-process host custody root fence negative tests, all on private offline CPU notebook. Evidence artifact id 14111387570. Exact-main CI 43589324940 and V2 Lab 43589324946 SUCCESS; Security Regression 43589324947 running when recorded.
  • The exercises are cross-process on a single external CPU host; NOT independently operated physical hosts, externally protected HSMs, live QUIC 4/7 validators or a formally certified BFT unlock. P0 remains OPEN; mainnet P0 Mainnet NO-GO: independent security, multi-host consensus and full production release gates #42 NO-GO.

2026-11-14 — Exact main 209a7b8d external 15-test CPU and independent push gates complete

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions