MigrateDAIdentity.ts referenced in DaSubsystem.md migration plan but does not exist
Summary
PAI/DOCUMENTATION/Pulse/DaSubsystem.md (Section 9, Migration Plan, Step 2) instructs:
bun PAI/TOOLS/MigrateDAIdentity.ts
→ Reads DA_IDENTITY.md, DA_WRITING_STYLE.md, PAI_CONFIG.yaml
→ Writes your-da/DA_IDENTITY.yaml (structured)
→ Writes _registry.yaml (your-da as primary)
→ Generates your-da/DA_IDENTITY.md (for backward compat)
→ Creates empty your-da/growth.jsonl, your-da/opinions.yaml, your-da/diary.jsonl
This file does not exist in the v5.0.0 release. Anyone following the migration plan as written hits a dead end at Step 2.
Current state
Tools/DAInterview.tsexists (handles greenfield DA creation)Tools/DAIdentityGenerator.tsexists (handles YAML → MD generation)Tools/MigrateDAIdentity.tsdoes not exist
DAInterview.ts is for new users. Existing PAI 4.x users with hand-written DA_IDENTITY.md have no documented path to migrate that content into the new registry-based YAML schema without doing it manually.
Suggested resolution
One of:
- Ship
MigrateDAIdentity.ts— a one-shot tool that reads the legacyPAI/USER/DA_IDENTITY.md(and optionalDA_WRITING_STYLE.md,PAI_CONFIG.yamlDA section), maps fields into the new YAML schema, writes the registry, and produces the readable MD viaDAIdentityGenerator.ts. - Update
DAInterview.tswith a--from-legacyflag that performs the same parse-and-map operation. - Update DaSubsystem.md to remove the
MigrateDAIdentity.tsreference and document the manual migration path (which is what users have been doing in practice).
Option 1 matches the existing doc; option 2 is more flexible; option 3 is the smallest doc-only fix.
Context
Found while migrating my own primary DA to the new registry structure. Did the migration manually since the tool wasn't present. Worth standardizing for the next person.
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.