D31b — A reference is only read where a reference belongs¶
- Status: Accepted — amends D4b
- Date: 2026-09-21
- Origin: slice 5 build
- Area: writes
Decision¶
$name is substituted only in arguments that name another row: entity, from,
subject, object, into, a, b, id, target, inputs, ids, edge
targets and rejected_candidates. Everywhere else — quote, value, text,
why — a $ is left exactly as written.
An op names what it creates with "as": "$site". An unbound reference in a
reference position is an error that lists what the batch has bound so far.
Why¶
D4b made a reference an identifier so $3.4bn would not be taken for one. That
is necessary but not sufficient: $M, $Q3 and $GW are all valid identifiers
and all appear in the text of real sources. Position settles it completely, and
the identifier rule then disambiguates what is left.
as rather than id for the binding name, because id is already an argument
of defer_resolve, answer and unmerge, where it means a row to act on.