Materialise the render directive-expansion seam when code-include lands #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
CLAUDE.md invariant 4 (closed directive vocabulary, open at one handler-registry
seam) and the walking-skeleton spec call for a directive-expansion seam in the
render pipeline. In the walking skeleton it is conceptual:
src/render/mod.rsdocuments the seam in a comment, but there is no AST-walk step —
codeandtableare native Markdown, so a no-op seam needs no code.When this matters
The first non-native directive (
code-include) needs a real AST walk over theparsed Markdown to expand directives before/within rendering. At that point the
render pipeline should grow an explicit, testable expansion step (the handler
registry) rather than
render_docbeing reshaped ad hoc.Note
Not actionable until
code-includeis specced; this records the deferred seamso the next render cycle factors it deliberately. Surfaced by the cycle-0001
close audit (architect flagged it high; downgraded to carry-on — a no-op seam
is correct YAGNI for code + table this cycle).