Answer stability round 1: 1 🔴, 6 🟡 (0 misread); say what a plan outside the checkout leaves undone in scoring-run-owed, the release standing and rank_todo.py
This commit is contained in:
+6
-3
@@ -4,8 +4,8 @@
|
||||
usage: rank_todo.py [--check] [todo.md]
|
||||
|
||||
Run inside a checkout. Reads four files at the paths the project's config names, which
|
||||
`project-config` prints: todo.md, its plan, or else the file given; the goals file; and
|
||||
docs/decisions.md and docs/comprehension-history.md where they exist.
|
||||
`project-config` prints: todo.md, its plan; the goals file; and docs/decisions.md and
|
||||
docs/comprehension-history.md where they exist. A file given must be that plan.
|
||||
Rewrites each item's Score from the formula and sorts the items by release; within a release,
|
||||
question rows come first, then security rows, then the rest, each group by score from highest,
|
||||
then by ID. Then it moves each blocker, an item another's Blocked by cell names, that ranks below
|
||||
@@ -83,7 +83,7 @@ A valid todo.md; ## Details and each item's detail are optional:
|
||||
release is cut. A release whose items all moved elsewhere without a line reads as finished.
|
||||
|
||||
Exit 1, saying why, on bad arguments, a checkout no config names or a config that cannot be read, a
|
||||
file that cannot be read or written, a todo.md, goals file or docs/decisions.md that breaks the
|
||||
file given that is not the config's plan, a file that cannot be read or written, a todo.md, goals file or docs/decisions.md that breaks the
|
||||
rules above, a scoring run on docs/comprehension-history.md's newest scored commit with no Mean row
|
||||
ending in its overall, an item that is not exempt scoring under the bar, or --check finding the file
|
||||
unranked.
|
||||
@@ -107,6 +107,9 @@ def main(argv: list[str]) -> int:
|
||||
if isinstance(config, Failure):
|
||||
return fail(config)
|
||||
check, todo = args[0], args[1] or config.paths["plan"]
|
||||
# The goals, decisions and history are this checkout's project's, so another project's plan would be ranked by them.
|
||||
if todo.resolve() != config.paths["plan"].resolve():
|
||||
return fail(Failure(f"rank_todo.py: {todo} is not the plan this checkout's config names, {config.paths['plan'].resolve()}; run rank_todo.py in the checkout of the project whose plan it is"))
|
||||
if check:
|
||||
failures = plan_file.check_failures(todo, config)
|
||||
for line in failures:
|
||||
|
||||
Reference in New Issue
Block a user