- add spawn_agent function to create new agents with placeholders replaced
- support role, traits, purpose, profile overrides in spawning
- copy template files recursively, replacing placeholders in content and paths
- rename any remaining placeholder paths after copy
- regenerate .template_registry.json with fresh file hashes
- register new branch in BRANCH_REGISTRY.json with metadata
- validate no unreplaced placeholders remain in spawned files
✨ feat(spawn/file_ops): add template copy and rename utilities
- implement copy_template to recursively copy templates with placeholder replacements
- skip undesired files and directories during copy (e.g. __pycache__, .git)
- implement rename_placeholder_paths to rename files/directories containing branch placeholders
✨ feat(spawn/placeholders): add placeholder replacement engine
- implement replace_placeholders to substitute {{PLACEHOLDER}} patterns in strings
- build_replacements_dict generates full placeholder map including date, branch names, role, traits, purpose
- validate_no_placeholders scans spawned files to detect unreplaced placeholders
✨ feat(spawn/metadata): add branch name extraction and profile detection
- get_branch_name extracts branch folder name from target path
- normalize_branch_name converts branch name to uppercase or lowercase with underscores
- detect_profile determines AIPass profile from folder path heuristics
✨ feat(spawn/registry): implement BRANCH_REGISTRY.json CRUD
- find_registry locates registry file by walking up directories or defaults
- load_registry loads or initializes registry JSON with metadata and branches list
- save_registry writes registry JSON with updated timestamp and sorted branches
- add_to_registry adds a new branch entry, avoiding duplicates
✨ feat(spawn/__init__): expose spawn_agent API
- add docstring usage example for spawn_agent import and usage
- import spawn_agent from spawn module and export in __all__
✨ style(spawn/templates): update agent.template files for placeholder integration
- replace hardcoded branch names and dates with placeholders like {{BRANCHNAME}} and {{DATE}}
- clean up dashboard and flow local JSON files to use placeholders
- remove deprecated artifact_7_cortex_birth_certificate.json file
- add birth_certificate.json artifact template with placeholders
✅ test(spawn): add comprehensive tests for spawn module
- test metadata functions for branch name extraction and normalization
- test placeholder replacement dict building and validation
- test registry loading, adding entries, and duplicate prevention
- test full spawn_agent workflow including file creation, registry update, and placeholder validation
- test error handling for existing target directory
- test regeneration of .template_registry.json after spawn