mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-07-12 21:02:17 +02:00
refactor(x/core): decompose turn advance into §18 phase methods
No behavior change — all 67 turn tests pass untouched. The ~620-line advance method becomes an internal TurnAdvance class holding the per-invocation context, with one named method per spec phase (applyInput, closeInterrupted*, evaluatePermissions, classifyBatch, denyUnresolvedWithoutHuman, executeAllowedTools, suspendIfPending, completeIfFinished, failIfExhausted, runModelStep, cancel). The main loop now reads as a direct transcription of the design doc's §18 algorithm; TurnRuntime itself is reduced to construction and createTurn/getTurn/advanceTurn plumbing. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
cda17c2d40
commit
9e1d9b81ce
1 changed files with 763 additions and 581 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue