feat: Phase 3 — agent SPAWNS relationship committed to parent's identity repo
- Add _commit_spawns_relationship() in musehub_auth.py: looks up the parent's identity repo by handle and commits a RelationshipRecord at relationships/{parent}--spawns--{agent}.json. No-op when the parent has no identity repo (migration-period safety).
- Wire into register_agent_identity() immediately after the agent's own identity repo is created, so every spawn produces a tamper- evident SPAWNS edge in the parent's commit history.
- Add tests/test_identity_repo_phase3.py: 8 TDD regression tests covering: commit added to parent repo, relationship file at correct path, two agents produce two commits, agent's own repo untouched, from_handle/to_handle/edge_type content, no-op for ghost parent. All 8 GREEN (27/27 across all three phases).
Closes #19 Phase 3
0 comments
muse hub commit comment sha256:24dff4f177aed149b76c2f7d95c5e8fb764ca41dae0a712565bcc522a5e8443d --body "your comment"
No comments yet. Be the first to start the discussion.