gabriel / musehub public
chore BREAKING task/remove-backfill #1 / 1
AI Agent gabriel · 144 days ago · May 1, 2026 · Diff

chore: remove one-time identity backfill

Migration ran successfully on localhost and staging (3 identity repos created: gabriel, aaronrene, claude-code). All identities going forward create their identity repo at registration time — backfill no longer needed.

sha256:b5c5030c78faf73fbb1b6f3833e8202f9ba4074809c1b1f3726afe6b46edb0cc sha
−41 symbols
sha256:c17c14fa01e7281bd234e55cc080e660c4543883042d1bf3c57af5d99c32ff3a snapshot
−41
symbols removed
0
dead code introduced
Semantic Changes 41 symbols
~ musehub/maintenance/identity_backfill.py .py 10 symbols removed
backfill_identity_repos function async_function backfill_identity_repos L39–142
AsyncSession import import AsyncSession L31–31
MusehubAuthKey import import MusehubAuthKey L34–34
annotations import import annotations L25–25
datetime import import datetime L28–28
db import import db L33–33
logging import import logging L27–27
select import import select L30–30
timezone import import timezone L28–28
logger variable variable logger L36–36
~ tests/test_identity_repo_migration.py .py 31 symbols removed
_COUNTER variable variable _COUNTER L36–36
_KEY_M_B64 variable variable _KEY_M_B64 L40–40
_KEY_M_BYTES variable variable _KEY_M_BYTES L39–39
_NOW variable variable _NOW L35–35
_has_identity_repo function async_function _has_identity_repo L84–91
_make_auth_key function function _make_auth_key L69–81
_make_identity function function _make_identity L48–66
_read_repo_identity_record function async_function _read_repo_identity_record L94–138
_uid function function _uid L43–45
AsyncSession import import AsyncSession L29–29
MusehubAuthKey import import MusehubAuthKey L33–33
annotations import import annotations L19–19
base64 import import base64 L22–22
compute_identity_id import import compute_identity_id L31–31
datetime import import datetime L27–27
db import import db L32–32
hashlib import import hashlib L23–23
json import import json L21–21
msgpack import import msgpack L25–25
pytest import import pytest L26–26
select import import select L28–28
timezone import import timezone L27–27
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_returns_counts function async_function test_backfill_returns_counts L372–391
test_backfill_skips_deleted_identities function async_function test_backfill_skips_deleted_identities L348–363
← Older Oldest on task/remove-backfill
All commits
Newer → Latest on task/remove-backfill

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