Skip to content

Delete repetition detection outright (CL-6995) - #612

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-6995-delete-repetition-detection-v2
Aug 24, 2026
Merged

Delete repetition detection outright (CL-6995)#612
TheGreatAxios merged 1 commit into
mainfrom
cl-6995-delete-repetition-detection-v2

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Deletes src/subagent/repetition.ts and src/util/period-detection.ts outright (streamed-text loop detector, tool-fingerprint period/cycle thrash check).
  • Removes the director's turns-since-user-message backstop (TURNS_SINCE_USER_MESSAGE_BACKSTOP, MAX_LEAF_PROGRESS_BACKSTOP_RESETS) and the leaf no-progress (identical-tool-call) counter — the latter re-checked and still present on main, so removed here per scope.
  • Dead-by-consequence: the compaction summarizer no longer filters assistant turns for repetition before excerpting (always includes the snippet); the TUI stream-buffer throttle in turn-state.ts that only existed to pace the deleted character-loop check is gone. consecutiveMatchingCycles cross-cycle stall recovery is untouched (independent mechanism, out of scope).
  • Re-applied on top of CL-6946 part 2: delete prose-based sub-agent stop-reason matchers #610 (CL-6946 part 2)'s structured {report, stopReason?} shape rather than rebasing PR Delete repetition/thrash/backstop detection outright #609, since main had moved under it.

Transport/policy line kept

  • Provider stream error handling, connection failures, inference retry/backoff — untouched.
  • The turn-budget stop — untouched.
  • The director's soft tool-only check-in nudge (toolOnlyTurnNudgeAt) — a turn-count nudge, not repetition detection — untouched.

Test plan

  • bun run check (lint + typecheck + build + test) green — 5350 pass, 0 fail.
  • scripts/verify-corbits-only-scope.sh passes (no vendor/ changes).

@linear-code

linear-code Bot commented Aug 24, 2026

Copy link
Copy Markdown

CL-6995

@TheGreatAxios
TheGreatAxios enabled auto-merge (squash) August 24, 2026 08:50
Removes the streamed-text loop detector (repetition.ts + period-detection.ts),
the director's tool-fingerprint period/cycle thrash check and
turns-since-user-message backstop, and the leaf no-progress
(identical-tool-call) counter. Dead-by-consequence cleanup: the compaction
summarizer no longer filters assistant turns for repetition before
excerpting, and the TUI stream-buffer throttle that only existed to pace the
deleted character-loop check is gone (the independent cross-cycle
fingerprint stall recovery in turn-state.ts is untouched).

Kept: provider stream error handling, connection retry/backoff, the turn
budget stop, and the director's soft tool-only check-in nudge
(toolOnlyTurnNudgeAt) — a turn-count nudge, not repetition detection.
@TheGreatAxios
TheGreatAxios force-pushed the cl-6995-delete-repetition-detection-v2 branch from aa2dcd6 to 664438f Compare August 24, 2026 08:52
@TheGreatAxios
TheGreatAxios merged commit 70d497d into main Aug 24, 2026
5 checks passed
TheGreatAxios added a commit that referenced this pull request Aug 27, 2026
Removes the streamed-text loop detector (repetition.ts + period-detection.ts),
the director's tool-fingerprint period/cycle thrash check and
turns-since-user-message backstop, and the leaf no-progress
(identical-tool-call) counter. Dead-by-consequence cleanup: the compaction
summarizer no longer filters assistant turns for repetition before
excerpting, and the TUI stream-buffer throttle that only existed to pace the
deleted character-loop check is gone (the independent cross-cycle
fingerprint stall recovery in turn-state.ts is untouched).

Kept: provider stream error handling, connection retry/backoff, the turn
budget stop, and the director's soft tool-only check-in nudge
(toolOnlyTurnNudgeAt) — a turn-count nudge, not repetition detection.
TheGreatAxios added a commit that referenced this pull request Aug 27, 2026
Removes the streamed-text loop detector (repetition.ts + period-detection.ts),
the director's tool-fingerprint period/cycle thrash check and
turns-since-user-message backstop, and the leaf no-progress
(identical-tool-call) counter. Dead-by-consequence cleanup: the compaction
summarizer no longer filters assistant turns for repetition before
excerpting, and the TUI stream-buffer throttle that only existed to pace the
deleted character-loop check is gone (the independent cross-cycle
fingerprint stall recovery in turn-state.ts is untouched).

Kept: provider stream error handling, connection retry/backoff, the turn
budget stop, and the director's soft tool-only check-in nudge
(toolOnlyTurnNudgeAt) — a turn-count nudge, not repetition detection.
@TheGreatAxios
TheGreatAxios deleted the cl-6995-delete-repetition-detection-v2 branch August 28, 2026 00:09
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