Skip to content

test(cliffs): the border residual is a WEST-edge residual (#84) - #150

Merged
wormeyman merged 1 commit into
mainfrom
cliffs-audit-23-survivors
Aug 4, 2026
Merged

test(cliffs): the border residual is a WEST-edge residual (#84)#150
wormeyman merged 1 commit into
mainfrom
cliffs-audit-23-survivors

Conversation

@wormeyman

Copy link
Copy Markdown
Owner

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. updateConnections explains NONE of them

It is the one engine pass that runs exclusively on the chunk's outer ring (applyCliffs gates it on the fifth argument of tryToAddCliff), 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:

edge survivors expected base rate 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 (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

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 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 verify green - 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

…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
@wormeyman
wormeyman merged commit 9fb6faa into main Aug 4, 2026
6 checks passed
@wormeyman
wormeyman deleted the cliffs-audit-23-survivors branch August 4, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant