Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

ConfigRenderer (referenced in DaSubsystem.md and Config docs) does not exist in PAI/TOOLS/

Open brycemagera opened this issue 6 months ago • 1 comments

Summary

PAI/DOCUMENTATION/Pulse/DaSubsystem.md references ConfigRenderer as the system that reads the DA registry and resolves template variables ({{DA_NAME}}, {{DA_FULLNAME}}, etc.) into CLAUDE.md. The migration plan (Section 9, Step 4) instructs:

Step 4: Update ConfigRenderer
  → Reads DA identity from registry path
  → Template variables still resolve

And Section 1 states:

ConfigRenderer reads the registry, loads the primary DA's DA_IDENTITY.yaml, and uses it for template variable substitution. The existing {{DA_NAME}}, {{DA_FULLNAME}} etc. variables continue to work.

No file by that name exists in PAI/Tools/, PAI/TOOLS/, anywhere under PAI/, or in the release tree. Search:

$ find Releases/v5.0.0 -iname 'ConfigRenderer*'
(no results)

Why it matters

Without a ConfigRenderer, the contract described in Sections 1 and 9 — "DA identity feeds into CLAUDE.md via template variables resolved from the registry" — has no implementation. CLAUDE.md @-imports the generated DA_IDENTITY.md directly, and template variables in the doc literals like {{DA_NAME}} are not substituted at render time. They appear as literal {{DA_NAME}} strings in the loaded context if anyone authoring docs uses them.

The Config System doc at PAI/DOCUMENTATION/Config/ConfigSystem.md likely describes the intended renderer but I couldn't find the code.

Reproduction

$ rg -l 'ConfigRenderer' Releases/v5.0.0/
# (empty — no code references)

$ rg '{{DA_NAME}}' Releases/v5.0.0/.claude/PAI/USER/ | head
# (any docs with literal {{DA_NAME}} placeholders never get resolved)

Suggested resolution

One of:

  1. Ship Tools/ConfigRenderer.ts that walks PAI/USER/DA/_registry.yaml, loads the primary DA's DA_IDENTITY.yaml, and provides a render(template: string): string function for template-variable substitution. Wire into wherever @-imports get resolved (or document that it's a CLI tool authors run before commit).
  2. Document the actual pattern — if you're already doing template substitution somewhere else (e.g. inside DAInterview.ts or at install time), document where, and update DaSubsystem.md to point at that instead of a phantom ConfigRenderer.
  3. Drop the dependency — if template variables in @-imported docs aren't actually expected to resolve, remove the ConfigRenderer references from DaSubsystem.md and use literal names in user-facing docs.

Context

Found while auditing the local DA subsystem against the design doc. Pairs with #1201 (ContainmentGuard leak), the MigrateDAIdentity.ts issue I'm filing alongside this, and the multi-DA integration issue. They're all DA-subsystem completeness gaps.

brycemagera avatar May 07 '26 19:05 brycemagera

Hey @brycemagera, thank you for the PR and the work that went into it.

We're changing how LifeOS ships: from a full ~/.claude directory you run as-is, to a skill installed by an agentic installer that has your own AI integrate the pieces into your setup. That reworks the parts of the codebase this change touches, so it won't apply cleanly to where we're headed.

We're closing it for that reason, not because the idea was wrong. If the need still stands against the new model, we'd love a fresh PR once it lands. Thanks again for contributing.

danielmiessler avatar Jun 21 '26 03:06 danielmiessler