You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5617678
Browse filesBrowse the repository at this point in the historyBrowse files
test(scripts): isolate the second point's LINE-START and DEPTH rules with a decoy each
An ablation of the LINE-START rule came back GREEN: the only mid-line decoy in
the fixture was also nested, so the DEPTH rule covered for it and deleting a
real rule moved no verdict -- the shape of false green this instrument exists
to refuse, made by its own controls.
Two decoys now isolate the rules, each a branch a passing run never enters:
a one-line `if (...) return (async () => {` at the body's own depth (only
LINE-START excludes it) and a line-anchored return one level deep inside an
`if` block (only DEPTH does). Their validity is asserted the way the anchor
reads them -- masked text, depth counted from the definition's own brace --
and an unanchored, depth-blind reading is pinned to land on a decoy.
Re-measured after the change: ablating either rule reds the anchor control.
Claude-Session: https://claude.ai/code/session_01BTeBejoPUvRHN8WdAJC6oF
Co-authored-by: Claude <noreply@anthropic.com>
'CONTROL FIXTURE INVALID: the five second-point decoys no longer all stand AHEAD of the real returned block, so an anchor taking the first text that reads like one would reach it anyway and every verdict below passes for the wrong reason');
'CONTROL FIXTURE INVALID: the six second-point decoys no longer all stand AHEAD of the real returned block, so an anchor taking the first text that reads like one would reach it anyway and every verdict below passes for the wrong reason');
2083
2104
say(innerFlags.comment[commentBlock]===1,
2084
2105
'CONTROL FIXTURE INVALID: the first second-point decoy is not COMMENT content, so it no longer reads the comment half of the mask');
2085
2106
say(innerFlags.literal[literalBlock]===1,
2086
2107
'CONTROL FIXTURE INVALID: the second second-point decoy is not LITERAL content, so it no longer reads the half whose failure makes the copy a SyntaxError and earns a false HELD');
'CONTROL FIXTURE INVALID: the one-line GUARDED return is masked away or no longer mid-line, so the LINE-START rule has nothing isolating it and deleting that rule moves no verdict');
2117
+
// Depth is read the way the anchor reads it: over the MASKED body, from the
2118
+
// definition's own `{`. Counted over raw text it would be a different number
2119
+
// -- every brace in the fixture template and the comments is still there.
'CONTROL FIXTURE INVALID: the one-line guarded return is no longer at the self-test body\'s own depth, so the DEPTH rule would exclude it too and the LINE-START rule is again unmeasured');
'CONTROL FIXTURE INVALID: the `if` BRANCH decoy is no longer a line-anchored return one level deep, so the DEPTH rule has nothing isolating it and deleting that rule moves no verdict');
'CONTROL FIXTURE INVALID: an unanchored, depth-blind reading no longer lands on a DECOY ahead of the real block, so neither rule is what the anchor verdict below is reading');
`INNER ANCHOR CONTROL FAILED: the second injection point did not land on the block the self-test RETURNS at its own statement level (got ${returnedBlockAnchor(innerMasked,'selfTest')}, want ${INNER_ANCHOR_DECOY_GATE.indexOf('{',realBlock)+1}); a comment, a fixture template, a mid-line IIFE, an awaited block or an \`if\` branch was preferred over it`);
0 commit comments