Answer the third round: split rank, check decision citations both ways, one fence rule, prose fixes
This commit is contained in:
@@ -20,7 +20,7 @@ Decisions live in `docs/decisions.md`:
|
||||
- review: `/security-review` is the security pass of record
|
||||
- review: the premises chunk's whole review is the human's approval
|
||||
- workflow-bench/: the remote may show the bench cases' names and commit SHAs
|
||||
- todo.md: one table of items scored by the formula, bar and goal weights it states, ranked by `bin/rank_todo.py`
|
||||
- todo.md: one table of items scored by the formula and goal weights it states, held to its bar, ranked by `bin/rank_todo.py`
|
||||
|
||||
## Scoring run
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
## Unreleased
|
||||
|
||||
- Every project's `todo.md` takes one shape, and larv-review's gate checks it: one table of items, each scored by the formula, bar and goal weights the file states, an item under the bar dropped unless its Exempt cell says why. `bin/rank_todo.py` ranks the table, and `rank_todo.py --help` shows a valid file.
|
||||
- Every project's `todo.md` takes one shape, and larv-review's gate checks it: one table of items, each scored by the formula and goal weights the file states and held to its bar, an item under the bar dropped unless its Exempt cell says why. `bin/rank_todo.py` ranks the table, and `rank_todo.py --help` shows a valid file.
|
||||
- Run `loop-claude` only in a sandbox with no direct access to production: every claude it starts skips every permission prompt.
|
||||
- First release: `README.md` states what the checkout holds and needs, `loop-claude --help` what `loop-claude` does.
|
||||
- `settings.json`, the agents and the status line run unedited on any machine with README → Install's prerequisites; the status line shows reset times in the machine's own time zone.
|
||||
|
||||
@@ -5,30 +5,31 @@
|
||||
How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The *next release* is the earliest one not yet cut. Other words, such as *chunk*, are defined under "Vocabulary" at the end of this file.
|
||||
|
||||
- **Until `README.md` has a `## Goals` and an `## Audience` section, writing them is the only work.** Not even planning in `todo.md`. Both are public: an outside reader judges a project by where it is heading and who it is for. Goals or an audience written anywhere else, such as `AGENTS.md` or `docs/`, do not count.
|
||||
- **Goals** are the project's aims, not promises: one numbered line each, in priority order, a sub-goal indented under its goal, like slogans — "1. Blazing fast performance. 2. Correctness is more important than many features." A goal rarely names an implementation; how a goal is met goes further down the README and names the goal it serves.
|
||||
- **Goals** are the project's aims, not promises: one numbered line each, like slogans, in priority order; a sub-goal is indented under its goal — "1. Blazing fast performance. 2. Correctness is more important than many features." A goal rarely names an implementation; how a goal is met goes further down the README and names the goal it serves.
|
||||
- **Audience** names who depends on the project and what they may rely on.
|
||||
- **Plan `todo.md` as one scored table** ("Todo items"): every item names the release that ships it. If `todo.md` has another shape, reshaping it is the chunk, and the human approves it.
|
||||
- **Plan `todo.md` as one scored table**, per "Todo items": every item names the release that ships it. If `todo.md` has another shape, reshaping it is the chunk, and the human approves it.
|
||||
- **When the next release has no items and no work has landed towards it, plan it as this chunk.** Move the highest-scoring items of later releases into it, and get the human's approval of that set before writing any code.
|
||||
- **When the next release has no items left and work has landed towards it, it is finished: stop.** Report what it holds and that it is ready to cut. Under `/loop`, this ends the loop. Until the human cuts it, only a security fix lands, into that release; never start a later release's items or plan a new one.
|
||||
- **Open every chunk with one line:** the last version cut, what is unreleased (`CHANGELOG.md` → `## Unreleased`, or else the log since the last tag), and the release this chunk ships into. A repo that publishes nothing says so once.
|
||||
- **Work one chunk at a time, and make it as large as one purpose allows.** Every review has a fixed cost, so a chunk takes the next plan item plus every other item for which three things hold: one PR title states what they achieve together, without listing them; they sit under one release; and they fire the same review passes (`larv-review` §3). Tiny items, a few lines of change each, need neither a shared purpose nor the same passes: bundle up to ten from one release into one chunk. Split a milestone into items in `todo.md` before starting it. Fix a finding in the chunk's own change within the chunk. File a finding about anything else in `todo.md` per "Todo items". A `question` row waits for the human: take the next row.
|
||||
- **Work one chunk at a time, and make it as large as one purpose allows.** Every review has a fixed cost, so a chunk takes the next plan item plus every other item for which three things hold: one PR title states what they achieve together, without listing them; they name one release; and they fire the same review passes (`larv-review` §3). Tiny items, a few lines of change each, need neither a shared purpose nor the same passes: bundle up to ten that name one release into one chunk. Split a milestone into items in `todo.md` before starting it. Fix a finding in the chunk's own change within the chunk. File a finding about anything else in `todo.md` per "Todo items". An item marked `question` waits for the human; take the next item.
|
||||
- **Ask, don't guess.** First check whether the goals already answer the question. If they nearly do, propose a change to the goals and show how it answers this case: an answer settles one question, a goal settles every question like it. Write every answer once, where it belongs, never only in chat: a goal in `README.md`, a working rule in `AGENTS.md`, a standing choice in a comment at the one place it governs, or in `docs/decisions.md` once made in more than one place. If an answer is a goal and something else too, write the goal, and record a choice only for what the goal leaves open.
|
||||
- **Ship every chunk with `/larv-review`.**
|
||||
- **Remove a finished item's row and detail from `todo.md`.** 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.
|
||||
- **Remove a finished item's row and detail from `todo.md`, 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.
|
||||
- **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 follow semver read strictly** (`~/.claude/principles/technical-principles.md`).
|
||||
|
||||
### Todo items (`todo.md`, tickets, plans)
|
||||
- **`todo.md` is mandatory in every project, in one shape**, which `~/.claude/bin/rank_todo.py` checks and ranks (its `--help` states the format): `## Scoring` holds the formula, the bar and the goal weights; `## Items` is one table of every item; `## Details` holds each item's detail under its ID. A new item takes the `Next ID` the file states, which then counts up; cite an item by its ID. The formula, bar and weights are the project's own to tune.
|
||||
- **Score an item when it is filed or edited, then run `rank_todo.py`.** A deletion needs no run. Each score is a whole number from 1 to 10:
|
||||
- **`todo.md` is mandatory in every project, in one shape**, which `~/.claude/bin/rank_todo.py` checks and ranks; its `--help` shows a valid file. `## Scoring` holds the formula, the bar and the goal weights; `## Items` is one table of every item; `## Details` holds each item's detail under its ID. Cite an item by its ID. The formula, bar and weights are the project's own to tune.
|
||||
- **Score an item when it is filed or edited, then run `rank_todo.py`.** Each of R, S, A and G is a whole number from 1 to 10:
|
||||
- **R** — the risk that the change creates serious bugs or issues.
|
||||
- **S** — the size of the change.
|
||||
- **A** — its value to the audience in `README.md` → `## Audience`.
|
||||
- **G** — its value to the goals it cites in the Goals column; W is the weight of the heaviest of them.
|
||||
- **An item scoring under the bar is not kept, unless its Exempt cell says why:** `security` for a security finding, `defect` for a 🔴 finding that a goal, a principle or correctness is broken, `question` for a question only the human can answer, `decision` for an item a decision in `docs/decisions.md` names. Otherwise a finding under the bar is not filed, and an item that falls under it is deleted, together with any item that needs it; the chunk's summary names each, with its score.
|
||||
- **Goal weights default to position, the first goal weighing most;** `rank_todo.py` prints that table whenever the weights stop listing the README's goals.
|
||||
- Open each item with a bold one-sentence tagline, so the taglines alone say what a release holds; detail follows it. 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 says nothing 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`.
|
||||
- A security finding — a leaked credential, secret or PII, an auth bypass, an injection — is filed the moment it is found, under the next release, as a row marked `security`, which `rank_todo.py` ranks first in its release, naming the exposure and the path it reaches. Never among additive or nice-to-have items, never only in a chunk's summary, and never as a question about where it belongs: file it, say you did, and I will move it down if I disagree. Fixing it inside an unrelated change is a separate call — say whether it is in the blast radius.
|
||||
- **An item scoring under the bar is deleted, with every item that needs it, and a finding under the bar is not filed.** The chunk's summary names each, with its score.
|
||||
- **The Exempt cell keeps an item whatever its score:** `security` for a security finding, `defect` for a 🔴 finding, `question` for a question only the human can answer, `decision` for an item `docs/decisions.md` cites.
|
||||
- Open each item 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 says nothing 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`.
|
||||
- A security finding — a leaked credential, secret or PII, an auth bypass, an injection — is filed the moment it is found, under the next release, marked `security`, naming the exposure and the path it reaches. `rank_todo.py` ranks it first in its release. Never among additive or nice-to-have items, never only in a chunk's summary, and never as a question about where it belongs: file it, say you did, and I will unmark it if I disagree. Fixing it inside an unrelated change is a separate call — say whether it is in the blast radius.
|
||||
- **Unless the project has a reason to differ, weigh goals by position, the first heaviest.** When the weights stop listing the README's goals, `rank_todo.py` fails and prints those weights.
|
||||
|
||||
## Quality
|
||||
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
import pathlib
|
||||
import re
|
||||
|
||||
from loop_claude.stop import Stop
|
||||
|
||||
FENCE = re.compile(r"^ {0,3}(```|~~~)", re.M)
|
||||
|
||||
|
||||
def read_premises(root: str) -> str | Stop:
|
||||
try:
|
||||
@@ -26,7 +29,7 @@ def sections(text: str) -> dict[str, list[str]]:
|
||||
blocks: list[tuple[str | None, list[str]]] = []
|
||||
fenced = False
|
||||
for line in text.splitlines():
|
||||
fenced ^= line.startswith("```")
|
||||
fenced ^= bool(FENCE.match(line))
|
||||
if not fenced and line.startswith("## "):
|
||||
blocks.append((line.strip()[3:], []))
|
||||
elif not fenced and line.startswith("# "):
|
||||
|
||||
+147
-98
@@ -1,14 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Score and rank todo.md's items by the formula, bar and goal weights it states.
|
||||
"""Score todo.md's items by the formula and goal weights it states, and hold them to its bar.
|
||||
|
||||
usage: rank_todo.py [--check] [todo.md]
|
||||
|
||||
Reads todo.md (default: ./todo.md), the README.md beside it, and docs/decisions.md when there is
|
||||
one. Rewrites each item's Score from the formula, sorts the items by release, then security rows,
|
||||
then score from highest, then ID, and orders the details to match. --check writes nothing and fails
|
||||
when the file is not ranked as it would be.
|
||||
one. Rewrites each item's Score from the formula and sorts the items by release; within a release,
|
||||
security rows come first, then the rest by score from highest, then by ID. Orders the details to
|
||||
match. --check writes nothing and fails when the file is not ranked as it would be.
|
||||
|
||||
A valid todo.md, every line shown required:
|
||||
A valid todo.md; ## Details and each item's detail are optional:
|
||||
|
||||
# todo
|
||||
|
||||
@@ -38,15 +38,16 @@ A valid todo.md, every line shown required:
|
||||
|
||||
- The formula holds numbers, + - * / and parentheses over R, S, A, G and W.
|
||||
- The bar is judged on the Score as shown, to one decimal.
|
||||
- A new item takes Next ID, and Next ID then counts up; no row may reach it.
|
||||
- A new item takes Next ID, and Next ID then goes up by one; every ID stays below it.
|
||||
- The goal weights list README.md's numbered goals in order, a sub-goal such as 1.1 included.
|
||||
- An item's R, S, A and G are whole numbers from 1 to 10; Goals lists goal numbers, comma separated.
|
||||
- An item's Exempt cell is empty, or names why the bar does not apply: decision, defect, question
|
||||
or security. An item docs/decisions.md cites as "`todo.md` item N" is marked decision.
|
||||
or security. An item docs/decisions.md cites as "`todo.md` item N" must be exempt, and a row
|
||||
marked decision must be cited there.
|
||||
- An item's Item cell is one bold tagline; its detail, if any, sits under its ID in ## Details.
|
||||
|
||||
Exit 1, saying why, when a file cannot be read, todo.md breaks the format, an item that is not
|
||||
exempt scores under the bar, or --check finds the file unranked.
|
||||
Exit 1, saying why, when a file cannot be read or written, todo.md breaks the format, an item that is
|
||||
not exempt scores under the bar, or --check finds the file unranked.
|
||||
"""
|
||||
import ast
|
||||
import dataclasses
|
||||
@@ -55,11 +56,13 @@ import pathlib
|
||||
import re
|
||||
import sys
|
||||
|
||||
# loop_claude's leaf modules, so both tools share one error type and one README parser.
|
||||
from loop_claude.failure import Failure
|
||||
from loop_claude.project.premises import sections
|
||||
from loop_claude.project.premises import FENCE, sections
|
||||
|
||||
EXEMPTIONS = ("", "decision", "defect", "question", "security")
|
||||
ITEMS_HEADER = "| ID | Release | Exempt | Item | R | S | A | G | Goals | Score |"
|
||||
LARGEST_FORMULA = 200
|
||||
OPERATORS = (ast.Add, ast.BinOp, ast.Div, ast.Expression, ast.Load, ast.Mult, ast.Sub, ast.UAdd, ast.UnaryOp, ast.USub)
|
||||
VARIABLES = ("A", "G", "R", "S", "W")
|
||||
WEIGHTS_HEADER = "| Goal | W |"
|
||||
@@ -75,6 +78,21 @@ class Item:
|
||||
goals: tuple[str, ...]
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class Scoring:
|
||||
formula: ast.Expression
|
||||
bar: float
|
||||
next_id: int
|
||||
weights: dict[str, float]
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class Table:
|
||||
"""Body rows of a markdown table, and the index of the first in the file's lines."""
|
||||
start: int
|
||||
rows: list[str]
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class Ranked:
|
||||
text: str
|
||||
@@ -85,46 +103,87 @@ def main(argv: list[str]) -> int:
|
||||
if argv[:1] in (["-h"], ["--help"]):
|
||||
print(__doc__.strip())
|
||||
return 0
|
||||
check = "--check" in argv
|
||||
paths = [arg for arg in argv if arg != "--check"]
|
||||
if len(paths) > 1 or any(path.startswith("-") for path in paths):
|
||||
print(f"rank_todo.py: cannot read the arguments {' '.join(argv)}; usage: rank_todo.py [--check] [todo.md]", file=sys.stderr)
|
||||
return 1
|
||||
todo = pathlib.Path(paths[0] if paths else "todo.md")
|
||||
decisions = todo.parent / "docs" / "decisions.md"
|
||||
read_in = [read(todo), read(todo.parent / "README.md"), read(decisions) if decisions.exists() else ""]
|
||||
unread = next((found for found in read_in if isinstance(found, Failure)), None)
|
||||
if unread:
|
||||
print(unread.reason, file=sys.stderr)
|
||||
return 1
|
||||
text, readme, cited = (str(found) for found in read_in)
|
||||
ranked = rank(text, readme, cited)
|
||||
args = parse_args(argv)
|
||||
if isinstance(args, Failure):
|
||||
return fail(args)
|
||||
check, todo = args
|
||||
texts = read_all(todo)
|
||||
if isinstance(texts, Failure):
|
||||
return fail(texts)
|
||||
ranked = rank(*texts)
|
||||
if isinstance(ranked, Failure):
|
||||
print(ranked.reason, file=sys.stderr)
|
||||
return 1
|
||||
if ranked.text != text:
|
||||
if check:
|
||||
print(f"{todo}: not ranked; run rank_todo.py on it", file=sys.stderr)
|
||||
return 1
|
||||
todo.write_text(ranked.text, encoding="utf-8")
|
||||
return fail(ranked)
|
||||
if ranked.text != texts[0]:
|
||||
unwritten = Failure(f"{todo}: not ranked; run rank_todo.py on it") if check else write(todo, ranked.text)
|
||||
if unwritten:
|
||||
return fail(unwritten)
|
||||
for line in ranked.under_bar:
|
||||
print(f"{todo}: {line}", file=sys.stderr)
|
||||
return 1 if ranked.under_bar else 0
|
||||
|
||||
|
||||
def read(path: pathlib.Path) -> str | Failure:
|
||||
def fail(failure: Failure) -> int:
|
||||
print(failure.reason, file=sys.stderr)
|
||||
return 1
|
||||
|
||||
|
||||
def parse_args(argv: list[str]) -> tuple[bool, pathlib.Path] | Failure:
|
||||
paths = [arg for arg in argv if arg != "--check"]
|
||||
if len(paths) > 1 or any(path.startswith("-") for path in paths):
|
||||
return Failure(f"rank_todo.py: cannot read the arguments {' '.join(argv)}; usage: rank_todo.py [--check] [todo.md]")
|
||||
return "--check" in argv, pathlib.Path(paths[0] if paths else "todo.md")
|
||||
|
||||
|
||||
def read_all(todo: pathlib.Path) -> tuple[str, str, str] | Failure:
|
||||
"""todo.md, the README.md beside it, and its docs/decisions.md, empty when there is none."""
|
||||
texts = []
|
||||
for path, missing in ((todo, "every project keeps a todo.md beside its README.md, and rank_todo.py --help shows one"), (todo.parent / "README.md", "rank_todo.py weighs goals from the README.md beside todo.md"), (todo.parent / "docs" / "decisions.md", None)):
|
||||
try:
|
||||
texts.append(path.read_text(encoding="utf-8"))
|
||||
except FileNotFoundError:
|
||||
if missing:
|
||||
return Failure(f"{path}: not found; {missing}")
|
||||
texts.append("")
|
||||
except OSError as failure:
|
||||
return Failure(f"{path}: {failure.strerror}")
|
||||
except UnicodeDecodeError:
|
||||
return Failure(f"{path}: not UTF-8")
|
||||
return texts[0], texts[1], texts[2]
|
||||
|
||||
|
||||
def write(path: pathlib.Path, text: str) -> Failure | None:
|
||||
try:
|
||||
return path.read_text(encoding="utf-8")
|
||||
except FileNotFoundError:
|
||||
return Failure(f"{path}: not found; every project keeps a todo.md beside its README.md, and rank_todo.py --help shows one")
|
||||
path.write_text(text, encoding="utf-8")
|
||||
except OSError as failure:
|
||||
return Failure(f"{path}: {failure.strerror}")
|
||||
except UnicodeDecodeError:
|
||||
return Failure(f"{path}: not UTF-8")
|
||||
return None
|
||||
|
||||
|
||||
def rank(text: str, readme: str, decisions: str) -> Ranked | Failure:
|
||||
lines = text.split("\n")
|
||||
scoring = read_scoring(text, lines, readme)
|
||||
if isinstance(scoring, Failure):
|
||||
return scoring
|
||||
table = read_items(lines, scoring, decisions)
|
||||
if isinstance(table, Failure):
|
||||
return table
|
||||
items, start = table
|
||||
scored = []
|
||||
for item in items:
|
||||
value = score(scoring.formula, item, scoring.weights)
|
||||
if isinstance(value, Failure):
|
||||
return value
|
||||
scored.append((item, value))
|
||||
scored.sort(key=lambda pair: (pair[0].release, pair[0].exempt != "security", -pair[1], pair[0].id))
|
||||
lines[start:start + len(scored)] = [render_item(item, value) for item, value in scored]
|
||||
ranked = rank_details("\n".join(lines), [item for item, _ in scored])
|
||||
if isinstance(ranked, Failure):
|
||||
return ranked
|
||||
under_bar = [f"item {item.id} scores {value:.1f}, under the bar {scoring.bar:g}; delete it and any item that needs it, or mark it with a reason the bar does not apply" for item, value in scored if not item.exempt and round(value, 1) < scoring.bar]
|
||||
return Ranked(ranked, under_bar)
|
||||
|
||||
|
||||
def read_scoring(text: str, lines: list[str], readme: str) -> Scoring | Failure:
|
||||
if ITEMS_HEADER not in lines and "## Items" not in lines:
|
||||
return Failure("todo.md is not in the scored-table format; rank_todo.py --help shows a valid one")
|
||||
goals = readme_goals(readme)
|
||||
@@ -136,35 +195,42 @@ def rank(text: str, readme: str, decisions: str) -> Ranked | Failure:
|
||||
bar = number(stated(text, "Bar"), "the bar")
|
||||
if isinstance(bar, Failure):
|
||||
return bar
|
||||
next_id = number(stated(text, "Next ID"), "Next ID")
|
||||
if isinstance(next_id, Failure):
|
||||
return next_id
|
||||
next_id = stated(text, "Next ID")
|
||||
if isinstance(next_id, Failure) or not re.fullmatch(r"[0-9]+", next_id):
|
||||
return next_id if isinstance(next_id, Failure) else Failure(f"Next ID {next_id!r} is not a whole number")
|
||||
weights = parse_weights(lines, goals)
|
||||
if isinstance(weights, Failure):
|
||||
return weights
|
||||
items = parse_items(lines, weights)
|
||||
if isinstance(items, Failure):
|
||||
return items
|
||||
ids = [item.id for item in items]
|
||||
if ids and max(ids) >= next_id:
|
||||
return Failure(f"item {max(ids)} is not under Next ID {next_id:g}; raise Next ID past every ID")
|
||||
marked = {item.id for item in items if item.exempt == "decision"}
|
||||
if unmarked := sorted(set(cited_items(decisions)) - marked):
|
||||
return Failure(f"docs/decisions.md cites todo.md item {', '.join(map(str, unmarked))}, which no row marked decision holds")
|
||||
scored = []
|
||||
for item in items:
|
||||
value = score(formula, item, weights)
|
||||
if isinstance(value, Failure):
|
||||
return value
|
||||
scored.append((item, value))
|
||||
scored.sort(key=lambda pair: (pair[0].release, pair[0].exempt != "security", -pair[1], pair[0].id))
|
||||
start = lines.index(ITEMS_HEADER) + 2
|
||||
lines[start:start + len(scored)] = [render_item(item, value) for item, value in scored]
|
||||
ranked = rank_details("\n".join(lines), [item for item, _ in scored])
|
||||
if isinstance(ranked, Failure):
|
||||
return ranked
|
||||
under_bar = [f"item {item.id} scores {value:.1f}, under the bar {bar:g}; delete it and any item that needs it, or mark it with a reason the bar does not apply" for item, value in scored if not item.exempt and round(value, 1) < bar]
|
||||
return Ranked(ranked, under_bar)
|
||||
return Scoring(formula, bar, int(next_id), weights)
|
||||
|
||||
|
||||
def read_items(lines: list[str], scoring: Scoring, decisions: str) -> tuple[list[Item], int] | Failure:
|
||||
"""The items, and the index of the first row, checked against Next ID and the decisions citing them."""
|
||||
table = table_rows(lines, ITEMS_HEADER)
|
||||
if isinstance(table, Failure):
|
||||
return table
|
||||
after = lines[table.start + len(table.rows):]
|
||||
if any(line.startswith("|") for line in after[:next((index for index, line in enumerate(after) if line.startswith("## ")), len(after))]):
|
||||
return Failure("## Items holds a row outside its table; keep the rows together under the header")
|
||||
items = []
|
||||
for row in table.rows:
|
||||
item = parse_item(row, scoring.weights)
|
||||
if isinstance(item, Failure):
|
||||
return item
|
||||
items.append(item)
|
||||
ids = {item.id for item in items}
|
||||
if len(ids) < len(items):
|
||||
return Failure("two items share an ID")
|
||||
if ids and max(ids) >= scoring.next_id:
|
||||
return Failure(f"item {max(ids)} is not under Next ID {scoring.next_id}; raise Next ID past every ID")
|
||||
cited = set(cited_items(decisions))
|
||||
if gone := sorted(cited - ids):
|
||||
return Failure(f"docs/decisions.md cites todo.md item {', '.join(map(str, gone))}, which todo.md no longer holds; revise that decision to say what holds now")
|
||||
if unexempt := sorted(item.id for item in items if item.id in cited and not item.exempt):
|
||||
return Failure(f"docs/decisions.md cites item {', '.join(map(str, unexempt))}; mark it decision, or another reason the bar does not apply")
|
||||
if uncited := sorted(item.id for item in items if item.exempt == "decision" and item.id not in cited):
|
||||
return Failure(f"item {', '.join(map(str, uncited))} is marked decision, but docs/decisions.md does not cite it as `todo.md` item N")
|
||||
return items, table.start
|
||||
|
||||
|
||||
def readme_goals(readme: str) -> list[str] | Failure:
|
||||
@@ -174,10 +240,10 @@ def readme_goals(readme: str) -> list[str] | Failure:
|
||||
return Failure(f"README.md has ## Goals {len(found)} times; it needs it once")
|
||||
goals: list[str] = []
|
||||
path: list[tuple[int, str]] = []
|
||||
for indent, number in re.findall(r"^([ \t]*)(\d+)\. ", found[0].expandtabs(4), re.M):
|
||||
for indent, position in re.findall(r"^([ \t]*)(\d+)\. ", found[0].expandtabs(4), re.M):
|
||||
while path and path[-1][0] >= len(indent):
|
||||
path.pop()
|
||||
path.append((len(indent), number))
|
||||
path.append((len(indent), position))
|
||||
goals.append(".".join(part for _, part in path))
|
||||
if not goals:
|
||||
return Failure("README.md's ## Goals has no numbered goal")
|
||||
@@ -202,10 +268,13 @@ def parse_formula(source: str | Failure) -> ast.Expression | Failure:
|
||||
return source
|
||||
try:
|
||||
tree = ast.parse(source, mode="eval")
|
||||
except SyntaxError:
|
||||
except (SyntaxError, ValueError):
|
||||
return Failure(f"the formula {source!r} does not parse")
|
||||
for node in ast.walk(tree):
|
||||
numeric = isinstance(node, ast.Constant) and type(node.value) in (int, float)
|
||||
nodes = list(ast.walk(tree))
|
||||
if len(nodes) > LARGEST_FORMULA:
|
||||
return Failure(f"the formula {source!r} holds more than {LARGEST_FORMULA} parts")
|
||||
for node in nodes:
|
||||
numeric = isinstance(node, ast.Constant) and isinstance(node.value, (int, float)) and not isinstance(node.value, bool) and abs(node.value) < 1e300
|
||||
if not (isinstance(node, OPERATORS) or numeric or (isinstance(node, ast.Name) and node.id in VARIABLES)):
|
||||
return Failure(f"the formula {source!r} may hold only numbers, {', '.join(VARIABLES)}, + - * / and parentheses")
|
||||
return tree
|
||||
@@ -253,17 +322,19 @@ def number(text: str | Failure, what: str) -> float | Failure:
|
||||
|
||||
|
||||
def parse_weights(lines: list[str], goals: list[str]) -> dict[str, float] | Failure:
|
||||
rows = table_rows(lines, WEIGHTS_HEADER)
|
||||
if isinstance(rows, Failure):
|
||||
return rows
|
||||
table = table_rows(lines, WEIGHTS_HEADER)
|
||||
if isinstance(table, Failure):
|
||||
return table
|
||||
weights: dict[str, float] = {}
|
||||
for row in rows:
|
||||
for row in table.rows:
|
||||
found = cells(row, 2)
|
||||
if isinstance(found, Failure):
|
||||
return found
|
||||
weight = number(found[1], f"goal {found[0]}'s weight")
|
||||
if isinstance(weight, Failure):
|
||||
return weight
|
||||
if found[0] in weights:
|
||||
return Failure(f"the goal weights list goal {found[0]} twice")
|
||||
weights[found[0]] = weight
|
||||
if list(weights) != goals:
|
||||
default = "\n".join(f"| {goal} | {(len(goals) - index) / len(goals):.2f} |" for index, goal in enumerate(goals))
|
||||
@@ -271,26 +342,7 @@ def parse_weights(lines: list[str], goals: list[str]) -> dict[str, float] | Fail
|
||||
return weights
|
||||
|
||||
|
||||
def parse_items(lines: list[str], weights: dict[str, float]) -> list[Item] | Failure:
|
||||
rows = table_rows(lines, ITEMS_HEADER)
|
||||
if isinstance(rows, Failure):
|
||||
return rows
|
||||
after = lines[lines.index(ITEMS_HEADER) + 2 + len(rows):]
|
||||
if any(line.startswith("|") for line in section_lines(after)):
|
||||
return Failure("## Items holds a row outside its table; keep the rows together under the header")
|
||||
items = []
|
||||
for row in rows:
|
||||
item = parse_item(row, weights)
|
||||
if isinstance(item, Failure):
|
||||
return item
|
||||
items.append(item)
|
||||
if len({item.id for item in items}) < len(items):
|
||||
return Failure("two items share an ID")
|
||||
return items
|
||||
|
||||
|
||||
def table_rows(lines: list[str], header: str) -> list[str] | Failure:
|
||||
"""A table's body rows, below its header and divider."""
|
||||
def table_rows(lines: list[str], header: str) -> Table | Failure:
|
||||
if lines.count(header) != 1:
|
||||
return Failure(f"todo.md needs the table header {header} once")
|
||||
start = lines.index(header) + 2
|
||||
@@ -299,11 +351,7 @@ def table_rows(lines: list[str], header: str) -> list[str] | Failure:
|
||||
end = start
|
||||
while end < len(lines) and lines[end].startswith("|"):
|
||||
end += 1
|
||||
return lines[start:end]
|
||||
|
||||
|
||||
def section_lines(lines: list[str]) -> list[str]:
|
||||
return lines[:next((index for index, line in enumerate(lines) if line.startswith("## ")), len(lines))]
|
||||
return Table(start, lines[start:end])
|
||||
|
||||
|
||||
def cells(row: str, count: int) -> list[str] | Failure:
|
||||
@@ -312,6 +360,7 @@ def cells(row: str, count: int) -> list[str] | Failure:
|
||||
|
||||
|
||||
def parse_item(row: str, weights: dict[str, float]) -> Item | Failure:
|
||||
"""Checks one row cell by cell, in the order the header names them."""
|
||||
found = cells(row, 10)
|
||||
if isinstance(found, Failure):
|
||||
return found
|
||||
@@ -348,7 +397,7 @@ def rank_details(text: str, items: list[Item]) -> str | Failure:
|
||||
return text
|
||||
body = section.group(1)
|
||||
# A fenced line such as "## Goals" or "### 2. x" would read as a heading and split a detail.
|
||||
if re.search(r"^ {0,3}(```|~~~)", body, re.M):
|
||||
if FENCE.search(body):
|
||||
return Failure("## Details holds a fenced code block; indent quoted markdown by four spaces instead")
|
||||
parts = re.split(r"^### (\d+)\. [^\n]*\n", body, flags=re.M)
|
||||
if parts[0].strip():
|
||||
|
||||
@@ -73,6 +73,11 @@ class Rank(unittest.TestCase):
|
||||
self.assertEqual(ranked.under_bar, [])
|
||||
self.assertEqual(self.ranked(ranked.text), ranked)
|
||||
|
||||
def test_holds_each_item_a_decision_cites_and_says_how_to_settle_a_finished_one(self):
|
||||
self.assertIsInstance(self.ranked(decisions=DECISIONS + "Until `todo.md` item 4 lands.\n"), rank_todo.Ranked)
|
||||
gone = self.ranked(TODO.replace("| 5 | 0.1.0 | decision | **Move the writes out.** | 5 | 5 | 4 | 5 | 2.1 | 0 |\n", ""))
|
||||
self.assertEqual(gone.reason, "docs/decisions.md cites todo.md item 5, which todo.md no longer holds; revise that decision to say what holds now")
|
||||
|
||||
def test_names_each_item_under_the_bar_that_is_not_exempt(self):
|
||||
ranked = self.ranked(TODO.replace("`Bar = 9`", "`Bar = 11`"))
|
||||
self.assertEqual(ranked.under_bar, ["item 2 scores 10.3, under the bar 11; delete it and any item that needs it, or mark it with a reason the bar does not apply"])
|
||||
@@ -88,7 +93,7 @@ class Rank(unittest.TestCase):
|
||||
self.assertIn("| 1 | 1.00 |\n| 2 | 0.75 |\n| 2.1 | 0.50 |\n| 3 | 0.25 |", failure.reason)
|
||||
|
||||
def test_refuses_a_formula_that_is_more_than_arithmetic_over_the_scores(self):
|
||||
for formula in ("__import__('os')", "R.real", "X + 1", "R ** 2", "R +", "R / (S - 2)"):
|
||||
for formula in ("__import__('os')", "R.real", "X + 1", "R ** 2", "R +", "R / (S - 2)", "R\x00", "1" * 400, " + ".join(["R"] * 300)):
|
||||
with self.subTest(formula=formula):
|
||||
self.assertIsInstance(self.ranked(TODO.replace("-R - S/4 + 2*A + 2*G*W", formula)), Failure)
|
||||
|
||||
@@ -101,6 +106,8 @@ class Rank(unittest.TestCase):
|
||||
"| 4 | 0.1.0 | security |": "| 4 | 0.1.0 | later |",
|
||||
"| 5 | 0.1.0 | decision |": "| 5 | 0.1.0 | |",
|
||||
"`Next ID = 6`": "`Next ID = 5`",
|
||||
"`Next ID = 6`\n": "`Next ID = 6.5`\n",
|
||||
"| 4 | 0.1.0 | security |": "| 4 | 0.1.0 | decision |",
|
||||
"Fast detail.": "```\n## Goals\n```",
|
||||
"### 3. Make it fast.": "### 7. Make it fast.",
|
||||
"`Bar = 9`": "`Bar = nan`",
|
||||
@@ -131,7 +138,7 @@ class Main(unittest.TestCase):
|
||||
pathlib.Path(temp, "README.md").write_bytes(b"\xff")
|
||||
self.assertEqual(self.run_main(str(todo)), (1, f"{temp}/README.md: not UTF-8\n"))
|
||||
pathlib.Path(temp, "README.md").unlink()
|
||||
self.assertIn("README.md: not found", self.run_main(str(todo))[1])
|
||||
self.assertEqual(self.run_main(str(todo)), (1, f"{temp}/README.md: not found; rank_todo.py weighs goals from the README.md beside todo.md\n"))
|
||||
|
||||
def test_shows_a_valid_file_in_help_and_names_arguments_it_cannot_read(self):
|
||||
self.assertEqual(self.run_main("--help")[0], 0)
|
||||
|
||||
+4
-4
@@ -30,11 +30,11 @@
|
||||
|
||||
## comprehension floor: every dimension and the overall at 7.0 or above, and 0.1.0 waits on it
|
||||
|
||||
2026-09-27, lilleman, restating the 2026-09-24 target and extending it to the overall. Serves goal 4. The 2026-09-28 run, Junior A, Mid A, the maintainability senior and the inherited architect at depth 1 over every non-test file, blind to `todo.md` and this log, scored Navigation 7.25, Locality 6.0, Shape 6.5, Self-sufficiency 6.25, overall 6.25; on 2026-09-26 they were 7.75, 6.25, 7.0, 6.75, 6.75. Every seat scored Locality 6, and three of four named `run_cycle`'s three-way return and larv-review's re-entry rules, split across the passes on 2026-09-28. The same seats on `rebuild` scored 7.5, 6.63, 6.88, 6.5, 7.0 at 37edc9a, later that day, 7.5, 6.75, 6.88, 6.75, 7.0 at 7f9de5c, 7.38, 6.25, 6.88, 6.75, 6.88 at 2f9ab2f on 2026-09-29, Locality lowest again and every seat naming the reload state and the two retry counters, and 7.5, 7.0, 7.25, 6.75, 7.13 at 2c74bbc later that day, Self-sufficiency lowest and every seat naming the round's definition split across larv-review's two files, and 7.38, 6.75, 7.25, 6.5, 6.88 at 8585257 on 2026-10-01, lowering every dimension but Shape, and the overall, Self-sufficiency lowest and every seat naming larv-review §3's round rules; the places it named under Self-sufficiency and Locality are filed in `todo.md` under 0.1.0, and a later scoring run may not score any dimension or the overall below its best run on `rebuild`, 2026-10-01, lilleman. `rebuild` merged into main under the floor at 8585257's scores, 2026-10-01, lilleman. The 2026-10-01 run on PR #182 (the loop state machine) scored 7.5, 6.5, 6.88, 6.25, 6.38; lilleman shipped that PR under the floor and below `rebuild`'s best run the same day, its places filed in `todo.md` under 0.1.0. The 2026-10-02 run on PR #187 (`loop_claude`'s names, the exit contract) scored 7.75, 7.25, 7.38, 6.88, 7.25 at 70362d0, every seat naming larv-review §3 under Self-sufficiency, and 7.63, 7.13, 7.38, 7.0, 7.13 at 1971dba later that day, the first run at the floor, with no dimension or the overall below its best run on `rebuild`. The 2026-10-02 runs on PR #191 (the status line in Python) scored 7.5, 7.0, 7.13, 6.88, 7.13; 7.25, 6.75, 7.25, 6.88, 7.0; 7.63, 6.88, 7.38, 7.0, 7.13; and 7.63, 7.0, 7.25, 6.75, 7.25. Every seat rated the status line easy. The places they named under Locality and Self-sufficiency are filed in `todo.md` under 0.1.0, except `entries.py`'s heuristics over Claude Code's transcript format, which the seats scored as the problem's own difficulty. lilleman decided the same day to ship that PR under the floor. The 2026-10-02 runs on PR #194 (each cycle's transcript archived) scored 8.0, 7.25, 7.38, 7.13, 7.5 at 6ccd5b1 and 7.75, 7.13, 7.25, 7.0, 7.25 at d104ea0, both at the floor, every seat naming `archive` as the unit it would least want to modify. On 2026-10-02 the bar of `todo.md` purged the places these runs filed, except `todo.md` items 13 and 17. Valid until the next scoring run, which uses the same four seats.
|
||||
2026-09-27, lilleman, restating the 2026-09-24 target and extending it to the overall. Serves goal 4. The 2026-09-28 run, Junior A, Mid A, the maintainability senior and the inherited architect at depth 1 over every non-test file, blind to `todo.md` and this log, scored Navigation 7.25, Locality 6.0, Shape 6.5, Self-sufficiency 6.25, overall 6.25; on 2026-09-26 they were 7.75, 6.25, 7.0, 6.75, 6.75. Every seat scored Locality 6, and three of four named `run_cycle`'s three-way return and larv-review's re-entry rules, split across the passes on 2026-09-28. The same seats on `rebuild` scored 7.5, 6.63, 6.88, 6.5, 7.0 at 37edc9a, later that day, 7.5, 6.75, 6.88, 6.75, 7.0 at 7f9de5c, 7.38, 6.25, 6.88, 6.75, 6.88 at 2f9ab2f on 2026-09-29, Locality lowest again and every seat naming the reload state and the two retry counters, and 7.5, 7.0, 7.25, 6.75, 7.13 at 2c74bbc later that day, Self-sufficiency lowest and every seat naming the round's definition split across larv-review's two files, and 7.38, 6.75, 7.25, 6.5, 6.88 at 8585257 on 2026-10-01, lowering every dimension but Shape, and the overall, Self-sufficiency lowest and every seat naming larv-review §3's round rules; the places it named under Self-sufficiency and Locality are filed in `todo.md` under 0.1.0, and a later scoring run may not score any dimension or the overall below its best run on `rebuild`, 2026-10-01, lilleman. `rebuild` merged into main under the floor at 8585257's scores, 2026-10-01, lilleman. The 2026-10-01 run on PR #182 (the loop state machine) scored 7.5, 6.5, 6.88, 6.25, 6.38; lilleman shipped that PR under the floor and below `rebuild`'s best run the same day, its places filed in `todo.md` under 0.1.0. The 2026-10-02 run on PR #187 (`loop_claude`'s names, the exit contract) scored 7.75, 7.25, 7.38, 6.88, 7.25 at 70362d0, every seat naming larv-review §3 under Self-sufficiency, and 7.63, 7.13, 7.38, 7.0, 7.13 at 1971dba later that day, the first run at the floor, with no dimension or the overall below its best run on `rebuild`. The 2026-10-02 runs on PR #191 (the status line in Python) scored 7.5, 7.0, 7.13, 6.88, 7.13; 7.25, 6.75, 7.25, 6.88, 7.0; 7.63, 6.88, 7.38, 7.0, 7.13; and 7.63, 7.0, 7.25, 6.75, 7.25. Every seat rated the status line easy. The places they named under Locality and Self-sufficiency are filed in `todo.md` under 0.1.0, except `entries.py`'s heuristics over Claude Code's transcript format, which the seats scored as the problem's own difficulty. lilleman decided the same day to ship that PR under the floor. The 2026-10-02 runs on PR #194 (each cycle's transcript archived) scored 8.0, 7.25, 7.38, 7.13, 7.5 at 6ccd5b1 and 7.75, 7.13, 7.25, 7.0, 7.25 at d104ea0, both at the floor, every seat naming `archive` as the unit it would least want to modify. On 2026-10-02, applying `todo.md`'s bar deleted every place these scoring runs filed except `todo.md` items 13 and 17. Valid until the next scoring run, which uses the same four seats.
|
||||
|
||||
## loop-claude: each project's model lives in `~/.claude/loop-claude-models.json`, which only loop-claude writes
|
||||
|
||||
2026-09-26, lilleman. Serves goal 4. Claude Code rewrites the user settings' `model` whenever one is picked inside a session, so a loop reading settings runs whatever was picked last; `~/.claude/loop-claude-models.json` has loop-claude as its one writer, and every claude it starts gets that model as `--model`. The file is per machine, outside the synced allowlist, since a tracked file the loop writes would dirty the checkout. 2026-10-02, lilleman: goal 1 shares the setup across machines, and a project's model is not part of it, so each new machine asks once per project. Valid while Claude Code keeps rewriting the settings' model from inside a session.
|
||||
2026-09-26, lilleman. Serves goal 4. Claude Code rewrites the user settings' `model` whenever one is picked inside a session, so a loop reading settings runs whatever was picked last; `~/.claude/loop-claude-models.json` has loop-claude as its one writer, and every claude it starts gets that model as `--model`. The file is per machine, outside the synced allowlist, since a tracked file the loop writes would dirty the checkout. 2026-10-02, lilleman: goal 1 shares the setup across machines, and a project's model is not part of it, so each new machine asks once per project. Stands until `todo.md` item 35 settles it. Valid while Claude Code keeps rewriting the settings' model from inside a session.
|
||||
|
||||
## review: a pass gets at most three rounds per chunk; instead of a fourth, the run asks the human
|
||||
|
||||
@@ -76,6 +76,6 @@
|
||||
|
||||
2026-10-02, lilleman. Serves goal 3, which keeps credentials, transcripts and memory files off the remote; a private project's name and commit ids are none of those. Valid while the bench names only cases and commits, never their code or results.
|
||||
|
||||
## todo.md: one table of items scored by the formula, bar and goal weights it states, ranked by `bin/rank_todo.py`
|
||||
## todo.md: one table of items scored by the formula and goal weights it states, held to its bar, ranked by `bin/rank_todo.py`
|
||||
|
||||
2026-10-02, lilleman. Serves goal 4: findings were filed faster than chunks closed them, so the plan grew without telling what mattered. Each item is scored as `CLAUDE.md` → "Todo items" says; this repo's formula counts value highest and size least. An item under the bar is not kept; this repo's bar started at 10 and was set to 9 the same day, purging the 17 items under it. An Exempt cell keeps a row past the bar where a rule needs it kept: a security finding, a 🔴 defect, a question for the human, an item a decision names. lilleman retired the two decisions whose plans the purge removed, the stats line in the transcript archive and three benches before a workflow change merges, rather than keep plans scored under the bar. `rank_todo.py --check` is part of larv-review's gate, since only a check keeps the stored Score from going stale. The format is mandatory in every project, as the premises are (goal 4.3); the formula, bar and weights are each project's own. A script ranks the table so a re-rank after each addition or edit is deterministic and cheap. Valid while one human sets the bar and reads the ranking.
|
||||
2026-10-02, lilleman. Serves goal 4: findings were filed faster than chunks closed them, so the plan grew without telling what mattered. Each item is scored as `CLAUDE.md` → "Todo items" says; this repo's formula counts value highest and size least. An item under the bar is not kept; this repo's bar started at 10 and was set to 9 the same day, purging the 17 items under it. An Exempt cell keeps a row past the bar where a rule needs it kept. lilleman retired the two decisions whose plans the purge removed: the stats line in the transcript archive, and three benches before a workflow change merges. A finding under the bar is recorded nowhere, so a later review may raise it again and the run rescores it: one score's cost, where a ledger of dropped findings would regrow the list the bar caps. `rank_todo.py --check` is part of larv-review's gate, since only a check keeps the stored Score from going stale. The format is mandatory in every project, as the premises are (goal 4.3); the formula, bar and weights are each project's own. A script ranks the table so a re-rank after each addition or edit is deterministic and cheap. Valid while one human sets the bar and reads the ranking.
|
||||
|
||||
@@ -61,11 +61,11 @@ A comment is prose, not code. Passes run in this order: line-level polish on cod
|
||||
|
||||
**Findings.**
|
||||
|
||||
1. A finding outside the chunk's change, whatever its pass or severity, is scored and filed in `todo.md` per `~/.claude/CLAUDE.md` → "Todo items", a 🔴 marked `defect`; one under the bar and not exempt is named in the summary with its score instead. A verified security HIGH is handled per "Security".
|
||||
2. A fix that would change a goal, or a decision the repo held before the chunk began, is asked; no user reachable → filed as a `question`, the goal or decision left as is.
|
||||
1. A finding outside the chunk's change, whatever its pass or severity, is scored and filed in `todo.md` per `~/.claude/CLAUDE.md` → "Todo items". A 🔴 is marked `defect`. One under the bar and not exempt is named in the summary with its score. A verified security HIGH is handled per "Security".
|
||||
2. A fix that would change a goal, or a decision the repo held before the chunk began, is asked; no user reachable → filed, marked `question`, the goal or decision left as is.
|
||||
3. A 🔴 is fixed, or shown factually wrong, and what disproved it recorded per `~/.claude/CLAUDE.md` → "Decisions: one home, each linked to a goal or a technical principle": in a comment at the code the finding concerns, or in `docs/decisions.md` when it concerns more than one place. Never declined.
|
||||
4. A 🟡 is fixed, shown factually wrong like a 🔴, or declined. Decline one only where the reason is sound, consistent with the goals and the technical principles, and confidence is very high; the decline and its reason are recorded the same way. A reason neither speaks to is a gap in the goals: fix the finding, or ask per `~/.claude/CLAUDE.md` → "Working loop", "Ask, don't guess"; no user reachable → fix. Never drop one silently, and never decline one for convenience or the size of the fix.
|
||||
5. A 🟢 or ❓ is fixed, answered, declined in the summary with its reason, or filed. Answer one where the code, a test or a record settles it, and quote what in the summary. A ❓ only the user can answer is asked; no user reachable → filed as a `question`.
|
||||
5. A 🟢 or ❓ is fixed, answered, declined in the summary with its reason, or filed. Answer one where the code, a test or a record settles it, and quote what in the summary. A ❓ only the user can answer is asked; no user reachable → filed, marked `question`.
|
||||
6. A 🔀 runs the named pass once the current pass is done.
|
||||
7. Other reviewers map onto this scale: `/security-review`'s HIGH is 🔴, MEDIUM 🟡, LOW 🟢; what a forge's auto-reviewer marks blocking is 🔴. A finding of theirs repeating one declined or filed does not stand.
|
||||
|
||||
@@ -100,7 +100,7 @@ Launch prose-reviewer with what the diff touched and every section this review c
|
||||
|
||||
## 4. Gate
|
||||
|
||||
1. Run `~/.claude/bin/rank_todo.py --check todo.md`.
|
||||
1. Run `~/.claude/bin/rank_todo.py --check todo.md`; a failure is a finding.
|
||||
2. Run the project's test suite locally unless the last stability round already left it verified green.
|
||||
3. Watch the forge's checks until every one passes. A red check is a finding.
|
||||
4. No CI configured → the gate is local tests only; note it in the summary.
|
||||
|
||||
Reference in New Issue
Block a user