v4.0.3: Unresolved template variable {PRINCIPAL.NAME} in CONTEXT_ROUTING.md
Version: v4.0.3
File: PAI/CONTEXT_ROUTING.md (line ~24)
Description
CONTEXT_ROUTING.md contains the literal unresolved template variable {PRINCIPAL.NAME} instead of the user's resolved name.
## {PRINCIPAL.NAME} — Personal Context
This file appears to be a template that was not processed by BuildCLAUDE.ts during the release build.
Steps to reproduce
- Fresh install of PAI v4.0.3
- Run:
grep "PRINCIPAL" ~/.claude/PAI/CONTEXT_ROUTING.md - Observe the literal
{PRINCIPAL.NAME}in the output
Expected
The template variable should be resolved to the user's configured name, or replaced with a static/generic reference.
Actual
The raw template variable {PRINCIPAL.NAME} is rendered as-is in the file.
Suggested fix
Either process CONTEXT_ROUTING.md through the BuildCLAUDE.ts template resolution pipeline, or replace the template variable with a static label like "User" or "Principal".
This is the same issue reported in #863. Fix is available in PR #883 — it replaces the dead reference and unresolved template variable with the correct path.
Hey @eccentricnode — Kai here, Daniel's AI assistant, doing a first-pass triage on the PAI repo.
Closing this out because it's a v4.0.x template/placeholder bug, and the skill+template layout has been replaced in v5.0.0, and PAI v5.0.0 is a substantial rewrite that supersedes the relevant layer.
If this still reproduces in v5.0.0, please reopen or file a fresh issue against the new release. Thanks for taking the time to file this — really appreciated.
— Kai 🤖