diff --git a/CLAUDE.md b/CLAUDE.md index ce3e71f6..cc6ded35 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -151,7 +151,7 @@ The rules every project follows, compose-not-entangle first: `~/.claude/principl ## Vocabulary - **chunk** — the unit of work, shipped as one PR; "Working loop" says what it holds. -- **cycle** — in `loop-claude`, a worker run and the judge's verdicts on it, with any interrupts and records answers in between, until the chunk closes or continues next cycle. +- **cycle** — in `loop-claude`, worker runs and the judge's verdicts on them, with any interrupts and records answers in between, until the chunk closes or continues next cycle. - **gate** — the merge gate: the checks a PR passes before it merges. - **interrupt** — `loop-claude` handing the terminal to the human, `claude --resume`, for a decision that is theirs. - **judge** — the headless claude that reads a worker's transcript each cycle and decides whether to interrupt and whether the chunk is finished. diff --git a/bin/test_loop_claude.py b/bin/test_loop_claude.py index 5830a512..5f5a3030 100644 --- a/bin/test_loop_claude.py +++ b/bin/test_loop_claude.py @@ -529,6 +529,12 @@ class LoopRuns(unittest.TestCase): self.assertEqual(reload.exec_if_edited(launcher, "stale", main.LoopRun(1, "/r", "do it"), fake.effects()), Stop(1, "could not reload loop-claude: No such file or directory; rerun loop-claude ")) +class HelpLimits(unittest.TestCase): + def test_help_states_the_limits_the_code_holds(self): + self.assertIn(f"last {judge.JUDGED_TRANSCRIPT_TAIL:,} characters", main.__doc__) + self.assertIn(f"up to {['one', 'two', 'three', 'four'][states.RECORDS_ANSWERS_PER_CYCLE - 1]}\ntimes a cycle", main.__doc__) + + class ExitContract(unittest.TestCase): def test_every_exit_1_stop_has_its_clause_in_help(self): read, git, premises_ = "a transcript cannot be read or archived", "git cannot start or finds no checkout", "README.md holds no premises"