Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

Voice line template hardcodes 'PAI:' instead of using DA identity name

Open catchingknives opened this issue 10 months ago • 3 comments

Bug

The FULL, MINIMAL, and ITERATION format templates in SKILL.md (generated by CreateDynamicCore.ts) hardcode the voice line as:

🗣️ PAI: [Spoken summary]

This appears in 4 locations (FULL mode line, MINIMAL mode, ITERATION mode, and the main format example).

Problem

Users who configure a custom DA identity name in settings.json (e.g., daidentity.name = "Nairyo") still get 🗣️ PAI: in every response because the template is a literal string, not a variable reference. The DA identity is correctly loaded from settings — the system knows its name — but the format spec overrides it with a hardcoded "PAI".

Expected Behavior

The voice line should use the configured DA identity name:

🗣️ {DAIDENTITY.NAME}: [Spoken summary]

Or at minimum, the template should reference a variable rather than a literal.

Affected Files

  • Components/ files that assemble into SKILL.md via CreateDynamicCore.ts
  • The generated SKILL.md (4 occurrences of 🗣️ PAI:)

Proposed Fix

In the Component files that define the format templates, replace:

🗣️ PAI: [Spoken summary]

with a variable reference that CreateDynamicCore.ts resolves from settings.json at build time, or use a placeholder the DA can resolve at runtime:

🗣️ {DA_NAME}: [Spoken summary]

Environment

  • PAI v2.5
  • SKILL.md built: 29 January 2026

catchingknives avatar Feb 01 '26 10:02 catchingknives

Additional Finding: VoiceServer/SKILL.md

Found another instance of hardcoded DA name in the same v2.5 release:

File: Releases/v2.5/.claude/skills/VoiceServer/SKILL.md
Line: 89
Content:

🗣️ Kai: [16 words max - THIS IS SPOKEN ALOUD]

This appears to be a v2.5 regression — the v2.4 VoiceServer/SKILL.md does not contain this hardcoded name.

Summary of all hardcoded DA names in v2.5:

File Line Hardcoded Value
skills/PAI/SKILL.md 35 🗣️ PAI:
skills/PAI/SKILL.md 153 🗣️ PAI:
skills/PAI/SKILL.md 374 🗣️ PAI:
skills/PAI/SKILL.md 387 🗣️ PAI:
skills/VoiceServer/SKILL.md 89 🗣️ Kai:

All should use {daidentity.name} or similar placeholder.

Azd325 avatar Feb 02 '26 19:02 Azd325

Thanks for reporting this! We've been doing a major restructuring of PAI's core systems, including a complete redesign of the hook architecture (consolidated from 22 to ~19 hooks), a rewritten Algorithm (now v0.5.1 with PRD-based verification), removal of the observability system, and numerous path/configuration fixes.

This specific issue is addressed by those changes. We're targeting a v3.0 release soon that will include all of this. We appreciate your patience and your help in identifying these issues — it directly informed our redesign work. Stay tuned!

danielmiessler avatar Feb 10 '26 21:02 danielmiessler

Thanks for the report! In v3.0 (now released), the voice line uses the configured daidentity.name from settings.json rather than a hardcoded value. Please upgrade to v3.0 which resolves this.

kaimagnus avatar Feb 15 '26 17:02 kaimagnus