Read the records at their configured paths in the review header, replay, chunk-pr, score-outcomes, reading-cost and metric-bench
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from failure import Failure
|
||||
from git_cli.git_repo import file_at, full_history, git
|
||||
from project_config.main import project
|
||||
from review_rules.comprehension_history import HistoryChange
|
||||
from project_config.main import project
|
||||
|
||||
|
||||
def history_changes(default: str) -> list[HistoryChange] | Failure:
|
||||
|
||||
@@ -6,12 +6,12 @@ from larv_review.agreement import agreement_report
|
||||
from review_rules.comprehension_history import appended, DIMENSIONS, FLOOR, heading, Heading, latest_places, recorded, ruling_entry, scoring_entry, ScoringRun, vote_text
|
||||
from larv_review.plan import checkout_plan, plan_reasons
|
||||
from git_cli.git_repo import commit_exists
|
||||
from project_config.main import project
|
||||
from larv_review.ruling import counted, overall, ruling, split, surplus, votes
|
||||
from failure import Failure
|
||||
from larv_review.seats import FIRST_SEATS, scores, seats_file, SeatsFile
|
||||
from larv_review.scoring import floor_step, means, under_floor
|
||||
from release_plan import plan_file
|
||||
from project_config.main import project
|
||||
from larv_review.scoring_setup import removed_setup
|
||||
from records.file_writes import replace_file
|
||||
|
||||
|
||||
@@ -2,11 +2,11 @@ import pathlib
|
||||
import sys
|
||||
|
||||
from larv_review.plan import EMPTIED_WORDS, plan_reasons
|
||||
from project_config.main import project
|
||||
from review_rules.comprehension_history import entries
|
||||
from failure import Failure
|
||||
from git_cli.git_repo import file_at, git
|
||||
from release_plan.todo_table import items, NoItemsTable
|
||||
from project_config.main import project
|
||||
|
||||
|
||||
def owed_scoring_run(default: str) -> Failure | None:
|
||||
|
||||
@@ -2,10 +2,10 @@ import pathlib
|
||||
|
||||
from release_plan.release_standing import Cut, default_plan, held_at, LastCut, next_release, Unknown
|
||||
from failure import Failure
|
||||
from project_config.main import project
|
||||
from larv_review.scoring import is_floor_item
|
||||
from release_plan.todo_table import Item, items, NoItemsTable, renames
|
||||
from release_plan.ranking import OPTED_OUT
|
||||
from project_config.main import project
|
||||
from release_plan.release import Release, version
|
||||
from larv_review.unmeasured import unmeasured_cut
|
||||
|
||||
|
||||
@@ -33,6 +33,9 @@ class Launch:
|
||||
principles: pathlib.Path
|
||||
goals: pathlib.Path
|
||||
bare: bool
|
||||
# The project's `AGENTS.md` and its decision log, where its config puts them.
|
||||
rules: pathlib.Path
|
||||
decisions: pathlib.Path
|
||||
|
||||
def asked(self) -> pathlib.Path:
|
||||
"""The round's report, which asks for the rerun where there is one."""
|
||||
@@ -51,7 +54,7 @@ class Launch:
|
||||
f"Technical principles: {self.principles}",
|
||||
f"Goals and audience: {self.goals}",
|
||||
*([f"Places: {self.folder / 'places.md'}"] if self.pass_ in TAKE_PLACES else []),
|
||||
*([principles] if self.bare and (principles := principles_line(self.worktree)) else []),
|
||||
*([principles] if self.bare and (principles := principles_line(self.rules, self.decisions)) else []),
|
||||
])
|
||||
|
||||
|
||||
@@ -86,7 +89,7 @@ def reviewer_header(default: str, pass_: str, rerun: bool) -> Failure | None:
|
||||
# A typo in the config would otherwise hand every reviewer an empty folder, and the review would run with no principles.
|
||||
if not principles.is_dir() or not any(principles.iterdir()):
|
||||
return Failure(f"{principles} is not a folder with a file in it; {config.folder / 'config.toml'} sets it as `principles`")
|
||||
launch = Launch(pass_, round_, rerun, pull_named(worktree, branch), worktree, branch, base, default, folder, folder / f"branch-{head}.diff", principles, config.paths["goals-and-audience"], starts_bare(next((agent for name, agent in REVIEWERS.items() if name == pass_), ""), pathlib.Path.home()))
|
||||
launch = Launch(pass_, round_, rerun, pull_named(worktree, branch), worktree, branch, base, default, folder, folder / f"branch-{head}.diff", principles, config.paths["goals-and-audience"], starts_bare(next((agent for name, agent in REVIEWERS.items() if name == pass_), ""), pathlib.Path.home()), config.paths["working-rules"], config.paths["decisions"])
|
||||
if rerun and not launch.asked().exists():
|
||||
return Failure(f"no report asked for a rerun of {pass_}'s round {round_}: {launch.asked()} is missing; relaunch before you commit the round's answers")
|
||||
written = write_inputs(launch, base)
|
||||
|
||||
@@ -9,8 +9,8 @@ from failure import Failure
|
||||
from records.markdown_text import FENCE, listed, section
|
||||
from git_cli.git_repo import git
|
||||
from project_config.main import located
|
||||
from project_config.settings import ProjectConfig
|
||||
from review_rules.review_folder import made_review_folder, review_folder
|
||||
from project_config.settings import ProjectConfig
|
||||
|
||||
CLAUDE_MD = "CLAUDE.md"
|
||||
PANEL = pathlib.Path(__file__).resolve().parents[2] / "skills" / "comprehension-panel"
|
||||
|
||||
@@ -9,10 +9,10 @@ import unittest
|
||||
|
||||
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
|
||||
|
||||
from project_config.test_project_config import write_config
|
||||
from larv_review.scoring_setup import bullets, CLAUDE_MD, file_globs, preloaded_files, prepare_scoring, project_values, removed_setup, score_bullets
|
||||
from failure import Failure
|
||||
from test_env import isolated_env
|
||||
from project_config.test_project_config import write_config
|
||||
|
||||
TOOL = pathlib.Path(__file__).resolve().parents[1] / "larv-review"
|
||||
SKILL = pathlib.Path(__file__).resolve().parents[2] / "skills" / "comprehension-panel" / "SKILL.md"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import datetime
|
||||
|
||||
from project_config.settings import Place
|
||||
from release_plan.release_standing import held_at
|
||||
from review_rules.comprehension_history import entries
|
||||
from failure import Failure
|
||||
from git_cli.git_repo import git
|
||||
from release_plan.release_standing import held_at
|
||||
from project_config.settings import Place
|
||||
|
||||
|
||||
def unmeasured_cut(default: str, history: Place, checkout: str) -> str | None | Failure:
|
||||
|
||||
Reference in New Issue
Block a user