Investigate: was content-addressing actually enforced on clone 124 days ago? (#39 accepted a non-UTC commit with no integrity failure)
Summary
#39 (aaronrene, 124 days ago) records muse clone .../aaronrene/knowtation succeeding on both staging and production endpoints with no integrity failures — but knowtation's non-UTC root commit is dated 2026-03-13, meaning it already existed at clone time. The committed_at column has been timezone-aware since 0001_consolidated_schema.py:262, so the column type isn't what changed between then and now.
Something between 124 days ago and today started surfacing the non-UTC-commit id mismatch (see #195) instead of silently tolerating it.
Why this matters more than the curiosity
If clones previously accepted these commits without actually verifying their ids matched their content, then content-addressing was not being enforced on that code path at the time — which means clones already in circulation from that period could be holding commits whose ids don't match their actual content. That's a much bigger concern than one ticket's blast radius: it's a question of whether historical clones are trustworthy at all.
aaronrene's framing: "You'd know instantly whether that's possible; I don't." — this needs someone with visibility into what changed in the verification path between 124 days ago and now.
Suggested investigation
- Find what changed in the clone/verify path (staging + production) between ~124 days ago and now that would have started rejecting what it previously accepted. Likely candidates: a new integrity check added, a change to how
wire_fetch_mpackreconstructs commit bytes, or a change to the id-computation formula itself. - Determine whether the old behavior means content-addressing was never actually verified for commits on that path (as opposed to being verified but the non-UTC case simply didn't trigger a mismatch back then for some other reason, e.g. the reconstruction happened to be lossless before some later change).
- If content-addressing was genuinely unenforced historically: assess whether any clones taken during that window could hold commits with mismatched ids, and what (if anything) can retroactively verify or repair that.
Related
- #39 — the original successful-clone report this references.
- #63 — the structural object-store issue (DB-only commits, reconstructed rather than served as canonical bytes).
- #195 — the specific non-UTC
committed_atidentity-mismatch bug this ticket's mystery is adjacent to.
Source
Reported by aaronrene, 2026-09-10 (relayed via message to gabriel, processed 2026-09-11).
Resolved — the mystery dissolves; no code regression, no historical integrity gap
Checked staging's real DB directly rather than guessing. The answer turned out to be much simpler than any of the candidate explanations in the original investigation plan.
#39's "sanity check" clone ofaaronrene/knowtationran at 2026-05-09T06:51:50Z (confirmed from the ticket's owncreatedAt— the clone reproduction happened same-day). Queriedmusehub_commitsjoined tomusehub_commit_refsfor knowtation'srepo_id:Zero commits existed in knowtation on MuseHub as of that clone. All 1,247 of today's commits — including the non-UTC root commit
#195/#182flagged — were bridge-imported later. Checking that specific root commit directly:The commit's
committed_atfield says March 13 — that's when it was authored in the original git repository, before bridge import. It wasn't actually pushed into MuseHub until July 13, two months after the May 9 "clean clone." The original ticket's framing — "knowtation's non-UTC root commit is dated 2026-03-13, meaning it already existed at clone time" — conflated a commit's authored date with when it entered MuseHub. Those are different things once a bridge import is involved, and the gap here was large enough to fully explain the discrepancy on its own.Answering the three suggested-investigation points directly
_to_wire_commit'scommitted_at = timestamp.isoformat()reconstruction (muse'smusehub_wire.py→ later refactored intomusehub_wire_shared.py) back through history — identical logic since well before May 9. Also checked muse-client's_verify_commit_id: it went through real fixes in late April (a wrong-field-count bug incompute_commit_id's call signature, fixed April 26), but that's before May 9 too, and unrelated to committed_at/timezone handling specifically.Conclusion
No systemic historical integrity gap.
#195's narrow fix (committed_at_raw) is the real and complete fix for the actual bug; this ticket's "was verification ever silently bypassed" concern is answered: no.Closing.