Repository navigation
3.x.x: measure accepted-block revision work delivery - #475
Conversation
This comment has been minimized.
This comment has been minimized.
|
@cursor review |
|
Follow-up orphan repair is published and author-qualified at
The integrated production tree passed 608 Rust tests, with three pre-existing ignores. Final test-only lint cleanup passed all 19 landing unit tests, all 34 landing integration/support tests and all-target Clippy. All 16 landing gate sites executed. Both upstream base changes are incorporated: PR476 at Fresh-head CI passed all 20 jobs on The unconditional exactly-once checkbox remains open across restart, unavailable evidence and bounded tracking. The accepting frontend learns a peer's terminal disposition on successful collection; this does not claim the peer's commit time as a locally observed event. No accounting writes, payout decisions, lock order, original deadlines, identity labels or Stratum delivery boundary changed. The existing metric and alert definitions remain unchanged by this repair, thresholds still require operational measurement, and no merge or deployment occurred. Repeated observer lock/scan cost remains an unmeasured performance concern. |
|
@cursor review Please verify the delta from |
|
@cursor review Please verify the follow-up delta through |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 9b03ffa. Configure here.
The rebase onto 9b6caed resolved the census, metadata, scenario and generated-document conflicts against #475's landing families; this commit repairs the two fixtures the resolution left malformed and regenerates the metric inventory, migration table and qbit-tools patch on the rebased tree. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Refs #458.
Records this frontend's definitive node acceptance or active-chain proof through the real offer path until its first successful
mining.notifywrite carrying compatible post-landing work. All three histogram results (published,degraded,superseded) end at delivery; prepared work or a newer revision alone cannot finish the interval. The oldest pending age survives a second acceptance, failed refresh, and supersession, while actual existing build deadline hits increment once.Tracking is bounded and process-local, with mature-height retirement and explicit restart boundaries. A separate unlabeled tracking-unknown gauge preserves lost-evidence and saturation warnings while the oldest known pending age remains visible; an unknown interval cannot hide another measured stall. Lost revision/delivery ordering evidence suppresses terminal samples, and proven orphans close their wait without a delivery histogram while retaining deduplication. No peer acceptance timestamp is inferred. With no connected miner, a known deliverable interval remains pending even when work is prepared. Ordinary settlement, operator recovery and reconciliation observe the existing COMMIT boundary and exact committed revision without adding accounting writes, transactions, locks, deadlines or authority changes; first-confirmation evidence is retained independently of observer arrival order.
Durable orphan handling also crosses frontend boundaries: the existing ten-second metrics collector reads terminal outbox state for at most 4,096 locally unresolved identities, under its existing three-second total deadline and read-only snapshot, skipping the extra SELECT when empty. A shared ledger observer marks in-flight/lost/cancelled orphan COMMIT outcomes uncertain; acknowledged success or positive durable evidence closes the wait without a delivery sample and retains its tombstone. Negative, failed, cancelled or stale reads cannot fabricate success. This adds no work-publication dependency or accounting mutation.
Adds three alert definitions: pending warning above one second, pending critical at the provisional 307-second incident floor, and timeout-counter increase. All have zero added dwell. The critical floor is incident duration, not evidence of early warning; thresholds need measurement in #291. This PR does not deploy alerts.
Validation for published head
9b03ffa53acc085777fb9424ea019bd8cc7f0321, incorporating3.x.xat2e81ca3c502a071c428bfd8a593f87e0454da3aa: the integrated production tree passed 608 Rust tests (516 library, 34 landing/support including 16 live landing cases, 8 lost-race, 17 observability, 5 RPC-deadline and 28 Stratum); three pre-existing tests remain ignored. Subsequent test-only lint cleanup was rechecked with all 19 landing unit tests, all 34 landing integration/support tests and all-target Clippy with warnings denied. All 16 required landing gates executed against real PostgreSQL 16, a fake node and actual sockets. The peer-orphan, lost-COMMIT and cancelled-COMMIT cases failed before repair and pass after it. Formatting, 13 gate-validator tests, 96 deleted-test-map/shard tests, and the live deleted-test-map owner check passed. The final docs/validator-only base merge preserved the two landing rows as partial and corrected their triage index; no validator was weakened. Fresh-head CI passed all 20 jobs on9b03ffa53acc085777fb9424ea019bd8cc7f0321.The metric/alert definitions are unchanged by this follow-up: the census remains 51 families /214 startup /312 populated, with four added families /48 series versus the original baseline and no identity labels. The earlier qualification at
14d2430passed 177 PromQL expression assertions, 117 alert assertions and 10 deployment combinations; those unchanged tests were not rerun for this orphan repair. Full workspace and release-profile allocation tests were not run locally. Adjacent #470 remains separate and needs a combined census at integration.Issue checklist:
Follow-up review disposition: Sol verified the prior settlement/recovery, mixed-age and saturation fixes, then identified the peer-orphan and uncertain orphan-COMMIT gaps now repaired in
a4e0337735dc04a9cbbe6afdf0ca6f0b9f7d4c2f. Both are author-qualified, and Sol's completed independent final delta review found no refutation on9b03ffa53acc085777fb9424ea019bd8cc7f0321after independently passing all 19 landing unit tests and three real PostgreSQL orphan controls; the public ledger records the evidence and limits. Cursor delta verification completed on9b03ffa53acc085777fb9424ea019bd8cc7f0321with no new issues after one request. The independent database invocation that skipped its bodies was excluded from evidence; the three credited cases were rerun with required integration enabled. That review did not measure a live multi-frontend deployment, sustained collector latency or cross-restart identity. Fable remains provider-blocked/incomplete, not passed, and its safeguard was not bypassed; the full review battery is not claimed complete. No merge or deployment is requested.