Repository navigation
Description
Evidence / reproducibility
Post-merge V2 Security Regression on main b9202e2704639b5284b679e9ce7b8d3e3616e74b failed, run 42661632394 job 129314418005, specifically go test ./internal/api -run '^TestConsensusAutomationAdvancesRoundAndRotatesProposerAfterTimeout$' -count=50 -timeout=5m.
Log at 2026-11-09T17:11:42Z:
--- FAIL: TestConsensusAutomationAdvancesRoundAndRotatesProposerAfterTimeout (8.09s)
server_test.go:1969: condition was not met before timeout
Source test uses two HTTP-connected consensus peers, 20ms interval, 150ms round timeout, then generic waitFor with a hardcoded 8 second deadline and no consensus/round diagnostics. Earlier post-merge CI and V2 Lab on same SHA passed, and exact PR-head Security Regression passed. Do not infer a harmless flake or conceal the failure with a rerun; determine whether this is scheduler jitter or a genuine liveness regression.
Acceptance
- Add deterministic diagnostic evidence on timeout (both node heights, rounds/artifacts, peer progress and relevant pending state) to distinguish liveness regression from scheduling/load.
- Reproduce with exact stress command and race variant, ideally bounded worker CPU contention; record failures with full logs.
- Fix actual root cause; any timeout adjustment must be justified and retain meaningful liveness coverage, not skip/soften the test.
- Five exact-head PR CI gates + three postmerge push workflows and issue update.
This issue does not grant mainnet GO; parent #42 and P0 #54/#55 remain independent NO-GO blockers.
2026-11-10 — Draft PR #155 (P1 peer status admission resource bounds)
- PR #155, head
ada84c63bc74c444d8f28e8cdb1ac25642c136f4, base main0b545559a7282226375c59e2138cfcf1253ce85e, draft.httpPeerTransport.FetchStatusnow bounds remote status JSON to 1 MiB and rejects empty/oversized/trailing or concatenated JSON instead of unboundedDecoder.Decode. Deterministic adversarial HTTP tests and Security Regressiongo test -race -count=10step added. This mitigates one verified admission input resource risk, not yet identified as root cause of historical 8s proposer rotation timeout. - At last check Github Actions had not yet emitted any workflow runs on the current PR head and mergeability was unknown while GitHub calculated it. A local attempt to
sleep 180hit the environment's command timeout; exact-head gates have NOT been verified and PR is NOT merged. Do not reuse earlier head/main runs or relax liveness tests. Parent mainnet 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 remain NO-GO.
2026-11-10 — P0 certified minimum context merge, P1 PR base refresh
- PR security(v2): retain caller deadlines through certified witness minimum gate #156 (
c88557149a0027c1aebeed74461ffdc15ee5a39e) 5/5 exact-head CI completed/SUCCESS after actual >=180s cumulative waiting, then protected expected-head squash MERGED as maindfc839cab6edbf1c8a1e3ccde9b731af210f7c16. CI42855380398, Lab42855380601, Lock42855380274, Devnet42855380488, Security42855380672all green. After an independent real 180-second sleep, all three exact postmerge main push workflows completed SUCCESS on unchangeddfc839cab6edbf1c8a1e3ccde9b731af210f7c16: CI42856075093, Lab42856074969, Security42856075139. P0 PR security(v2): retain caller deadlines through certified witness minimum gate #156 is integrated 5/5+3/3 green, but no real multi-host HSM/audit or public mainnet GO. Change preserves caller cancellation throughCertifiedWitnessFloorMinimum, with late legacy answer fail-closed and race tests. - Parallel P1 PR fix(p1): bound and validate remote peer status JSON during admission #155 was 5/5 successful on old main but had become stale after security(v2): retain caller deadlines through certified witness minimum gate #156, so it was closed UNMERGED as superseded; draft PR #157 recreates the bounded 1 MiB peer status JSON fix on new protected main, head
76c490a4f71e6fb06c35837091f2148df50f2b57, and requires its own 5 exact-head gate checks. No liveness root-cause, TPS or public mainnet GO claim.
2026-11-10 — P1 peer status JSON merged on refreshed main
- PR #157 was recreated from protected main after P0 security(v2): retain caller deadlines through certified witness minimum gate #156 changed base; original fix(p1): bound and validate remote peer status JSON during admission #155 was closed UNMERGED and superseded. fix(p1): bound peer status JSON on latest witness-secured main #157 final exact head
76c490a4f71e6fb06c35837091f2148df50f2b57passed five exact-head PR workflows COMPLETED/SUCCESS after a real 180s wait: CI42857613074, Lab42857613079, Dependency Lock42857613325, Devnet Gate42857613088, Security42857613220. PR fix(p1): bound peer status JSON on latest witness-secured main #157 merged via protected expected-head squash to new maine2065e0ab3302d1d1aebd4d11bac62846d37cb04. After new real sleep180, postmerge main push checks independently rechecked COMPLETED/SUCCESS on unchanged maine2065e0ab3302d1d1aebd4d11bac62846d37cb04: CI42858400351, Lab42858400391, Security Regression42858400304. All 5 exact-head PR gates and 3/3 postmerge push gates green. Historical eight-second liveness stall P1 CI reliability: investigate timeout in scheduled proposer rotation stress regression #128 remains OPEN, no TPS claim, public mainnet NO-GO. Fix bounds untrusted peer status to 1 MiB, rejects appended/concatenated JSON, dedicated race tests. Does not prove historical P1 CI reliability: investigate timeout in scheduled proposer rotation stress regression #128 proposer-rotation stall cause, no TPS benchmark/claim. Public mainnet still NO-GO; 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.
2026-11-10 — PR #158 CI reproduces seven-validator scheduler sweep test timing interference
-
Initial head
67b18c8d42d903f979b90654ee6899207a0482b4in PR #158 had CI FAILURE run 42863561780, job 129995793442, stagego test ./internal/api -run '^TestLab' -count=1 -timeout=90s:TestLabSevenValidatorsLastProposerNeedsFollowingSweepForQuorumfailed after 3.91s, validator 0 did not sign after next sweep. Source review: the test runs seven manual sequential HTTP-backed validator ticks, tests sweep ordering (NOT round timeouts), but inherits 1s round timeout; on busy CI it can legitimately reach round 7 before checking round 6 next sweep. Corrective commit505281a32df1cc6f86d0b5c4b50e95fcc6f5c056isolates only this synthetic sweep-order test from its irrelevant one-second automatic timer via in-test configConsensusRoundTimeout=0; keeps all expected signed-vote, QC safety and finality checks, 5s lab gate unchanged, separate strict 8s timeout regression unchanged. Adds full status/consensus/round diagnostics for future recurrence. New head five workflows need fresh completion before merge. This is a reproduced test timing interference, NOT proven historical 8.09s proposer rotation root, no production consensus timeout change or TPS claim. -
2026-11-10 CI follow-up: PR #158 final head
505281a32df1cc6f86d0b5c4b50e95fcc6f5c056corrected the synthetic last-proposer manual sweep test's inherited round-timeout interference, without altering any production consensus timeout or the separate scheduled-rotation liveness regression. All 5 exact-head workflows SUCCESS (CI42864231107, Lab42864231166, Lock42864231182, Devnet42864232356, Security42864231103) after real 180-second rechecks. Protected squash merged mainf83b34d1695a029241f56860511ac3c08a4ded5d, after separate real 180-second wait, 3/3 main push workflows COMPLETED/SUCCESS on unchanged mainf83b34d1695a029241f56860511ac3c08a4ded5d(CI42865155824, Lab42865156292, Security42865155585). Original 8s intermittent liveness failure root cause still not proven; P1 CI reliability: investigate timeout in scheduled proposer rotation stress regression #128 remains OPEN. 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 remain NO-GO.
2026-11-10 — Draft PR #161 saturates peer sync height delta without sign inversion
- PR #161 head
64cfde776f72972f81c0deecfa90b5fa1b8b2484, base mainc1bbc48869c4653e37617bffee61ead54d19bae9, draft.derivePeerSyncStateand post-success resync were converting both peer-controlled uint64 heights into int64 before subtraction, permitting signed overflow and sign inversion (false peer ahead/behind status). New unsigned-difference helperpeerHeightDeltasaturates at int64 limits only for out-of-range magnitude; all actual sync-needs comparisons remain uint64. Tests cover MaxUint64, signed boundary, adjacent high heights, state classification; V2 Security Regression dedicated-race -count=20. This is not a proven root cause of the historical P1 CI reliability: investigate timeout in scheduled proposer rotation stress regression #128 proposer rotation stall, not a measured TPS improvement, no BFT/finality/timeout change. - PR head
64cfde776f72972f81c0deecfa90b5fa1b8b24845/5 exact-head workflows COMPLETED/SUCCESS after real detachedsleep 180marker 18:50:17Z→18:53:17Z, unchanged main/PR SHA and mergeable check: CI42879197494, V2 Lab42879197314, Lock42879197234, Devnet42879197229, Security42879197919. PR fix(p1): prevent peer height delta sign inversion on uint64 overflow #161 protected expected-head squash MERGED to maincebeb5f45cd14bac865d64d147d31f4a66ec6cde. After a second REAL detached sleep 180 marker 18:54:34Z→18:57:34Z, postmerge main SHA was rechecked unchanged atcebeb5f45cd14bac865d64d147d31f4a66ec6cdeand all THREE main push workflow runs COMPLETED/SUCCESS: CI42879910596, V2 Lab42879910637, Security Regression42879910645. Full 5/5 exact PR head + 3/3 postmerge green. P1 CI reliability: investigate timeout in scheduled proposer rotation stress regression #128 historic 8s liveness root still unproven; no measured TPS gain; 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 public mainnet NO-GO. P0 mainnet 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, public mainnet NO-GO.
2026-11-10 — Draft PR #165: terminate peer block sync at MaxUint64 without overflow
-
PR #165, head
78874f5aab499bc23ac9efe498a514760d76d714on maincebeb5f45cd14bac865d64d147d31f4a66ec6cde.syncFromPeerpreviously usedfor height := localHeight+1; height <= remoteHeight; height++on untrusteduint64; emptyMaxUint64range causes first increment wrap to 0, finalMaxUint64causes post-increment wrap to 0 and can repeat requests indefinitely. New actual loop usesnextPeerSyncBlockHeight(only returns a next height when current < target), with tests for empty/behind/equal and one-/two-block terminal ranges. Dedicated V2 Security Regression-race -count=20. Does not prove historic 8-second consensus timeout root and has no measured TPS gain or BFT change. -
Initial head
78874f5aab499bc23ac9efe498a514760d76d714had CI FAILED due Go test formatting; gofmt corrected heada43c5f2e3e8e473ea0b3e105db9495efd8a1e627. Fresh real sleep180 completed 19:13:57Z→19:16:57Z, unchanged SHA/mergeability rechecked; ALL 5 exact-final-head PR gates COMPLETED/SUCCESS: CI42883175818, V2 Lab42883175766, Lock42883175935, Devnet42883175658, Security Regression42883175832. Protected expected-head squash PR fix(p1): terminate peer block synchronization safely at MaxUint64 #165 MERGED to maincded16a51f8bb436425acbd9554cc9dd57ed3205. Independent REAL 180-second postmerge timer 19:19:04Z→19:22:04Z completed. Exact-main SHA rechecked unchangedcded16a51f8bb436425acbd9554cc9dd57ed3205; all 3 main push workflows COMPLETED/SUCCESS: CI42883935737, V2 Lab42883935819, Security Regression42883935844. Full 5/5 exact-head PR and 3/3 exact-main push gates validated; PR fix(p1): terminate peer block synchronization safely at MaxUint64 #165 merged. Historic P1 CI reliability: investigate timeout in scheduled proposer rotation stress regression #128 8s proposer rotation cause remains unknown and P1 Performance: production V2 throughput optimization and deterministic regression tracking #92 TPS benchmarks deferred. Mainnet remains NO-GO on P0 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. -
PR fix(p1): terminate peer block synchronization safely at MaxUint64 #165 CI correction, 2026-11-10: initial head
78874f5aab499bc23ac9efe498a514760d76d714CI run42882883976failed on Go source formatting check (new test, not functional correctness). Fixed via actualgofmtnew heada43c5f2e3e8e473ea0b3e105db9495efd8a1e627. Old-head results are invalid for merge. Fresh realsleep180timer started 19:13:57Z, marker/tmp/zephyr_pr165_final_pre.done; require all 5 new-head checks and unchanged main/head. Issue P1 CI reliability: investigate timeout in scheduled proposer rotation stress regression #128 historic liveness failure not yet explained; no measured TPS gain.
2026-11-10 PR #166 draft — strictly one JSON document per peer recovery response
- PR #166, exact initial head
febf27b0230d6df45455fde4fb43b181581b5ef1, base maincded16a51f8bb436425acbd9554cc9dd57ed3205.FetchBlock,FetchBlockEvidence,FetchSnapshotused a single Decoder.Decode without checking trailing data. NewdecodeSinglePeerJSONrequires EOF after the first payload, rejects a second JSON document/null/malformed suffix, preserves streaming snapshot behavior, transport signed request proof and existing validation. Focused HTTP tests cover all three endpoints; V2 Security Regression addsgo test -race -count=20. No TPS claim or historical P1 CI reliability: investigate timeout in scheduled proposer rotation stress regression #128 root claim. - Five exact-head PR workflows COMPLETED/SUCCESS following actual real sleep180 20:09:35Z–20:12:35Z and unchanged main/PR SHA check: CI
42892385198, V2 Lab42892385081, Dependency Lock42892385144, Devnet Gate42892385128, Security Regression42892385140. Protected expected-head squash PR fix(p1): reject trailing JSON on peer block evidence and snapshot recovery #166 MERGED into main3249fa87a2a0877ce4f2737a62caff9d1e6b0095. Second REAL postmerge 180s timer completed 20:13:29Z→20:16:29Z. Main SHA unchanged3249fa87a2a0877ce4f2737a62caff9d1e6b0095; all three exact-main push workflows COMPLETED/SUCCESS: CI42893132615, V2 Lab42893132610, Security Regression42893132724. Full 5/5 PR-head and 3/3 main push gate verification GREEN; PR fix(p1): reject trailing JSON on peer block evidence and snapshot recovery #166 merged. Still no evidence of resolving historical P1 CI reliability: investigate timeout in scheduled proposer rotation stress regression #128 rotation liveness timeout, no measured TPS gain. 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 remain OPEN, public mainnet NO-GO.
2026-11-10 — Draft PR #167 constant-memory peer recovery JSON tail scan
-
PR #167, head
c51d52f61d382847b55c871dda4a65b92f37fb85, base main3249fa87a2a0877ce4f2737a62caff9d1e6b0095. fix(p1): reject trailing JSON on peer block evidence and snapshot recovery #166 rejected multiple peer block/evidence/snapshot JSON documents but used secondDecoder.Decode(&any)to reject them, allowing malicious second object to be fully decoded/allocated before failure. fix(p1): scan trailing peer recovery JSON in constant memory #167 scansDecoder.Buffered()and body in constant-memory[4096]bytechunks, checks four legal JSON whitespace bytes, rejects on first invalid byte; preserves arbitrary valid snapshot size, HTTP deadline, certified block validation. Tests assert rejection of prefetched untrusted second document without reading further tail, large valid whitespace and invalid control/JSON after whitespace. Dedicated V2 Security Regressiongo test -race -count=20. Does not prove P1 CI reliability: investigate timeout in scheduled proposer rotation stress regression #128 historic timeout root or TPS gain. -
Five exact-head runs started: CI
42897579128, Lab42897579060, Lock42897578974, Devnet42897579250, Security42897579286, all initially in progress. Realsleep 180started2026-11-10T20:40:38Z, marker/tmp/zephyr_pr167_pre.done; draft until 5/5 + 180s, then expected-head squash and separate 180s + 3/3 main push checks. Public mainnet still NO-GO P0 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. -
PR fix(p1): scan trailing peer recovery JSON in constant memory #167 compile issue, fixed: initial head
c51d52f61d382847b55c871dda4a65b92f37fb85CI42897579128failed Go formatting and lab compile; precise lab loginternal/api/peer_transport.go:103:24: more than one character in rune literalrevealed double-escaped whitespace rune literals, NOT a demonstrated consensus liveness regression. Corrected head93f4e45544c1e90c104d377f2794133ad0a997af. New five PR runs CI42897978603, Lab42897978828, Dependency42897978606, Devnet42897978590, Security42897978689; fresh real sleep180 started 20:43:12Z, marker/tmp/zephyr_pr167_final_pre.done. Old runs not merge evidence. Historic P1 CI reliability: investigate timeout in scheduled proposer rotation stress regression #128 cause unproven, no measured TPS gain. -
PR fix(p1): scan trailing peer recovery JSON in constant memory #167 validated and MERGED: corrected exact head
93f4e45544c1e90c104d377f2794133ad0a997af; new REAL premerge sleep180 20:43:12Z→20:46:12Z verified. Five exact-final-head workflows COMPLETED/SUCCESS: CI42897978603, Lab42897978828, Dependency42897978606, Devnet42897978590, Security42897978689. Protectedexpected_head_shasquash merged main776d9de5098b12702b40f37eb544e73eae057dab. Three main push workflows launched: CI42898771596, Lab42898771598, Security42898771779(initially in_progress). Separate REAL postmerge sleep180 started 20:48:04Z marker/tmp/zephyr_pr167_post.done; 3/3 not yet verified. This only bounds memory during peer JSON tail validation; historical P1 CI reliability: investigate timeout in scheduled proposer rotation stress regression #128 timeout cause unproven, no measured TPS gain, mainnet NO-GO. -
PR fix(p1): scan trailing peer recovery JSON in constant memory #167 postmerge complete: independent REAL postmerge sleep180 marker 20:48:04Z→20:51:04Z confirmed. Main unchanged at
776d9de5098b12702b40f37eb544e73eae057dab, PR merged, all THREE exact-main push workflows COMPLETED/SUCCESS: CI42898771596, V2 Lab42898771598, Security Regression42898771779. Full final-head 5/5 + exact-main 3/3 green. Original head compile failed due double-escaped Go rune literal and fixed on final head; no historical P1 CI reliability: investigate timeout in scheduled proposer rotation stress regression #128 resolution or TPS measured gain. P0 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 mainnet NO-GO.
2026-11-13 — GitHub-first targets, tracked in #208
Execution target update (2026-11-13): preserve the original strict 8-second liveness deadline, collect diagnostics and contend under repeatable isolated GitHub runners (#208). Container/cross-runner tests are evidence, not proof of historical timeout root. Keep OPEN until cause identified or demonstrably excluded with credible reproduction.
2026-11-13 — independent CI reproduced strict 7-validator liveness stall
- Draft diagnostic PR #223 exact head
a418ca71d5e97c1aa0c924d9d035c2838bf92007: normalCIrun43513325696FAILED inConsensus & performance labjob132188821497, strictgo test ./internal/api -run '^TestLab' -count=1 -timeout=90s, specificallyTestLabSevenValidatorsCertifiedFinality. Full 24/24 mempools at all 7 nodes, yet height0 after 5-second finality deadline. At round 3 all nodes reported same proposal block hash but only 4 votes / 40000 voting power (below 5/7 quorum), local signed votes split across rounds 0–3 and round ages varied ~73ms–1.3s. This corroborates unsynchronized round progression / unpropagated votes under CI resource contention but root cause not proved. Existing 8-second and 5-second strict gates must stay unchanged. Keep P1 OPEN, audit voting/rebroadcast/future-round buffering before fix; link P1: 7-validator legacy mempool fanout dropped/delayed 2 tx in exact-main CI (strict 3s gate) #221 because exact-main earlier failed mempool fanout instead.
Activity
the-code-learner commentedon Nov 9, 2026
Investigated exact main push failure on
b9202e2704639b5284b679e9ce7b8d3e3616e74b, run 42661632394 job 129314418005:go test ./internal/api -run '^TestConsensusAutomationAdvancesRoundAndRotatesProposerAfterTimeout$' -count=50failed once after 8.09s atserver_test.go:1969(waitForgeneric 8-second timeout), despite prior smoke/race steps passing. Opened draft PR #129 head08748b3dd7a5b824bd0c92a0f98de7ef491b2d25preserving exact 8s budget and 25ms polling, adding BOTH node statuses, consensus views, round states and latest artifacts on timeout to diagnose true liveness root. CI in progress, no timeout increase, issue remains OPEN until root fix and stress verification. Do not downgrade postmerge failure to green on account of unrelated successful #127 tests.the-code-learner commentedon Nov 9, 2026
2026-11-09 diagnostic PR #130 protected merge main
aa026a8b0a80f161a576cb559cd8c86c317d030a: after original #129 405 due expected required checks on base update, recreated same diagnostic-only change from new main, 5/5 exact-head PR workflows success; after 180-second sleep protected merge, three push checks CI 42705117285, V2 Lab 42705117382 and Security Regression 42705117231 ALL SUCCESS. Diagnostic retains strict 8-second deadline and prints two-node status/consensus/round/artefacts on timeout. Earlier failed run 42661632394 remains valid evidence of intermittent liveness test failure. Issue #128 stays OPEN until root cause reliably diagnosed, fixed and stress verified; do NOT call it resolved from a successful later run.the-code-learner commentedon Nov 9, 2026
2026-11-09 — Additional source-level investigative finding while #133 P0 CI runs (NOT yet proven the root cause of the earlier 8.09s liveness failure):
internal/api/peer_transport.gohttpPeerTransport.postJSONcurrently treats HTTP 409 Conflict as success for all POSTs.PostProposalandPostVoteshare this generic helper.internal/api/server.gostatusForErrormapsErrConsensusRoundMismatch,ErrConsensusHeightMismatch,ErrConflictingProposal,ErrConflictingVote, etc. to 409.internal/api/peer_sync.gobroadcastProposal/broadcastVoteonly record a peer replication incident if transport returns non-nil error. Therefore a rejected consensus proposal/vote due to round drift is currently silently treated as successful delivery and omits the very diagnostic needed to distinguish scheduling lag from liveness regression.-count=50and-race -count=12under bounded load on exact-head CI; inspect diagnostics for root cause.Do not mark #128 completed or relax the 8-second liveness budget on this evidence alone. P0 #42/#54/#55 independent mainnet NO-GO.
the-code-learner commentedon Nov 9, 2026
2026-11-09 — Follow-up implementation in draft PR #134 at head
df0703695546e75d7cf4d9a2549953c379da59ad, based on P0 #133 merged main9a15707c11c77efabb45dd59fcf93f622d03ee6d. ConsensusPostProposal/PostVotenow propagate peer HTTP 409 errors instead of silently reporting delivery, which allows existingbroadcastProposal/broadcastVotereplication-incident hooks to record round/height/conflict rejections. Existing idempotent non-consensus HTTP 409 semantics preserved. Added signed-header HTTP regression with 409/202/500 responses. Five exact-head PR gates running; no merge or success claim yet. This addresses a verified observability defect, NOT a proven causal root of historical 8s proposer timeout; keep issue #128 OPEN until reproducible stress+race evidence explains liveness. Mainnet P0 issues #42/#54/#55 still NO-GO.fix(api): report peer consensus HTTP conflicts as delivery failures (#…
the-code-learner commentedon Nov 9, 2026
2026-11-09 — PR #134 MERGED, protected squash on main:
9e4b347b7aefdeefe4df24b2e7d9bfbcafeff339. Final PR head92b965bb35e4182d1a33e8f55980a0183ade2445: all 5 exact-head PR workflows completed SUCCESS: CI 42720044067, V2 Lab 42720044042, Dependency Lock 42720044171, Devnet Gate 42720043977, Security Regression 42720043788. The first proposed workflow edit accidentally had JavaScriptString.replacesubstitution of$'in a Go regex, causing a workflow syntax failure on obsolete head79acc377; this was corrected from the unchanged valid main workflow via replacement callback, full YAML re-fetched and all five gates rerun on the final head. No bypass.Postmerge main 3/3 push workflows SUCCESS:
Concrete fix:
httpPeerTransport.PostProposalandPostVotenow surface 409 status errors, enabling existingbroadcastProposal/broadcastVotepeer replication incidents (http_status_409) for rejected heights/rounds/conflicts; transactions preserve previous idempotent conflict policy. NewTestHTTPPeerTransportReportsConsensusConflicts(signed request proof, synthetic HTTP 409/202/500), run-race -count=10in V2 Security Regression, and existing strict proposer rotation stress-count=50and-race -count=12both passed.Keep issue #128 OPEN: This is a verified transport diagnostics/correctness improvement, NOT proof of the root cause or a demonstrated liveness fix for the original 8-second failure in run 42661632394. Still need reproducible liveness evidence with both nodes' rounds/proposals/votes, error distribution under CPU contention, and root-cause remediation. No timeout relaxation, skip, manual TPS benchmarking, or P0 mainnet GO claims; #42/#54/#55 still NO-GO.
the-code-learner commentedon Nov 10, 2026
2026-11-10 — Concrete liveness/WAL churn mitigation in draft PR #135, head
4012bb663ea4a45057763e915d826946baa17427. Pre-changemaybeRebroadcastProposal/maybeRebroadcastVoteused last artifacts at the height without verifyingCurrentRound, re-sending stale round proposals/votes and repeatedly writingConsensusActionreplay marks after a timeout. This can flood newly observable HTTP 409 round-conflict incidents (#134), adds per-tick durable WAL I/O under load, and is inapplicable to a QC for the newer round. New guard only retries current-round artifacts, preserving persisted history and current-round recovery; deterministic two-validator test exercises round0 replay, round1 stale suppression and fresh round1 vote replay, with-race -count=12step added to Security Regression. No timeout/QC/validator rule changes. Current PR head has CI, Lab, Lock, Devnet SUCCESS; Security Regression pending. Do not mark #128 solved until the historical 8.09s failure can be reproduced/explained, and do not claim measurable TPS increase or mainnet GO.fix(consensus): suppress replay of obsolete-round messages (#135)
the-code-learner commentedon Nov 10, 2026
2026-11-10 — PR #135 MERGED protected squash into main
89fd5c4987905fcb5e6ec39e0b1d26e7190a88a3: only current-round proposals and votes are rebroadcast, so obsolete-round artifacts do not induce repeated HTTP 409 rejections andMarkConsensusActionReplayedfsynced WAL churn after timeout. Deterministic 2-validatorTestConsensusAutomationOnlyRebroadcastsActiveRoundArtifactsconfirms an initially unfinalized round-0 proposal/vote can retry, but are no longer replayed after advancing to round 1; a new round-1 local vote remains replayable, and no QC is accepted without >2/3 voting power. Dedicated-race -count=12regression included. Exact PR head4012bb663ea4a45057763e915d826946baa17427passed 5/5: CI 42727207535, Lab 42727207268, Dependency 42727207300, Devnet 42727207082, Security 42727206963. All 3/3 postmerge main push workflows SUCCESS: CI 42727744577, Lab 42727744493, Security 42727744475. Actual 180-second test wait completed 2026-11-10T00:21:16Z, postmerge 180-second wait completed 00:25:10Z; SHA and checks verified. Issue #128 remains OPEN: causal root of historical intermittent 8.09s liveness failure is not yet demonstrated by these tests; more bounded CPU contention/repro/log evidence needed. No timeout extension, manual TPS benchmark or mainnet GO.security(api): refuse signed peer transport redirects and implicit pr…
the-code-learner commentedon Nov 10, 2026
2026-11-10 — Source-level P1 peer admission/liveness gap identified; draft PR #139, exact head
14fec839c797911390612f9531092ada49f40823, 5 CI gates currently running. WhenRequirePeerIdentity/validator pin is configured butEnablePeerSync=false, a failed first status/admission request is cached as unreachable;admittedPeerURLspreviously never retries the endpoint, so a transient outage permanently prevents consensus/transaction broadcast to a recovered peer. It could also use staleAdmitted=truehistory when Reachable=false. PR #139 requires both Reachable and Admitted, and adds rate-limited 2s authenticated re-probe only for unreachable peers; reachable wrong-key/chain peers stay denied; atomic retry slot under peerMu avoids 12 simultaneous stampedes. Tests cover outage -> verified recovery and wrong bound-validator rejection under -race -count10. Parent issue #128 remains OPEN: this precise bug is not yet demonstrated as root cause of historic 8.09s scheduled proposer rotation CI failure. No timeout change or TPS claim; P0 mainnet NO-GO.the-code-learner commentedon Nov 10, 2026
2026-11-10 — Draft PR #139 refinement on latest head
8cfb4e8d921727c384a97cbaed47103348168ab2(all five exact-head checks freshly queued). Source-level issue remains: a signed peer status probe that fails once was permanently cached unreachable whenEnablePeerSync=false. Initial retry implementation synchronously re-probed and risked blocking the consensus loop on another 5-second HTTP timeout. Revised solution now usesServer.runAsync(existing Close/WaitGroup lifecycle barrier), with a per-peer in-flight reservation underpeerMu, two-second post-request backoff and mandatory fresh signed/validator-pinned status verification. The oldAdmitted=trueflag from a now-unreachable peer cannot bypassReachablecheck. Regression holds retry HTTP response open and proves 12 concurrent callers do not block or stampede; only one status attempt runs even if the timestamp ages during in-flight I/O; wrong validator stays rejected. A previous head encountered only Gogofmtalignment, corrected from exact CI diff on new head; no bypass/rerun success claim. Keep #128 OPEN until causal root of the old 8s liveness failure is proven; don't relax consensus timeout or claim TPS improvement, mainnet NO-GO.fix(api): single-flight retry for unreachable signed peer admission (#…
the-code-learner commentedon Nov 10, 2026
2026-11-10 — PR #139 MERGED (pending final 3/3 postmerge confirmation). Protected squash commit on main
2530455f2f2e32e3e4476a2eddbfde75e7fea7fb. Exact PR head8cfb4e8d921727c384a97cbaed47103348168ab2had 5/5 completed SUCCESS: CI 42795645755, V2 Lab 42795645614, Dependency Lock 42795645913, Devnet Gate 42795646061, Security Regression 42795645999. Actual final-head 180s timer completed UTC 10:04:52 before rechecking main, exact PR head and all five gate results and merging via expected-head SHA. Earlier heads were revised due direct retry blocking the consensus loop and a CI gofmt mismatch; exact fresh full checks rerun, never bypassed.Concrete fix: when periodic peer sync is disabled, initially failed identity-bound peer status previously stayed unreachable forever. A signed, validator-bound status probe can now re-run asynchronously only for unreachable peers, with 2s post-I/O backoff, single-flight per endpoint under peerMu, tracked Server.runAsync lifecycle and no blocking of consensus/transaction senders. Broadcasting requires BOTH
Reachable && Admitted; cached previously-admitted but unreachable peers cannot be reused. Reachable mismatched validator identities remain denied. Race-repeated deterministic blocked-HTTP, 12-concurrent-callers, fresh signed recovery, wrong-key and stale-admission tests. Issue #128 remains OPEN until the old 8s proposer rotation failure has a proven causal root and adversarial replication evidence. No BFT timeout change, TPS claim or mainnet GO.the-code-learner commentedon Nov 10, 2026
2026-11-10 — PR #139 postmerge 3/3 CONFIRMED SUCCESS after actual 180s sleep. Protected main
2530455f2f2e32e3e4476a2eddbfde75e7fea7fb, current main rechecked equal with zero open PRs. Three main push checks completed SUCCESS on that exact SHA: CI 42796235817, V2 Lab 42796235646, V2 Security Regression 42796235814. Actual postmerge timer finished 10:09:07Z; exact SHA and workflow conclusions rechecked afterwards. PR head8cfb4e8d921727c384a97cbaed47103348168ab2all five gate checks SUCCESS as in prior comment. Safe bounded asynchronous single-flight admission recovery and no cached unreachable-admitted privilege reuse are now implemented and verified. #128 remains OPEN: no reproducible causal determination of the original 8.09s proposer rotation stress failure; new improvements are not conclusive liveness root-cause resolution. No timeout relaxation, benchmark/TPS claim, or mainnet GO.58 remaining items
the-code-learner commentedon Nov 13, 2026
2026-11-13 — Genuine postmerge liveness/performance lab failure on protected main
2bb249772c627017d83afdf959f7e4cec28cd357after PR #198 (5/5 exact-head tests GREEN). Exact-main push CI run43421020342FAILED, Consensus & performance lab job131870736501, strictBenchmarkLabConsensusFinality7Validators5s target height2 missed during sample: nodes 0,1,2,3,4,6 at height2, node5 stuck height1 with 32 mempool transactions, round5 and many HTTP 409 proposal/vote messages. Postmerge Lab43421020287and Security Regression43421020408succeeded => 2/3, main RED, not hideable by rerun. Investigation identifies lab harness transport mismatch:newLabClusterwraps real HTTP transport withlabFaultTransportbut wrapper lackedcertifiedBlockDeliveryTransport.PostCertifiedBlock, so production broadcaster's type assertion falls back to barePostBlock(no QC signatures), which a lagging replica cannot import without local quorum when peer sync disabled. PR #199 exact initial head8c5d56ec69da836cd1b12075546e980c7426e44aadds proper signed certified-block forwarding through same partition/delay/duplicate injection and byte accounting plus compile-time interface assertion and -race count20 regression; 5 workflow runs started CI 43421622761, Lab 43421622757, Dependency 43421622901, Devnet 43421622769, Security 43421622753; at 12:02Z Lock SUCCESS, others running. Actual premerge sleep180 began 12:01:07Z due 12:04:07Z. No benchmark timeout increase, test skip or mainnet GO claim. Keep #128 and #92 OPEN, #42/#54/#55 P0 OPEN NO-GO.fix(p1): forward signed certified finality through lab fault adapter (#…
the-code-learner commentedon Nov 13, 2026
2026-11-13 12:09 UTC — PR #199 FIX for genuine seven-validator benchmark liveness failure now MERGED protected expected-head squash into main
207e8afe5e26489f0ef62c59625dd879561c6b74, exact PR head8c5d56ec69da836cd1b12075546e980c7426e44a. ALL FIVE exact-head workflow gates COMPLETED/SUCCESS: CI 43421622761 (including previously failing BenchmarkLabConsensusFinality7Validators under ORIGINAL 5s deadline), V2 Lab 43421622757, Dependency Lock 43421622901, Devnet Gate 43421622769, Security Regression 43421622753 (new lab signed-transport -race count20 passed). Genuine premerge sleep180 at 12:01:07→12:04:07 and second at 12:04:46→12:07:46 both verified. Root-cause: labFaultTransport did not implement signed certified block delivery interface, so lab exposed bare-block fallback with no signed QC under peer sync disabled, leaving one of seven replicas at height1. New wrapper implements PostCertifiedBlock through actual base transport while preserving fault injection, duplicate deliveries and bytes accounting; compile-time interface assertion, test for blocked/duplicate/healed path. On exact-main SHA, push workflow run IDs CI 43422649266, Lab 43422649294, Security 43422649178 started in_progress as of 12:08:58Z. Separate postmerge real sleep180 started 12:08:29Z, marker /tmp/zephyr_pr199_post_done due 12:11:29. Exact-main 3/3 NOT YET VERIFIED; do not hide the original CI run 43421020342 failure or call current main green before 3/3. #128 remains OPEN for real external multi-host fault and prolonged liveness evidence, #92 remains OPEN for measured TPS; P0 #42/#54/#55 public mainnet NO-GO.the-code-learner commentedon Nov 13, 2026
2026-11-13 12:14 UTC — PR #199 FULL VERIFIED protected main green after addressing real prior seven-validator benchmark failure. Exact final PR head
8c5d56ec69da836cd1b12075546e980c7426e44a5/5 completed SUCCESS: CI 43421622761 (including strict original 5sBenchmarkLabConsensusFinality7Validators), V2 Lab 43421622757, Dependency Lock 43421622901, Devnet 43421622769, Security Regression 43421622753 (new lab adapter test -race count20 passed). Protected expected-head squash merged main207e8afe5e26489f0ef62c59625dd879561c6b74. Independently fetched public GitHub Actions API confirmed three exact-mainevent=pushworkflow runs ALL completed SUCCESS: CI 43422649266, V2 Lab 43422649294, V2 Security Regression 43422649178 at 2026-11-13T12:13:50Z. Real premerge sleep180 #1 12:01:07→12:04:07 and #2 12:04:46→12:07:46 both verified. Real postmerge sleep180 #1 12:08:29→12:11:29 verified; second started 12:11:57 and marker/tmp/zephyr_pr199_post2_donedue 12:14:57 (not yet claimed). Prior CI RED on main2bb24977run 43421020342 stays recorded; do not call it transient network. Root cause was labFaultTransport interface mismatch forcing bare-block fallback instead of signed certified delivery. #128 remains OPEN until independently run 3+ real-host/provider BFT partition/recovery stress and signoff. P0 #42/#54/#55 mainnet NO-GO; #92 TPS benchmarks still unverified on production hardware.the-code-learner commentedon Nov 13, 2026
2026-11-13 — PR #200 OPEN, current exact head
29b3999dccb79a3126b5ba9f8c1087c80bb5c585on protected main207e8afe5e26489f0ef62c59625dd879561c6b74, fixes remaining unsigned-bare-block downgrade inbroadcastBlockwhenRequireConsensusCertificates=truebut injected/legacy peer transport lackscertifiedBlockDeliveryTransport.PostCertifiedBlock. Certified mode now logs explicit per-peer replication incident and returns without any bare PostBlock. Noncertified legacy mode retains ordinary PostBlock. New deterministicTestCertifiedBroadcastFailsClosedWithoutSignedTransport+ security-race -count=30(specific step SUCCESS), existing 7-validator benchmark and strict 8s proposer liveness tests unchanged. First attempted head3dc03627...failed gofmt in new test; corrected exact final head 29b3999..., fresh CI 43430783046, Dependency Lock 43430783020, Devnet 43430783110 all completed SUCCESS; V2 Lab 43430783272 and V2 Security Regression 43430783221 running as of 13:10Z. First genuine premergesleep18013:06:32→13:09:32 UTC verified complete. Second realsleep180started 13:10:07 due 13:13:07, marker/tmp/zephyr_pr200_wait2.done. No merge before 5/5 checks and completed wait; then protected expected-head merge and 3 exact-mainpushcheck. P0 #42/#54/#55 and P1 #128 remain OPEN NO-GO.fix(p1): refuse bare block broadcast without signed certified transpo…
the-code-learner commentedon Nov 13, 2026
2026-11-13 — PR #200 protected squash MERGED main
b8acfe9afcd67f51d74a71f203062edb7285c407from exact PR head29b3999dccb79a3126b5ba9f8c1087c80bb5c585, 5/5 head SUCCESS: CI 43430783046, Lab 43430783272, Lock 43430783020, Devnet 43430783110, Security 43430783221; and independent 3/3 exact-mainevent=pushCOMPLETED/SUCCESS: CI 43431827955, Lab 43431827668, Security 43431827833 (verified UTC 13:18:43). Premerge genuine sleep180 13:06:32→13:09:32 and 13:10:07→13:13:07, plus postmerge sleep180 13:14:01→13:17:01 all verified. Fix eliminates remainingbroadcastBlockfallback from signed QC-required transport to bare PostBlock when injected/legacy transport lacks certified-delivery API: emits explicit per-peer replication incident and fails closed; noncertified legacy network still uses PostBlock; new race -count=30 negative test passed. Additional P1 PR #201 OPEN: replace fragileerr.Error()=="peer returned status 409"in certified catchup with private peerHTTPStatusError + errors.As, so actual and wrapped HTTP409 trigger history recovery, fake matching wording and 503 fail closed. Exact final head currently1895a6bdb607f36ce746cdee285a8b0990e00864(first head a381bbf... failed gofmt and was corrected). Fresh PR201 CI 43433030424, Lab 43433030333, Lock 43433030380, Devnet 43433030316 all completed SUCCESS; Security 43433030553 in progress as of 13:24Z. First genuine sleep180 13:20:31→13:23:32 complete; second 13:24:53→13:27:53 currently running. Do not merge #201 until final 5/5 and actual 180 wait, then independent exact-main 3 push. #128 remains OPEN for sustained independently deployed Byzantine liveness. P0 #42/#54/#55 public mainnet NO-GO, P1 #92 measured TPS OPEN.fix(p1): require typed HTTP conflict for signed certified catchup (#201)
the-code-learner commentedon Nov 13, 2026
2026-11-13 — PR #201 FULLY VERIFIED: exact final head
1895a6bdb607f36ce746cdee285a8b0990e00864, all five head workflows completed SUCCESS: CI 43433030424, Lab 43433030333, Lock 43433030380, Devnet 43433030316, Security 43433030553. Original candidate a381bbf failed gofmt; fixed rather than rerun. Protected expected-head squash mergedmainSHA263524c05e039738b8ae1abbaf4ff8e492a733f7. Independently verified ALL THREE exact-mainevent=pushcompleted/success via public Actions API at UTC 13:34:50: CI 43434042223, Security 43434042216, Lab 43434041784. Real premerge sleep180 13:20:31→13:23:32 + 13:24:53→13:27:53 both verified; postmerge sleep180 13:29:38→13:32:38 verified.deliverCertifiedReplaynow identifies actual HTTP 409 viaerrors.AsonpeerHTTPStatusError, noterr.Error()string, preserves original human-readable wording, rejects spoofed matching text and HTTP503, and accepts wrapped typed status; new real signed-HTTP regression -race count30 passed. PR #202 OPEN candidate head0c629e8070ded52ea47b82c1c0c1b89870932588base main 263524c..., adds strict 10-height signed QC gap with sync disabled, first 409 recovery bounded at 8, subsequent verified-height8 tip resumes 9–10, checks all ten block hashes and recipient QCs. Five workflows CI 43434780602, Lab 43434780626, Lock 43434780612, Devnet 43434780627, Security 43434780619. CI/Lock/Devnet SUCCESS as of 13:37Z, Security race test for ten heights SUCCESS, Lab and full Security still active. Real sleep180 started UTC 13:35:47 marker/tmp/zephyr_pr202_wait1.donedue 13:38:47. No merge until 5/5 and timer and independent 3/3 main push. #128 remains OPEN for true independent multihost sustained BFT, P0 #42/#54/#55 NO-GO.test(p1): verify bounded signed catchup across ten finalized heights (#…
the-code-learner commentedon Nov 13, 2026
2026-11-13 — PR #202 bounded 10-height QC signed catchup TEST MERGED protected expected-head main
049e1b03292fe284405aa779492b4d780b1c9f45, exact head0c629e8070ded52ea47b82c1c0c1b89870932588; all five exact-head workflows completed SUCCESS: CI 43434780602, Lab 43434780626, Lock 43434780612, Devnet 43434780627, Security 43434780619. New -race count3 test confirms 10 locally committed valid QCs: first latest-height HTTP409 triggers oldest-first bound exactly 8, replica height8 with signed QC, second retry validates committed hash at peer height8 and sends heights9-10; receiver independently verifies all ten canonical blocks and certificates, no peer sync or unsigned fallback. Genuine premerge sleep180 13:35:47→13:38:47 and 13:39:33→13:42:33 complete. Exact-main independentevent=pushthree workflows now ALL completed SUCCESS: CI 43436132316, V2 Lab 43436132384, V2 Security Regression 43436132381, verified UTC 13:49:49. First real postmerge sleep180 13:43:33→13:46:33 complete; second postmerge sleep180 started 13:49:09 due 13:52:09, marker/tmp/zephyr_pr202_post2.donenot yet verified. P1 #128 OPEN for real independent 3+ host Byzantine sustained liveness, P0 #42/#54/#55 mainnet NO-GO. No measured production TPS claim.the-code-learner commentedon Nov 13, 2026
2026-11-13 — P1 signed certified block delivery DoS hardening PR #204 OPEN, candidate exact head
7b6c40bd4ca11131c506269b527d2f882c155eccon main049e1b03292fe284405aa779492b4d780b1c9f45./v1/internal/certified-blockspreviously decoded an unbounded authenticated peer JSON body, including during request-proof inspection. AddsmaxCertifiedBlockDeliveryBytes = 64MiBlimit, immediate HTTP413 on oversized declared Content-Length,http.MaxBytesReaderBEFORE peer proof for chunked/streaming payloads, and actual MaxBytesError -> HTTP413 in validation/decode; independent signed proposal/vote quorum, state and all existing safeguards remain unchanged. Negative testTestCertifiedDeliveryRejectsOversizedDeclaredAndStreamingBodiesexercises oversized declared and legitimate cryptographically signed overlimit chunked request, confirms receiver height0. Dedicated Security Regression -race count2 negative step PASSED. 5 exact-head workflow IDs CI 43440131995, Lab 43440131941, Dependency 43440131993, Devnet 43440131938 all SUCCESS as of 14:13Z; Security 43440132001 IN_PROGRESS. Real premerge sleep180 started 14:10:56Z marker/tmp/zephyr_pr204_pre1.done, due 14:13:56Z. Concurrent P0 PR #203 remains open; if main changes, rebase and rerun all 5 head checks. No protected merge until full 5/5+actual timer, then independent 3/3 exact-main push and postmerge sleep180. The 64MiB maximum is a new explicit wire-size constraint; revisit with legitimate large-block design. P0 #42/#54/#55 OPEN mainnet NO-GO, #128 real independent multihost liveness OPEN.security(p1): bound signed certified block HTTP payloads (#204)
security(p0): bound signed transaction bytes and consensus block coun…
security(p0): block oversized certified finality payload before outbo…