Name the project dev-factory in the README, the prose and the tools, and say in the changelog that the repo moved
CI / tests (pull_request) Has been cancelled
CI / tests (pull_request) Has been cancelled
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:
|
`~/.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 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
|
## 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`.** The forge's repo is renamed by its owner, who says when. After that, point each clone at the new URL with `git remote set-url origin <URL>`, as `README.md` → Install clones it. The tools expect the setup's development clone at `~/code/dev-factory`, and a project's key comes from its clone's folder name, so renaming the clone's folder from `claude-config` to `dev-factory` gives the project a new key. Before you rename it, finish its open chunks and stop its running `build-release`, since the tmux session `loop-claude-config` and the sessions named `A claude-config build-release <window>` are not found under the new key. Then move `~/.config/build-release/claude-config/` to `~/.config/build-release/dev-factory/`, the project's folder under `~/.local/state/build-release/transcripts/` the same way, 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.
|
- **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.
|
- `.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`.
|
- **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.
|
- **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:
|
- **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.
|
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.
|
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).
|
- **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.
|
- **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`.
|
- **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.
|
- **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.
|
- **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.
|
- **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** — 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.
|
- **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.
|
- **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 is its 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/`, a page that explains this setup to newcomers, with the script that prints it to PDF.
|
||||||
|
|
||||||
## Goals
|
## 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.
|
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
|
```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 -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.
|
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.
|
||||||
@@ -192,13 +192,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 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.
|
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
|
## 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
|
```sh
|
||||||
bin/cut-release
|
bin/cut-release
|
||||||
@@ -216,7 +216,7 @@ It applies only those commits on the newest tag, tests them with `ci.sh`, tags a
|
|||||||
|
|
||||||
## Tools
|
## Tools
|
||||||
|
|
||||||
build-release, build-epic and `task-bench gather` 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 from it yourself, 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 and `task-bench gather` 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 from it yourself, 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 <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.
|
- `build-epic-e2e` runs `build-epic` against a sandbox epic on a real Jira site, as Test says.
|
||||||
@@ -327,4 +327,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 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()
|
digest = hashlib.sha256()
|
||||||
for name in SHIM_FILES:
|
for name in SHIM_FILES:
|
||||||
digest.update((shim / name).read_bytes())
|
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]:
|
def docker_args(image: str, mode: str) -> list[str]:
|
||||||
|
|||||||
@@ -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.
|
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
|
config: str
|
||||||
effects: Effects
|
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.
|
# 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.
|
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")
|
THREE_UP = Rung("claude-opus-5-5", "xhigh")
|
||||||
# How the archive records a worker that runs off the ladder.
|
# How the archive records a worker that runs off the ladder.
|
||||||
OFF_LADDER = '{"model": "worker-model"}'
|
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)"
|
CONFIG = "v0.8.0 (abc123)"
|
||||||
# How it records routes by item 179's L of 2 and E + I of 5.
|
# 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}'
|
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"]])
|
self.assertEqual(fake.tmux_calls, [["-V"]])
|
||||||
|
|
||||||
def test_names_the_session_for_the_project(self):
|
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.
|
# 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, "my.site:2 x"), "loop-my-site-2-x")
|
||||||
self.assertEqual(tmux.session_name(tmux.LOOP, "Acme/Billing"), "loop-Acme-Billing")
|
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:
|
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)
|
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.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.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_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 ~/.claude holds only a release")
|
||||||
self.assertIn("Record what they decide in this checkout, the development clone", args[6])
|
self.assertIn("Record what they decide in this checkout, the development clone", args[6])
|
||||||
self.assertIsNone(state.mark_measured(self.root, 0))
|
self.assertIsNone(state.mark_measured(self.root, 0))
|
||||||
self.assertEqual(self.check(FakeEffects(git=[UNREAD] * 3))[0], None)
|
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):
|
def test_stops_when_claude_cannot_start_for_the_calls(self):
|
||||||
self.chunks(5, 4)
|
self.chunks(5, 4)
|
||||||
stop, _ = self.check(FakeEffects(on_terminal_claude=[OSError(2, "No such file or directory")], git=[UNREAD] * 3))
|
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):
|
def test_says_a_figure_it_cannot_write_and_goes_on(self):
|
||||||
assert_not_root(self)
|
assert_not_root(self)
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ home holds.
|
|||||||
|
|
||||||
build-release needs tmux 3.2 or later, and checks that too before it starts anything. Each chunk
|
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
|
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
|
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.
|
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
|
build-release <task> starts the chunks that may start now, then attaches to the tmux session, or
|
||||||
@@ -158,7 +158,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
|
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-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
|
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
|
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
|
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
|
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.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.forge_state({"origin": str(self.origin), "pulls": [], "checks": "none", "calls": []})
|
||||||
self.git(self.temp, "init", "-q", "--bare", "-b", "main", str(self.origin))
|
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.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.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")
|
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
|
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
|
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
|
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
|
names another. Where that file holds no such section, as in dev-factory, it takes them from the
|
||||||
checkout's seat-prompts.md → "claude-config's values". It fills the other placeholders from the worktree and
|
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
|
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
|
anything. Where a setup that record-scoring never removed is still there, it removes it first and
|
||||||
says so.
|
says so.
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ def paths_from(home: pathlib.Path, env: Mapping[str, str]) -> Paths:
|
|||||||
return Paths(
|
return Paths(
|
||||||
claude_code_transcripts=claude / "projects",
|
claude_code_transcripts=claude / "projects",
|
||||||
claude_dir=claude,
|
claude_dir=claude,
|
||||||
config_clone=home / "code" / "claude-config",
|
config_clone=home / "code" / "dev-factory",
|
||||||
config_folder=config,
|
config_folder=config,
|
||||||
home=home,
|
home=home,
|
||||||
model_catalog=claude / "cache" / "model-catalog",
|
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
|
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.
|
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
|
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.
|
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)
|
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: "
|
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.
|
# 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 "
|
SPENT = "Spent since "
|
||||||
@@ -48,7 +48,7 @@ REVERSED_AT = re.compile(rf"^{re.escape(REVERSED)}\n((?:> .*\n)*> .*)", re.MULTI
|
|||||||
|
|
||||||
|
|
||||||
class Annotation(typing.NamedTuple):
|
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 = ""
|
config: str = ""
|
||||||
# The block spent_block renders.
|
# The block spent_block renders.
|
||||||
spent: str = ""
|
spent: str = ""
|
||||||
|
|||||||
+5
-5
@@ -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 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
|
- 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-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
|
- 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
|
- 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`
|
- 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`
|
- 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
|
- 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
|
- 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
|
- 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 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
|
- project config: a tool that reads a file's commits says where it does not support that file, and the work goes on
|
||||||
@@ -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.
|
`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.
|
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.
|
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`; item 576 named the project `dev-factory` in 0.18.0, in the README, the prose and the tools, and the code keeps its other names until their planned items ship. Records of a past measurement keep the name they measured under: the trial records' transcript paths and project keys, and the figures in `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
|
## 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
|
||||||
|
|
||||||
|
|||||||
@@ -4095,3 +4095,48 @@ Read most (opens and searches):
|
|||||||
- `bin/review_replay/replay.py` 6
|
- `bin/review_replay/replay.py` 6
|
||||||
- `todo.md` 6
|
- `todo.md` 6
|
||||||
- `bin/build-release` 5
|
- `bin/build-release` 5
|
||||||
|
|
||||||
|
## Reading cost, chunk 338e966493fc, finished 2026-12-04T03:26:52Z
|
||||||
|
|
||||||
|
62696 new input tokens before the first commit.
|
||||||
|
|
||||||
|
Read most (opens and searches):
|
||||||
|
|
||||||
|
- `README.md` 7
|
||||||
|
- `.gitignore` 3
|
||||||
|
- `bin/build_epic/test_main.py` 3
|
||||||
|
- `bin/rule_hook/rules.py` 2
|
||||||
|
- `ci.sh` 2
|
||||||
|
- `CHANGELOG.md` 1
|
||||||
|
- `bin/mutate_changes/tool_process.py` 1
|
||||||
|
- `bin/repo_checks/test_gitignore.py` 1
|
||||||
|
- `bin/rule_hook/main.py` 1
|
||||||
|
- `bin/run-tests` 1
|
||||||
|
|
||||||
|
## Reading cost, chunk dedf3d6e1aca, finished 2026-12-04T03:51:53Z
|
||||||
|
|
||||||
|
71912 new input tokens before the first commit.
|
||||||
|
|
||||||
|
Read most (opens and searches):
|
||||||
|
|
||||||
|
- `README.md` 4
|
||||||
|
- `bin/loop_effects/effects.py` 4
|
||||||
|
- `bin/loop_state/paths.py` 4
|
||||||
|
- `CHANGELOG.md` 3
|
||||||
|
- `bin/claude_home/test_home.py` 2
|
||||||
|
- `bin/claude_home/home.py` 1
|
||||||
|
- `bin/review_rules/review_folder.py` 1
|
||||||
|
- `settings.json` 1
|
||||||
|
|
||||||
|
## Reading cost, chunk a7593c957df7, finished 2026-12-04T04:31:15Z
|
||||||
|
|
||||||
|
87399 new input tokens before the first commit.
|
||||||
|
|
||||||
|
Read most (opens and searches):
|
||||||
|
|
||||||
|
- `README.md` 3
|
||||||
|
- `rules/todo-items.md` 3
|
||||||
|
- `CLAUDE.md` 1
|
||||||
|
- `bin/claude_home/home.py` 1
|
||||||
|
- `skills/larv-review/review-findings.md` 1
|
||||||
|
- `todo.md` 1
|
||||||
|
|||||||
@@ -461,7 +461,7 @@ dl.gloss dt { font-weight: 700; } dl.gloss dd { margin: 0; color: var(--muted);
|
|||||||
</div>
|
</div>
|
||||||
<div class="col" style="border-top-color:var(--worker)">
|
<div class="col" style="border-top-color:var(--worker)">
|
||||||
<h3>The setup: <code>~/.claude</code></h3>
|
<h3>The setup: <code>~/.claude</code></h3>
|
||||||
<p>The <code>claude-config</code> repo, at a tagged release. Shared by every project.</p>
|
<p>The <code>dev-factory</code> repo, at a tagged release. Shared by every project.</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>CLAUDE.md</code> <span>rules every session follows</span></li>
|
<li><code>CLAUDE.md</code> <span>rules every session follows</span></li>
|
||||||
<li><code>rules/</code> <span>topic rules, loaded when a matching file is touched</span></li>
|
<li><code>rules/</code> <span>topic rules, loaded when a matching file is touched</span></li>
|
||||||
@@ -485,7 +485,7 @@ dl.gloss dt { font-weight: 700; } dl.gloss dd { margin: 0; color: var(--muted);
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="note">The worker never commits to <code>main</code>. The setup itself is developed in <code>~/code/claude-config</code>, by the same loop; <code>~/.claude</code> only ever holds a release.</p>
|
<p class="note">The worker never commits to <code>main</code>. The setup itself is developed in <code>~/code/dev-factory</code>, by the same loop; <code>~/.claude</code> only ever holds a release.</p>
|
||||||
<p class="why">Why: sources <a href="#src-5">5</a>, <a href="#src-6">6</a></p>
|
<p class="why">Why: sources <a href="#src-5">5</a>, <a href="#src-6">6</a></p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
@@ -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`.
|
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
|
- `{language}`: Python
|
||||||
- `{kind}`: a Claude Code configuration with an agent loop and review skills
|
- `{kind}`: a Claude Code configuration with an agent loop and review skills
|
||||||
|
|||||||
@@ -73,7 +73,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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
||||||
@@ -599,7 +599,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.
|
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.
|
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