Files
claude-config/todo.md
T

11 KiB

todo

0.1.0

  • Give the judge the project's recorded decisions, and ask it whether anything the project records settles a choice. Today it reads only the README's Goals and Audience (premises.py) and cannot see an answer recorded in docs/decisions.md or AGENTS.md, so it can interrupt the human again for a question already answered. Revise the decision "loop-claude: a judge decides each interrupt from the transcript and the README's premises; the worker's own account of which goal settles a choice decides nothing" to match. Goal 4.2.
  • Archive the transcript as each cycle ends. Today only an interrupt or a finished chunk archives it, so after a failed exit or Ctrl-C the transcript stays unarchived until the chunk finishes, and is never archived if it does not. Goal 2.
  • Key a project on its checkout's full path, and refuse to start while another session uses that key. The key names the project's session, archive folder and models entry. project_key drops the leading /, so ~/code/a and /a share all three, and one loop can resume or delete the other's session. Goal 4.1.
  • Give principles-auditor and prose-reviewer a way to list the project's files. In the 2026-09-30 audit run their tools: Read, Grep, Glob gave them only Read. Each read the files that imports and .gitignore named, and listed the files it could not reach. Goal 4.1.
  • Move what loop-claude writes out of ~/.claude.json, and ask the human about each write that must stay. Claude Code owns that file and writes it. trust reads it, changes it and writes it back, so a write that lands in between is lost. Goal 4.1.
  • Make the small changes filed against the review's rules. Goals 4.1 and 4.4.
    • Make the contributor a standing member of every project's audience. A project drops them only where its ## Audience says maintainability does not matter. State that in CLAUDE.md's goals-and-audience rule, and have larv-review's comprehension floor name the contributor as the reader it serves. The floor then gates every chunk while the contributor stands, and a project that drops them skips it.
  • Clean up the rules, skills, agents, plan and decision log. Goal 4.1.
    • docs/decisions.md: order the entries and the AGENTS.md index by one key.
    • docs/decisions.md: give the comprehension-floor and vocabulary entries a premise that has not expired. Both say "Valid until the next scoring run", and every run since has passed it. Put the floor's rule first and its runs' scores in a table.
    • comprehension-panel: cut the run history and the restated description. They carry nothing the instructions need.
    • systems-architect.md: cut the "one home" line, and break Reasonability Review's steps 4 and 5 into shorter points each.
  • Sort bin/'s imports on their first binding, and say in principles/technical-principles.md → "Deterministic order" how case sorts and which groups Python has. Today they sort by path, so moving a module reorders unchanged lines. The principle's "host packages" names no Python group. Goal 4.1.
  • Make the small fixes filed by the 2026-10-01 principles audit against bin/. Goal 4.1.
    • Prefix each diagnostic loop-claude prints with its level, warning: at the least, so a run's output can be grepped for what needs fixing.
    • Have make_private return a Failure like replace_file beside it.
    • Check the catalog name in newest_catalog_models as well as id.
    • Sort worker_args' flags and the globs in model_catalog.py and session.py.
    • Write "bypassPermissions" once for every claude loop-claude starts.
    • Keep the judge's evidence and model in each archived .verdict.md.
    • Move the test helpers ROOT and readme_floor out of test_python_floor.py, which two other tests import them from, and have test_citations.py use that ROOT.
  • Make the small fixes filed by the 2026-10-02 principles audit against bin/. Goal 4.1.
    • Have Session carry the project key, so Cycle cannot hold a key and a session for different projects.
    • Inject the black-box tests' sleep through Effects.sleep; today SITECUSTOMIZE swaps time.sleep in the child process.
    • Return a Failure from replace_file when removing the staged file fails too.
    • Say so when a catalog file cannot be read; today the prompt says no catalog is cached.
    • Sort transcript_file's glob, and delete a session's files under every project folder that holds its id.
    • Type decode_handed for LoopRun, its one caller's type, and drop the type variable T.
  • Give each cycle phase one name across its state, step and event. Today Judging runs rule and yields Ruled, and Finishing runs close, which also deletes the session, and yields Archived. Goal 4.1.
  • Copy the transcript archive off the machine, or say in README how it is backed up. It lives under ~/.claude, which .gitignore keeps from the remote, so a lost disk loses every unattended run's record. Goal 2.
  • Inject output and storage into Effects, and test what each step prints. print and open are called directly across bin/loop_claude/, so the stderr lines of the CLI contract can be checked only through the black-box tests. Goal 4.1.
  • Read transcript and stream entries into typed values where they are read. read_transcript and run_worker pass raw dicts, so about ten accessors in entries.py re-check shapes deep inside and mypy cannot check render, human_turns or run_worker. Goal 4.1.
  • Measure test coverage in the suite, and fail on a drop. Nothing measures it, so "Test coverage should not decline" cannot be held. Goal 4.1.
  • Give the reviewer agents only the tools they need. systems-architect.md, product-owner-reviewer.md and stability-reviewer.md have no tools: line, so each can edit the branch it reviews; review-findings.md says a reviewer edits nothing. Goal 4.1.
  • Pass the bench cases' names and commits in through BENCH_SOURCES, or record that the remote may show them. workflow-bench/bench.py and judge.py hard-code the 2026-09-30 cases' names and commit SHAs, and the decision on workflow-bench/ calls some of those projects private. Goal 3.
  • Add a test that .gitignore keeps credentials, transcripts and memory files out. test_gitignore.py checks only that every tracked file is allowlisted; a widened negation such as !*.json would un-ignore .credentials.json. Goal 3.
  • Archive a finished chunk's subagent transcripts before delete_session removes them. Today only <id>.jsonl is copied, so every reviewer's full run in an unattended chunk is lost. Goal 2.
  • Enable the claude-security plugin in settings.json, or drop larv-review's full-scan row. No machine has it enabled, so every chunk that fires the pass skips it. Goal 4.1.
  • Launch a principles auditor only for a principles file the project shows applies, and rerun only the reviewer whose finding a fix answers. On this repo the frontend, REST and logging auditors each read the whole project to report "does not apply", and one 🟢 fix reruns ten whole-project reads. Goal 4.4.
  • Give settings.json's model one writer, and sort its keys. Claude Code rewrites "model" in this tracked file whenever a model is picked, so one /model dirties the checkout and overrides the synced choice. Goal 4.3.
  • Rewrite statusline.sh in Python, and test it. It needs jq and GNU date on every machine, evals jq output, has three near-identical usage blocks and no test. Goal 1.
  • Say in systems-architect.md that a REST API's /v1/ prefix is not versioning machinery to defer. Its "defer the versioning story" can be read against principles/rest-apis.md, which requires the prefix from the start. Goal 4.3.
  • Judge a cycle on more than the transcript's last 40,000 characters. judge_prompt cuts the transcript there. The session spans every cycle of the chunk, so a decision made early in a long run is never judged, and the human is not interrupted for it. Larger chunks make runs longer. Goal 4.2.
  • Record each finished chunk's cost and review numbers on one stats line. Goal 4.4.
    • Have loop-claude write the line to one file at the root of the transcript archive. The line names the project, the commit the chunk started from and the archived transcript's hash. It holds the worker's tokens from the transcript, the judge's from its JSON output, and the chunk's cycles and interrupts, which the loop counts.
    • End larv-review with a machine-readable summary, and have loop-claude copy it from the transcript onto the line: agents launched and rounds per pass; findings per pass by severity, inside the chunk's diff and outside it; and the comprehension scores when the panel ran.
  • Write a workflow-review skill that reads the stats and files each change it proposes to the workflow as a plan item, and have AGENTS.md run it on the chunk shipping a release's last item. The workflow is CLAUDE.md, principles/, the skills, the agents and loop-claude. The skill's signals: findings outside the chunk's diff and comprehension scores per release, both from the stats; fixes after merge, from git; and the human's corrections, from the archived transcripts. Goal 4.4.
  • Bench about one chunk in ten against an open PR that changes the workflow, and have a blind claude rule which run better serves this repo's goal 4. Redo the chunk under the PR, from the commit it started from. The ruling claude is not told which run is which. loop-claude picks the chunk at random, small diffs and big ones alike; with no such PR open, no bench runs. The same outcome with less code and prose, in the chunk or in the workflow, also counts as better. The PR merges only once three benches rule it better. A bench that rules it worse closes the PR and records, in docs/workflow-learnings.md, what the PR changed and why it lost. The ruling and both runs' numbers go on the chunk's stats line. Start from workflow-bench/, written for the 2026-09-30 bench's four fixed cases. Needs the stats line. Goals 4.1 and 4.4.
  • Put the scoring run's four seat prompts in skills/comprehension-panel/. Each run copies them from the last run's handoff folder outside the repo, so another machine cannot rerun a comparable panel. Goal 1.
  • Make larv-review §3 applicable on its own, cite its rules by name, and say where a pass's round count is recorded. Applying one rule of "Round cap", "Re-entry" or "Findings" takes review-findings.md, CLAUDE.md → "Vocabulary" and the decision log open beside it. The rules cite each other by number ("Round cap" rule 6), so a renumbering breaks a citation silently. Nothing says where a pass's round count is recorded, so a resumed or compacted session loses it. Goal 4.1.
  • Wait out a usage limit and retry however long it lasts, without counting it as a failed run. Today a worker or judge that hits a usage limit fails three times a minute apart, and the loop exits 1, so an unattended loop dies at every limit. The transcript line Claude Code writes for it, marked "error":"rate_limit", holds the reset time: You've hit your session limit · resets 7:40pm (Europe/Stockholm). Sleep until 2 minutes past it. The judge runs without a transcript, so find what its JSON reply carries on a limit. Where no reset time can be read, retry every 10 minutes: a retry before the reset fails (https://platform.claude.com/docs/en/api/rate-limits), so polling sooner only spends requests. Print when the next try is due, and update --help's exit 1. Goal 4.