hpc: the first and last cut are the rolling floor's change indicator - #329
Conversation
Drift is read at the bucket boundaries: FIRST_CUT (1σ) and LAST_CUT (3σ) are located through the active shape at the anchor and at the current coordinates. Equal motion is translation; unequal motion is dilation. CutDrift carries both motions and the (Δμ, Δσ) they decompose into, Δσ = (ΔT_first − ΔT_last)·σ/(off_first − off_last), Δμ = ΔT_first − off_first·Δσ/σ. A checkpoint shifts on |Δμ| > σ/2 or |Δσ| > σ/4. On the Gaussian lattice this reproduces the running-versus-anchor parameter test exactly (every pre-existing drift, cadence, batching and legacy-oracle test is unchanged). Through an empirical shape the motion is judged in the learned geometry: a dilation the ruler cannot express moves no bucket and is not drift. cut_drift() exposes the indicator on demand. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019HnekoM1EidTwQLS3oFVFm
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches📝 Generate docstrings
Comment |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_cf964493-1e92-4f4a-bf72-10176cd53263) |
The checkpoint built FloorShift from anchor + the cut-implied (d_mu, d_sigma). On the empirical path that decomposition is quantized by the ruler's rank resolution (an actual 80-unit dilation reads as 84), which is fine for a change indicator and wrong for a new anchor when the exact MomentsU32 coordinates are already in hand. The cut motion still decides WHETHER a shift is raised; the shift now carries the exact running coordinates, and recalibrate() anchors on them. CutDrift.d_mu/d_sigma are documented as diagnostics: exact on the Gaussian lattice, effective and quantized through an empirical shape, zero spread when the two cuts collapse to one offset. Regression test cuts_decide_whether_moments_decide_where pins the separation. checkpoint_drift_is_what_the_cuts_see now expects the exact sigma of a constant stream (0, floored to 1) instead of the anchor's 8. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019HnekoM1EidTwQLS3oFVFm
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_9edd6d4e-01aa-4cf0-952a-305cda8b9ed9) |
Follow-up to #328.
What changes
Drift is now read at the bucket boundaries.
FIRST_CUT(1σ) andLAST_CUT(3σ) are located through the active shape twice: once at the anchor, once at the current coordinates.CutDriftcarries both motions and the(Δμ, Δσ)they decompose into:Δσ = (ΔT_first − ΔT_last)·σ / (off_first − off_last)Δμ = ΔT_first − off_first·Δσ/σΔσ = (ΔT_first − ΔT_last)/2andΔμ = ΔT_first + Δσ, exactly.cut_drift()exposes the indicator on demand.Cuts decide WHETHER, moments decide WHERE
MomentsU32owns the facts, and the first and last cut own the drift decision. Recalibration adopts the exact current facts.|Δμ| > σ/2or|Δσ| > σ/4of the anchor.FloorShiftit raises carries the exact running coordinates (run_mu,run_sigma), neveranchor + cut-implied Δ.recalibrate()anchors on those.CutDrift.d_mu/d_sigmaare diagnostics:d_sigmais 0.Behaviour
Tests
cuts_decide_whether_moments_decide_wherepins the separation. With an empirical shape at an anchor of σ=316 and an actual +80 dilation:(Δμ, Δσ) = (6, 84);σ/4 = 79criterion;FloorShiftequals the exact(run_mu, run_sigma), not(μ+6, σ+84);recalibrate(), the anchor equals the exactMomentsU32coordinates.checkpoint_drift_is_what_the_cuts_seenow expects the exact σ of a constant stream (0, floored to 1), not the anchor's 8.anchor + Δconstruction turns both of those tests red.no_stdbuild and the bench were not run locally, so CI covers them.🤖 Generated with Claude Code
https://claude.ai/code/session_019HnekoM1EidTwQLS3oFVFm