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
fix(pm): assemble the record template's branch placeholder so it is not read as a dead path population
The dispatch derivation reads any quoted path-shaped literal in a gate's module
body as the population that gate watches. The template's branch placeholder is
path-shaped and names no tracked file, so it became this family's only declared
literal and `check:declared-population-live` refused it: a gate telling the
derivation it reads a population while the derivation reads none.
Assembled from two parts, neither carrying a separator, so neither is admitted
and this file goes on declaring no path population — the state it had before the
template landed, and the truthful one, since it reads no file in the tree. The
printed template is byte-identical (same md5 before and after), and a new
self-test case spells the printed placeholder out where the scan does not reach,
so a later tidy that re-joins the literal is caught rather than silently shipped.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DAcomhvR9kKizeYgg89Vo8
@@ -5417,6 +5427,14 @@ export function selfTest() {
5417
5427
t('⛔ nor an unfilled MENU in the record — one value per slot, never the `yes|no` shape this file refuses',!TPL_RECORD.includes('|'));
5418
5428
t('`--template` is an honoured flag, so the parse, the usage text and the refusal all know it',KNOWN_FLAGS.has('--template')&&argvRefusalLines(['--template'])===null&&usageLines().join('\n').includes('--template'));
5419
5429
t('⛔ …spelled as taking NO value, so it can never eat the argument after it',KNOWN_FLAGS.get('--template').value===null);
5430
+
// The branch placeholder is ASSEMBLED in the module body so the derivation
5431
+
// does not read it as a dead path population. This pin spells the printed
5432
+
// form OUT, here where the scan does not reach, so the assembly can never
5433
+
// quietly print something else -- and so a future tidy that re-joins it into
5434
+
// one literal is caught by `check:declared-population-live` rather than by
5435
+
// nobody. ⛔ Not derived from the constant: a pin written from the thing it
5436
+
// pins asserts nothing.
5437
+
t('⭐ the printed placeholder is EXACTLY the branch form, assembled or not',says(TPL_RECORD,'Implemented-by: `claude/issue-NNNN-slug`')&&RECORD_TEMPLATE_PLACEHOLDERS.implementedBy==='claude/issue-NNNN-slug');
5420
5438
5421
5439
// -- The floor: every declared battery RAN, and ran its cases (#13489) -----
0 commit comments