Answer prose round 1: 0 🔴, 9 🟡 (0 misread); say when issues are scored, what the comment tells, and who chose the start order

This commit is contained in:
Lilleman
2026-11-20 15:14:50 +01:00
parent 4557dced58
commit 6016f6554c
7 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -163,7 +163,7 @@ The last line prints each setting's path once the config is complete.
- `config.toml` may end with a `[label-repos]` table, for a team that already labels its issues by repo. Give it one line for each such label: the label, then the repo's name, such as `twu-4 = "tenant-web-ui-4"`. do-epic reads such a label as it reads its own `repo:<name>`. Where the label is the repo's name, map the name to itself, as in `core-4 = "core-4"`. Where several lines name one repo, do-epic writes the label of the first. Write every other setting above the table.
- `repo-rule.md` is prose that says how to tell an item's repo, such as "a label that equals a repo's name names that repo". It may not be blank. `do-epic <EPIC-KEY>` uses it to pick where each open issue without such a label is worked, and records the pick as a label. For a repo that is the team's own label from `[label-repos]`, else `repo:<name>`; for work of Claude's that changes no repo, `do-epic-claude`; for a task of yours, `do-epic-human`. Where the rule leaves an issue unclear, do-epic asks you on the terminal. Answer with the label, or with Enter alone to leave the issue waiting. Change a pick by editing the label in Jira.
An epic's description states the formula that puts its issues in order: once under `## Scoring`, on a line of its own and inside backticks, such as `` `Score = 100 * V / (2**S + 32)` ``. do-epic starts the epic's issues by that score, highest first, with each blocker before what it blocks, whatever their order on the board. It scores each open issue that holds no scores, a person's included, against the epic's goals and its repo's, and says so in a comment on the issue; scores an issue already holds stay. On the board it re-ranks only the issues it filed, so a person's issue keeps the rank the team gave it. Without that line do-epic says so, doesn't score anything and starts the issues in the backlog's order.
An epic's description states the formula that puts its issues in order: once under `## Scoring`, on a line of its own and inside backticks, such as `` `Score = 100 * V / (2**S + 32)` ``. do-epic starts the epic's issues by that score, highest first, with each blocker before what it blocks, whatever their order on the board. Where two or more issues may start, it scores each of them that holds no scores, a person's included, against the epic's goals and the goals of the issue's repo, and tells the team the scores in a comment on the issue. It doesn't score a task of yours, and it keeps the scores an issue already holds. On the board it re-ranks only the issues it filed, so a person's issue keeps the rank the team gave it. Without that line do-epic says so, doesn't score anything and starts the issues in the backlog's order.
Each repo an epic changes has a project config of its own, as in the rest of this section. `do-epic` fails and names each setting or file that is missing or invalid.
@@ -200,7 +200,7 @@ Install puts only `loop-claude` on `PATH`; call the others by their path, such a
- `command-patterns [<version>] [--calls <file>]` prints a table of the shell command patterns a release's archived chunks ran, such as `tea pr create`, for an audit of the release, and with `--calls <file>` saves each call as a JSON line; `command-patterns --help` states the columns and the line's keys.
- `compress-archives` gzips each transcript in loop-claude's archive and each file in the review folders 30 days after it last changed, keeping all of them; Install's crontab line runs it daily.
- `deploy-release [--cut] [<checkout>]` moves `~/.claude`, or the checkout named, to the newest release, as Update says; with `--cut`, run in the development clone, it first cuts the next release, as Release says.
- `do-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 loop-claude. The epic's description is its record: goals, audience, scoring and decisions. Before it starts chunks, do-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 it scores each open issue that holds no scores, and re-ranks the issues that do-epic itself filed by score. 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. `do-epic <EPIC-KEY> --dry-run` prints what `do-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. do-epic closes the epic only once you confirm every goal. Install → "Set up a project" says how to set it up; `do-epic --help` states the flags and the contract.
- `do-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 loop-claude. The epic's description is its record: goals, audience, scoring and decisions. Before it starts chunks, do-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 do-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. `do-epic <EPIC-KEY> --dry-run` prints what `do-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. do-epic closes the epic only once you confirm every goal. Install → "Set up a project" says how to set it up; `do-epic --help` states the flags and the contract.
- `do-epic-e2e` runs `do-epic` against a sandbox epic on a real Jira site, as Test says.
- `judge-replay <model> [--offline]` replays loop-claude's judge on archived verdicts of the projects run on the model. It prints what each rung a review climbs to misses, and the lowest rung below those that returns every verdict, as each candidate above it does. With `--offline` it doesn't call a judge: it counts what a "?" rule, a decision table and a classifier trained on the archive decide of each verdict's kind from the worker's final message, and how many interrupts each misses. `judge-replay --help` states both replays.
- `larv-review <command>` holds larv-review's mechanical rules: the chunk's review folder, the paired ruling's base and vote count, each pass's round count and the opening of its round commit's title, the scoring run's trigger and setup; the comprehension history's format, its latest places and its count of how often seats agree; and each reviewer's prompt header. `larv-review --help` states them. `settings.json` → `hooks` runs `larv-review reviewer-context` as each subagent starts. A reviewer under `agents/` whose frontmatter has `omitClaudeMd: true` starts without `CLAUDE.md`, and the command hands it that file's "Shared goal", "Prose" and "Vocabulary" sections.
+1 -1
View File
@@ -112,7 +112,7 @@ def no_scores(key: str, scores: dict[str, int], moves: str, held: dict[str, int]
if held:
return Failure(f"{key} holds scores already, which stay as they are")
if sorted(scores) != sorted(SET_SCORES):
return Failure(f"{key} is scored on {', '.join(scores) or 'nothing'}: set each of {', '.join(SET_SCORES[:-1])} and {SET_SCORES[-1]}, and nothing else")
return Failure(f"{key} is given {', '.join(scores) or 'no score'}: set each of {', '.join(SET_SCORES[:-1])} and {SET_SCORES[-1]}, and nothing else")
return item_fields({name: str(value) for name, value in scores.items()} | {MOVES: moves}, f"item {key}")
+2 -2
View File
@@ -1,6 +1,6 @@
"""The scores of an epic's issue that holds none, asked of claude, so that the epic's issues start in order of score (docs/decisions.md → `do-epic: drives one Jira epic …`).
A headless claude call with a JSON schema, as repo_pick makes, reads the rule every plan item is scored by, the goals the issue may move and the issue. It answers L, E, I, S and Moves, and a comment that tells the issue's team."""
A headless claude call with a JSON schema, as repo_pick makes, reads the rule every plan item is scored by, the goals the issue may move and the issue. It answers L, E, I, S and Moves, and a comment that tells the issue's team the scores."""
import dataclasses
import json
@@ -51,7 +51,7 @@ def prompt(issue: EpicIssue, rule: str, goals: str, language: str) -> str:
## Scoring rule
The rule below scores the items of every plan. Take from it what L, E, I and S mean and each one's levels; the rest is about plans kept as a file.
The rule below scores the items of every plan. Take from it what L, E, I and S mean and each one's levels; skip what it says about a plan kept as a file.
{rule.strip()}
+2 -2
View File
@@ -51,9 +51,9 @@ A label that `[label-repos]` in config.toml maps to a repo counts as that repo's
Where such an issue changes several repos, it files a sub-task per repo. Otherwise it gives the issue its label, as repo-rule.md says.
An issue under which a person filed a sub-task is not planned: its sub-tasks run, each needs a label of its own, and you close the issue in Jira.
Where the rule leaves the label unclear, it asks you on the terminal. Answer with the label, or with Enter alone to leave the issue waiting.
It then puts the scored issues that do-epic itself filed in order of score, by the `Score = ...` line under the epic's ## Scoring.
Where two or more issues may start, it then scores each of them that holds no scores, and tells the issue's team the scores in a comment on the issue. It scores by the `Score = ...` line under the epic's ## Scoring, and moves the issues do-epic itself filed into that order on the board.
An open issue labelled `repo:<name>` or `do-epic-claude` runs as a chunk once no issue blocks it.
The issues start in order of score, highest first, whatever their order on the board. do-epic scores each issue that holds no scores and tells its team in a comment. An issue it could not score starts after the others.
The issues start in order of score, highest first, whatever their order on the board. An issue it could not score starts after the others.
A `do-epic-human` issue that blocks another gets a window too. The window DMs you once, then waits without taking a place until you close the issue in Jira.
As many run at once as the epic's description allows with a line such as `**Max parallel chunks:** 2`, one where it has none.
A repo takes as many chunks as its `parallel-chunks`, and none while loop-claude runs chunks in it.
+5 -5
View File
@@ -1,6 +1,6 @@
"""What `do-epic <EPIC-KEY>` settles before it starts chunks: where each open issue is worked, and the order the loop's issues come in (docs/decisions.md → `do-epic: drives one Jira epic …`).
An open child issue that no label places is first split by repo (`split`), and where it changes one repo or none, its repo is picked (`repo_pick`). Each is a headless claude call on `repoless-model`'s rung of the shipped ladder. Where the repo rule leaves a pick unclear, the human answers on the terminal. Then each open issue that holds no scores is scored (`issue_scores`), a person's too, so the issues start in order of score alone (`start_order`), and the issues do-epic filed are re-ranked in Jira's backlog to match (`ranking`). The rank of a person's issue stays as the team set it.
An open child issue that no label places is first split by repo (`split`), and where it changes one repo or none, its repo is picked (`repo_pick`). Each is a headless claude call on `repoless-model`'s rung of the shipped ladder. Where the repo rule leaves a pick unclear, the human answers on the terminal. Then, where two or more issues may start, each of them that holds no scores is scored (`issue_scores`), a person's too. The issues start in order of score (`start_order`). The issues do-epic filed are re-ranked in Jira's backlog to match (`ranking`), and the rank of a person's issue stays as the team set it.
Planning runs only in the `do-epic <EPIC-KEY>` the human starts. A chunk that finishes starts the next chunks from the labels and the scores it finds, so no window waits on a question.
@@ -177,7 +177,7 @@ class Weighing:
def weighing(epic: Planned, issues: list[EpicIssue]) -> Weighing | Failure:
"""What scores issues, which are those of the epic to put in order."""
"""What an issue of the epic is scored and ranked by: the epic's formula and goals, and each repo's ranking. issues are the ones to put in order."""
scoring, goals = epic.record.section("Scoring"), epic.record.section("Goals")
if failed := next((each for each in (scoring, goals) if isinstance(each, Failure)), None):
return Failure(f"the epic {epic.key}'s description: {failed.reason}")
@@ -198,7 +198,7 @@ def weighing(epic: Planned, issues: list[EpicIssue]) -> Weighing | Failure:
def scored(epic: Planned, issues: list[EpicIssue]) -> tuple[list[EpicIssue], Failure | Limited | None]:
"""issues, once claude has scored each open issue that may become a chunk and holds no scores, whoever filed it, and why the scoring stopped early, None where it didn't. Scores an issue holds stay, a person's and an earlier run's alike. Each score is set on the issue with a comment, in the epic's language, that tells its team.
"""issues, once claude has scored each open issue that may become a chunk and holds no scores, whoever filed it, and why the scoring stopped early, None where it didn't. Scores an issue holds stay, a person's and an earlier run's alike. Each score is set on the issue with a comment, in the epic's language, that tells its team the scores.
A human's task gets no scores, since it starts no work of the loop's. Fewer than two other issues need no order, so none is scored. An issue claude or the tracker fails on is named and stays without scores, so it starts after those that hold them; a usage limit ends the scoring."""
ours = [issue for issue in chunk_issues(epic, issues) if not isinstance(repo_pick.recorded(issue, epic.config.label_repos), repo_pick.HumanTask)]
@@ -229,7 +229,7 @@ def scored(epic: Planned, issues: list[EpicIssue]) -> tuple[list[EpicIssue], Fai
def scores_set(epic: Planned, issue: EpicIssue, answer: issue_scores.Scores, weighed: Weighing) -> EpicIssue | Failure:
"""issue holding the scores of answer, once the tracker has set them and told the team. The answer is held to the plan's format and to the goals the issue may name first, since a score that cannot be ranked would stay on the issue."""
"""issue holding the scores of answer, once the tracker has set them and told the team. Before the tracker sets them, the answer is held to the plan's format and to the goals the issue may name, since a score that cannot be ranked would stay on the issue."""
fields = no_scores(issue.key, answer.scores, answer.moves, {})
if isinstance(fields, Failure):
return fields
@@ -247,7 +247,7 @@ def scoring_rule(home: pathlib.Path) -> str | Failure:
def start_order(epic: Planned, issues: list[EpicIssue]) -> list[str] | Failure:
"""The keys of the open issues that may become a chunk and hold scores, in the order they start: by score from the highest, each blocker above what it blocks, as ranking puts them. An issue it leaves out starts after these, in the tracker's rank order: one nobody scored, and one with no pick yet or with two."""
"""The keys of the open issues that may become a chunk and hold scores, in the order they start: by score from the highest, each blocker above what it blocks, as ranking puts them. An issue nobody scored is left out, and starts after these in the tracker's rank order. So is one with no pick yet or with two, which doesn't start."""
held = [issue for issue in chunk_issues(epic, issues) if not ranking.unscored(item_of(issue, {}, ()), issue.key)]
if len(held) < 2:
return [issue.key for issue in held]
+1 -1
View File
@@ -137,7 +137,7 @@ def chunks(issues: list[EpicIssue], team: LabelRepos, unblocking: tuple[str, ...
def in_start_order(found: list[Chunk], order: tuple[str, ...]) -> list[Chunk]:
"""found, with the chunks of the issues order names first, in its sequence. The others, which hold no score, follow in the tracker's rank order, as found lists them."""
"""found, with the chunks of the issues order names first, in its sequence. The other chunks follow in the tracker's rank order, as found lists them."""
place = {key: at for at, key in enumerate(order)}
return sorted(found, key=lambda chunk: place.get(chunk.issue, len(place)))
+1 -1
View File
@@ -149,7 +149,7 @@ Valid while `~/.claude` is a checkout of this repo.
- **The epic's description is its record.** It holds `## Goals`, `## Audience`, `## Scoring` (formula and bar), `## Decisions` and a language line. do-epic writes all of it, but it changes Goals or Audience only after the human approves in an interrupt.
- **Items live only in the epic.** A repo's own plan never mirrors them. Where `repo-rule.md` leaves an item's repo unclear, do-epic asks. An item without a repo is either Claude's work, done without a PR, or a human task; where the item doesn't say which, do-epic asks.
- **One item, several repos.** do-epic splits such an item when it plans it, into one Jira sub-task per repo, each labelled for its repo. The parent tracks the whole change. A person's issue is split too, with a comment for the team. An item a person filed a sub-task under counts as split already: do-epic works it through the team's own sub-tasks and doesn't file any of its own. It plans no such sub-task, so one without a label waits for the team's. It never closes such an item, since a person's sub-tasks may cover only a part of it: once they are done, the item waits for the team to close it.
- **Ranking.** Score, then Blocked by, in one weight chain: the epic's achieve goals, then code health, then the repo's goals. Where the epic and a repo disagree, the epic wins. do-epic re-ranks Jira's backlog to match, and people's issues keep their rank. Since 2026-11-20 the order the issues start in is do-epic's and the board's order is the team's: do-epic starts the open issues by score, and scores each one that holds no scores, a person's included, with a comment that tells the team. A person's issue still keeps its rank on the board, since goal 1.6 has the loop plug in without changing what the owners keep, and scores an issue holds are never overwritten. An issue that cannot be scored starts after those that can, in the backlog's order; where no order of score can be made at all, such as without the epic's formula, every issue starts in the backlog's order and do-epic says why.
- **Ranking.** Score, then Blocked by, in one weight chain: the epic's achieve goals, then code health, then the repo's goals. Where the epic and a repo disagree, the epic wins. do-epic re-ranks the issues it filed in Jira's backlog to match. A person's issue keeps its rank there: goal 1.6 has the loop plug in without changing what the owners keep. On 2026-11-20 the human chose that the order the issues start in is do-epic's, while the board's order stays the team's: do-epic starts the open issues by score. Where two or more may start, it scores each of them that holds no scores, a person's included but not a human's task, and tells the team the scores in a comment. It never overwrites scores an issue holds. An issue that cannot be scored starts after those that can, in the backlog's order; where no order of score can be made at all, such as without the epic's formula, every issue starts in the backlog's order and do-epic says why.
- **Releases.** An epic item has no release. It ships into its repo's unreleased work: where the repo publishes something others consume, a bullet under `CHANGELOG.md` → `## Unreleased`, or nothing where the repo's plan is in Jira. The issue is no item of the repo's plan, so the chunk's worker writes the bullet in its branch and runs `chunk-pr merge` without `--finish`.
- **Repos.** A repo's name is its main checkout's folder name, and a project config names that checkout. A missing checkout is cloned from the host of the epic's other repos; where unsure, do-epic asks. Unsure means the other repos don't all sit under one host and owner (the same host spelt as https and as ssh counts as two), an origin can't be read or isn't an https, ssh or scp-style address, the folder to clone into holds something else, or the clone fails. A repo no config names is cloned into the clone folder, and the human is asked to write its config. Each chunk uses its repo's model, routing, and language for commits and PRs. Jira text is in the epic's language, or else the machine's default.
- **Running.** The epic caps the chunks running at once, and each repo's `parallel-chunks` still applies. do-epic and loop-claude never run chunks in the same repo at once. The cap is a line of the epic's description, `**Max parallel chunks:** 2`, and 1 without it, as `parallel-chunks` is. A repo's `parallel-chunks` counts the chunks of every epic in its checkout. Each window is named for its issue's key, and a tmux window option, `@chunk-root`, names the folder its chunk works in, which is how loop-claude sees do-epic's chunks in a checkout. do-epic and loop-claude each hold the checkout's `starting` lock from checking the checkout's chunks to starting a window there. A chunk without a repo works in `~/.local/state/do-epic/<EPIC-KEY>/`. do-epic archives its cycles under `~/.claude/do-epic-transcripts/`, not in loop-claude's archive, whose readers parse loop-claude's prompts. An open issue runs once a label records its repo; until do-epic picks repos itself, an issue without one waits, and `do-epic <EPIC-KEY>` says so.