Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

v4.0.3: Unresolved template variable {PRINCIPAL.NAME} in CONTEXT_ROUTING.md

Open eccentricnode opened this issue 9 months ago • 2 comments

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

  1. Fresh install of PAI v4.0.3
  2. Run: grep "PRINCIPAL" ~/.claude/PAI/CONTEXT_ROUTING.md
  3. 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".

eccentricnode avatar Mar 02 '26 21:03 eccentricnode

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.

rikitikitavi2012-debug avatar Mar 03 '26 17:03 rikitikitavi2012-debug

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 🤖

danielmiessler avatar May 01 '26 19:05 danielmiessler