Answer prose round 1: 0 🔴, 13 🟡 (0 misread); make each docstring say what its function now does, and sort the README's text_files bullet
This commit is contained in:
@@ -12,7 +12,7 @@ from project_config.main import located
|
||||
def owed_scoring_run(default: str, home: pathlib.Path, warn: typing.Callable[[str], None]) -> Failure | None:
|
||||
"""A Failure saying which scoring runs the chunk owes and has not recorded; None where it owes none.
|
||||
|
||||
The chunk owes the runs `plan_reasons` calls, two where it empties a release, else one. It has recorded the scoring runs its committed history holds beyond those at the merge base, so a default branch that has moved on since the branch began doesn't count. A project with no plan owes none. Neither does one whose plan or history is outside the checkout: it says on stderr that it cannot tell. A missing run blocks the merge and a low score never does, which keeps the decision `review: the comprehension check records …`: it bars only scores from blocking.
|
||||
The chunk owes the runs `plan_reasons` calls, two where it empties a release, else one. It has recorded the scoring runs its committed history holds beyond those at the merge base, so a default branch that has moved on since the branch began doesn't count. A project with no plan owes none. Neither does one whose plan or history is outside the checkout: it warns that it cannot tell. A missing run blocks the merge and a low score never does, which keeps the decision `review: the comprehension check records …`: it bars only scores from blocking.
|
||||
"""
|
||||
config = located(None, home)
|
||||
if isinstance(config, Failure):
|
||||
|
||||
@@ -67,7 +67,7 @@ def unanswered_round(titles: list[str], pass_: str) -> int | Failure:
|
||||
|
||||
|
||||
def reviewer_header(default: str, pass_: str, rerun: bool, home: pathlib.Path) -> str | Failure:
|
||||
"""Writes the branch diff and the places into the review folder, and prints the header that launches pass_'s reviewer in the pass's unanswered round, or its relaunch one rung up where rerun."""
|
||||
"""Writes the branch diff and the places into the review folder, and returns the header that launches pass_'s reviewer in the pass's unanswered round, or its relaunch one rung up where rerun."""
|
||||
titles = branch_titles(default)
|
||||
if isinstance(titles, Failure):
|
||||
return titles
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""What counts as a quote, for every check of a passage the judge or the worker quotes: of the transcript, the premises, the records or a human's line."""
|
||||
"""What counts as a quote: whether a text holds a passage the judge quotes from the transcript, the premises, the records or a human's line."""
|
||||
|
||||
|
||||
def verbatim(quote: str, text: str) -> bool:
|
||||
|
||||
@@ -9,13 +9,13 @@ The worker, and the session /talk opens, run on a Route (model_routing/route.py)
|
||||
|
||||
A step-up weighs five rungs:
|
||||
|
||||
- the project's rung: the cheapest rung of the project's model, from which every L counts;
|
||||
- the project's rung: the cheapest rung of the project's model, which each L counts up from;
|
||||
- item_rung: the rung the chunk started on, which the routed item's L picked;
|
||||
- the route's rung: where the worker runs now, at or above item_rung;
|
||||
- floor_rung: the lowest rung the worker may run on next, which is the route's rung, raised where an item the worker took in has an L that picks a higher one;
|
||||
- escalation_cap: ESCALATION_CAP rungs above item_rung, the highest an escalation reaches without the human's yes.
|
||||
|
||||
Each verdict then moves the rung by one rule, and the rung never falls. It changes this seldom because a model switch inside a session discards its prompt cache.
|
||||
Each verdict then moves the rung by one rule, and the rung never falls. The rung changes seldom, since a model switch inside a session discards that session's prompt cache.
|
||||
|
||||
| Verdict | The rung goes to | Count of unfinished verdicts | Escalation mark |
|
||||
|---|---|---|---|
|
||||
|
||||
@@ -56,7 +56,7 @@ class Route:
|
||||
escalated_at: int = 0
|
||||
|
||||
def __post_init__(self) -> None:
|
||||
# Raises on a programming error only, so nothing catches it: a caller builds a route only from levels it checked with fits, or took from an item todo_table.items read, which holds none off its scale.
|
||||
# Raises on a programming error only, so nothing catches it: a caller builds a route from levels it checked with fits, or from an item todo_table.items read, whose levels are all on their scales.
|
||||
if not levels_fit(self.item, self.likelihood, self.escape_and_impact, self.escape_and_impact_taken_in):
|
||||
raise ValueError(f"a route by item {self.item} cannot hold an L of {self.likelihood}, an E + I of {self.escape_and_impact} and an E + I taken in of {self.escape_and_impact_taken_in}")
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
"""Holds todo.md and docs/decisions.md to each other: every item a decision cites is in the plan and exempt from the bar, and every item marked decision is cited."""
|
||||
|
||||
import re
|
||||
|
||||
from failure import Failure
|
||||
@@ -7,7 +5,7 @@ from release_plan.todo_table import Item
|
||||
|
||||
|
||||
def check_citations(items: list[Item], decisions: str) -> Failure | None:
|
||||
"""Holds todo.md and docs/decisions.md to each other: a cited item is exempt, a decision row is cited."""
|
||||
"""Holds todo.md and docs/decisions.md to each other: every item a decision cites is in the plan and exempt from the bar, and every item marked decision is cited."""
|
||||
cited = set(cited_items(decisions))
|
||||
if gone := sorted(cited - {item.id for item in items}):
|
||||
return Failure(f"docs/decisions.md cites \"`todo.md` item {gone[0]}\", which todo.md no longer holds; revise that decision to say what holds now")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""The goals file, read once for everyone: its ## Goals and ## Audience sections, the goals ## Goals numbers and marks, and what each goal weighs."""
|
||||
"""Reads the goals file, for the ranking and for loop-claude's premises: its ## Goals and ## Audience sections, each goal's number and mark, and what each goal weighs."""
|
||||
|
||||
import decimal
|
||||
import re
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""todo.md on disk: read it with the files ranking reads, at the paths the project's config names, then rank or check it, write it back, and print what ranking reports."""
|
||||
"""todo.md on disk: read it with the files ranking reads, at the paths the project's config names, then rank or check it, write it back, and give the lines ranking reports."""
|
||||
import pathlib
|
||||
|
||||
from failure import Failure
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Rank todo.md's items by the formula it states, weighing the goals as goals_file.py weighs them, and hold them to its bar; rank_todo.py --help states the rules.
|
||||
"""Rank todo.md's items by the formula it states, with the goal weights goals_file.py gives, and hold them to its bar; rank_todo.py --help states the rules.
|
||||
"""
|
||||
import ast
|
||||
import dataclasses
|
||||
|
||||
@@ -89,7 +89,7 @@ def write_cited(moves: Moves) -> str:
|
||||
# L, E and I are optional, since score_outcomes reads, out of git history, tables from before they replaced C; R too, since rank_todo.py writes it from them.
|
||||
SHAPE = Shape(("L", "E", "I", "R", "S"), (BLOCKED_BY, "L", "E", "I", "R", "Score"), ("L", "E", "I"), ("R",), MOVES, parse_moves, write_moves)
|
||||
# The shape from before MOVES replaced A, G and Goals, and L, E and I replaced C, which older todo.md files hold; one from before C joined lacks it.
|
||||
# It is live, not dead: rank_todo.py still ranks such a table, so no other project's commits stop before it reshapes, until `todo.md` item 156 drops that ranking once no project holds one. score_outcomes keeps reading old tables out of git history after that.
|
||||
# Live: rank_todo.py ranks a table in this shape, so a project that has not reshaped yet can still commit. `todo.md` item 156 drops that ranking once no project holds such a table; score_outcomes goes on reading old tables out of git history.
|
||||
OLD_SHAPE = Shape(("R", "S", "C", "A", "G"), (BLOCKED_BY, "C", "Score"), (), (), "Goals", parse_cited, write_cited)
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ CAP = 2
|
||||
# The release review's passes take more, since they may refactor much: `skills/larv-review/SKILL.md` → "Release review".
|
||||
RELEASE_REVIEW_CAP = 5
|
||||
CAPS = {"architecture": RELEASE_REVIEW_CAP, "principles": RELEASE_REVIEW_CAP}
|
||||
# How a round title is spelled, for every text that states it; ROUND and FINDINGS below read it.
|
||||
# A round title's spelling, for rule-hook's rule texts. ROUND and FINDINGS below parse a title spelled so.
|
||||
OPENING = "Answer <pass> round <n>:"
|
||||
COUNTS = "<k> 🔴, <m> 🟡 (<j> misread);"
|
||||
EXAMPLE = "Answer stability round 1: 1 🔴, 2 🟡 (1 misread); flag a deleted test"
|
||||
|
||||
Reference in New Issue
Block a user