Record CI and main's protection in the decisions, hold ci.sh's image to README's Python, and say so in README
CI / tests (pull_request) Successful in 3m10s

This commit is contained in:
2026-11-09 02:50:26 +01:00
parent 73d77a0cf8
commit a88f74f5ac
6 changed files with 39 additions and 8 deletions
+8 -2
View File
@@ -10,9 +10,9 @@
Valid while the archive's file names, the Vocabulary and the panel keep these words.
## bin/: the tools and their tests run on the host's Python, with no container
## bin/: the tools run on the host's Python, with no container, and so do their tests outside CI
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.
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. CI alone runs them in a container, which drives no claude (the `tests:` entry on CI). Valid while claude runs on the host.
## bin/: the tools support only the latest stable Python, and the tests, written in plain unittest, run on it in four pytest-xdist workers
@@ -426,6 +426,12 @@ Valid while Claude Code loads `~/.claude/rules/*.md` in every project, a path-sc
2026-10-21, lilleman. Serves goal 2: Claude Code rewrites `"model"` in `settings.json` on every `/model` and plugin install, so a tracked model let one machine's pick override every other's. lilleman chose a model per machine over one synced in `env.ANTHROPIC_MODEL`, which would override a `/model` pick from the next session on. A model per machine is simpler, and loop-claude picks each project's model in `~/.claude/loop-claude-models.json` anyway. The filter also sorts the keys, since each write puts them back in Claude Code's order. The cost: a move or pull that changes `settings.json` drops the machine's model. The effort keys, `effortLevel` and `modelSettings`, stay synced: the routing decision on a chunk's worker rung relies on the effort `settings.json` gives every interactive session. Valid while Claude Code writes the model it picks into `settings.json`.
## tests: CI runs the suite through `ci.sh` on every pull request, in a pinned Python container, and `main`'s branch protection holds a merge until it passes
2026-11-09, larv-review, through todo item 12. Serves goal 1.1: a merge no longer rests on the worker's word. larv-review's gate was the local run alone, which it skips when the last stability round left the suite green, so an unattended chunk could merge on the worker's own report. gitea.larvit.se's runners labelled `docker-host` run `.gitea/workflows/ci.yml`, which runs `ci.sh`: it pipes the committed HEAD as a git bundle into `python:3.14.8` and runs README's Test line there as a non-root user, so the tests root skips run too. A bundle, not a bind mount, works whether or not the runner shares the docker daemon's filesystem. A run takes about 3 minutes. `test_ci.py` holds the image to the Python README Install names.
The protection lives in Gitea's settings, outside the repo: rule `main`, required status check `CI / tests (pull_request)`. A pull request has no status until CI queues its run, so `deploy-release --cut` waits for each check the protection requires rather than reading no status as no checks. CI runs no rule-hook check, so a `rule-override` in the PR body has nothing to override; a rule check added to CI would need one. Valid while gitea.larvit.se runs a runner labelled `docker-host`.
## tests: each test earns its keep as the technical principles' test bullet says, and the worker takes a test's expected values from its item, never from the code
2026-10-16, lilleman asked for research on what makes tests valuable, then for these changes; claude drafted them. Serves goal 1.1, since a test that cannot catch a bug, or breaks without one, lowers quality and costs review rounds.