Skip to content

fix(simplify-code): cap outer cleanup iterations - #40

Merged
adamwhp merged 1 commit into
mainfrom
adamwhp/cap-simplification-iterations
Oct 8, 2026
Merged

adamwhp merged 1 commit into
mainfrom
adamwhp/cap-simplification-iterations

Conversation

@adamwhp

@adamwhp adamwhp commented Oct 8, 2026

Copy link
Copy Markdown
Member

Simplification runs can continue for hours as cleanup reviews find increasingly minor improvements. Default to 10 outer iterations, allow caller overrides, and retain the earlier finish after three consecutive clean reviews.

Persist the total iteration count separately from the clean-review streak across changes and resumption. At the limit, finish the current implementation and verification, then report Iteration limit reached with remaining recommendations and saturation unproven. Update the running report and recovery guidance to preserve that state. Correctness, behaviour-preservation and verification blockers still prevent completion.

@adamwhp
adamwhp merged commit 93f098a into main Oct 8, 2026
1 check passed
@adamwhp
adamwhp deleted the adamwhp/cap-simplification-iterations branch October 8, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant