Group bin's root modules into packages named by purpose, and make rank_todo.py a launcher of release_plan/ranking.py
This commit is contained in:
@@ -125,22 +125,28 @@ pytest_add_cli_args=-k
|
||||
|
||||
Then, in the copy: `uvx --with pytest==9.2.0 'mutmut>=3,<4' run && uvx --with pytest==9.2.0 'mutmut>=3,<4' results`, and `uvx --with pytest==9.2.0 'mutmut>=3,<4' show <mutant>` to see a mutant's change. The config keys are mutmut 3's.
|
||||
|
||||
`bin/` is the import root: each launcher puts it on `sys.path`, so a module imports another by its path under `bin/`, such as `from claude_code.entries import parse_entry`. Each tool's package holds its tests. The non-test modules at `bin/`'s root, `claude_code/` and `transcript_archive/` serve more than one tool.
|
||||
`bin/` is the import root: each launcher puts it on `sys.path`, so a module imports another by its path under `bin/`, such as `from claude_code.entries import parse_entry`. Each tool's package holds its tests. `bin/`'s root holds only the launchers, the stand-alone tools with their tests, `test_env.py` and `failure.py`. `failure.py` stays there because its `Failure`, the value every module returns for a failed step, fits no one package's purpose. `claude_code/`, `command_lines/`, `git_cli/`, `records/`, `release_plan/`, `review_rules/` and `transcript_archive/` serve more than one tool.
|
||||
|
||||
- `branch_chunks/` cuts a default branch into chunks and finds, for each, the items it shipped and the later chunks that fixed its code, for `score_outcomes` and `routing_figures`. It imports `reading_cost`'s record path.
|
||||
- `deploy_release` imports `chunk_preflight`'s `forge_of`, which tells a GitHub origin from a Gitea one, and `release_standing.py`, which says whether the next release is ready to cut.
|
||||
- `command_lines/` reads a shell command: its simple commands, and what a docker call in it asks, for `rule_hook`, `run_heavy`, `reading_cost` and `routing_figures`.
|
||||
- `deploy_release` imports `chunk_preflight`'s `forge_of`, which tells a GitHub origin from a Gitea one, and `release_plan`'s `release_standing`, which says whether the next release is ready to cut.
|
||||
- `git_cli/` runs git, through `git_repo.py`'s `git`, which every tool starts git with, and reads a git call in a shell command (`git_command.py`).
|
||||
- `judge_replay` imports `loop_claude`'s judge.
|
||||
- `larv_review` imports `rank_todo.py`'s ranking.
|
||||
- `larv_review` imports `release_plan`'s ranking.
|
||||
- `loop_claude` runs `chunk-preflight` as a process of its own.
|
||||
- `loop_inbox` imports `loop_claude`'s question files (`waiting/`), the files a running loop lists itself in (`running_loops.py`, `session_lock.py`), its effects and paths, and `hand_over.py`, which opens claude for `/talk`. A change to any of them changes loop-inbox too.
|
||||
- `machine_load/` takes the machine's heavy slots, its shared lock files, for `run_heavy`, and reads the memory share that loop-claude waits for.
|
||||
- `model_routing/` holds the routing ladder, which loop-claude, `rule_hook`, both replay tools and `subagent-rung` read.
|
||||
- `rank_todo.py`, `settings_filter.py` and `statusline.py` are tools of one file each, tested beside them.
|
||||
- `rank_todo.py` launches `release_plan/ranking.py`; `settings_filter.py` and `statusline.py` are tools of one file each, tested beside them.
|
||||
- `records/` reads the sections of the Markdown records the tools keep, stamps their entries in UTC, and writes the tools' files privately and whole.
|
||||
- `release_plan/` reads `todo.md`'s items table, parses releases, says how the plan stands to the last release cut, and ranks the plan (`ranking.py`).
|
||||
- `repo_checks/` tests the repo itself.
|
||||
- `review_rules/` holds the larv-review rules that several tools apply: its passes, its review folder, its round commit titles and the comprehension history's format.
|
||||
- `routing_figures/` measures loop-claude's archive, and each of its projects' default branches, for loop-claude's routing calls.
|
||||
- `rule_hook` imports `rank_todo.py`'s check.
|
||||
- `rule_hook` imports `release_plan`'s ranking check.
|
||||
- `rung_replay/` holds what `judge_replay` and `review_replay` share: the rung search, the argument reader, the candidate rungs and the exits. It reads `loop_claude`'s retry count and models file.
|
||||
- `test_env.py` serves the tests.
|
||||
- `transcript_archive/` stores loop-claude's transcripts; its `project_key.py` names a project's archive folder, its loop-claude session and its entry in the models file.
|
||||
|
||||
## Tracking a new file
|
||||
|
||||
|
||||
Reference in New Issue
Block a user