diff --git a/todo.md b/todo.md index a9636115..fb0639ff 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 0.1` -`Next ID = 376` +`Next ID = 377` ## Items @@ -16,6 +16,7 @@ | 371 | 0.11.0 | | owner | **Remove loop-inbox, so an interrupt is answered at loop-claude's terminal only.** | 3 | 2 | 3 | 6 | 5 | code health by 3 | 2.9 | | 354 | 0.11.0 | | | **Read and write the decisions, score anchors, comprehension history, reading cost and changelog each through the backend its project's config names, with markdown files as one backend.** | 3 | 2 | 3 | 6 | 6 | 1.6 by 4, code health by 1 | 1.2 | | 364 | 0.11.0 | 354 | | **Read a client repo's own `CLAUDE.md` and `AGENTS.md`, propose to its team each change that aligns them with this setup, and record each conflict left as a decision in the project's records.** | 2 | 2 | 2 | 4 | 2 | 1.6 by 4, 1.2 by 2 | 2.2 | +| 376 | 0.11.0 | | owner | **Make `principles/technical-principles.md` ask for files in folders before comment banners, and for an entry point a newcomer finds at once.** | 1 | 2 | 2 | 3 | 2 | 1.1 by 4 | 1.6 | | 360 | 0.11.0 | | | **Make `chunk-pr merge` wait for the human approvals a project's config requires, as part of the gate, before it merges.** | 2 | 2 | 3 | 5 | 3 | 1.6 by 5 | 1.6 | | 357 | 0.11.0 | | | **Write prose in the language a project's config names, and title its commits, pull requests and branches by the templates it names.** | 3 | 2 | 3 | 6 | 4 | 1.6 by 5 | 1.4 | | 350 | 0.11.0 | | | **Route every read and write of the plan, by tools and by agents, through one plan-store interface and `todo-item`, with the markdown file as one backend.** | 4 | 2 | 3 | 7 | 7 | 1.6 by 4, code health by 2 | 1.1 | @@ -109,6 +110,27 @@ lilleman's call, 2026-11-12: each record has its own backend setting, so a clien lilleman's call, 2026-11-12: the loop may change every file in a client repo, but in agreement with the team, so a change to their instruction files goes to them as a proposal in a pull request. Where a conflict stays, the loop records which rule it follows and why as a decision in the project's decision record, so it is never asked twice. This is a working rule in `CLAUDE.md`. +### 376. Make `principles/technical-principles.md` ask for files in folders before comment banners, and for an entry point a newcomer finds at once. + +On 2026-11-13 the maintainer asked for both, after `@larvit/log` grew one 2,462-line `index.ts` +of 16 `// --- name ---` sections that no review asked to split until its 2.5.0 release review. +"About seven things per level" counts a file's sections but lets banners serve as the grouping. + +Draft wording, under "About seven things per level": + +- Group code into files, and files into folders. A banner comment grouping a file's sections is + the last resort, kept only where the language or the build cannot split the file, and the file + says which limit holds it. + +Draft wording, as a principle of its own: + +* Make the entry point the first thing a newcomer finds. + - The root holds the entry point, the README and the files a tool reads only from there, such as + the manifest, the lockfile and the licence. Source, tests and tooling live in folders named by + what they hold. + - The entry point carries the name its ecosystem expects, such as `index.ts` in an npm package, + with no other source file beside it. + ### 360. Make `chunk-pr merge` wait for the human approvals a project's config requires, as part of the gate, before it merges. lilleman's call, 2026-11-12: this client requires another human's approval on every pull request, so the gate covers it, and the loop still merges once the gate passes. Until this ships, lilleman merges such pull requests by hand and restarts the loop. On GitHub, read the approvals the branch protection asks for; this client's forge is GitHub.