#7778 hierarchical admission cleanup plan
- Lock the existing single-key semaphore contract and the new atomic multi-key contract with focused tests: no partial reservations, FIFO queueing, abort, timeout, queue-full, idempotent release, stats, and cleanup.
- Generalize the existing account semaphore in place. Keep
acquire()as a compatibility wrapper aroundacquireMany(); do not add a second scheduler or a dependency. - Replace the account-only acquisition in
chatCorewith one cumulative global/provider/account acquisition immediately beforewithRateLimit. Reacquire the whole set whenever account rotation changes the connection, and retain the release through streaming completion. - Extend the existing resilience settings pipeline (types, defaults, normalization, schema, API response, UI, and translations) with the global and provider caps. Relabel the old Bottleneck concurrency control as connection/quota-scope concurrency so its real scope is explicit.
- Run focused tests, lint, typecheck, static checks, and the full test suite; document the behavioral change in the changelog.
Behavior intentionally preserved: zero/null concurrency bypasses a gate,
account-only callers keep using acquire(), blocked-account controls retain
their key format and API, and provider rate-limit queue behavior remains
unchanged.
HagiCode
HagiCode is an agentic coding workspace. Rich, convenient UI interactions make planning, agent execution, and project work approachable and easy to navigate, creating an engaging development experience.
Explore an engaging development experience through rich, convenient UI interactions.
- SmartOpenSpec workflows turn intent into an executable path, from proposal to design, tasks, and a shipped change.
- EfficientMulti-agent execution keeps research, implementation, and review moving in parallel, across several repositories and the Agent CLIs you already use.
- InterestingRich, convenient UI interactions make planning, agent execution, and project work approachable and easy to navigate.
Download for Windows
Share HagiCode
Turn ideas into shipped software.
HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.
- Smart
- OpenSpec workflows turn intent into a path from proposal to shipped change.
- Efficient
- Multi-agent execution runs research, build, and review in parallel.
- Fun
- Rich UI interactions make planning, agent work, and projects easier to follow.
© 2026 HagiCode | Powered By hagilight-starlight@0.21.0 | Branch: main | Commit: de60bcd | Built:

