diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a129bc8..ad2f91ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,4 +20,4 @@ - `CLAUDE.md`'s negation rule opens with its scope: prose describing the code as it stands. - `larv-review`'s comprehension floor has its own heading under the architecture pass; why a project under it is fixed at the capping dimension is a decision in `docs/decisions.md`. - `review-protocol.md` says only what a reviewer records; the decision log's home and shape stay under `CLAUDE.md`. -- `loop-claude`'s no-premises exit names what is wrong: `README.md` unreadable, a `## Goals` or `## Audience` heading missing or repeated, or nothing under one. +- `loop-claude`'s no-premises exit names what is wrong: `README.md` the OS cannot open, a `## Goals` or `## Audience` heading missing or repeated, or nothing under one. diff --git a/bin/loop-claude b/bin/loop-claude index ca737123..6e371597 100755 --- a/bin/loop-claude +++ b/bin/loop-claude @@ -106,7 +106,7 @@ def read_premises(): if not bodies: sys.exit(f"README.md has no ## {name} heading - no premises.") if len(bodies) > 1: - sys.exit(f"README.md has ## {name} twice - no premises.") + sys.exit(f"README.md has ## {name} more than once - no premises.") if not bodies[0]: sys.exit(f"README.md has nothing under ## {name} - no premises.") return f"## Goals\n{found['Goals'][0]}\n\n## Audience\n{found['Audience'][0]}" diff --git a/bin/test_loop_claude.py b/bin/test_loop_claude.py index e2e0453d..030010cd 100644 --- a/bin/test_loop_claude.py +++ b/bin/test_loop_claude.py @@ -45,7 +45,7 @@ class ReadPremises(unittest.TestCase): "# T\n## Goals\n\n## Audience\nme\n": "nothing under ## Goals", "# T\n## Goals\n1. g\n": "no ## Audience heading", "# T\n## Goals\n1. g\n## Audience\n": "nothing under ## Audience", - "# T\n## Goals\n1. g\n## Audience\nme\n## Goals\n": "## Goals twice", + "# T\n## Goals\n1. g\n## Audience\nme\n## Goals\n": "## Goals more than once", } with tempfile.TemporaryDirectory() as root, contextlib.chdir(root): self.assertIn(f"README.md in {os.getcwd()}: No such file or directory", self.exit_message())