fix(KB-148): fix triage concurrency and scheduler double-counting

- Add re-entrance guard to triage poll() to prevent overlapping poll cycles
- Move status update to 'specifying' inside semaphore callback so queued tasks don't appear active
- Fix scheduler double-counting specifying tasks when semaphore is present
- Add tests for poll re-entrance guard, semaphore-aware status transitions, and scheduler slot counting
- Add changeset for patch release
This commit is contained in:
Dustin Byrne
2026-03-28 01:24:02 -04:00
parent 90764b9657
commit 72a8953e4e
5 changed files with 246 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
---
"@dustinbyrne/kb": patch
---
Fix specifying agents not respecting maxConcurrent concurrency limit