feat
patch
identity
task/identity-migration-backfill
#1 / 1
feat(identity): migration backfill — identity repos for pre-Phase-1 identities
- Add musehub/maintenance/identity_backfill.py backfill_identity_repos(session) creates identity repos for all identities that don't already have one. Idempotent — skips existing repos. Resolves pubkey from most-recently-created MusehubAuthKey for human/agent. Org identities: pubkey=None, quorum from org_quorum column. Skips soft-deleted identities. Returns {total, created, skipped} summary dict. - Add 9-test TDD suite: test_identity_repo_migration.py creates repo for human/agent/org, null pubkey for keyless identity, idempotent (no duplicate repo, single commit), skips deleted, return counts
Cumulative: 75 tests GREEN (66 phase tests + 9 migration tests, +1 quorum = 76).
sha256:2686a326eba5e65c950da7840fa1512e564b31a0857fa001dac8f5ab5337d1a0
sha
+41
symbols
sha256:12eec2ef9c3a44a1a4422196526970a04059f9a4537964e21d1f392b58bfe3e0
snapshot
+41
symbols added
0
dead code introduced
Semantic Changes
41 symbols
+
test_backfill_agent_record_type_is_agent
function
async_function test_backfill_agent_record_type_is_agent L191–208
+
test_backfill_creates_identity_repo_for_human
function
async_function test_backfill_creates_identity_repo_for_human L147–165
+
test_backfill_human_record_has_correct_pubkey
function
async_function test_backfill_human_record_has_correct_pubkey L169–187
+
test_backfill_idempotent_no_duplicate_repo
function
async_function test_backfill_idempotent_no_duplicate_repo L279–306
+
test_backfill_idempotent_single_commit
function
async_function test_backfill_idempotent_single_commit L310–339
+
test_backfill_no_key_uses_null_pubkey
function
async_function test_backfill_no_key_uses_null_pubkey L254–270
+
test_backfill_org_record_has_null_pubkey_and_quorum
function
async_function test_backfill_org_record_has_null_pubkey_and_quorum L217–245
+
test_backfill_skips_deleted_identities
function
async_function test_backfill_skips_deleted_identities L348–363
← Older
Oldest on task/identity-migration-backfill
All commits
Newer →
Latest on task/identity-migration-backfill
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:2686a326eba5e65c950da7840fa1512e564b31a0857fa001dac8f5ab5337d1a0 --body "your comment"
No comments yet. Be the first to start the discussion.