Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/v2-four-process-qc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
5 changes: 5 additions & 0 deletions docs/v2-lab-validator-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Loading