Files
claude-config/todo.md
T

13 KiB

todo

0.1.0

  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • Run the test suite in CI on every PR, or record in docs/decisions.md why the local run is enough. The repo has no CI, so larv-review's gate is the local run, and larv-review's Gate skips even that when the last stability round left the suite green: an unattended chunk can merge on the worker's own word. Goal 4.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.
  • 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.
  • 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.
  • Move the judge's transcript rendering from claude_code/transcript.py into cycle/. render, part_line and JUDGED_TOOL_INPUT shape what the judge sees, so what the judge sees is shaped in two packages: those three in claude_code/, and JUDGED_TRANSCRIPT_TAIL in cycle/judge.py; and claude_code/ no longer holds only Claude Code's shapes as its docstring says. Goal 4.1.
  • Make JUDGE_RULES and the Claude Code flags loop-claude passes readable without CLAUDE.md or Claude Code's docs open. The 2026-10-02 scoring runs on PR #191 named both under Self-sufficiency: the judge's rules use "chunk" and "a release ready to cut" from CLAUDE.md with no link, and --resume, --session-id, --no-session-persistence, --json-schema and stream-json's result event go unexplained in worker.py and judge.py. Goal 4.1.
  • Encode, decode and check the reload handover in loop/reload.py alone. reload.py encodes LoopRun and decodes it, but main.py's loop_run_from checks the decoded fields and words the error, so changing LoopRun's fields means editing both files. The 2026-10-02 scoring runs on PR #191 named it under Locality. Goal 4.1.
  • Give each cycle phase one name across its state, step and event. Today Judging runs rule and yields Ruled, and Closing runs close, which also deletes a finished chunk's session, and yields Archived. Goal 4.1.
  • 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.
  • 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.
  • 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.
  • 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.
  • Cut systems-architect.md's, stability-reviewer.md's and product-owner-reviewer.md's descriptions to one line. Claude Code loads every agent description into every session; larv-review launches these agents by name, so their worked examples cost tokens in every project and buy nothing. Goal 4.4.
  • 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.
  • Make the small fixes filed by the 2026-10-02 principles audit against workflow-bench/. The bench item above starts from workflow-bench/. Goals 2 and 4.1.
    • Test judge.py's blind and bench.py's rate-limit parsing, and run mypy on both.
    • Let judge.py import bench without BENCH_SOURCES set; today reading it at import raises a bare KeyError.
    • Merge CASES, PREFIX and TRUTH_END into one table keyed by case, sorted.
    • Report a failed git per run; today check=True aborts main and drops every other run's result.
    • Take the model from a flag or env var, and inject the clock, sleep and shuffle.
    • Keep the bench's run logs where the transcript archive's backup reaches them.
  • 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.
  • 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.
  • 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.
  • 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.
    • systems-architect.md: cut the "one home" line, and break Reasonability Review's steps 4 and 5 into shorter points each.