Skip to content

Commit 5c9b4e8

Browse files
committed
test(cli): raise the option-B probe anti-vacuity floor to the measured 35
The merge with main brings #15261's re-anchored floor (a real bound now that `OPTION_B_LOSSES` is empty) together with this card's four `@objectstack/verify` rows. Merged, the probe measures 35 rows, so the floor moves 30 -> 35. 35 is measured, not remembered: with the assertion temporarily written `toBe(-1)` the run reports `expected 35 to be -1`; a floor of 36 goes RED on the same fixture. The raise also closes an off-by-one it inherited — 30 stood against a probe that measured 31. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UHvF5hyiZjnCyExFnfQB8m
1 parent ad51469 commit 5c9b4e8

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

packages/cli/test/option-b-reader-acceptance.pin.test.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,23 +265,30 @@ describe('#15004 — option-B acceptance pin: every subsystem must see its colle
265265
// comment, and the fourth direction this file's header claims ("the probe
266266
// itself quietly measuring less ⇒ RED") had silently stopped existing.
267267
//
268-
// 30 is MEASURED, not remembered: with this line temporarily written
268+
// 35 is MEASURED, not remembered: with this line temporarily written
269269
// `expect(additive.rows.length).toBe(-1)`, the run reports
270-
// `expected 30 to be -1`. Verified live at the boundary in the same
271-
// session — a floor of 31 goes RED on the same fixture, so the assertion
270+
// `expected 35 to be -1`. Verified live at the boundary in the same
271+
// session — a floor of 36 goes RED on the same fixture, so the assertion
272272
// is not satisfied by construction.
273273
//
274+
// ⚠️ RAISED by #15229, which added four `@objectstack/verify` rows, and the
275+
// raise repaired an off-by-one while it was here: the floor read 30 against
276+
// a probe that measured 31, so one row could stop being measured with
277+
// nothing going red. It is now the measured count EXACTLY — no slack — and
278+
// that is what makes the next card's raise a step it cannot skip without
279+
// this line failing.
280+
//
274281
// `>=` rather than `toBe` on purpose, and it is the same shrink-only
275282
// direction the ledger uses: a row ADDED to the probe is welcome and stays
276283
// green, a row that stops being measured is red. Raise the floor when the
277284
// probe grows; ⛔ never lower it to make a red run green.
278285
expect(
279286
additive.rows.length,
280-
`The probe measured ${additive.rows.length} rows, fewer than the 30 it measured when ` +
287+
`The probe measured ${additive.rows.length} rows, fewer than the 35 it measured when ` +
281288
`this floor was set. A row that stops being measured stops being able to fail, which ` +
282289
`is the one direction this pin cannot detect anywhere else — fix the probe rather ` +
283290
`than the floor.`,
284-
).toBeGreaterThanOrEqual(30);
291+
).toBeGreaterThanOrEqual(35);
285292
});
286293

287294
// ── The pin ──────────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)