Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

MigrateDAIdentity.ts referenced in DaSubsystem.md migration plan but does not exist

Open brycemagera opened this issue 6 months ago • 1 comments

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.ts exists (handles greenfield DA creation)
  • Tools/DAIdentityGenerator.ts exists (handles YAML → MD generation)
  • Tools/MigrateDAIdentity.ts does 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:

  1. Ship MigrateDAIdentity.ts — a one-shot tool that reads the legacy PAI/USER/DA_IDENTITY.md (and optional DA_WRITING_STYLE.md, PAI_CONFIG.yaml DA section), maps fields into the new YAML schema, writes the registry, and produces the readable MD via DAIdentityGenerator.ts.
  2. Update DAInterview.ts with a --from-legacy flag that performs the same parse-and-map operation.
  3. Update DaSubsystem.md to remove the MigrateDAIdentity.ts reference 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.

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