This commit is contained in:
@@ -3,4 +3,4 @@
|
||||
`~/.claude` is a checkout of this repo, so an `AGENTS.md` here would load into every other project's sessions. Where a rule names a project's `AGENTS.md`, read it here as:
|
||||
|
||||
- the project principles, the title of each decision no project principle covers, and the working rules: the head of `docs/decisions.md`, before `# Decisions`;
|
||||
- the scoring-run values: `skills/comprehension-panel/seat-prompts.md` → "claude-config's values".
|
||||
- the scoring-run values: `skills/comprehension-panel/seat-prompts.md` → "dev-factory's values".
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
## Unreleased
|
||||
|
||||
- **The project and its repo are named `dev-factory`, in the README, the docs, the prose and the tools; the repo moved from `claude-config` on the forge.** Before you update, point each clone at the new URL, as `README.md` → Install clones it: `git remote set-url origin <URL>`. First finish the project's open chunks and stop its running `build-release`: neither the tmux session `loop-claude-config` nor a claude session named `A claude-config build-release <window>` is found under the new key. Then rename the setup's development clone from `~/code/claude-config` to `~/code/dev-factory`, where the tools expect it. A project's key is its clone's path relative to `~/code`, so the rename gives the project a new key. After it, set `checkout = "~/code/dev-factory"` in the project's `config.toml`, move its folder `~/.config/build-release/claude-config/` to `~/.config/build-release/dev-factory/`, move its folder under the transcripts root the same way (`~/.local/state/build-release/transcripts/`, unless `BUILD_RELEASE_TRANSCRIPTS` names another), and rename its entry in `~/.config/build-release/models.json`. The Docker image the README builds for `task-bench` is tagged `dev-factory-task-bench`, not `claude-config-task-bench`: build it again.
|
||||
- **The rules, agents, skills and each tool's text name a file of the setup as the setup's, as in the setup's `rules/todo-items.md`, and a project's config names one as `setup:<path>`, as in `standards = "setup:skills/larv-review/standards"`.** Both hold wherever the release is cloned; `CLAUDE.md` → "Vocabulary" defines the setup. The loop's Claude home links `bin/` and `principles/` too, and `task-bench gather` runs its claude in that home, where it exits 1 until someone is signed in.
|
||||
- `.gitignore` ignores only what the repo generates, in place of an allowlist that kept a Claude home's files out of the clone. A checkout in `~/.claude` that moves past 0.17.0 would list its credentials, transcripts and memory files as untracked: run `echo '*' >> .git/info/exclude` in it, or leave it on 0.17.0.
|
||||
- **build-release and build-epic run every claude in a Claude home of their own, `~/.local/share/build-release/claude-home`, and a release is cloned anywhere, no longer into `~/.claude`.** Take this release as `README.md` → Update says for a checkout in `~/.claude`: finish each open chunk first, clone the release, write `setup:` in place of `~/.claude/` in each project config's `principles` and `standards`, and change each path into `~/.claude` that a crontab names to the new clone. The commands build the home from the clone they ship in, with links to its `agents/`, `bin/`, `CLAUDE.md`, `principles/`, `rules/` and `skills/`, a `settings.json` generated from the clone's, and each plugin that file enables; they build it again when the clone moves to another release. Sign in there once: until you have, a command stops and prints the line to run, `CLAUDE_CONFIG_DIR=~/.local/share/build-release/claude-home claude`, where you type `/login`. Your own `~/.claude` is yours again: neither the loop nor `task-bench gather` runs a claude there. The settings filter and its Install step are gone, and `self-update` no longer asks you to pick a model with `/model`.
|
||||
|
||||
@@ -21,10 +21,10 @@ How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The
|
||||
- **Implement the simplest change that solves the item, and ship it with `/larv-review`.** Whenever a test can check the change, write that test first and see it fail. Take its expected values from the item, never from the code. larv-review's reviewers hold the change to the technical principles, and a finding against one names it. Read a file in the principles folder the project's config sets (`project-config principles` prints it) only when the item changes it, a finding or a record you write names it, or you decline a finding.
|
||||
- **Change the setup for each finding an outside reviewer raises on a PR, deterministic tools first.** An outside reviewer is a forge's auto-reviewer or a human, not one of larv-review's reviewer agents. For each finding of theirs, whether you fix it or decline it, ask why our review didn't raise it first, and change the setup so it would; a fix that only answers the comment leaves the same gap open for the next chunk. Put the change in the first place that fits:
|
||||
1. A deterministic tool that would have caught it, such as a rule-hook rule, a gate check, a linter setting or `mutate-changes`: a tool catches the fault every time, and a reviewer only when it notices.
|
||||
2. A technical principle or a review standard, where a rule was missing or too vague: in claude-config's files, or in the project's own principles folder.
|
||||
2. A technical principle or a review standard, where a rule was missing or too vague: in dev-factory's files, or in the project's own principles folder.
|
||||
3. Anything else: the reviewers' agents, `larv-review`'s text, or the project's own settings or `AGENTS.md`. A client repo's `AGENTS.md` changes by a proposal of its own, per "A client project's `CLAUDE.md` and `AGENTS.md`" above.
|
||||
|
||||
Change claude-config's files where every project gains, and the project's own only where the gap is that project's alone. In claude-config, the change is a fix of the chunk. In another project, a change to the project's own files is a fix of the chunk too, and a change to claude-config's is an item in claude-config's plan: start a worktree of claude-config off `origin/main`, run `todo-item add` in it, commit the plan file, and ship it as a pull request of its own with `chunk-pr`, since claude-config's default branch may not take a direct push. Describe the gap without the client's name, code or comment text. File a change too big for the chunk as its own item. Where no setup gap caused the finding, as when the finding is wrong, say so in the chunk's summary rather than inventing a change.
|
||||
Change dev-factory's files where every project gains, and the project's own only where the gap is that project's alone. In dev-factory, the change is a fix of the chunk. In another project, a change to the project's own files is a fix of the chunk too, and a change to dev-factory's is an item in dev-factory's plan: start a worktree of dev-factory off `origin/main`, run `todo-item add` in it, commit the plan file, and ship it as a pull request of its own with `chunk-pr`, since dev-factory's default branch may not take a direct push. Describe the gap without the client's name, code or comment text. File a change too big for the chunk as its own item. Where no setup gap caused the finding, as when the finding is wrong, say so in the chunk's summary rather than inventing a change.
|
||||
- **Remove a finished item from the plan, and revise any decision that cites it.** If the repo publishes something others consume — a package, an image, an API — reword the item for them and move it to `CHANGELOG.md` under `## Unreleased`. A changelog is for the public, never for the next agent. Otherwise delete it; git history is the record. `todo-item finish <ID>` removes the item with its detail, and adds the bullet you pass with `--changelog <bullet>`; it refuses while a decision cites the item. A plan kept in Jira takes no bullet, since the issues' history is its changelog: `finish` there refuses `--changelog`. A chunk finishes its items as it merges, through `chunk-pr merge --finish <ID>`, which takes the same flags (`larv-review` §5).
|
||||
- **Releases are the human's.** The version bump and the publishing credentials are theirs, whatever another rule says. Prepare everything else, so cutting a release is one decision.
|
||||
- **Open each plan item or ticket with a bold one-sentence tagline**, so the taglines alone say what a release holds. The tagline states the target state, checkable when done: an imperative verb plus what holds afterwards. A present-tense fact reads as the current state and doesn't say anything about what to do. Add "today X" only where the direction is otherwise ambiguous. GOOD: `**Accept undefined in MetadataValue and drop such keys on output.**` BANNED: `MetadataValue accepts undefined; such keys are dropped on output`.
|
||||
@@ -136,7 +136,7 @@ Claude Code reads this section by its heading when it compacts a conversation. K
|
||||
- **cycle** — in `build-release`, worker runs and the judge's verdict on each, until the chunk closes or is left for the next cycle. In between, the human answers any interrupt, or the worker resumes with an answer the judge quoted from the premises or the judge's records.
|
||||
- **gate** — the merge gate: the checks a PR passes before it merges.
|
||||
- **goals file** — the file holding a project's `## Goals` and `## Audience`: the one its config names as `goals-and-audience`. Read it in the file `project-record open goals-and-audience` prints. It is `README.md`, unless a client's project keeps it in the config's folder, or in a Jira epic's description, whose `## Goals` and `## Audience` the loop only reads.
|
||||
- **interrupt** — `build-release` asking the human, on its terminal, for a decision that is theirs. They type a one-line answer there, or `/talk` to open the worker's session there with `claude --resume`. A release ready to cut opens that session at once. A routing call opens claude on that terminal too, in `~/code/claude-config`, the checkout where this setup is developed.
|
||||
- **interrupt** — `build-release` asking the human, on its terminal, for a decision that is theirs. They type a one-line answer there, or `/talk` to open the worker's session there with `claude --resume`. A release ready to cut opens that session at once. A routing call opens claude on that terminal too, in `~/code/dev-factory`, the checkout where this setup is developed.
|
||||
- **judge** — the headless claude that reads a worker's transcript each cycle and decides whether to interrupt and whether the chunk is finished.
|
||||
- **judge's records** — the files the judge reads beside the premises: the project's `AGENTS.md` and `docs/decisions.md`, then the setup's `CLAUDE.md` and the `.md` files in the setup's `rules/`, then those in the project's review standards.
|
||||
- **paired ruling** — the seats vote whether the project reads better, the same or worse at the branch's head than at the base, the commit `larv-review ruling-base` prints; `larv-review --help` says how the votes make the ruling.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Claude Code configuration
|
||||
# dev-factory
|
||||
|
||||
My setup for Claude Code, version controlled: `CLAUDE.md` and `rules/` for instructions, the words under `CLAUDE.md` → "Vocabulary"; `.claude/rules/` for the rules that load in this repo alone; `agents/` and `skills/`; `principles/` and `skills/larv-review/standards/` for what the reviewer agents hold projects to, which a project's config names as `principles` and `standards`; `docs/` for decisions and the comprehension history; `settings.json` for the harness and `.claude/settings.json` for the harness inside this repo; `CHANGELOG.md` and `todo.md`; the tools in `bin/`, with the routing ladder they ship, `bin/model_routing/routing-ladder.json`; `workflow-bench/`, the scripts and prompts of the 2026-09-30 bench of larv-review and of the 2026-11-12 bench of the advisor tool; `reviewer-merge-trials/`, the 2026-11-09 trials of merging reviewers, with their method, results and scripts; `judge-field-trials/`, the 2026-11-11 trials of which facts code could read in place of build-release's judge, with their results and scripts; `stability-skip-count/`, the 2026-11-12 count of archived stability rounds, with its script, from which larv-review took when to skip a stability round 2; and `presentation/`, a page that explains this setup to newcomers, with the script that prints it to PDF.
|
||||
dev-factory builds a project's plan into merged pull requests, with Claude Code as its harness today. This repo holds dev-factory's setup, version controlled: `CLAUDE.md` and `rules/` for instructions, the words under `CLAUDE.md` → "Vocabulary"; `.claude/rules/` for the rules that load in this repo alone; `agents/` and `skills/`; `principles/` and `skills/larv-review/standards/` for what the reviewer agents hold projects to, which a project's config names as `principles` and `standards`; `docs/` for decisions and the comprehension history; `settings.json` for the harness and `.claude/settings.json` for the harness inside this repo; `CHANGELOG.md` and `todo.md`; the tools in `bin/`, with the routing ladder they ship, `bin/model_routing/routing-ladder.json`; `workflow-bench/`, the scripts and prompts of the 2026-09-30 bench of larv-review and of the 2026-11-12 bench of the advisor tool; `reviewer-merge-trials/`, the 2026-11-09 trials of merging reviewers, with their method, results and scripts; `judge-field-trials/`, the 2026-11-11 trials of which facts code could read in place of build-release's judge, with their results and scripts; `stability-skip-count/`, the 2026-11-12 count of archived stability rounds, with its script, from which larv-review took when to skip a stability round 2; and `presentation/`, the page of a talk that explained this setup to newcomers, as it stood then, with the script that prints it to PDF.
|
||||
|
||||
## Goals
|
||||
|
||||
@@ -52,9 +52,9 @@ Take this checkout only onto a machine that is a sandbox with no direct access t
|
||||
Each machine holds two clones. `~/build-release` holds only a release, and its tools are the ones you run: its own `bin/self-update` moves it from tag to tag. Clone it anywhere but `~/.claude`; this README writes `~/build-release`. Develop in a clone under `~/code`, where build-release runs this repo's chunks like any project's.
|
||||
|
||||
```sh
|
||||
git clone ssh://git@gitea.larvit.se:21022/lilleman/claude-config.git ~/build-release
|
||||
git clone ssh://git@gitea.larvit.se:21022/lilleman/dev-factory.git ~/build-release
|
||||
git -C ~/build-release checkout --detach "$(git -C ~/build-release tag -l 'v*' --sort=-v:refname | head -n 1)"
|
||||
git clone ssh://git@gitea.larvit.se:21022/lilleman/claude-config.git ~/code/claude-config
|
||||
git clone ssh://git@gitea.larvit.se:21022/lilleman/dev-factory.git ~/code/dev-factory
|
||||
```
|
||||
|
||||
Have the latest stable Python, today 3.14, as `python3` on `PATH`, and tmux 3.2 or later: build-release runs each chunk in its own window of a tmux session per project. build-release and build-epic stop and say so where either is older. For Rust projects, have `rust-analyzer` on `PATH`, which the `rust-analyzer-lsp` plugin needs.
|
||||
@@ -194,13 +194,13 @@ Move `~/build-release` to the newest release:
|
||||
|
||||
It prints `CHANGELOG.md`'s section for each version it moved past: do what each asks, such as a new step under Install. `self-update` moves the clone it ships in, whatever the directory it is run from, and names that clone in each line that says what it did or why it refused. So run `~/build-release`'s copy, never the development clone's. The next build-release or build-epic builds the loop's Claude home again from the new release. `self-update --help` says what else it checks.
|
||||
|
||||
It refuses while a file the clone tracks has an uncommitted change. Claude Code keeps its own files in the loop's home, not in the clone. The home's six links lead into the clone, though, so a rule, an agent, a skill, a principle or a tool changed in that home changes the clone's file. Carry such a change into `~/code/claude-config` on a branch of its own, merge it through a PR, and cut a release.
|
||||
It refuses while a file the clone tracks has an uncommitted change. Claude Code keeps its own files in the loop's home, not in the clone. The home's six links lead into the clone, though, so a rule, an agent, a skill, a principle or a tool changed in that home changes the clone's file. Carry such a change into `~/code/dev-factory` on a branch of its own, merge it through a PR, and cut a release.
|
||||
|
||||
A release up to 0.17.0 was a checkout in `~/.claude`, and `self-update` doesn't move one out of there. Finish each open chunk first: its session stays in `~/.claude`, where the new release doesn't look for it. Then clone the newest release as Install says, and sign in to the loop's home. In each project's config, write `setup:` in place of `~/.claude/` in `principles` and `standards`, as in `setup:principles`, and write the new clone in place of `~/.claude` in the crontab line. build-release and build-epic don't read `~/.claude` after that, so the checkout there is yours to keep or remove. Keep it on 0.17.0 if you keep it: a later `settings.json` names its hooks by a placeholder that only the loop's home fills in, so in `~/.claude` the hooks would not run. A later release's `.gitignore` doesn't ignore Claude Code's credentials, transcripts and memory files, so in `~/.claude` a `git add .` would stage them. Where that checkout has moved past 0.17.0, run `echo '*' >> .git/info/exclude` in it.
|
||||
|
||||
## Release
|
||||
|
||||
Once the next release holds no item in `todo.md` and its release review has landed, cut it from `~/code/claude-config`:
|
||||
Once the next release holds no item in `todo.md` and its release review has landed, cut it from `~/code/dev-factory`:
|
||||
|
||||
```sh
|
||||
bin/cut-release
|
||||
@@ -218,7 +218,7 @@ It applies only those commits on the newest tag, tests them with `ci.sh`, tags a
|
||||
|
||||
## Tools
|
||||
|
||||
build-release, build-epic, `task-bench gather` and `claude-release` put the release's tools first on the `PATH` of every claude they start, so this README and the rules name each tool bare, as in `metric-bench`. Install puts no tool on your shell's `PATH`: there, and in a claude you start by any other means, call each by its path, `~/build-release/bin/<tool>`, from the project's checkout. Run `cut-release` from the development clone instead, as Release says. The tools under `~/build-release` are the release's; test a change to one from `~/code/claude-config/bin`. The tools are listed in alphabetical order, and the packages under `bin/` follow under their own heading.
|
||||
build-release, build-epic, `task-bench gather` and `claude-release` put the release's tools first on the `PATH` of every claude they start, so this README and the rules name each tool bare, as in `metric-bench`. Install puts no tool on your shell's `PATH`: there, and in a claude you start by any other means, call each by its path, `~/build-release/bin/<tool>`, from the project's checkout. Run `cut-release` from the development clone instead, as Release says. The tools under `~/build-release` are the release's; test a change to one from `~/code/dev-factory/bin`. The tools are listed in alphabetical order, and the packages under `bin/` follow under their own heading.
|
||||
|
||||
- `build-epic <EPIC-KEY>` runs the chunks of one Jira epic whose items span repos, or have none, each in its own window of the tmux session `epic-<EPIC-KEY>`, on the same cycle, judge and interrupt as build-release. The epic's description is its record: goals, audience, scoring and decisions. Before it starts chunks, build-epic plans each open issue that no label places yet, as "Set up a project" says. It files a sub-task per repo where the issue changes several repos. Otherwise it labels the issue with where it is worked, and asks you where that is unclear. It plans no issue your team filed a sub-task under: those sub-tasks run instead, each under a label of its own, and your team closes the issue. Then, where two or more issues may start, it scores each of them that holds no scores, and moves the issues that build-epic itself filed into order of score on the board. An open issue runs once a label names its repo or marks it as Claude's, in order of score, as many at once as a line such as `**Max parallel chunks:** 2` in the epic's description allows, 1 without it, and as each repo's `parallel-chunks` allows. A chunk whose pull request waits on a gate parks. An open task of yours that blocks another issue gets a window that DMs you once and reads the epic every minute; once you close the task, the issues it blocked may start. `build-epic <EPIC-KEY> --dry-run` prints what `build-epic <EPIC-KEY>` would write to Jira and which chunks it would start, and does neither; run it before the first real run on a team's epic. `--help` lists what it prints and leaves out. build-epic closes the epic only once you confirm every goal. Install → "Set up a project" says how to set it up; `build-epic --help` states the flags and the contract.
|
||||
- `build-epic-e2e` runs `build-epic` against a sandbox epic on a real Jira site, as Test says.
|
||||
@@ -330,4 +330,4 @@ The commands in this section name their tools bare, as Tools says. CI runs `ci.s
|
||||
|
||||
To mutation-test the lines a branch changes, run `run-heavy mutate-changes --prefix 'uvx --python "$(command -v python3)" --with pytest==9.2.0 --from "mutmut>=3,<4"'` in its checkout.
|
||||
|
||||
To bench how hard the code is to fix a bug in, build the image first, with `run-heavy docker build --quiet --memory 2g --memory-swap 2g -t claude-config-task-bench task-bench-image`. Then run `task-bench --image claude-config-task-bench --prefix 'uvx --python "$(command -v python3)" --with pytest==9.2.0 --from "mutmut>=3,<4"' --test 'python -m pytest -q -p no:cacheprovider -n 4 bin --ignore=bin/adf_codec --ignore=bin/run_tests --ignore=bin/repo_checks/test_types.py --deselect bin/plan/test_touches.py::PredictedTest --deselect bin/loop_effects/test_effects.py::ChildShells'` in this checkout, under `run-heavy`. A scoring run starts it with `--record-figures` added. The bench runs the tests with no network, so the image holds everything they need. The `--test` leaves out the tests that need docker or `uvx`, and `ChildShells`, which needs `docker run --init` to reap its processes: `bin/run-tests` on the host runs those.
|
||||
To bench how hard the code is to fix a bug in, build the image first, with `run-heavy docker build --quiet --memory 2g --memory-swap 2g -t dev-factory-task-bench task-bench-image`. Then run `task-bench --image dev-factory-task-bench --prefix 'uvx --python "$(command -v python3)" --with pytest==9.2.0 --from "mutmut>=3,<4"' --test 'python -m pytest -q -p no:cacheprovider -n 4 bin --ignore=bin/adf_codec --ignore=bin/run_tests --ignore=bin/repo_checks/test_types.py --deselect bin/plan/test_touches.py::PredictedTest --deselect bin/loop_effects/test_effects.py::ChildShells'` in this checkout, under `run-heavy`. A scoring run starts it with `--record-figures` added. The bench runs the tests with no network, so the image holds everything they need. The `--test` leaves out the tests that need docker or `uvx`, and `ChildShells`, which needs `docker run --init` to reap its processes: `bin/run-tests` on the host runs those.
|
||||
|
||||
@@ -57,7 +57,7 @@ def image_tag(shim: pathlib.Path) -> str:
|
||||
digest = hashlib.sha256()
|
||||
for name in SHIM_FILES:
|
||||
digest.update((shim / name).read_bytes())
|
||||
return f"claude-config-adf-codec:{digest.hexdigest()[:12]}"
|
||||
return f"dev-factory-adf-codec:{digest.hexdigest()[:12]}"
|
||||
|
||||
|
||||
def docker_args(image: str, mode: str) -> list[str]:
|
||||
|
||||
@@ -2,6 +2,7 @@ import contextlib
|
||||
import fcntl
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
|
||||
import pytest
|
||||
@@ -143,6 +144,12 @@ def test_the_image_tag_changes_with_the_shim_files(tmp_path):
|
||||
assert convert.image_tag(tmp_path) != before
|
||||
|
||||
|
||||
def test_the_image_tag_is_the_project_name_and_twelve_hex_digits_of_the_shim_files(tmp_path):
|
||||
for name in convert.SHIM_FILES:
|
||||
(tmp_path / name).write_text("a")
|
||||
assert re.fullmatch(r"dev-factory-adf-codec:[0-9a-f]{12}", convert.image_tag(tmp_path))
|
||||
|
||||
|
||||
def test_the_container_command_line_is_exactly_this():
|
||||
assert convert.docker_args("image:1", "to-adf") == [
|
||||
"docker", "run", "--rm", "-i", "--memory", "256m", "--memory-swap", "256m", "--network", "none", "--read-only", "image:1", "to-adf",
|
||||
|
||||
@@ -35,7 +35,7 @@ class Cycle:
|
||||
|
||||
Each step reads the few fields it needs by name, so the fields stay at one level. docs/decisions.md → `principles: about seven things per level, …` allows more than seven where a reader finds them by name.
|
||||
"""
|
||||
# The claude-config release and commit the cycle runs under, such as `v0.8.0 (<sha>)`, or why they are unknown: chunk_driver/cycle_start.py's setup_version.
|
||||
# The dev-factory release and commit the cycle runs under, such as `v0.8.0 (<sha>)`, or why they are unknown: chunk_driver/cycle_start.py's setup_version.
|
||||
config: str
|
||||
effects: Effects
|
||||
# What chunk-preflight found, or why it could not run, for a fresh worker's prompt; empty when the session was open as the cycle began.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""What a stretch of the chunk's work spent, in raw tokens by model and kind, which the archive records beside each verdict, interrupt and quoted answer: docs/decisions.md → `build-release: each verdict records the claude-config release and commit that ran it…`.
|
||||
"""What a stretch of the chunk's work spent, in raw tokens by model and kind, which the archive records beside each verdict, interrupt and quoted answer: docs/decisions.md → `build-release: each verdict records the dev-factory release and commit that ran it…`.
|
||||
|
||||
A stretch runs from the previous outcome that recorded a spend, or from the chunk's start, to the ruling. It counts the worker's main thread, each subagent and the judge run that ruled, each message once. Dollars are left to be derived from the model and the tokens, at the prices recorded beside them.
|
||||
"""
|
||||
|
||||
@@ -43,7 +43,7 @@ ONE_UP = Rung("claude-fable-5-2", "low")
|
||||
THREE_UP = Rung("claude-opus-5-5", "xhigh")
|
||||
# How the archive records a worker that runs off the ladder.
|
||||
OFF_LADDER = '{"model": "worker-model"}'
|
||||
# The claude-config release and commit each cycle the tests run is under.
|
||||
# The dev-factory release and commit each cycle the tests run is under.
|
||||
CONFIG = "v0.8.0 (abc123)"
|
||||
# How it records routes by item 179's L of 2 and E + I of 5.
|
||||
SONNET_179 = '{"model": "claude-sonnet-5-5", "effort": "high", "item": 179, "likelihood": 2, "escape_and_impact": 5}'
|
||||
|
||||
@@ -23,7 +23,7 @@ class TmuxCommands(unittest.TestCase):
|
||||
self.assertEqual(fake.tmux_calls, [["-V"]])
|
||||
|
||||
def test_names_the_session_for_the_project(self):
|
||||
self.assertEqual(tmux.session_name(tmux.LOOP, "claude-config"), "loop-claude-config")
|
||||
self.assertEqual(tmux.session_name(tmux.LOOP, "dev-factory"), "loop-dev-factory")
|
||||
# tmux reads `.` and `:` in a target as separators.
|
||||
self.assertEqual(tmux.session_name(tmux.LOOP, "my.site:2 x"), "loop-my-site-2-x")
|
||||
self.assertEqual(tmux.session_name(tmux.LOOP, "Acme/Billing"), "loop-Acme-Billing")
|
||||
|
||||
@@ -78,7 +78,7 @@ def unusable(run: Tmux, driver: str) -> str | None:
|
||||
|
||||
|
||||
def session_name(kind: str, key: str) -> str:
|
||||
"""The tmux session an entry point runs its chunks in: kind LOOP with a project's key, such as `loop-claude-config`, or kind EPIC with an epic's key, such as `epic-ABC-12`. tmux reads `.` and `:` in a target as separators, so every character of the key but a letter, a digit, `_` and `-` becomes a dash."""
|
||||
"""The tmux session an entry point runs its chunks in: kind LOOP with a project's key, such as `loop-dev-factory`, or kind EPIC with an epic's key, such as `epic-ABC-12`. tmux reads `.` and `:` in a target as separators, so every character of the key but a letter, a digit, `_` and `-` becomes a dash."""
|
||||
return f"{kind}-" + re.sub(r"[^A-Za-z0-9_-]", "-", key)
|
||||
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ class RoutingCheck(unittest.TestCase):
|
||||
self.assertEqual(args[:6], ["--model", "m", "--effort", "high", "--permission-mode", "bypassPermissions"])
|
||||
self.assertIn(f"don't change anything until they answer:\n- {call}", args[6])
|
||||
self.assertEqual(fake.terminal_environments, [{"CLAUDE_CODE_SANDBOXED": "1"}])
|
||||
self.assertEqual(fake.terminal_folders, [str(self.home / "code" / "claude-config")], "the development clone, since ~/.claude holds only a release")
|
||||
self.assertEqual(fake.terminal_folders, [str(self.home / "code" / "dev-factory")], "the development clone, since a release clone holds only a release")
|
||||
self.assertIn("Record what they decide in this checkout, the development clone", args[6])
|
||||
self.assertIsNone(state.mark_measured(self.root, 0))
|
||||
self.assertEqual(self.check(FakeEffects(git=[UNREAD] * 3))[0], None)
|
||||
@@ -124,7 +124,7 @@ class RoutingCheck(unittest.TestCase):
|
||||
def test_stops_when_claude_cannot_start_for_the_calls(self):
|
||||
self.chunks(5, 4)
|
||||
stop, _ = self.check(FakeEffects(on_terminal_claude=[OSError(2, "No such file or directory")], git=[UNREAD] * 3))
|
||||
self.assertEqual(stop, Stop(1, f"could not start claude for the routing calls in {self.home / 'code' / 'claude-config'}, the setup's development clone: No such file or directory"))
|
||||
self.assertEqual(stop, Stop(1, f"could not start claude for the routing calls in {self.home / 'code' / 'dev-factory'}, the setup's development clone: No such file or directory"))
|
||||
|
||||
def test_says_a_figure_it_cannot_write_and_goes_on(self):
|
||||
assert_not_root(self)
|
||||
|
||||
@@ -35,7 +35,7 @@ home holds.
|
||||
|
||||
build-release needs tmux 3.2 or later, and checks that too before it starts anything. Each chunk
|
||||
runs in its own window of one tmux session per project, named loop-<key>, such as
|
||||
loop-claude-config. <key> is the checkout's path relative to ~/code, or to / outside it, with a dash
|
||||
loop-dev-factory. <key> is the checkout's path relative to ~/code, or to / outside it, with a dash
|
||||
for each character other than a letter, a digit, _ or -. The tmux session's @loop-root option names
|
||||
its checkout, and a checkout whose key maps to a tmux session another checkout runs is refused.
|
||||
build-release <task> starts the chunks that may start now, then attaches to the tmux session, or
|
||||
@@ -159,7 +159,7 @@ Once 20 cycles have closed across all projects in the archive since the last mea
|
||||
loop to close one measures every finished chunk there, with no model run, and writes
|
||||
routing-figures.md at the archive's root (bin/routing_figures/). Each call the figures make for a
|
||||
routing change, unless raised before, is an interrupt: claude, on the project's model, on the
|
||||
terminal in the setup's development clone, ~/code/claude-config, asked to put the calls to the
|
||||
terminal in the setup's development clone, ~/code/dev-factory, asked to put the calls to the
|
||||
human. Once that claude ends, the calls are listed in
|
||||
routing-calls-raised.md beside the figures, kept in routing-state.json, and not raised again. Off a
|
||||
terminal, the calls are said on stderr, the loop goes on, and they are raised again at the next
|
||||
|
||||
@@ -132,7 +132,7 @@ class Cut(unittest.TestCase):
|
||||
self.env = {**isolated_env(), "GIT_CONFIG_GLOBAL": str(self.temp / "gitconfig"), "GIT_CONFIG_NOSYSTEM": "1", "PATH": f"{fake}:{os.environ['PATH']}", "XDG_STATE_HOME": str(self.temp / "state")}
|
||||
self.forge_state({"origin": str(self.origin), "pulls": [], "checks": "none", "calls": []})
|
||||
self.git(self.temp, "init", "-q", "--bare", "-b", "main", str(self.origin))
|
||||
self.clone = self.temp / "claude-config"
|
||||
self.clone = self.temp / "dev-factory"
|
||||
self.git(self.temp, "clone", "-q", str(self.origin), str(self.clone))
|
||||
self.commit({"CHANGELOG.md": "# Changelog\n\n## 0.1.0\n\n- First.\n", "todo.md": TODO + ROW.format(id=1, release="0.2.0") + ROW.format(id=2, release="0.3.0"), "tool.txt": "broken\n", "ci.sh": "exit 0\n"}, "Start")
|
||||
self.git(self.clone, "tag", "-a", "v0.1.0", "-m", "Cut release 0.1.0")
|
||||
|
||||
@@ -92,8 +92,8 @@ checkout's HEAD, which the seats read, and one prompt file per seat beside it, a
|
||||
skills/comprehension-panel/seat-prompts.md builds them. It prints the worktree's path and each
|
||||
prompt's. It takes {{language}}, {{kind}}, {{domain}}, {{domain docs}} and {{3am question}} from the
|
||||
project's working-rules file → "Scoring run", which is the checkout's AGENTS.md unless the config
|
||||
names another. Where that file holds no such section, as in claude-config, it takes them from the
|
||||
checkout's seat-prompts.md → "claude-config's values". It fills the other placeholders from the worktree and
|
||||
names another. Where that file holds no such section, as in dev-factory, it takes them from the
|
||||
checkout's seat-prompts.md → "dev-factory's values". It fills the other placeholders from the worktree and
|
||||
the panel's SKILL.md. Where any one of the five values is missing, it exits 1 and doesn't write
|
||||
anything. Where a setup that record-scoring never removed is still there, it removes it first and
|
||||
says so.
|
||||
|
||||
@@ -89,7 +89,7 @@ def paths_from(home: pathlib.Path, env: Mapping[str, str]) -> Paths:
|
||||
return Paths(
|
||||
claude_code_transcripts=claude / "projects",
|
||||
claude_dir=claude,
|
||||
config_clone=home / "code" / "claude-config",
|
||||
config_clone=home / "code" / "dev-factory",
|
||||
config_folder=config,
|
||||
home=home,
|
||||
model_catalog=claude / "cache" / "model-catalog",
|
||||
|
||||
@@ -4,7 +4,7 @@ usage: self-update
|
||||
|
||||
Run it by its path in a clone of a release, as in <clone>/bin/self-update. It fetches origin's
|
||||
tags and checks out the newest v* tag, detached, so the clone holds only what a release holds.
|
||||
Development happens in another clone, such as ~/code/claude-config. It prints the clone and the version it moved
|
||||
Development happens in another clone, such as ~/code/dev-factory. It prints the clone and the version it moved
|
||||
from and to, then CHANGELOG.md's section for each version since, so you can do what each asks, such
|
||||
as a new step under Install.
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ JUDGE_RUN = "Judge run: "
|
||||
JUDGE_RUN_AT = re.compile(rf"^{re.escape(JUDGE_RUN)}({FOLDER}/[0-9a-f]{{64}}\.json)$", re.MULTILINE)
|
||||
|
||||
|
||||
# The claude-config release and commit that ran the cycle, on the line before JUDGE, such as `Config: v0.8.0 (<sha>)`.
|
||||
# The dev-factory release and commit that ran the cycle, on the line before JUDGE, such as `Config: v0.8.0 (<sha>)`.
|
||||
CONFIG = "Config: "
|
||||
# Opens the block of what the work since the previous outcome that recorded a spend spent; an outcome that didn't spend anything has none.
|
||||
SPENT = "Spent since "
|
||||
@@ -48,7 +48,7 @@ REVERSED_AT = re.compile(rf"^{re.escape(REVERSED)}\n((?:> .*\n)*> .*)", re.MULTI
|
||||
|
||||
|
||||
class Annotation(typing.NamedTuple):
|
||||
"""What a verdict, an interrupt or a quoted answer records beside its judge lines, so a change to the setup can be judged before and after: docs/decisions.md → `build-release: each verdict records the claude-config release and commit that ran it…`. Each part is left out where empty; the cycle always gives config."""
|
||||
"""What a verdict, an interrupt or a quoted answer records beside its judge lines, so a change to the setup can be judged before and after: docs/decisions.md → `build-release: each verdict records the dev-factory release and commit that ran it…`. Each part is left out where empty; the cycle always gives config."""
|
||||
config: str = ""
|
||||
# The block spent_block renders.
|
||||
spent: str = ""
|
||||
|
||||
+6
-6
@@ -18,14 +18,14 @@ Each project principle states one rule that the decisions below apply; their ent
|
||||
- bin/: the tools send no OTLP traces, logs or metrics, and build-release's archive holds the trace of each cycle
|
||||
- bin/: the tools support only the latest stable Python, and the tests, written in plain unittest, run on it in four pytest-xdist workers
|
||||
- build-epic: drives one Jira epic whose items span repos, or have none, ranked by the epic's goals, then code health, then each repo's goals, and closes the epic only once the human confirms every goal
|
||||
- build-release: each verdict records the claude-config release and commit that ran it, the raw tokens each thread spent by model and kind since the previous outcome that recorded a spend, and the human's typed answer the judge quotes as reversing a choice the worker took on its own recommendation
|
||||
- build-release: each verdict records the dev-factory release and commit that ran it, the raw tokens each thread spent by model and kind since the previous outcome that recorded a spend, and the human's typed answer the judge quotes as reversing a choice the worker took on its own recommendation
|
||||
- build-release: each chunk runs in its own tmux window, of one tmux session per project, up to `parallel-chunks` at once, and needs tmux 3.2; its claude session is named after its window, its id derived from that name; a chunk's commit in the config's folder takes only the file it changed
|
||||
- chunk-pr: the chunks of a project merge one at a time on a machine, each finishing its plan items in its turn, and a pull request that waits for an approval leaves the queue while it waits
|
||||
- Claude Code in a home of its own: a `CLAUDE_CONFIG_DIR` home loads `CLAUDE.md`, rules, agents, skills, hooks and plugins, and `CLAUDE_CODE_OAUTH_TOKEN` signs in there, but never under `--bare`
|
||||
- deploy: this repo keeps no `AGENTS.md`, since `~/.claude` is its checkout; its principles and decision titles head `docs/decisions.md`, its working rules follow them there, and its `.claude/settings.json` excludes every `.claude/CLAUDE.md`, so a session in the clone loads only the clone's `CLAUDE.md`
|
||||
- epic-branch: an epic's chunks branch off and merge into a working branch its project's config names, without a person, and a person merges that branch into the default branch in one pull request
|
||||
- machine load: a heavy command waits for one of the machine's heavy slots, one for every 4 CPUs, which every session shares, and build-release starts a worker only while at least a quarter of the machine's memory is available
|
||||
- names: the plan calls the project and its repo `dev-factory`, its commands are `build-release` and `build-epic` with no old name kept as an alias, and the code keeps its other names until their planned items ship
|
||||
- names: the project and its repo are `dev-factory`, its commands are `build-release` and `build-epic` with no old name kept as an alias, and the code keeps its other names until their planned items ship
|
||||
- principles: about seven things per level, four or five where they act on each other, more where a reader finds them by name; crossing a limit asks for a grouping or a recorded reason
|
||||
- project config: a record may name a Confluence Cloud page as `confluence:` and its address, the loop reads and writes it as markdown, and a write never overwrites a save made since the loop's read
|
||||
- project config: a tool that reads a file's commits says where it does not support that file, and the work goes on
|
||||
@@ -146,7 +146,7 @@ The cap is 5, `bin/plan/todo_table.py`'s `BUNDLE_MAX_R`, from the same chunks: b
|
||||
|
||||
2026-09-27, lilleman, restating the 2026-09-24 target and extending it to the overall. Serves goal 1. 2026-10-13, lilleman: the floor doesn't block anything, and `review: the comprehension check records …` says why. Valid while the scoring run keeps its four seats. 2026-11-12, lilleman, through todo item 358: a project's config sets this floor as `readability-floor`, its readability floor, since legacy code scores low. It is 7.0 where left out, and the signal stays that the score rises. Readers seated as the person who writes the config picked the key, 2 of 3.
|
||||
|
||||
## deploy: a clone of a release holds only that release, which its own `bin/self-update` moves it to; this repo is developed in `~/code/claude-config`, where build-release runs its chunks like any project's
|
||||
## deploy: a clone of a release holds only that release, which its own `bin/self-update` moves it to; this repo is developed in `~/code/dev-factory`, where build-release runs its chunks like any project's
|
||||
|
||||
2026-10-29, lilleman. Serves goal 1.3 and goal 2. `~/.claude` was this repo's development checkout, so every merge reached every session on the machine at once, its unfinished work included, while other machines took only tags. Now each machine takes only releases: what a release holds is what every session runs, and cutting one is the human's step that ships it. `self-update` automates README → Update. It refuses an uncommitted change to a tracked file that the new tag doesn't hold, such as a rule edited through a link of the loop's Claude home, and a move that would drop commits no release holds. 2026-12-03, lilleman, in the standalone-install plan: a release is run from a clone by the path of its `bin/`, so `self-update` moves the clone it ships in and takes no argument, in place of `deploy-release`, which ran from the development clone. Three fresh readers, seated as a person who installed a release, a consultant new to it and the maintainer, each picked `bin/self-update` over `build-release self-update`, which read as a task handed to build-release, and over `update-release`, `update` and `take-release`. 2026-12-04, lilleman's plan for 0.18.0, with the loop's Claude home: the clone lies anywhere but `~/.claude`, and Claude Code's own writes go to the generated home. Valid while every claude the loop starts reads its configuration from one home per machine.
|
||||
|
||||
@@ -271,7 +271,7 @@ Valid while claude takes `--session-id` and resumes by it, and the human runs bu
|
||||
|
||||
`claude_reply` reads stream-json for every caller, so the judge's runs are streams too; the archive's `JudgeRun` stays as it was, since a judge has no tools and one turn. Valid while transcripts stay small enough to copy whole.
|
||||
|
||||
## build-release: each verdict records the claude-config release and commit that ran it, the raw tokens each thread spent by model and kind since the previous outcome that recorded a spend, and the human's typed answer the judge quotes as reversing a choice the worker took on its own recommendation
|
||||
## build-release: each verdict records the dev-factory release and commit that ran it, the raw tokens each thread spent by model and kind since the previous outcome that recorded a spend, and the human's typed answer the judge quotes as reversing a choice the worker took on its own recommendation
|
||||
|
||||
2026-11-12, lilleman, todo item 305. Serves goals 1, 1.2 and 1.4. A change to the setup can be judged only by comparing chunks run before it with chunks run after, so each verdict, interrupt and quoted answer in build-release's archive records three things beside its judge lines.
|
||||
|
||||
@@ -340,9 +340,9 @@ The heavy command in that hang started its container from the project's own scri
|
||||
|
||||
A daemon-wide cap would see every container: dockerd's `cgroup-parent`, given a memory limit. lilleman turned it down, since it is host config and would cap a project's heavy work too. Valid while sessions start their work in containers on a machine they share.
|
||||
|
||||
## names: the plan calls the project and its repo `dev-factory`, its commands are `build-release` and `build-epic` with no old name kept as an alias, and the code keeps its other names until their planned items ship
|
||||
## names: the project and its repo are `dev-factory`, its commands are `build-release` and `build-epic` with no old name kept as an alias, and the code keeps its other names until their planned items ship
|
||||
|
||||
2026-11-28, lilleman, part of the standalone-install plan approved on 2026-11-20. Serves goal 2: a person who clones a release meets commands named for what they make. The names set the install folders, such as `~/.config/build-release/`. lilleman chose `build-release` over the proposed `do-release` because "do" reads as if the command cuts the release, which stays the human's. "Build" says it makes what the release holds, and `build-epic` follows it for an epic. Neither name has "claude" in it, which fits goal 6, a setup that doesn't depend on Claude Code. `loop-claude` has been renamed `build-release`, and `do-epic` has been renamed `build-epic`; the code keeps its other names until item 576 ships, in 0.18.0. On 2026-12-03 lilleman chose a hard break for the renames to `build-release`, `build-epic` and `dev-factory`: no old name stays as an alias. The `build-epic` rename applied it to the tool's own names too, so no name of the old tool lingers: its issue labels, which sit in a client's Jira, its config, state and transcripts folders and its `BUILD_EPIC_E2E_*` variables take the new name. Renaming the repo on the forge is the human's. Valid while the install folders are named for `build-release`.
|
||||
2026-11-28, lilleman, part of the standalone-install plan approved on 2026-11-20. Serves goal 2: a person who clones a release meets commands named for what they make. The names set the install folders, such as `~/.config/build-release/`. lilleman chose `build-release` over the proposed `do-release` because "do" reads as if the command cuts the release, which stays the human's. "Build" says it makes what the release holds, and `build-epic` follows it for an epic. Neither name has "claude" in it, which fits goal 6, a setup that doesn't depend on Claude Code. `loop-claude` has been renamed `build-release`, and `do-epic` has been renamed `build-epic`; 0.18.0 names the project `dev-factory` in the README, the prose and the tools, and the code keeps its other names, such as `CLAUDE.md`, until item 496 ships. A record of a past measurement or talk keeps the name it was made under: the transcript paths and project keys in `reviewer-merge-trials/`, and everything under `presentation/`. On 2026-12-03 lilleman chose a hard break for the renames to `build-release`, `build-epic` and `dev-factory`: no old name stays as an alias. The `build-epic` rename applied it to the tool's own names too, so no name of the old tool lingers: its issue labels, which sit in a client's Jira, its config, state and transcripts folders and its `BUILD_EPIC_E2E_*` variables take the new name. Renaming the repo on the forge is the human's. Valid while the install folders are named for `build-release`.
|
||||
|
||||
## principles: about seven things per level, four or five where they act on each other, more where a reader finds them by name; crossing a limit asks for a grouping or a recorded reason
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ Report, in this shape:
|
||||
3. Where a place you name backs a worse ruling and you want a more capable reader to check that ruling, the line `Rerun one rung up`.
|
||||
```
|
||||
|
||||
## claude-config's values
|
||||
## dev-factory's values
|
||||
|
||||
- `{language}`: Python
|
||||
- `{kind}`: a Claude Code configuration with an agent loop and review skills
|
||||
|
||||
@@ -14,8 +14,7 @@
|
||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||
| 486 | 0.18.0 | | owner | **Open an interactive claude with the setup loaded through one wrapper command, which sets the generated home and `PATH` and passes every argument on to claude.** | 2 | 1 | 1 | 2 | 3 | 2 by 2 | 0.5 |
|
||||
| 577 | 0.18.0 | 486 | owner | **Test in the gate that a container holding only a stock Claude Code runs a chunk from a clone, against a mock Messages API, and that the run leaves the container's own `~/.claude` as it was.** | 3 | 1 | 2 | 4 | 6 | 3 by 9, 2 by 5 | 5.2 |
|
||||
| 576 | 0.18.0 | | owner | **Name the project `dev-factory` in the README, the prose and the tools, and say in the changelog that the repo moved.** | 2 | 2 | 2 | 4 | 4 | 2 by 1, 6 by 1 | 0.4 |
|
||||
| 578 | 0.18.0 | 576, 577 | owner | **Ship one chunk of this repo, to a merged pull request, from a clone of `main` that runs in the generated home, beside the untouched `~/.claude`.** | 1 | 2 | 1 | 2 | 1 | 2 by 4 | 1.2 |
|
||||
| 578 | 0.18.0 | 577 | owner | **Ship one chunk of this repo, to a merged pull request, from a clone of `main` that runs in the generated home, beside the untouched `~/.claude`.** | 1 | 2 | 1 | 2 | 1 | 2 by 4 | 1.2 |
|
||||
| 585 | 0.19.0 | | | **Give this repo an `AGENTS.md` like any project, and drop the decision and the rule that say it keeps none.** | 3 | 1 | 3 | 5 | 4 | code health by 3 | 3.1 |
|
||||
| 580 | 0.19.0 | | | **Call no scoring run for a release already cut whose last item the chunk moved to a later release.** | 2 | 2 | 3 | 5 | 3 | 1.4 by 3, 1.5 by 3 | 1.6 |
|
||||
| 487 | 0.20.0 | | owner | **Run larv-review's passes from a program that picks them from the diff and the item, counts rounds against the cap and decides each rerun, with each reviewer returning its findings as JSON against a schema.** | 4 | 2 | 3 | 7 | 8 | 1.1 by 5, 1.4 by 5 | 0.4 |
|
||||
@@ -73,7 +72,7 @@
|
||||
| 4 | 0.23.0 | | | **Name each chunk's archive folder by the chunk's start time, so `<key>/` lists chunks in the order they ran.** | 3 | 2 | 3 | 6 | 3 | 1.1 by 3 | 0.9 |
|
||||
| 324 | 0.23.0 | | | **Count in the routing figures the finished chunks whose worker wrote no `Chunk items:` line.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 2, 1.4 by 1 | 0.9 |
|
||||
| 187 | 0.23.0 | | | **Count the tokens a worker spends reading reviewers' reports, so goal 1.4's signal shows whether report files lowered what a review costs the worker's context.** | 2 | 2 | 1 | 3 | 3 | 1.4 by 3 | 0.8 |
|
||||
| 266 | 0.23.0 | | | **Move the chunks archived under the key `home/lilleman/.claude` to the key `claude-config`, so the routing figures and `score-outcomes` count this repo's chunks as one project.** | 3 | 2 | 2 | 5 | 3 | 1.4 by 3 | 0.8 |
|
||||
| 266 | 0.23.0 | | | **Move the chunks archived under the key `home/lilleman/.claude` to the key `dev-factory`, so the routing figures and `score-outcomes` count this repo's chunks as one project.** | 3 | 2 | 2 | 5 | 3 | 1.4 by 3 | 0.8 |
|
||||
| 339 | 0.23.0 | | | **Lower the reading cost of the files a chunk reads most before its first commit.** | 2 | 2 | 1 | 3 | 3 | 1.4 by 3 | 0.8 |
|
||||
| 341 | 0.23.0 | | | **Hand each worker's claude a lower Read limit through `CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS`, kept only where replays of the archived review rounds find what two unchanged replays find.** | 2 | 2 | 3 | 5 | 3 | 1.4 by 3 | 0.8 |
|
||||
| 522 | 0.23.0 | | | **Let a subagent that ships a chunk in a worktree of another repo run larv-review's security pass on that worktree's diff.** | 2 | 2 | 3 | 5 | 3 | 1.5 by 3 | 0.8 |
|
||||
@@ -130,38 +129,6 @@ Touches:
|
||||
- `.gitignore`
|
||||
- `README.md`: `## Test` (small)
|
||||
|
||||
### 576. Name the project `dev-factory` in the README, the prose and the tools, and say in the changelog that the repo moved.
|
||||
|
||||
Part of the standalone-install plan lilleman approved on 2026-11-20, as reshaped on 2026-12-03 when 0.18.0 was planned. Split from item 496, which keeps the renames that wait for the harness interface, such as `CLAUDE.md`. Renaming the repo on the forge is lilleman's, and it changes every clone's remote. A project's key comes from its clone's folder name, and tmux session names from the key, so say in the changelog what renaming the clone's folder changes. Revise the decision "names", which still says the code keeps today's names and calls harness independence an open aim: it is goal 6.
|
||||
|
||||
Whether the trial records under `presentation/` and `reviewer-merge-trials/`, the adf-codec image tag and the test fixtures named for the repo change is not predictable, so the list holds every file that names `claude-config`.
|
||||
|
||||
Touches:
|
||||
|
||||
- `.claude/rules/this-repo-keeps-no-agents-md.md`: `` # This repo keeps no `AGENTS.md` ``
|
||||
- `CLAUDE.md`: `## Working loop`, `## Vocabulary`
|
||||
- `README.md`: `# Claude Code configuration`, `## Install`, `## Update`, `## Release`, `## Tools`, `## Test`
|
||||
- `bin/adf_codec/convert.py`: `image_tag`
|
||||
- `bin/agent_cycle/run.py`: `Cycle`
|
||||
- `bin/agent_cycle/spend.py`: `(module)`
|
||||
- `bin/agent_cycle/test_run.py`: `(module)`
|
||||
- `bin/agent_cycle/test_tmux.py`: `TmuxCommands`
|
||||
- `bin/agent_cycle/tmux.py`: `session_name`
|
||||
- `bin/cut_release/main.py`: `(module)`
|
||||
- `bin/cut_release/test_cut_release.py`: `Cut`
|
||||
- `bin/larv_review/main.py`: `(module)`
|
||||
- `bin/build_release/loop/test_routing_check.py`: `RoutingCheck`
|
||||
- `bin/build_release/loop/usage.py`: `HELP`
|
||||
- `bin/loop_state/paths.py`: `paths_from`
|
||||
- `bin/transcript_archive/outcomes.py`: `(module)`, `Annotation`
|
||||
- `presentation/README.md`: `## Where the figures come from`
|
||||
- `presentation/index.html`: lines 464-464, lines 488-488
|
||||
- `reviewer-merge-trials/README.md`: `## Samples`
|
||||
- `reviewer-merge-trials/cases-pair.json`: lines 3-6
|
||||
- `reviewer-merge-trials/cases-wave3.json`: lines 3-7
|
||||
- `reviewer-merge-trials/mkcases1.py`: `pick`
|
||||
- `skills/comprehension-panel/seat-prompts.md`: `## claude-config's values`
|
||||
|
||||
### 578. Ship one chunk of this repo, to a merged pull request, from a clone of `main` that runs in the generated home, beside the untouched `~/.claude`.
|
||||
|
||||
Part of the standalone-install plan lilleman approved on 2026-11-20, as reshaped on 2026-12-03 when 0.18.0 was planned. This is the proof lilleman asked for before the cut. The chunk takes any item left in 0.18.0, or a tiny one filed for it. The machines themselves move after the cut, which is no plan item: the script that moves transcripts, archives, memory and plugins into the new home is thrown away once both machines have run it.
|
||||
@@ -178,7 +145,7 @@ Touches:
|
||||
|
||||
Answer to question item 584: the decision "deploy: this repo keeps no `AGENTS.md`, since `~/.claude` is its checkout" lost its reason with item 483. A release is a clone anywhere, and the loop's Claude home links only `CLAUDE.md`, `rules/`, `agents/` and `skills/`, so an `AGENTS.md` here no longer loads into another project's session. Without the reason, the special case only costs: each rule that names a project's `AGENTS.md` needs a second reading for this repo. The loop took the recommended option, as "Ask, don't guess" allows for a choice the goals don't reserve; the human unmarks or drops this item to reverse it.
|
||||
|
||||
Move the head of `docs/decisions.md`, before `# Decisions`, into a new `AGENTS.md`: the project principles, the decision titles and the working rules. Move "claude-config's values" there from `skills/comprehension-panel/seat-prompts.md` as the scoring-run values. Drop the decision and `.claude/rules/this-repo-keeps-no-agents-md.md`, and let the tools read this repo as any project. The item waits for 0.18.0's cut: until then this repo is developed beside a `~/.claude` checkout on 0.17.0.
|
||||
Move the head of `docs/decisions.md`, before `# Decisions`, into a new `AGENTS.md`: the project principles, the decision titles and the working rules. Move "dev-factory's values" there from `skills/comprehension-panel/seat-prompts.md` as the scoring-run values. Drop the decision and `.claude/rules/this-repo-keeps-no-agents-md.md`, and let the tools read this repo as any project. The item waits for 0.18.0's cut: until then this repo is developed beside a `~/.claude` checkout on 0.17.0.
|
||||
|
||||
Touches:
|
||||
- `AGENTS.md`
|
||||
@@ -392,7 +359,7 @@ Seats launch as `general-purpose`, so they hide inside that type: $301.24 of the
|
||||
|
||||
### 342. Research the tooling agents read, search and run commands with once more, and file an item for each tool that cuts tokens a replay shows keep quality.
|
||||
|
||||
The next round of item 312's research, filed when 312's round ran on 2026-11-12. lilleman, 2026-11-11: repeat the round once per claude-config release, not per project. When this item's chunk finishes, file the next round into the next claude-config release with items left.
|
||||
The next round of item 312's research, filed when 312's round ran on 2026-11-12. lilleman, 2026-11-11: repeat the round once per dev-factory release, not per project. When this item's chunk finishes, file the next round into the next dev-factory release with items left.
|
||||
|
||||
Run it as 312's ran: a lead on the project's rung plans 6 to 10 searches where the archive's spend is, cheaper subagents with web access only return sourced findings, and the lead checks each claim against the archive's measured spend before filing.
|
||||
|
||||
@@ -409,7 +376,7 @@ Dropped in 312's round, and why; look again only where the reason has changed:
|
||||
|
||||
### 471. Ship `jira-rest METHOD PATH [BODY]`, which makes one Jira Cloud REST call with the credentials of the project's config, or build-epic's, reading the env file itself, so an agent calls Jira without naming a file rule-hook guards.
|
||||
|
||||
Once a Jira credentials file is a config's `env-file`, rule-hook's `env-file-read` refuses every Bash command that names it. A machine's own rules that tell agents to `source` it and `curl` Jira then stop working. On 2026-11-20 this happened on a machine whose rules call Jira that way, and a machine-only script, `~/.local/bin/jira-rest`, took their place. The human asked for it as a claude-config tool, so every machine has it.
|
||||
Once a Jira credentials file is a config's `env-file`, rule-hook's `env-file-read` refuses every Bash command that names it. A machine's own rules that tell agents to `source` it and `curl` Jira then stop working. On 2026-11-20 this happened on a machine whose rules call Jira that way, and a machine-only script, `~/.local/bin/jira-rest`, took their place. The human asked for it as a dev-factory tool, so every machine has it.
|
||||
|
||||
- `jira-rest METHOD PATH [BODY.json | -]` sends one call to a path under `/rest/`, with the body from the file or stdin, and prints Jira's JSON answer, or `null` for an empty one. A refused call exits non-zero with the message `atlassian.client.jira_errors` gives. No output, error or log line holds a credential.
|
||||
- The site and the env file come from the project's config where the checkout has one whose `plan` or `goals-and-audience` is a Jira epic: the epic's site and the config's `env-file`. Otherwise they come from build-epic's config: `jira-url` and `env-file`. Where neither holds them, it fails, naming both places.
|
||||
@@ -599,7 +566,7 @@ Today the folder is the SHA-256 of the transcript's first timestamped line, whic
|
||||
|
||||
Before PR #310, reports reached the worker as the Agent call's result, a median 19k tokens per chunk (2026-10-08, 68 archived transcripts). Now a reviewer returns its verdict and one line per finding, and the worker reads a 🔴 or 🟡 finding's entry from the report file. `reading-cost` counts only tracked files (`bin/reading_cost/measure.py`), and `routing-figures` counts only the Agent call's result (`bin/routing_figures/chunk.py`), so neither sees the report reads. Found by the architecture review of PR #310.
|
||||
|
||||
### 266. Move the chunks archived under the key `home/lilleman/.claude` to the key `claude-config`, so the routing figures and `score-outcomes` count this repo's chunks as one project.
|
||||
### 266. Move the chunks archived under the key `home/lilleman/.claude` to the key `dev-factory`, so the routing figures and `score-outcomes` count this repo's chunks as one project.
|
||||
|
||||
The archive holds 277 chunk folders under `home/lilleman/.claude`, from 2026-09-24 on, and 39 under `claude-config` (2026-11-10). The routing figures of 2026-11-04 list no project `home/lilleman/.claude`. They find a chunk's later fixes on the default branch of the checkout its key names (`bin/routing_figures/archive.py` `measure_project`), and `/home/lilleman/.claude` is a release checkout on a detached HEAD. Item 5 fixes how keys are derived, not the chunks already archived. `~/.claude/loop-claude-models.json` still holds a `home/lilleman/.claude` entry; it is machine state outside the repo, so removing it is a one-off step on each machine, not part of the change.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user