Skip to content

P0 V2 safety: signing guard accepts conflicting header at later round of same height #226

Open

Description

@the-code-learner

P0 Protocol V2: persistent signing guard permits conflicting header targets across rounds at same height

Static security review 2026-11-13 on internal/v2/consensus/signing_guard.go. DurableSigningGuard.Authorize(network,id,height,round,target) currently rejects a changed target ONLY when height==g.height && round==g.round. For height==g.height && round>g.round, any new hash is accepted. Existing TestDurableSigningGuardRejectsConflictsAcrossRestarts explicitly expects Authorize(...,10,1,hashB) after Authorize(...,10,0,hashA) to succeed.

internal/v2/node/service.go calls this same guard before both proposer and validator vote signatures. ValidatorSet.VerifyCertificate authenticates signatures/quorum per round but cannot by itself prevent two conflicting quorum certificates at one height under round changes. Without a specified cross-round locking/unlocking protocol or justified lock-release proof, allowing honest keys to authorize different headers at one height is a P0 safety risk. No claim of an actually witnessed conflicting finalized V2 mainnet chain; current 4/7 live lab tests use round 0 only. This finding must be addressed before cross-round production finality and mainnet GO.

Conservative mitigation and required evidence

  • Fail closed in the durable journal on any header target change at the same height across later rounds, preserving monotonic later-round authorization only for the same header. Keep same-slot identical replay idempotent and all earlier rounds/heights rejected.
  • Replay must verify recorded target consistency across all rounds of the same height and reject otherwise with ErrSigningJournal; checks must survive process restart.
  • Adjust existing test which currently expressly permits a cross-round changed target; add positive same-target higher-round test, negative changed-target same-height even after restart, and corrupt historic journal replay regression.
  • Validate unchanged current two-height 4/7 independent QC lab, cryptographic negative controls and full protected CI on exact PR head; independent 3/3 postmerge.
  • Before adding production round-change functionality, design/verify a cross-round BFT lock/unlock scheme with cryptographically certified unlock evidence; conservative lock may reduce liveness for alternative proposals until that is done. DO NOT weaken safety to fix liveness.
  • Keep P0 V2 network lab: launch independently fenced validator processes and verify QC finality across Docker hosts #211 and P0 Mainnet NO-GO: independent security, multi-host consensus and full production release gates #42 mainnet NO-GO; this is one identified security boundary, not a substitute for host independence, external custody or multiheight partition tests.

2026-11-14 — P0 conservative mitigation draft #228 on latest main

2026-11-14 — Protected P0 conservative signing lock MERGED, full multi-round safety still OPEN

  • Final exact PR security(v2): P0 durable signer locks same height across all rounds #228 head 9c8236598a4334f9108e1babe33ae19b17680af6 passed 7/7 completed SUCCESS: CI, V2 Lab, V2 Devnet Gate, Dependency Lock, Security Regression, real signed QC 4/7-process and Docker matrix. Protected expected-head squash merged PR #228 into main c166fe6f74b64162a4b4495e5e96dbe3c4bb1972. Same-height cross-round changed-target signing and fully hash-chained conflicting journal replay now fail closed; same-target later rounds remain allowed, with restart tests. Independent CI/V2 Lab/Security postmerge push workflows are RUNNING, not yet complete.
  • Issue P0 V2 safety: signing guard accepts conflicting header at later round of same height #226 stays OPEN: conservative lock does not implement a certified unlock/proposal-rotation mechanism for nonidentical later-round headers; full BFT multi-round liveness and independently operated host/custody tests remain unproven. Mainnet stays NO-GO.

2026-11-14 — PR #228 postmerge exact-main all three SUCCESS

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

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 — External CPU test identity acceptance hardened (#243)

  • Current exact main 08a74a789c0715a12c19d1d51c047d7deaf906c7 completed 3/3 CI/V2 Lab/Security Regression and Kaggle #43582991493 PASS 12 compiled Go consensus tests, but the external verifier previously accepted merely 12 or more PASS lines without checking identities and SKIP/duplicate cases.
  • Draft PR #243 head 21dadd6209c6d13cd6b1acb541b37351750d5230 now requires exactly the 12 named tests, rejects missing, duplicate, failed or skipped named tests, and independently verifies sorted named passes in GitHub Actions. Protected checks are pending. This is test-evidence integrity work, NOT BFT unlock proof or independent running validators; 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-name external Go evidence gate integrated

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