add conservative quota availability filtering

This commit is contained in:
kami
2026-07-26 20:31:03 +04:00
parent ae4d3a57bc
commit f818003ad5
3 changed files with 54 additions and 0 deletions
+2
View File
@@ -63,6 +63,8 @@ The coordinator now persists active task→herdr session mappings in an atomic r
Provider supervision/reflection is now wired: Gitea webhook and polling use append-first task reflection, JSONL and Gitea loops restart with bounded backoff, and `/v1/providers/health` exposes running/error state. Provider lifecycle cancellation remains tied to process shutdown until the server gains a root cancellation context.
Quota reporting now has strict payload validation, and `router.QuotaAvailability` implements rolling-window conservative headroom filtering: a harness is considered full at 80% of its configured limit. Standup event payloads also require an items field; scheduled advisory production and approval application remain open.
Recommended order:
1. Add the orchestration coordinator: lease → worktree → harness session → bootstrap → lifecycle events.