Expand description
Per-product render writer. Walks the skills declared for the active
product, renders each via Tera + helpers when its input hash differs
from the recorded cache entry, and writes the output under
<source-root>/build/<product>/. Skills with a cache hit are left
on disk verbatim — the determinism contract guarantees the cache-hit
path is byte-identical to a fresh render of the same source.
Render only opens paths under <source-root>/. Every read is rooted
through source_path and joined to the
canonical source root, so a malicious skill.source like
../../etc lands outside the source root and is rejected before any
I/O happens.
Structs§
Constants§
- AGENT_
TEMPLATE_ FILE - Required canonical template under each
core/agents/<name>/source dir. MirrorsSKILL_TEMPLATE_FILE; the rendered output lands at the product’srender_to(e.g.agents/<name>.toml). - HOME_
PROMPT_ FILE - NEUTRAL_
HOME_ PRODUCT - SKILL_
TEMPLATE_ FILE
Functions§
- write_
home_ prompt - write_
product - Render every skill declared for
productfrom manifests rooted atrootinto the default<source-root>/build/<product>/tree.