From 4e0e7e655d0452d0db9258840995f2be600757cb Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 14 Nov 2026 19:44:51 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20architecture=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=202=20=F0=9F=9F=A1=20(0=20misread);=20file=20item?= =?UTF-8?q?=20379=20for=20one=20container=20per=20plan=20read=20and=20a=20?= =?UTF-8?q?heavy=20slot=20around=20the=20codec's=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- todo.md | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/todo.md b/todo.md index bd3cb3f2..092647e3 100644 --- a/todo.md +++ b/todo.md @@ -6,13 +6,14 @@ `Bar = 0.1` -`Next ID = 379` +`Next ID = 380` ## Items | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| | 351 | 0.11.0 | | | **Read a project's plan from the child issues of a Jira Cloud epic its config names, ranked in Jira's backlog order.** | 4 | 2 | 3 | 7 | 5 | 1.6 by 6 | 1.2 | +| 379 | 0.11.0 | 351 | | **Convert every description of a plan read in one adf-codec container run, and take a heavy slot around the build of the codec's image.** | 3 | 2 | 3 | 6 | 4 | code health by 2, 1.5 by 2 | 3.2 | | 378 | 0.11.0 | 351 | | **Name the branches, worktrees and commit and PR titles of a Jira plan's chunks by the issue key, as in `ABC-123` and `ABC-123 - ...`.** | 2 | 2 | 3 | 5 | 2 | 1.6 by 4 | 1.4 | | 353 | 0.11.0 | 351 | | **Let a project's config take its goals and audience from a Jira epic's description, under the same two headings.** | 2 | 2 | 3 | 5 | 3 | 1.6 by 4 | 1.3 | | 358 | 0.11.0 | | | **Let a project's config allow its runtime and tests on the host, and set the comprehension score under which code health is very important.** | 2 | 2 | 3 | 5 | 3 | 1.6 by 4 | 1.3 | @@ -20,7 +21,7 @@ | 363 | 0.11.0 | 362 | | **Add a Slack backend to the notifier, sending each notice as a DM from a bot.** | 2 | 1 | 2 | 3 | 3 | 1.6 by 4 | 1.3 | | 377 | 0.11.0 | | | **Hand a reviewer without a shell the plan as a listing `larv-review` writes into the review folder, whatever store holds the plan.** | 2 | 2 | 3 | 5 | 3 | 1.6 by 4 | 1.3 | | 373 | 0.11.0 | | | **Pick the next release's chunks that may run at once by the files and the parts of files each is predicted to touch, and record the prediction beside what each merged chunk touched.** | 3 | 2 | 2 | 5 | 5 | 1.5 by 4, 1.4 by 2 | 1.3 | -| 352 | 0.11.0 | 351 | | **Write a project's plan to its Jira epic: file items as child issues, edit those the loop filed, score unscored issues with a comment, and move a finished item to the status its config names.** | 3 | 2 | 3 | 6 | 5 | 1.6 by 6 | 1.2 | +| 352 | 0.11.0 | 351, 379 | | **Write a project's plan to its Jira epic: file items as child issues, edit those the loop filed, score unscored issues with a comment, and move a finished item to the status its config names.** | 3 | 2 | 3 | 6 | 5 | 1.6 by 6 | 1.2 | | 355 | 0.11.0 | | | **Store a record on the Confluence Cloud page its config names, as markdown converted through the adf-codec shim, and interrupt the human when a teammate saved the page since the loop read it.** | 3 | 2 | 3 | 6 | 5 | 1.6 by 6 | 1.2 | | 356 | 0.11.0 | | | **Hand reviewers the review standards from the folder a project's config names, in place of `~/.claude/skills/larv-review/standards/`.** | 2 | 2 | 3 | 5 | 2 | 1.6 by 3 | 1.1 | | 372 | 0.11.0 | | | **Key loop-claude's session, archive, routing state and config-folder commits per chunk, so two chunks of one project run side by side without touching each other's state.** | 3 | 2 | 3 | 6 | 6 | 1.5 by 3 | 0.4 | @@ -91,6 +92,31 @@ lilleman's calls, 2026-11-12. One epic is one project's plan. An item is a child Item IDs stay `int`: the store holds the Jira project key from the config, and an issue's number is the item's ID, so the 30 or so modules that read an ID as an int stay as they are. The store refuses a child issue from another Jira project. This item only reads: `add`, `edit` and `finish` fail, saying item 352 builds them. lilleman's call, 2026-11-14: item 377 hands the plan to a reviewer without a shell, and item 378 names branches and titles by the issue key. Re-scored 2026-11-14 at L 4: a new pattern, HTTP to Jira Cloud with entity properties, rank and ADF, across plan_store and project_config. +### 379. Convert every description of a plan read in one adf-codec container run, and take a heavy slot around the build of the codec's image. + +Two changes in `bin/adf_codec/`, in one item since both change the codec and its tests. Item 352 waits for this one. It waits for item 351, which adds `bin/plan_store/jira_epic.py`. + +**One container per read.** Today a read of a Jira epic with N described issues starts N containers, four at a time: `details` in `bin/plan_store/jira_epic.py` calls `adf_to_markdown` in `bin/adf_codec/convert.py` once per description. `todo-item show ` converts all N to print one, and `larv-review needs-scoring-run` converts all N twice, since it reads a plan outside the checkout twice. To keep that bearable, `details` carries a thread pool, the constant `CONVERSIONS` and a rule that the first description converts alone. Two later items get harder while this stands: + +- Item 352 scores each issue a teammate filed, and its worker reads an issue's scope with `todo-item show `. Scoring M unscored issues of an epic with N described ones is M × N container runs: 20 unscored issues in an epic of 40 is 800 runs. Item 352 would otherwise have to add a way to read one item past `PlanStore.read()`, which changes the protocol, `FilePlan`, the fakes, the contract and four readers. +- Item 375 runs several chunks at once. `CONVERSIONS = 4` is commented as one heavy slot's CPUs, but no slot is taken, so K chunks that read the plan at once run 4 × K containers. + +Items 353 and 355 add a conversion to each read of the goals and of each record in Confluence, each with a container start of its own. + +The smallest change leaves `Plan` as it is, a plain value holding every detail: + +- `bin/adf_codec/node_shim/shim.mjs` gets a mode that takes a JSON array of ADF documents on stdin and prints a JSON array of markdown texts. A refused document answers with its index, so the Failure still names the issue. +- `convert.py` gets one function beside `adf_to_markdown` that takes the documents and returns the texts, or a Failure naming the index. +- `JiraPlan.to_markdown` takes that function, and `details` becomes one call. The thread pool, `CONVERSIONS`, the `concurrent.futures` import and the first-converts-alone rule go. + +A read then costs one container whatever the epic's size: `show` one, `needs-scoring-run` two, and item 352's scoring M runs. The price: one container of 256m holds every description of the epic at once, and one 60-second limit covers them all. A hundred descriptions are a few megabytes of JSON, so neither should bind; if one does, raise that one constant. + +**A heavy slot around the image build.** Today `ensure_image` in `convert.py` runs `docker build` from Python, so rule-hook's `run-heavy` rule, which sees only a session's Bash commands, doesn't make it wait. The decision "machine load: a heavy command waits for one of the machine's heavy slots" names `docker build` as heavy. `chunk-preflight` reaches the build through `JiraPlan.read()`, in process and outside its per-tool timeout. One read builds once, but two processes each inspect, find no image, and build. Item 375 starts several chunks of one project at once: on a new machine, or after a release that bumps the shim or adf-codec, each chunk's `chunk-preflight` builds, each with 1 GiB and up to 300 seconds, all outside the slots. + +In `ensure_image`, where the inspect finds no image, take a slot with `machine_load.slots.waited_slot`, inspect again, build only if the image is still missing, and free the slot. A second process then waits and finds the first one's image, and the codec stays the one place that knows it builds. The one `docker run` a read keeps is short and carries its limits, so it takes no slot. + +Scores: L 3, since the change spans the Node shim, its image, `convert.py` and `jira_epic.py`. I 3, since every reader of a plan in Jira runs it. R is above 5, so this item ships alone. + ### 378. Name the branches, worktrees and commit and PR titles of a Jira plan's chunks by the issue key, as in `ABC-123` and `ABC-123 - ...`. lilleman's call, 2026-11-14: split from item 351. Item IDs stay `int`: the Jira store holds the project key and an issue's number is the item's ID. A branch template `ABC-{id}` and a commit-title template `ABC-{id} - {summary}` already give the ticket-style names `CLAUDE.md`'s ticket rules ask for. Make a project with a Jira plan get them without spelling its key twice, or document the two templates where the plan setting is documented, whichever is simpler, and check `chunk-preflight` names the worktree the same way.