-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Summary
The README claims git checkout syncs the knowledge graph to that commit's point in time. This is false — the CRDT graph lives in refs/warp/gitmind/* and doesn't move with checkout.
Solution
Implement epoch markers — epoch:<sha8> nodes stored in the CRDT graph that correlate git commits to Lamport ticks. git mind at <ref> resolves ref → SHA → epoch → tick → graph.materialize({ ceiling: tick }).
Changes
- New
src/epoch.jsmodule (getCurrentTick, recordEpoch, lookupEpoch, lookupNearestEpoch, getEpochForRef) src/hooks.js— processCommit records epoch after directive processingsrc/cli/commands.js+bin/git-mind.js— newatcommandsrc/cli/format.js— formatAtStatus formattersrc/validators.js— addepochto SYSTEM_PREFIXESsrc/export.js— exclude epoch nodes from exportsrc/doctor.js— exclude epoch nodes from orphan detectionsrc/index.js— export epoch functions- README.md + GUIDE.md — fix false time-travel claims, document
git mind at - New
test/epoch.test.js
Acceptance Criteria
-
git mind at HEADshows current graph state with epoch metadata -
git mind at HEAD~Nmaterializes graph at that point in time - Epoch nodes excluded from export and doctor
- All tests pass
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels