refactor: one file per ticket with 8-char hex IDs, remove branch protection#2
Open
YamiDaisuke wants to merge 1 commit into
Open
refactor: one file per ticket with 8-char hex IDs, remove branch protection#2YamiDaisuke wants to merge 1 commit into
YamiDaisuke wants to merge 1 commit into
Conversation
…ection
Each ticket is now stored as its own .todo/tickets/<id>.yaml file using a
random 8-char hex ID from crypto/rand. Two parallel agents touching different
tickets now write different files, so git merges cleanly without conflicts.
- Replace sequential integer IDs with collision-free hex IDs (store.NewID)
- Replace tickets.yaml bulk file with per-ticket files in tickets/ directory
- Remove entire branch override system (state.go, GlobalState, BranchTicket,
IsMainBranch) — tickets are always written directly, regardless of branch
- Add store.MigrateIfNeeded() for automatic one-time migration of old
tickets.yaml / deleted.yaml to per-file format on first run
- Add hooks.ReinstallIfPresent() to update hook regex ([0-9]+ → [0-9a-f]{8})
automatically when migration runs
- Update all format strings, sort order (CreatedAt), and store API calls
- Update all docs (README, architecture, data-model, ui-reference, developer-guide)
https://claude.ai/code/session_01LMnKB6C66GCGoRSwAAWXpr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each ticket is now stored as its own .todo/tickets/.yaml file using a
random 8-char hex ID from crypto/rand. Two parallel agents touching different
tickets now write different files, so git merges cleanly without conflicts.
IsMainBranch) — tickets are always written directly, regardless of branch
tickets.yaml / deleted.yaml to per-file format on first run
automatically when migration runs
https://claude.ai/code/session_01LMnKB6C66GCGoRSwAAWXpr