refactor: rename record_uuid → record_id, widen String(36) → String(128)
MusehubCoordRecord.record_uuid was a misnomer — the field stores sha256 genesis IDs (sha256:<64-hex>, 71 chars) and opaque run_id strings, not UUID4 (36 chars). The String(36) column width was also too narrow.
- db/coord_models.py: rename column, widen type, update UniqueConstraint and docstrings - models/coord.py: rename field in CoordRecordIn/Out, replace UUID4 validator with _SAFE_RECORD_ID_RE (accepts sha256: prefix + opaque ids) - services/musehub_coord.py: update all ORM attribute references - services/musehub_coord_server.py: update materialize function params - api/routes/coord.py: update docstrings - alembic/versions/0027: RENAME COLUMN + ALTER TYPE migration - tests/test_coord_record_id.py: TDD guard for the rename and new width
0 comments
muse hub commit comment sha256:5f659985c9aaf7fb0d3e6b007b6a753aff99807c34de998900cad2019fe13787 --body "your comment"
No comments yet. Be the first to start the discussion.