Resolve sibling inheritance with memoized parent templates

This commit is contained in:
2026-09-29 22:23:48 +00:00
parent 78d4b59bbe
commit fdbc306cfb
4 changed files with 330 additions and 0 deletions

View File

@@ -124,6 +124,14 @@ Run `./scripts/check.sh` before committing.
## Stage 2 — Expand one sibling scope
**Completed 2026-09-29.** A private, non-activated resolver indexes sibling
definitions, follows parent dependencies with an explicit stack, memoizes
unresolved enclosing templates, consumes each mapping's own relationship, and
retains transfer/control evidence. Safe diagnostics cover missing or non-mapping
parents, invalid reference types, and cycles. Focused tests include forward and
backward references, shared chains, exact unusual names, null cancellation,
independent results, and a deep cycle. `./scripts/check.sh` passed.
Add a private inheritance resolver, callable only from engine tests initially.
Index effective sibling definitions. Resolve single-parent dependencies with
visiting/resolved states and memoized enclosing-chain templates. Use an explicit