diff --git a/docs/comprehension-history.md b/docs/comprehension-history.md index 0b153615..ea51b828 100644 --- a/docs/comprehension-history.md +++ b/docs/comprehension-history.md @@ -1488,3 +1488,25 @@ Inherited architect, would restructure first: - `bin/score_outcomes/outcomes.py:9` `FINDINGS`: the round-title grammar lives in SKILL.md, `ROUND` and here - `bin/larv_review/git.py:21` `default_branch`: one of two `default_branch`s and five git runners + +## 2026-10-13T10:03:42Z, PR #254 at 5b6c497, against 4cc9953 + +Ruling: same + +| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall | +|---|---|---|---|---|---| +| Mid A | same | same | worse | same | same | +| Inherited architect | same | worse | same | same | same | + +Mid A, decided by: + +- Shape: `bin/git_repo.py:8` `git`: four modules carry "git" in their path, and two define a `git` with different signatures +- Shape: `bin/todo_table.py:30` `items`: one name now covers three outcomes and two header shapes, each caller reading None differently + +Inherited architect, decided by: + +- Locality: `bin/todo_table.py:30` `items`: accepts a table without C that `rank_todo.py` `read_scoring` rejects, and `render_item` relies on that rejection having run first +- Locality: `bin/larv_review/plan.py:46` `plan_reasons`: `items(before) or []` turns None into an empty list and relies on a Failure being truthy +- Locality: `bin/loop_claude/project/records.py:10` `HUMAN_RULE_DIRS`: the judge reads every file in two folders, shrinking the transcript it sees +- Locality: `bin/loop_claude/cycle/judge.py:41` `JUDGE_RULES`: the judge's rule text is built across three files +- Locality: `bin/rule_hook/override_log.py:36` `this_chunks`: which overrides list depends on reflog, branch name and default-branch state diff --git a/todo.md b/todo.md index faf21a35..466ab462 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 9` -`Next ID = 117` +`Next ID = 118` | Goal | W | |---|---| @@ -63,6 +63,7 @@ | 6 | 0.3.0 | decision | **Move what `loop-claude` writes out of `~/.claude.json`, and ask the human about each write that must stay.** | 5 | 5 | 6 | 4 | 5 | 1.1 | 11.7 | | 51 | 0.3.0 | principle | **Hand loop-claude's terminal output to an injected effect, so no storage or retry function prints.** | 3 | 5 | 5 | 3 | 5 | 1.1 | 11.7 | | 102 | 0.3.0 | | **Give loop-claude's retry delay an environment override, so the black-box test stops replacing `time.sleep` through `sitecustomize`.** | 2 | 2 | 2 | 3 | 4 | 1.1 | 11.4 | +| 117 | 0.3.0 | | **Give `todo_table.items` one way to say a plan has no items table, so no caller tells it from an empty plan by truthiness.** | 2 | 2 | 3 | 3 | 4 | 1.1 | 11.4 | | 50 | 0.3.0 | principle | **Grant the bench's runs only the tools a review needs, in place of skipping every permission.** | 2 | 2 | 3 | 3 | 4 | 4 | 9.9 | | 81 | 0.3.0 | principle | **Have `workflow-bench/bench.py` return each run's failure as a value, so one failed clone does not hide the later runs' results.** | 2 | 2 | 3 | 3 | 4 | 4 | 9.9 | | 4 | 0.3.0 | | **Name each chunk's archive folder by the chunk's start time, so `/` lists chunks in the order they ran.** | 3 | 2 | 3 | 4 | 3 | 3 | 9.6 | @@ -266,6 +267,10 @@ Claude Code owns that file and writes it. `trust` reads it, changes it and write Found by the principles audit of PR #242. `bin/loop_claude/test_black_box.py:113-114` swaps the global `time.sleep`, the shape "Functional core, imperative shell" bans. An override of the delay lets the test run the code as production runs it. +### 117. Give `todo_table.items` one way to say a plan has no items table, so no caller tells it from an empty plan by truthiness. + +The comprehension seats on PR #254 found `items` returning a list, None or a Failure, and `larv_review/plan.py` `plan_reasons` reading None through `items(before) or []`, which works only because a Failure is truthy. + ### 50. Grant the bench's runs only the tools a review needs, in place of skipping every permission. "Always grant explicit access to data", in `principles/technical-principles.md`: `workflow-bench/bench.py` starts claude with `--dangerously-skip-permissions`, and no rule confines it to a sandbox, so a run on the host reaches the host's credentials and other checkouts.