Answer the fifth round's nits: cycle holds worker runs, a test ties --help's limits to the constants
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 <task>"))
|
||||
|
||||
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user