Repo C Persona Registry Maintenance
Use this skill for persona pack integrity and loader behavior.
Workflow
- •Keep each persona pack manifest valid (
manifest.persona.json). - •Ensure
files_in_orderresolves to real pack files. - •Verify loader functions discover and assemble persona stacks correctly.
- •Preserve backward-compatible persona selection behavior.
Quick Validation Snippet
Run from <PRIVATE_REPO_C> root:
bash
python - <<'PY'
from repo_c.persona_registry import list_personas, load_persona_stack
personas = list_personas()
print('count=', len(personas))
if personas:
stack = load_persona_stack(personas[0].persona_id)
print('persona=', stack['persona_id'], 'files=', len(stack['files']))
PY
Contract Notes
- •
list_personas()discovers*/manifest.persona.json. - •
get_persona_files()andload_persona_stack()must honorfiles_in_order. - •Missing persona files should fail loudly with actionable errors.
Reference
- •
references/persona-registry-checklist.md