Skip to content

refactor(hub): move the agent director out of the compaction module - #162

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-12125-move-the-agent-director-out-of-the-compaction-module
Nov 4, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-12125-move-the-agent-director-out-of-the-compaction-module

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Closes CL-12125

The agent director (retries, loop detection and the done gates) moves from workflows/compaction.ts to workflows/director.ts, and its tests from compaction.test.ts to director.test.ts. compaction.ts keeps the two compactors, trimHistory and dropDegenerateTurn, and exports the compactor names the director uses.

Behaviour is unchanged. Two moved expressions are rewritten without the nested ternary and the empty-string fallbacks: isDegenerate reads text and reasoning with filters, and the done gates test a shell command only when the call has one.

Verified with lint, format, typecheck, the unit tests (250 pass, director tests unchanged), pins and vendor checks, and bun run test:e2e (9 pass).

@TheGreatAxios
TheGreatAxios added this pull request to stack #165 November 4, 2026 20:25
@linear-code

linear-code Bot commented Nov 4, 2026

Copy link
Copy Markdown

CL-12125

@TheGreatAxios
TheGreatAxios marked this pull request as ready for review November 4, 2026 20:25
@corbits-triage

corbits-triage Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

Changed since the last verdict (Fail at 5f850be): 1 new commit.

@TheGreatAxios
TheGreatAxios force-pushed the cl-12125-move-the-agent-director-out-of-the-compaction-module branch from 5f850be to 8de4424 Compare November 4, 2026 20:30

@corbits-triage corbits-triage Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No defects reported.

@TheGreatAxios
TheGreatAxios added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit d55ef05 Nov 4, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant