feat: Phase 1 — create identity repo on registration
- Add commit_files_to_repo() helper in musehub_sync.py: server-side helper that writes files to a repo as a single commit without a client push (used by identity bootstrapping and future server-side writes)
- Add _create_identity_repo() in musehub_auth.py: idempotent helper that creates {handle}/identity repo (domain_id='identity', visibility='private') and commits the initial IdentityRecord to 'main'
- Wire _create_identity_repo into verify_and_authenticate() for human registrations and register_agent_identity() for agent registrations
- Add tests/test_identity_repo_phase1.py: 12 TDD regression tests covering repo creation, domain/visibility, initial commit, record content (handle/type/pubkey/registered_at), idempotency, and agent identity type; all 12 GREEN
Closes #19 Phase 1
0 comments
muse hub commit comment sha256:5db4540f000274071d68dfd00c33be78485383308e1948d7b23d78af53760789 --body "your comment"
No comments yet. Be the first to start the discussion.