Answer architecture round 1: 0 🔴, 2 🟡 (0 misread); run the tests in one heavy slot's four workers, pin pytest

This commit is contained in:
2026-10-28 12:21:08 +01:00
parent 53e663c8f8
commit d57727ec39
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ Decisions live in `docs/decisions.md`:
- bin/: an outcome is an entry of a `.outcomes.md` file in loop-claude's archive, a record is a document tools or people keep entries in, and a place is what a comprehension seat names
- bin/: the tools and their tests run on the host's Python, with no container
- bin/: the tools support only the latest stable Python, and the tests run once on it, spread across the CPUs by pytest-xdist
- bin/: the tools support only the latest stable Python, and the tests, written in plain unittest, run once on it in four pytest-xdist workers
- chunks: a chunk takes every unblocked item of its release that fires the same review passes, whatever its purpose, and an item above R 5 ships alone
- comprehension floor: every dimension and the overall at 7.0 or above is the target, and blocks no merge or release
- larv-review: within a chunk lifting a project towards the comprehension floor, work on the project's lowest-scoring dimension comes first, and the floor doesn't block anything
+1 -1
View File
@@ -2,7 +2,7 @@
## Unreleased
- The tools and their tests now support only the latest stable Python, today 3.14, which README Install now asks for as `python3`, in place of 3.11 or newer. README's Test line spreads the tests across the CPUs with pytest-xdist through `uvx`, so a full run takes about 23 s on 16 CPUs, where it took about 3.3 minutes. It used to rerun the whole suite on 3.11.
- The tools and their tests now support only the latest stable Python, today 3.14, which README Install now asks for as `python3`, in place of 3.11 or newer. README's Test line runs the tests in four pytest-xdist workers through `uvx`, one heavy slot's CPUs, so a full run takes about 29 s, where it took about 3.3 minutes. It used to rerun the whole suite on 3.11.
- `routing-figures.md` now reports dollars by project, subagent type, rung and tool, in place of tokens. Cache reads are included; the tokens left them out, though they were about a quarter of the cost. The dollars are what each worker transcript's last `cost-state` entry records for each model, split across the messages of the worker and its subagents in proportion to their cost at list prices. The judge's runs are not counted, since the archive doesn't hold them.
- larv-review's principles pass now launches one auditor per round, which checks the README's goals, code health and every principles file that applies, so it reads the project once per round. It used to launch one auditor for the goals with code health and one for each principles file, each reading the whole project. Its report is `principles-round-<n>.md`, like every other pass's.
- A session running larv-review now enters the chunk's worktree with `EnterWorktree` before the first review pass, so `/security-review` and the full scan read the branch's diff. Run from the checkout root, they used to find it empty.
+1 -1
View File
@@ -110,7 +110,7 @@ Install puts only `loop-claude` on `PATH`; call the others by their path, such a
- `statusline.py` renders Claude Code's status line; `settings.json` → `statusLine` runs it.
- `subagent-rung [--plan] <model> <L>` prints the Agent tool's model and effort for a subagent's task, picked by its L from the project's model, and with `--plan` never below the project's rung; `subagent-rung --help` states the rule.
Test on the host, with `uv` on `PATH` to fetch mypy and pytest-xdist, which spreads the tests across the CPUs (`docs/decisions.md` → `bin/`): `uvx --python "$(command -v python3)" --with pytest-xdist pytest -n auto bin`. `python3 -m unittest discover -s bin -p 'test_*.py'` runs the same tests one at a time. Test the bench's git wrapper with `python3 -m unittest discover -s workflow-bench -p 'test_*.py'`.
Test on the host, with `uv` on `PATH` to fetch mypy, pytest and pytest-xdist, which runs the tests in four workers, one heavy slot's CPUs (`docs/decisions.md` → `bin/`): `uvx --python "$(command -v python3)" --with pytest-xdist==3.8.0 pytest==9.2.0 -n 4 bin`. `python3 -m unittest discover -s bin -p 'test_*.py'` runs the same tests one at a time. Test the bench's git wrapper with `python3 -m unittest discover -s workflow-bench -p 'test_*.py'`.
To mutation-test a changed module, copy `bin/` to a scratch directory (`cp -r bin "$scratch"`): mutmut writes files beside its config. In the copy, name the module and its tests in a `setup.cfg`, as below for `score_outcomes/results.py`. Leave out each test class that starts a tool's launcher through `subprocess`: a mutated module fails to load in a process mutmut did not start.
+1 -1
View File
@@ -10,9 +10,9 @@ sys.path.insert(0, str(pathlib.Path(__file__).resolve().parent))
from settings_filter import cleaned
from test_env import isolated_env
from repo_checks import ROOT
FILTER = pathlib.Path(__file__).resolve().parent / "settings_filter.py"
ROOT = FILTER.parents[1]
PICKED = json.dumps({"theme": "dark", "model": "opus[1m]", "env": {}}, indent=2)
+2 -2
View File
@@ -14,9 +14,9 @@ Valid while the archive's file names, the Vocabulary and the panel keep these wo
2026-09-24, larv-review. Serves goals 1 and 2. The tools drive the host's claude CLI and read the host's session files, which a container cannot see; the tests run on the same host Python the tools meet. Valid while claude runs on the host.
## bin/: the tools support only the latest stable Python, and the tests run once on it, spread across the CPUs by pytest-xdist
## bin/: the tools support only the latest stable Python, and the tests, written in plain unittest, run once on it in four pytest-xdist workers
2026-10-28, lilleman, through todo item 245. Serves goal 1.5: the suite gates every chunk. It took 198 s, 102 s of which reran it on the oldest Python README Install named, 3.11. README Install now asks for the latest stable Python as `python3`, and mypy checks the tools for the Python running the tests. README's Test line runs pytest-xdist through `uvx`, which spreads the tests across the CPUs: 23 s on a 16-CPU machine. It passes the path of `python3`, since `uvx --python python3` picks a Python uv installed itself, which may be older. Plain `python3 -m unittest` runs the same tests one at a time. Valid while every machine taking the checkout gets the latest stable Python soon after its release.
2026-10-28, lilleman, through todo item 245. Serves goal 1.5: the suite gates every chunk. It took 198 s, 102 s of which reran it on the oldest Python README Install named, 3.11. README Install now asks for the latest stable Python as `python3`, and mypy checks the tools for the Python running the tests. README's Test line runs the tests in four pytest-xdist workers through `uvx`: 29 s on a 16-CPU machine. Four is one heavy slot's CPUs, `CPUS_PER_SLOT` in `bin/machine_load/slots.py`, so a gate under `run-heavy` loads only the slot it waits for. The line pins pytest and pytest-xdist, as `test_types.py` pins mypy, so every machine runs the gate the same way. It passes the path of `python3`, since `uvx --python python3` picks a Python uv installed itself, which may be older. The tests use stdlib `unittest` alone, and pytest only runs them, so plain `python3 -m unittest` runs the same tests one at a time and another runner can replace pytest. Valid while every machine taking the checkout gets the latest stable Python soon after its release.
## chunks: a chunk takes every unblocked item of its release that fires the same review passes, whatever its purpose, and an item above R 5 ships alone