Answer product-owner round 1: 0 🔴, 3 🟡 (0 misread); each help says how an XDG variable moves its paths, the goals rule loads under any config home, and the cron line makes its folder
CI / tests (pull_request) Successful in 5m56s
CI / tests (pull_request) Successful in 5m56s
This commit is contained in:
@@ -4,9 +4,9 @@ usage: build-release <task>
|
||||
|
||||
Run it anywhere inside a project checkout whose goals file has ## Goals and ## Audience, the
|
||||
premises. The goals file is the one the project's config, ~/.config/build-release/<key>/config.toml,
|
||||
sets as goals-and-audience: a file, or a Jira epic's description. `project-config
|
||||
goals-and-audience`
|
||||
prints where it is. The task runs at the checkout root. Each cycle a worker runs the task. A chunk's
|
||||
sets as goals-and-audience: a file, or a Jira epic's description.
|
||||
`project-config goals-and-audience` prints where it is. The task runs at the checkout root. Each
|
||||
cycle a worker runs the task. A chunk's
|
||||
first worker prompt also quotes the premises. They, with code health (the setup's CLAUDE.md →
|
||||
"Shared goal") ranked first unless the goals file voids it, choose between ways to deliver the
|
||||
chunk's plan items, or else the task, and never widen them. A judge then reads the transcript's end,
|
||||
@@ -207,4 +207,7 @@ Exit 2, when the human is needed to go on:
|
||||
anything typed
|
||||
- the judge rules a chunk unfinished 6 cycles running; rerun to give it 6 more
|
||||
Rerunning build-release <task> starts the chunks that may start, a stopped one first, and each
|
||||
resumes its claude session where it is open."""
|
||||
resumes its claude session where it is open.
|
||||
|
||||
Where XDG_CONFIG_HOME holds an absolute path, read ~/.config in this help as that path.
|
||||
Where XDG_STATE_HOME holds an absolute path, read ~/.local/state in this help as that path."""
|
||||
|
||||
@@ -13,6 +13,8 @@ its plain name. README.md → Install has the crontab line that runs it daily.
|
||||
|
||||
It prints how many files it compressed. It exits 1, saying why, on any argument but --help or -h,
|
||||
and at the first file it cannot compress, leaving that file and every one after it plain.
|
||||
|
||||
Where XDG_STATE_HOME holds an absolute path, read ~/.local/state in this help as that path.
|
||||
"""
|
||||
import pathlib
|
||||
import stat
|
||||
|
||||
@@ -17,7 +17,7 @@ from do_epic.backend.jira_start import Start, started
|
||||
FIELDS = ["summary", "description", "labels", "assignee", "status", "parent", "issuelinks"]
|
||||
# How many child issues one search for sub-tasks names, which keeps its JQL well inside the length Jira takes.
|
||||
PARENTS_PER_SEARCH = 50
|
||||
NO_FINISH = "do-epic's settings name no transition to {to} by: set `{transition}` and `{status}` in ~/.config/build-release/do-epic/config.toml, to the names Jira shows, such as \"Mark as done\" and \"Done\""
|
||||
NO_FINISH = "do-epic's settings name no transition to {to} by: set `{transition}` and `{status}` in do-epic's config.toml (`do-epic --help` says where), to the names Jira shows, such as \"Mark as done\" and \"Done\""
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
|
||||
@@ -228,7 +228,7 @@ class Jira(Case):
|
||||
no_such = JiraEpic(EPIC, self.env_file, self.jira, to_markdown, to_adf, Finish("Close", "Done"))
|
||||
unconverted = JiraEpic(EPIC, self.env_file, self.jira, to_markdown, lambda markdown: Failure("adf-codec refused it"), Finish("Mark as done", "Done"))
|
||||
for store, reason in (
|
||||
(unnamed, "do-epic's settings name no transition to close an epic by: set `jira-finish-transition` and `jira-finish-status` in ~/.config/build-release/do-epic/config.toml, to the names Jira shows, such as \"Mark as done\" and \"Done\""),
|
||||
(unnamed, "do-epic's settings name no transition to close an epic by: set `jira-finish-transition` and `jira-finish-status` in do-epic's config.toml (`do-epic --help` says where), to the names Jira shows, such as \"Mark as done\" and \"Done\""),
|
||||
(wrong_status, "ABC-12's transition 'Start' leads to the status 'In Progress', not to 'Done', which `jira-finish-status` names"),
|
||||
(unconverted, "cannot convert the summary to a Jira comment: adf-codec refused it"),
|
||||
):
|
||||
@@ -523,7 +523,7 @@ class Jira(Case):
|
||||
unnamed = JiraEpic(EPIC, self.env_file, self.jira, to_markdown, to_adf)
|
||||
wrong_status = JiraEpic(EPIC, self.env_file, self.jira, to_markdown, to_adf, Finish("Mark as done", "Closed"))
|
||||
no_such = JiraEpic(EPIC, self.env_file, self.jira, to_markdown, to_adf, Finish("Close", "Done"))
|
||||
self.assertEqual(unnamed.finish_issue(key), Failure("do-epic's settings name no transition to finish an issue by: set `jira-finish-transition` and `jira-finish-status` in ~/.config/build-release/do-epic/config.toml, to the names Jira shows, such as \"Mark as done\" and \"Done\""))
|
||||
self.assertEqual(unnamed.finish_issue(key), Failure("do-epic's settings name no transition to finish an issue by: set `jira-finish-transition` and `jira-finish-status` in do-epic's config.toml (`do-epic --help` says where), to the names Jira shows, such as \"Mark as done\" and \"Done\""))
|
||||
self.assertEqual(wrong_status.finish_issue(key), Failure(f"{key}'s transition 'Mark as done' leads to the status 'Done', not to 'Closed', which `jira-finish-status` names"))
|
||||
refused = no_such.finish_issue(key)
|
||||
assert isinstance(refused, Failure)
|
||||
|
||||
+4
-2
@@ -73,8 +73,10 @@ request is ready, with nothing else to wait on, the window's name says `awaits y
|
||||
A repo that is missing isn't cloned. Planning then stops there, so its writes are only those made before it, and the issues of that repo wait, and a chunk of another repo may start in the place a real run gives them; a real run would clone it and go on.
|
||||
{findings.HELP}
|
||||
{finish.HELP}
|
||||
The Jira site and its credentials are set in ~/.config/build-release/do-epic/config.toml."""
|
||||
# In the state folder, where a chunk's cycles are archived, a folder per epic. It is not build-release's archive, since that archive's readers, such as judge-replay and the routing figures, read build-release's prompts.
|
||||
The Jira site and its credentials are set in ~/.config/build-release/do-epic/config.toml.
|
||||
|
||||
Where XDG_CONFIG_HOME holds an absolute path, read ~/.config in this help as that path."""
|
||||
# The folder in the state folder where a chunk's cycles are archived, in a folder per epic. It is not build-release's archive, since that archive's readers, such as judge-replay and the routing figures, read build-release's prompts.
|
||||
ARCHIVE = "do-epic-transcripts"
|
||||
# The flag that prints what each open issue does.
|
||||
STATUS_FLAG = "--status"
|
||||
|
||||
@@ -48,6 +48,9 @@ fifths. The classifier trains 330 regressions in Python, about 12 minutes on 1,1
|
||||
kept in replays/judge-replay-<model>-offline-<UTC stamp>/result.md. A verdict whose transcript cannot be read is skipped, and the report counts the skipped. Exit 1, saying why, on bad
|
||||
arguments, an unreadable archive or models file, no archived verdict of the model's projects, or none with a
|
||||
transcript that can be read.
|
||||
|
||||
Where XDG_CONFIG_HOME holds an absolute path, read ~/.config in this help as that path.
|
||||
Where XDG_STATE_HOME holds an absolute path, read ~/.local/state in this help as that path.
|
||||
"""
|
||||
import pathlib
|
||||
import sys
|
||||
|
||||
@@ -164,6 +164,8 @@ breaks the shape above, a todo.md that fails rank_todo.py after record-scoring r
|
||||
when git cannot start, finds no checkout or no default branch, cannot fetch origin for ruling-base,
|
||||
needs-scoring-run, scoring-run-owed or record-scoring, or cannot read or write the history, todo.md, the review
|
||||
folder or a file prepare-scoring reads.
|
||||
|
||||
Where XDG_STATE_HOME holds an absolute path, read ~/.local/state in this help as that path.
|
||||
"""
|
||||
import os
|
||||
import pathlib
|
||||
|
||||
@@ -25,6 +25,8 @@ Exit 2, saying why, on misuse: bad arguments, an empty message, a directory with
|
||||
a config that sets no `notifier` or no `env-file`, or an env file that is missing or unreadable, lacks
|
||||
a key, names a Mattermost server off https, or that others may read. None of these messages holds the
|
||||
token.
|
||||
|
||||
Where XDG_CONFIG_HOME holds an absolute path, read ~/.config in this help as that path.
|
||||
"""
|
||||
import typing
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ usage: project-config [<setting>]
|
||||
Run inside a checkout, or a worktree of one. It finds the config that names the checkout,
|
||||
~/.config/build-release/<key>/config.toml, and prints each setting and its absolute path, as in
|
||||
`plan: /home/me/code/acme/todo.md`. Given a setting, it prints only that setting's path.
|
||||
Where XDG_CONFIG_HOME is set, the configs are in $XDG_CONFIG_HOME/build-release/ instead.
|
||||
|
||||
`~/.config/build-release/do-epic/` holds do-epic's machine-wide settings, not a project's. It needs no `checkout`,
|
||||
and project-config doesn't read anything from it, so no project may use `do-epic` as its key.
|
||||
@@ -179,6 +178,8 @@ without a `plan` in Jira, names a Jira `plan` and leaves out `jira-score-formula
|
||||
one of those two without a `plan` in Jira, sets the formula to one that doesn't parse or the bar to anything
|
||||
but a number, sets `readability-floor` to anything but a number
|
||||
from 1 to 10, sets `parallel-chunks` to anything but a whole number of 1 or more, or sets `jira-finding-type` to anything but a name or without a `plan` in Jira, and where `bench-tasks`, `coding-conventions`, `env-file`, `epic-branch`, `jira-finish-transition`, `jira-finish-status`, `notifier`, `review-request-comment` or `touch-predictions` is asked for and not set. No path setting has a default.
|
||||
|
||||
Where XDG_CONFIG_HOME holds an absolute path, read ~/.config in this help as that path.
|
||||
"""
|
||||
from collections.abc import Mapping
|
||||
import os
|
||||
|
||||
@@ -21,6 +21,8 @@ lists the files the last 5 chunks read most. With fewer than 10 figures, it says
|
||||
|
||||
Exit 1, saying why, on unknown arguments, or when git cannot start or finds no checkout, the
|
||||
archive or the record cannot be read or written, or a figure in the record cannot be read back.
|
||||
|
||||
Where XDG_STATE_HOME holds an absolute path, read ~/.local/state in this help as that path.
|
||||
"""
|
||||
import dataclasses
|
||||
import os
|
||||
|
||||
@@ -65,6 +65,9 @@ Like the loop, it tries claude three times running before it counts a reply as f
|
||||
review or match leaves its round out, except on a rung below the project's, where it finds
|
||||
none. Exit 1, saying why, on bad arguments, an unreadable archive or models file, no archived
|
||||
round to replay, or a usage limit.
|
||||
|
||||
Where XDG_CONFIG_HOME holds an absolute path, read ~/.config in this help as that path.
|
||||
Where XDG_STATE_HOME holds an absolute path, read ~/.local/state in this help as that path.
|
||||
"""
|
||||
import pathlib
|
||||
import typing
|
||||
|
||||
@@ -47,7 +47,7 @@ RULES: dict[RuleName, Rule] = {
|
||||
# A marker would let the credentials into the transcript all the same, so no marker waives it.
|
||||
"env-file-read": Rule(
|
||||
"an agent never reads ~/.claude/.env or a project's env-file, the file of credentials the project's config names, since a value the agent reads lands in its transcript, which build-release archives and the backups copy; it leaves a tool that needs a credential to read the file itself, gets the file's path from `project-config env-file`, and spells the path another way, such as \"the .env in ~/.claude\", in a command that must mention it without reading it, such as a commit's title, and searches only a folder without it",
|
||||
"against ~/.claude/.env and the env-file of every config under ~/.config/build-release: a Read of one; a Grep of one, or of a folder holding one, unless a checkout ignores the file and the Grep's glob cannot match it; and a Bash command that spells one's path, or names it in a word or a redirect's target from the directory `cd` left the command in, whether or not the command reads it; and a Bash command that runs `ag`, `grep -r` or `rg` over a folder holding one, or over the directory `cd` left the command in where it names no folder, unless the tool skips the file: `ag` and `rg` skip a hidden file, one below a hidden folder of the search and one a checkout ignores, and `rg` one that none of its globs matches",
|
||||
"against ~/.claude/.env and the env-file of every config under the config folder, ~/.config/build-release unless `XDG_CONFIG_HOME` holds an absolute path: a Read of one; a Grep of one, or of a folder holding one, unless a checkout ignores the file and the Grep's glob cannot match it; and a Bash command that spells one's path, or names it in a word or a redirect's target from the directory `cd` left the command in, whether or not the command reads it; and a Bash command that runs `ag`, `grep -r` or `rg` over a folder holding one, or over the directory `cd` left the command in where it names no folder, unless the tool skips the file: `ag` and `rg` skip a hidden file, one below a hidden folder of the search and one a checkout ignores, and `rg` one that none of its globs matches",
|
||||
overridable=False,
|
||||
),
|
||||
"ignorefile-sorted": Rule(
|
||||
@@ -70,7 +70,7 @@ RULES: dict[RuleName, Rule] = {
|
||||
),
|
||||
# A reviewer only reports, so no marker waives it.
|
||||
"reviewer-report": Rule(
|
||||
"a reviewer writes only its report, with Write, into a file under the review reports folder, ~/.local/state/build-release/larv-review/ unless `XDG_STATE_HOME` is set",
|
||||
"a reviewer writes only its report, with Write, into a file under the review reports folder, ~/.local/state/build-release/larv-review/ unless `XDG_STATE_HOME` holds an absolute path",
|
||||
"a Write, Edit or MultiEdit call from inside an agent under agents/",
|
||||
overridable=False,
|
||||
),
|
||||
@@ -96,7 +96,7 @@ RULES: dict[RuleName, Rule] = {
|
||||
),
|
||||
"todo-rank-check": Rule(
|
||||
"while todo.md has changes, staged or not, a git commit waits until rank_todo.py --check passes on it: the checkout's own bin/rank_todo.py where the checkout is of this setup's repo, else the release's",
|
||||
"a git commit in a checkout whose todo.md has changes, and every git commit where the project's config puts todo.md outside the checkout, where the checkout's commits don't say whether it changed; and a git commit in the config's folder, `~/.config/build-release/<key>/`, whose todo.md has changes",
|
||||
"a git commit in a checkout whose todo.md has changes, and every git commit where the project's config puts todo.md outside the checkout, where the checkout's commits don't say whether it changed; and a git commit in the config's folder, `<key>/` in the config folder, whose todo.md has changes",
|
||||
),
|
||||
# A Read carries no text for a marker, so no marker waives it.
|
||||
"transcript-read": Rule(
|
||||
|
||||
@@ -16,6 +16,8 @@ a checkout no config names. build-release --help shows the file's shape.
|
||||
|
||||
Exit 1, saying why, on bad arguments, or where the project's config or its routing ladder is faulty
|
||||
or cannot be read.
|
||||
|
||||
Where XDG_CONFIG_HOME holds an absolute path, read ~/.config in this help as that path.
|
||||
"""
|
||||
from collections.abc import Mapping
|
||||
import pathlib
|
||||
|
||||
Reference in New Issue
Block a user