Answer prose round 1: 0 🔴, 9 🟡 (0 misread); name the five as project records, cut what CLAUDE.md already says, and reword the comments the round named
CI / tests (pull_request) Successful in 2m27s
CI / tests (pull_request) Successful in 2m27s
This commit was merged in pull request #530.
This commit is contained in:
@@ -109,7 +109,7 @@ def same_origin(clone: str, checkout: str) -> Failure | None:
|
||||
|
||||
def ready_release(clone: str, ref: str) -> Release | Failure:
|
||||
"""The next release, as chunk-preflight works it out, where it is ready to cut: it holds no item in todo.md, its release review has landed and changes are unreleased."""
|
||||
# This setup's own changelog, at its fixed path in the clone: --cut releases claude-config, which no project's config names here.
|
||||
# No project's config names the clone, so its changelog is read at the fixed path, on ref like the plan.
|
||||
plan = default_plan(clone, ref, "todo.md", FileStore(pathlib.Path(clone, "CHANGELOG.md"), "CHANGELOG.md"))
|
||||
found = items(plan.todo) if isinstance(plan.todo, str) else plan.todo
|
||||
if isinstance(found, Failure):
|
||||
|
||||
@@ -19,7 +19,7 @@ CONSEQUENCE = "the judge cannot read the records"
|
||||
|
||||
|
||||
def read_records(root: str, home: pathlib.Path, claude_dir: pathlib.Path) -> str | Failure:
|
||||
"""The project's records, then the human's rules for every project, CLAUDE.md first, each headed by its name; one that does not exist, or is empty, is left out.
|
||||
"""The project's `AGENTS.md` and decision log, then the human's rules for every project, CLAUDE.md first, each headed by its name; one that does not exist, or is empty, is left out.
|
||||
|
||||
`AGENTS.md` is read where the config under home of root's project puts it, and the decision log from the store that config names. Each is headed by its name in RECORD_FILES wherever it is kept."""
|
||||
config = located(root, home)
|
||||
|
||||
@@ -66,7 +66,7 @@ def main(argv: list[str]) -> int:
|
||||
|
||||
|
||||
def read_history(given: pathlib.Path | None) -> tuple[str, str, str] | Failure:
|
||||
"""The checkout that holds the history, what a message calls the history and its text. The history is the file given, else the one in the store the project's config names."""
|
||||
"""The checkout that holds the history, the history's label for a message, and the history's text. The history is the file given, else the one in the store the project's config names."""
|
||||
if given and not given.parent.is_dir():
|
||||
return Failure(f"could not read {given}: no folder {given.parent}")
|
||||
found = git("rev-parse", "--show-toplevel", cwd=str(given.parent) if given else None)
|
||||
|
||||
@@ -25,7 +25,7 @@ from failure import Failure
|
||||
from record_store.stores import FileStore, local_file, RECORDS, RecordStore, store, stored
|
||||
from project_config.main import located
|
||||
|
||||
# Three readers, seated as the human and as the agents that follow the rules, picked the spelling from five candidates: git's verbs, such as checkout and commit, or pull and push, read as acting on the repo.
|
||||
# Not git's verbs, such as checkout and commit: those read as acting on the repo.
|
||||
COMMANDS = ("open", "save")
|
||||
# Where the copy of a record kept outside files goes, under the user's home, in a folder per project.
|
||||
COPIES = ".local/state/project-record"
|
||||
@@ -49,7 +49,7 @@ def main(argv: list[str]) -> int:
|
||||
|
||||
|
||||
def act(command: str, record: RecordStore, copy: pathlib.Path) -> str | Failure:
|
||||
"""What command, one of COMMANDS, prints for record, whose copy goes at copy where it needs one."""
|
||||
"""What command, one of COMMANDS, prints for record. copy is where a record kept outside files gets its file."""
|
||||
if command == "open":
|
||||
opened = local_file(record, copy)
|
||||
return opened if isinstance(opened, Failure) else str(opened)
|
||||
|
||||
@@ -74,7 +74,7 @@ def update(record: RecordStore, archive: pathlib.Path, checkout: Checkout, home:
|
||||
text = record.read()
|
||||
if isinstance(text, Failure):
|
||||
return text
|
||||
# A record not yet kept opens with its title.
|
||||
# An empty record starts with its title.
|
||||
text = text or "# Reading cost\n"
|
||||
figures = new_figures(text, archive, checkout, home)
|
||||
if isinstance(figures, Failure):
|
||||
|
||||
@@ -39,7 +39,7 @@ def check_failures(todo: pathlib.Path, config: ProjectConfig) -> list[str]:
|
||||
|
||||
|
||||
def read_all(todo: pathlib.Path, config: ProjectConfig) -> tuple[str, str, str, str] | Failure:
|
||||
"""todo, the plan, then the goals file, the decision log and the comprehension history, each from the store config names. The last two are empty when missing; a missing plan or goals file is a Failure."""
|
||||
"""todo, the plan, then the goals file config names, and the decision log and the comprehension history, each from the store config names for it. The last two are empty when missing; a missing plan or goals file is a Failure."""
|
||||
plan = read(todo, "every project keeps a todo.md, and rank_todo.py --help shows one")
|
||||
if isinstance(plan, Failure):
|
||||
return plan
|
||||
|
||||
Reference in New Issue
Block a user