Read the plan and the records where the config puts them in chunk-preflight and larv-review

This commit is contained in:
2026-11-13 00:42:17 +01:00
parent 0a47b55c93
commit 4f5a7aa411
14 changed files with 201 additions and 96 deletions
+5
View File
@@ -58,6 +58,11 @@ def located(directory: str | None, home: pathlib.Path) -> ProjectConfig | Failur
return load(pathlib.Path(lines[0]), pathlib.Path(lines[1]).parent, home)
def project() -> ProjectConfig | Failure:
"""The config of the project whose checkout holds the current directory, under the user's home."""
return located(None, pathlib.Path.home())
def goals_file(directory: str, home: pathlib.Path) -> pathlib.Path | Failure:
"""The file holding the premises, `## Goals` and `## Audience`, of the project whose checkout holds directory, as its config under home names it."""
config = located(directory, home)