From 490e7a1ce46e6c901d066a11aa406cbecfc8b1ab Mon Sep 17 00:00:00 2001 From: The Code Learner <142033899+the-code-learner@users.noreply.github.com> Date: Fri, 13 Nov 2026 23:55:37 +0100 Subject: [PATCH 1/2] ci(v2): assert signed-but-subquorum QC fails independent verification for four and seven validators --- .github/workflows/v2-four-process-qc.yml | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/v2-four-process-qc.yml b/.github/workflows/v2-four-process-qc.yml index 8cafd70a..b65969e9 100644 --- a/.github/workflows/v2-four-process-qc.yml +++ b/.github/workflows/v2-four-process-qc.yml @@ -113,6 +113,32 @@ jobs: exit 1 fi echo "PASS: mutated signed certificate correctly rejected" | tee -a evidence/tampered-proof-check.txt + # Keep valid signatures but remove enough votes to lose >2/3. + V2_VALIDATORS="${{ matrix.validators }}" python3 - <<'PY' + import json + import os + with open("evidence/v2-finalized-snapshot.json") as stream: + snapshot = json.load(stream) + validators = int(os.environ["V2_VALIDATORS"]) + quorum = (2 * validators) // 3 + 1 + votes = snapshot["Certificate"]["Votes"] + assert len(votes) >= quorum + snapshot["Certificate"]["Votes"] = votes[:quorum - 1] + with open("evidence/v2-underquorum-snapshot.json", "w") as stream: + json.dump(snapshot, stream, sort_keys=True) + PY + if "$RUNNER_TEMP/v2-lab-qc-verify" \ + -genesis "$(jq -r '.genesisFile' "$PRIVATE_ROOT/manifest.json")" \ + -snapshot evidence/v2-underquorum-snapshot.json \ + -expected-height 2 \ + -network-id "$(jq -r '.networkId' "$PRIVATE_ROOT/manifest.json")" \ + -validator-root "$(jq -r '.validatorRoot' "$PRIVATE_ROOT/manifest.json")" \ + -header-hash "$(jq -r '.headerHash' evidence/v2-four-process-qc-summary.json)" \ + > evidence/underquorum-proof-check.txt 2>&1; then + echo "ERROR: insufficient signed QC power was accepted" + exit 1 + fi + echo "PASS: independently rejected valid signatures with insufficient QC quorum" | tee -a evidence/underquorum-proof-check.txt python3 scripts/v2-observer-recovery-smoke.py \ --observer-binary "$RUNNER_TEMP/v2-observer" \ --manifest "$PRIVATE_ROOT/manifest.json" \ From a348e254925338b6c45060d73ea8fcf32489ae14 Mon Sep 17 00:00:00 2001 From: The Code Learner <142033899+the-code-learner@users.noreply.github.com> Date: Fri, 13 Nov 2026 23:55:55 +0100 Subject: [PATCH 2/2] docs(v2): explain signed-but-underquorum negative QC proof acceptance boundary --- docs/v2-lab-validator-process.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/v2-lab-validator-process.md b/docs/v2-lab-validator-process.md index bfb2e0fd..8ce64218 100644 --- a/docs/v2-lab-validator-process.md +++ b/docs/v2-lab-validator-process.md @@ -40,3 +40,8 @@ After a successful 4- or 7-validator height-one QC plus separate nonvoting obser ## Two-height QC finality and observer recovery The next GitHub 4/7-process matrix finalizes **two consecutive empty V2 blocks**, exercising deterministic proposer rotation, signer journal monotonicity and both real QUIC signed-QC broadcasts. All validator replicas and the nonvoting observer must independently converge on the exact signed header hash at **each height**, and hashes at heights 1 and 2 must differ. A separate keyless proof verifier validates the independently expected height, genesis and header for **both** snapshots, then rejects a deliberately mutated height-two vote. Following process shutdown, the observer must fully replay the two-height QC-certified disk history to the exact height-two header; one-byte append corruption must fail closed. Still a same-runner and empty-block lab, not a multi-host network, nonempty TPS or an independently administered custody guarantee. + + +## Negative QC test: valid signatures below quorum + +The GitHub signed-QC laboratory additionally derives a **signed-but-insufficient** certificate from the authentic finalized height-two snapshot without fabricating or editing signatures. For four equal-power validators, it retains only **2 of 3 required** votes; for seven, only **4 of 5 required** votes. The separate proof verifier must reject each while the original fully signed certificate remains independently valid, and the test records its fail-closed result as a non-secret artifact. This explicitly exercises quorum enforcement, not just signature integrity. It remains same-runner laboratory evidence and does not replace partition, cross-runner or production key-custody proofs.