Keep configs in ~/.config/build-release/ and tool state in ~/.local/state/build-release/, under XDG_* where set #801

Merged
lilleman merged 16 commits from item-484 into main 2026-12-03 22:24:17 +01:00
Owner

Project configs, do-epic's config and the models file move to the config folder, ~/.config/build-release/. Transcripts and every tool's state move to the state folder, ~/.local/state/build-release/. Each folder is build-release/ under XDG_CONFIG_HOME or XDG_STATE_HOME instead, where that variable holds an absolute path. Nothing reads or migrates an old place: the changelog bullet says what to move by hand.

  • bin/loop_state/paths.py is the one module that resolves both folders; every entry script hands it its environment.
  • rule-hook guards the new places: each env-file a config there names, and a reviewer's writes outside the review reports folder.
  • A chunk's tmux window is handed both XDG variables, so it locks and writes where its starter does.

Left as they are: branch_summaries and reviewer_breaches keep home, env in their signatures, which the architecture review named as places that got harder to read. Resolving the paths once for them changes about 40 callers, which is plan item 300's work.

Security: the full scan needs a person to confirm its cost, so /security-review ran in its place and found nothing.

Overrides:

  • todo-rank-check, on the merge of main: the checkout's own rank_todo.py now reads the config from ~/.config/build-release/, which this machine gets only after 0.18.0 is cut; the deployed rank_todo.py --check passed on the merged plan. Ruling: accepted.
Project configs, do-epic's config and the models file move to the config folder, `~/.config/build-release/`. Transcripts and every tool's state move to the state folder, `~/.local/state/build-release/`. Each folder is `build-release/` under `XDG_CONFIG_HOME` or `XDG_STATE_HOME` instead, where that variable holds an absolute path. Nothing reads or migrates an old place: the changelog bullet says what to move by hand. - `bin/loop_state/paths.py` is the one module that resolves both folders; every entry script hands it its environment. - rule-hook guards the new places: each `env-file` a config there names, and a reviewer's writes outside the review reports folder. - A chunk's tmux window is handed both XDG variables, so it locks and writes where its starter does. Left as they are: `branch_summaries` and `reviewer_breaches` keep `home, env` in their signatures, which the architecture review named as places that got harder to read. Resolving the paths once for them changes about 40 callers, which is plan item 300's work. Security: the full scan needs a person to confirm its cost, so `/security-review` ran in its place and found nothing. Overrides: - `todo-rank-check`, on the merge of `main`: the checkout's own `rank_todo.py` now reads the config from `~/.config/build-release/`, which this machine gets only after 0.18.0 is cut; the deployed `rank_todo.py --check` passed on the merged plan. Ruling: accepted.
lilleman added 3 commits 2026-12-03 18:56:42 +01:00
lilleman added 2 commits 2026-12-03 19:06:07 +01:00
lilleman added 2 commits 2026-12-03 19:25:54 +01:00
lilleman added 1 commit 2026-12-03 19:45:22 +01:00
lilleman added 2 commits 2026-12-03 20:09:53 +01:00
lilleman added 1 commit 2026-12-03 21:30:12 +01:00
lilleman added 1 commit 2026-12-03 22:00:52 +01:00
lilleman added 1 commit 2026-12-03 22:07:41 +01:00
Merge remote-tracking branch 'origin/main' into item-484
CI / tests (pull_request) Has been cancelled
1058cb419e
# Conflicts:
#	CHANGELOG.md
#	docs/reading-cost.md
#	todo.md
lilleman added 2 commits 2026-12-03 22:09:01 +01:00
lilleman changed title from WIP: Keep configs in ~/.config/build-release/ and tool state in ~/.local/state/build-release/ to Keep configs in ~/.config/build-release/ and tool state in ~/.local/state/build-release/, under XDG_* where set 2026-12-03 22:13:40 +01:00
lilleman added 1 commit 2026-12-03 22:13:56 +01:00
Finish item 484 in the plan
CI / tests (pull_request) Successful in 10m8s
e6b025caaa
lilleman merged commit e6b025caaa into main 2026-12-03 22:24:17 +01:00
lilleman deleted branch item-484 2026-12-03 22:24:18 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lilleman/claude-config#801