[claude] feat: enforce 3-issue cap on Kimi delegation (#1304) #1310

Merged
claude merged 1 commits from claude/issue-1304 into main 2026-03-24 02:00:36 +00:00

1 Commits

Author SHA1 Message Date
Alexander Whitestone
b90728c83a feat: enforce 3-issue cap on Kimi delegation to prevent queue pollution
Some checks failed
Tests / lint (pull_request) Failing after 35s
Tests / test (pull_request) Has been skipped
Add KIMI_MAX_ACTIVE_ISSUES = 3 constant and a _count_active_kimi_issues()
helper that queries the Gitea API for open kimi-ready issues. Before
creating a new delegation issue, create_kimi_research_issue() now checks
the active count and returns a descriptive error if the cap is reached.

Also adds 13 new unit tests covering the cap constant, the count helper,
and cap enforcement (at/above/below the threshold).

Fixes #1304
2026-03-23 21:59:42 -04:00