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

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

sha256:5db4540f000274071d68dfd00c33be78485383308e1948d7b23d78af53760789 sha
sha256:3c317cfa20dd409358f124832aaba498989137579ad3bf40e95c288505b754bd snapshot
← Older Oldest on task/identity-repo-phase1
All commits
Newer → Latest on task/identity-repo-phase1

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:5db4540f000274071d68dfd00c33be78485383308e1948d7b23d78af53760789 --body "your comment"