test(cliffs): the border residual is a WEST-edge residual (#84) - #150
Merged
Conversation
…ections explains none (#84) Three mechanisms have now failed on the chunk-border enrichment - the orientation-reach rival (#134), cascade double-counting (#143), and the cross-chunk destroy cascade (#149, 2 of 25). This stops proposing mechanisms and describes the 23 survivors instead. Zero capture. 1. updateConnections removes ZERO of the 23. It is the one engine pass that runs EXCLUSIVELY on the chunk's outer ring, and no audit had applied it - #143 excluded it deliberately as an upper bound - so it had the best prior of anything left for a border-shaped defect. 23 survive the cascade alone and the same 23 survive cascade + updateConnections. 2. The survivors are WEST. 17 of 23 are on a chunk border, 6 interior. Splitting the 17 by edge against a base rate MEASURED over every raw border cell in the same regions rather than assumed uniform: edge survivors expected base z west 9 3.82 22.5% +3.01 north 5 3.81 22.4% +0.69 east 2 4.81 28.3% -1.51 south 1 4.57 26.9% -1.95 The measured base rate is what makes this a finding rather than a shape of the lattice: west carries the FEWEST border cells and the MOST survivors. Four bins were scored, so west's Bonferroni-corrected two-sided p is ~0.005 - still significant, and stated, because scoring four bins and reporting the largest is exactly how a 3-sigma result turns out to be noise. "On a chunk border" becomes "on the WEST edge of a chunk" - a directional signature, so it points at a mechanism with a direction. 3. The lead, recorded as a lead and not asserted: fixImpossibleCellsSweep clears the first CLEARABLE edge in the order L, T, R, B - west first, north second - and an edge is clearable only if it is not on the chunk's outer boundary. West + north is 14 of 17. It is the only rule in the port whose asymmetry matches, and already the named cause of Nauvis's ~6% residual. This spec measures where the survivors are, not why; the ore recall gap independently found all six of its cells with the nearest resource to the WEST, so there is more than one possible source of a west flavour. Verified: pnpm run verify green - 1574 app (up 4) + 13 worker + 3 container, 0 warnings, exit 0. Measurement only; shipping accuracy unchanged. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HKjzpWJw1HbnigPP9udqN2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three mechanisms have now failed on the chunk-border enrichment - the orientation-reach rival (#134), cascade double-counting (#143), and the cross-chunk destroy cascade (#149, which got 2 of 25). So this stops proposing mechanisms and describes the 23 survivors. No capture.
1.
updateConnectionsexplains NONE of themIt is the one engine pass that runs exclusively on the chunk's outer ring (
applyCliffsgates it on the fifth argument oftryToAddCliff), and no audit had ever applied it - #143 excluded it deliberately as an upper bound. It therefore had the best prior of anything left for a border-shaped defect.23 survive the cascade alone, and the same 23 survive cascade +
updateConnections. A fourth mechanism ruled out.2. The survivors are WEST
17 of the 23 sit on a chunk border, 6 are interior. Splitting those 17 by which edge, against a base rate measured over every raw border cell in the same regions rather than an assumed uniform one:
The measured base rate is what makes this a finding rather than a shape of the lattice. West carries the fewest border cells (22.5%, against east's 28.3%) and the most survivors - so this cannot be "there are simply more west cells".
Four bins were scored, so west's Bonferroni-corrected two-sided p is ~0.005. Stated explicitly, because scoring four bins and reporting the largest is exactly how a 3-sigma result later turns out to be noise.
This is a sharper localisation than the enrichment itself (z = 2.67): "on a chunk border" becomes "on the WEST edge of a chunk", which is a directional signature and therefore points at a mechanism that has a direction.
3. The lead, recorded as a lead
fixImpossibleCellsSweepclears the first clearable edge in the orderL, T, R, B- west first, north second - and an edge is clearable only if it is not on the chunk's outer boundary. West + north is 14 of the 17. It is the only rule in the port whose asymmetry matches the observed one, and it is already the named cause of Nauvis's ~6% residual.Deliberately not asserted. This spec measures where the survivors are, not why. A test needs a discriminator separating the sweep's edge order from anything else west-flavoured - and note the ore recall gap (#142) independently found all six of its cells with the nearest resource to the west, so "something is west-flavoured" already has more than one possible source in this investigation.
Verification
pnpm run verifygreen - 1574 app (up 4) + 13 worker + 3 container tests, 0 warnings, exit 0. Measurement only; shipping accuracy unchanged.🤖 Generated with Claude Code
https://claude.ai/code/session_01HKjzpWJw1HbnigPP9udqN2