Repository navigation
core lanes: a cut chance tail prices by the rule's rates, not as a measured zero (#2870) - #2979
Conversation
|
Thanks @devopsfortunato for picking up #2870, and for writing down both of GLM's zero sources for whoever wires the first family. The pricing rule is right. With no marker, Three small things before it lands:
Once these are in and CI is green, it can go on the landing queue.
|
|
Addressed the three requests in
Each lifecycle assertion was also checked against an independently restored mutation: null marker commit, removed clamp, missing head cache replacement, missing copy cache/marker clears, either retention guard clause, the context-copy clause, the normal prior restore, and the error restore all fail their corresponding assertions. No mutation or debug print remains. Independent checks on this head:
The new-head full CI is being checked separately; the old head's green checks are not being counted for this revision. No family producer or GPU benchmark is added, per your scope decision. |
7ac70e2 to
933cf1e
Compare
|
Thank you @devopsfortunato. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
What this changes
Shared draft pricing now distinguishes a chain-cut, unmeasured tail from measured zero chances: the measured prefix stays cached and the unknown tail continues at the rule's rates. The cache's cut marker also survives allocation errors; host tests exercise its commit, confidence clamp, retention and clearing through the real allocator and a fake backend probabilities hook.
eab305db0091a23b28122caadc8bf069f53d211e. Original implementationf1bc2c62f; review follow-up7ac70e226cdc9d2ac9e1abe346ba714dc3052984.atc overlap --json: run on the final staged patch at 2026-11-16 15:06 UTC. Observed relevant overlaps merged cleanly. Coverage is incomplete (otherPullRequestsLimit,pullFilesUnavailable,pullRequestsLimit,timeLimit), so this is not a claim that every open PR was covered. ATC confirms our claim and associates PR core lanes: a cut chance tail prices by the rule's rates, not as a measured zero (#2870) #2979; a separate complete open-PR pagination found no competing PR linked to core lanes: shared rounds can't tell a cut draft tail from a measured zero chance #2870.No family producer is enabled here. GLM's DFlash2 block path still stays off shared draft allocation under #2793. A future producer sets the marker at its first unmeasured chance, whether from a cut chain or a tail past the drafts it holds.
Checks on this head
7ac70e226cdc9d2ac9e1abe346ba714dc3052984.python3 tools/pr_check.py --base upstream/main --pr 2979exits 0, with only the advisory warning for no Unreleased bullet naming this PR. No CHANGELOG changes in the follow-up.zig test zig/src/core/lanes/lanes.zig --test-filter 'cached draft cuts:' -lc: 22 passed, 0 failed (10 new tests plus 12 module test stubs).zig test zig/src/core/lanes/lanes.zig --test-filter 'shared draft prices:' -lc: 17 passed, 0 failed.zig build -j2 test-shared-lane-regressions-host --test-timeout 10m --summary all: 3/3 steps succeeded; 371 passed, 1 skipped, 0 failed out of 372 tests. This build step supplies the repository modules needed by the complete lane suite; a bare unfilteredzig testlacks thesysimport.zig fmt --check build.zig zigandgit diff --check: exit 0.errdefer, the error tests fail with prior marker 1 becoming 3 or null. Ten independently restored mutations make the commit, clamp, replace-cache, copy/context-copy clear, non-head/empty-prefix retention, success restore and error restore checks fail on assertions. The final source contains no mutations or debug prints.zig,zig-b,zig-windows,pytest,fmt,release-paths, bothbenchmark-clients,zig-macos-dev-tools.zig build testsuite on the loaded four-core host; the PR's CI runs the full host/platform checks. No GPU/model benchmark was run.Receipt
Review requests addressed
windows.allocatethrough a fake backend hook, including head commit/clamp, forced/no-draft/fill/empty-prefix retention, copy/context-copy clearing, and both error paths. Each relevant assertion has a failing mutation control.errdeferrestores the prior marker if the hook fails orNoDraftProbabilitiesis raised.Backend.VTable.probabilitiessays the hook markss.draft_chances_cutat the first unmeasured chance.Checklist
zig,zig-b,zig-windows,pytest,fmt,release-paths, bothbenchmark-clients,zig-macos-dev-tools; run https://github.com/ashhart/TensorFold/actions/runs/43894137063).