Answer principles round 1: 0 🔴, 3 🟡 (0 misread); hand the home folder, the clock and the output to larv-review's commands from their wiring

This commit is contained in:
2026-11-13 03:04:44 +01:00
parent 87d5023773
commit e6da7b0b9c
22 changed files with 155 additions and 131 deletions
+5 -3
View File
@@ -1,14 +1,16 @@
import pathlib
from failure import Failure
from git_cli.git_repo import file_at, full_history, git
from review_rules.comprehension_history import HistoryChange
from project_config.main import project
from project_config.main import located
def history_changes(default: str) -> list[HistoryChange] | Failure:
def history_changes(default: str, home: pathlib.Path) -> list[HistoryChange] | Failure:
"""Each merged change on the default branch that touched the history, newest first. A Failure where the project's config puts the history outside the checkout, where no commit holds it."""
if partial := full_history():
return partial
config = project()
config = located(None, home)
if isinstance(config, Failure):
return config
history = config.tracked("comprehension-history")