Skip to content

feat(lane D): carry the published court across the report gap (owner 2026-12-01) - #1046

Merged
tensorlink-dev merged 2 commits into
mainfrom
laned-court-carry
Dec 1, 2026
Merged

tensorlink-dev merged 2 commits into
mainfrom
laned-court-carry

Conversation

@tensorlink-dev

Copy link
Copy Markdown
Contributor

Owner decision 2026-12-01: "miners only stop getting paid when someone beats them." Today the lane D court is read at the EXACT boundary only, so between a settlement boundary and the publication of that settlement's lane D report the vector burns lane D's share (live: {0: 1.0} while pending vs {0: 0.95, 164: 0.05} once published). This PR keeps paying the court through that gap, on the main validator, in the audit and on satellites.

Main validator (weight fold, cascade/validator/weights.py)

  • _lane_d_court_ready unchanged (exact boundary, bounded wait, load_published). When it is still unknown, the new _lane_d_carried_court(boundary) walks court_carry_boundaries(cfg.round, boundary, n) (newest first). For each boundary it reads court_for, then load_published (the signed, audit-verified record). It pays the first court it finds and logs which boundary it carried. The genesis check reads the carried boundary.
  • The switch to the boundary's own court happens on the next push that knows it. The existing _lane_d_catch_up pulls that push forward to the rate limit.
  • Burns only when nothing in the bound is published: none ever (genesis), or the newest is older than [lane_d] court_carry_max_settlements (new knob, default 2 = 6 h, 0 = old behaviour). It is parsed in parse_lane_d / load_chain_config, range [0, 64].
  • The knob is weight-side only. It is not a signed report param, and lane_d_config_record leaves it out of the eval host's judge request, so an off-box host on an older release still parses that request.

Receipt + audit

  • RoundReceipt.lane_d_court_boundary (drop-when-default: 0 ⇒ not in the canonical body, so old receipts keep their bytes and signatures). It is set only when the settlement vector carried a court. _publish_round_receipt stamps it from _last_lane_d_carry.
  • cascade/audit: lane_d_court_boundary() bounds the named boundary against the same court_carry_boundaries. lane_d_pay checks the record against the carried boundary. fetch_lane_d_record reads the record published at the carried boundary. The audit still refuses three cases, and only lane D's share burns in each: a vector that is not the carried court's, a record of another boundary, and a boundary past the bound (lane_d_boundary_mismatch).

Satellites (scope addition: Yuma needs >50 % stake carrying)

  • A new-code satellite follows a carried receipt (the audit path above). If the settlement's own report is not published and the receipt names no carry, it carries the newest published court within the same bound itself. Once the own report is published, sync replays the receipt again and switches to the own court (SatelliteState.lane_d_carried / lane_d_prev_anchor; old state files load).
  • Backward compatible / opt-in. The signed lane D report format does not change; the change is in the weight vector and the receipt only. External validators and satellites adopt this as an opt-in upgrade. One on the released line (checked with git archive of 75310262 and of origin/validator-release-laned-live 890fe6d, replaying a carried receipt) still verifies the receipt signature, verifies the round and never burns the whole vector. It burns lane D's part only while the report is pending, and once the own report is published it pays as before. In gaps, our vector and an un-upgraded satellite's differ on lane D's share only. Lane D reports are unaffected.

Tests (torch-free; every new test fails on base by assertion)

  • tests/accept/w8b/test_w8b_court_carry.py:
    • pending report → previous court paid
    • restart → court loaded from the bucket and carried
    • new report → new court, no carry recorded
    • no published report ever → burn
    • court older than the bound → burn (=3 carries it, =0 never carries)
    • carried genesis → nothing carved
    • knob parse / round-trip + judge-record exclusion
    • receipt field drop-when-default
  • tests/accept/w8b/test_w8b_court_carry_satellite.py:
    • the audit accepts a carried-court receipt and rejects a wrong court, a wrong-boundary record, an out-of-bound boundary and an uncarried receipt with the old record
    • a carried receipt round-trips and its signature verifies
    • the satellite follows the carried receipt and switches to the own court once published
    • the satellite carries while the report is pending
    • the satellite burns past the bound and carries within a widened bound
  • Updated test_w8b_exact_boundary_absent.py: with no record at b, running and fresh nodes still agree; they now carry b's predecessor's published court.
  • Also green locally: all of tests/accept/w8b, w9 derive_weights/rev623/independence, w2 keys, w14 receipt, w_offbox identity, w_ov satellite, w8 vectors, w5f genesis, tests/unit/test_satellite_replay.py, receipt/weights/config units, tests/unit/test_incident_rules.py. Ruff clean.

PATHS ride along in W8b's PATHS. Applies cleanly onto origin/validator-release-laned-live + #1042 + #1044 (only PATHS conflicts without #1042) and onto #1045's head.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BMT4D7f8wd5dXsASyWUBwe

…2026-12-01)

"Miners only stop getting paid when someone beats them." While a
settlement's lane D report is not yet known, the weight fold pays the court
of the most recent published, verified settlement at most
[lane_d] court_carry_max_settlements (default 2) settlements back, instead
of burning lane D's share; it switches to the new court as soon as it is
known (the existing catch-up pulls that push forward). None ever published,
or only older than the bound: burn, as before.

- receipt: lane_d_court_boundary (drop-when-default) names the carried
  boundary; older receipts keep their bytes and verify.
- audit: lane_d_pay / fetch_lane_d_record read the record at the carried
  boundary, bounded by court_carry_boundaries; a vector that is not that
  court's, a record of another boundary or one past the bound still burns
  lane D's share.
- satellite: follows a carried receipt; carries the newest published court
  within the same bound when the settlement's own report is not published;
  switches to the own court once it is.
- the knob stays out of the eval host's judge request; the signed lane D
  report format is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BMT4D7f8wd5dXsASyWUBwe
@vercel

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cascade Ignored Ignored Preview Dec 1, 2026 6:10am UTC

Request Review

@tensorlink-dev tensorlink-dev added the laned:W8b Lane D plan WP W8b label Dec 1, 2026
@tensorlink-dev
tensorlink-dev added this pull request to the merge queue Dec 1, 2026
Merged via the queue into main with commit 75a707b Dec 1, 2026
12 checks passed
tensorlink-dev added a commit that referenced this pull request Dec 1, 2026
…2026-12-01) (#1046)

"Miners only stop getting paid when someone beats them." While a
settlement's lane D report is not yet known, the weight fold pays the court
of the most recent published, verified settlement at most
[lane_d] court_carry_max_settlements (default 2) settlements back, instead
of burning lane D's share; it switches to the new court as soon as it is
known (the existing catch-up pulls that push forward). None ever published,
or only older than the bound: burn, as before.

- receipt: lane_d_court_boundary (drop-when-default) names the carried
  boundary; older receipts keep their bytes and verify.
- audit: lane_d_pay / fetch_lane_d_record read the record at the carried
  boundary, bounded by court_carry_boundaries; a vector that is not that
  court's, a record of another boundary or one past the bound still burns
  lane D's share.
- satellite: follows a carried receipt; carries the newest published court
  within the same bound when the settlement's own report is not published;
  switches to the own court once it is.
- the knob stays out of the eval host's judge request; the signed lane D
  report format is unchanged.

Claude-Session: https://claude.ai/code/session_01BMT4D7f8wd5dXsASyWUBwe

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 75a707b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

laned:W8b Lane D plan WP W8b

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant