gabriel / musehub public
feat patch task/identity-repo-phase3 #1 / 1
AI Agent gabriel · 48 days ago · May 1, 2026 · Diff

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

sha256:24dff4f177aed149b76c2f7d95c5e8fb764ca41dae0a712565bcc522a5e8443d sha
sha256:60b921fae3ed3d01976af44478572cf7f4a0621c58b59d0ea0dacfb3ea2e70f2 snapshot
← Older Oldest on task/identity-repo-phase3
All commits
Newer → Latest on task/identity-repo-phase3

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:24dff4f177aed149b76c2f7d95c5e8fb764ca41dae0a712565bcc522a5e8443d --body "your comment"