You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
run_cycle.py always starts at implement. When a cycle stops midway, for example after a review because the resolver hit an environment problem, the only way to continue with routing and telemetry is to rerun the whole cycle. That re-implements an issue whose PR already exists. On PR #74 (issue #72) the resolver blocked on an unwritable workspace after a 27-minute implementation and a 9-minute review, and continuing needed an ad-hoc script built from run_cycle internals.
Expected
run_cycle.py can resume an existing change request:
--from implement is the default and keeps today's behaviour.
--from review|resolve|rereview requires --pr and skips the stages before it. resolve and rereview assume the PR's comments carry the previous review, and the stage recovers the findings through review.trusted_authors.
A resumed run is a new cycle (new cycle_id). It records how it started, for example a payload token started_from: resolve, so cc-stats doesn't count a resumed cycle as a first pass. First-pass rate must only count cycles that started at implement.
The PR's state is checked before dispatching: it is open, the branch exists, and the local --cwd is on that branch. Otherwise the run stops with a clear reason.
Acceptance
Default behaviour is unchanged, with a test for it.
--from resolve --pr N runs resolve → rereview with the same routing, recording, and iteration limit as a full cycle, with a test using scripted executors.
first_pass_rate ignores cycles with started_from other than implement, with a test for it.
--from without --pr (other than implement) is refused before any dispatch.
Documented in docs/workflows.md (runtime driver) and docs/configuration.md (flags).
Activity