Declare LoopState beside decode_state, as the state a reload carries #130
@@ -41,14 +41,7 @@ from loop_claude.outcome import Stop
|
||||
from loop_claude.project.checkout import checkout_root, project_name
|
||||
from loop_claude.project.models import project_models
|
||||
from loop_claude.project.premises import read_premises
|
||||
from loop_claude.reload import RELOAD_FLAG, decode_state, exec_if_edited, fingerprint
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class LoopState:
|
||||
cycle_number: int
|
||||
root: str
|
||||
task: str
|
||||
from loop_claude.reload import RELOAD_FLAG, LoopState, decode_state, exec_if_edited, fingerprint
|
||||
|
||||
|
||||
def main(argv, env, paths, launcher, cwd):
|
||||
|
||||
@@ -9,6 +9,14 @@ import typing
|
||||
RELOAD_FLAG = "--reloaded"
|
||||
|
||||
|
||||
# A field change stops a running loop at its next reload: the new script rejects the old fields.
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class LoopState:
|
||||
cycle_number: int
|
||||
root: str
|
||||
task: str
|
||||
|
||||
|
||||
def decode_state(handed, kind):
|
||||
try:
|
||||
fields = json.loads(handed)
|
||||
|
||||
@@ -8,7 +8,6 @@ The rebuild lifts every dimension, one chunk per item, until the last item opens
|
||||
|
||||
The places the panel on `rebuild` at 2f9ab2f named (`docs/decisions.md`), capping dimension first:
|
||||
|
||||
- **Declare `LoopState` beside `decode_state`, as the state a reload carries.** All four seats held `run_loop`, `loop_state` and `exec_if_edited` open together; one found a field change ends a running loop with nothing at the dataclass saying so.
|
||||
- **Hand `run_cycle` and `judge_through_interrupts` one cycle context.** Two seats: eight positional arguments.
|
||||
- **Build `premises.sections` without filling `found` through an alias.** Two seats traced `current` by hand.
|
||||
- **Route a fix through larv-review's Re-entry in one read.** All four seats reread "Re-entry" and "Round cap" against the pass table, reaching a round through `CLAUDE.md` → "Vocabulary" and `review-findings.md` → "Rounds".
|
||||
|
||||
Reference in New Issue
Block a user