Repository navigation
feat(platform): add a compact task run occupancy read - #4569
Closed
yannickmonney wants to merge 4 commits into
Closed
yannickmonney wants to merge 4 commits into
yannickmonney wants to merge 4 commits into
Conversation
Contributor
Author
|
The compact task occupancy read and its tests are included in #4565, merged as |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fleet occupancy checks currently retrieve the entire task description and review context for each worker. Add an optional
task_getview,view: "occupancy", that returns compact task identity, the newest agent run, an optional exactrequestedRunId, and the selected workflow state. The default full response keeps its existing fields and values.The compact path uses the same authenticated scope and project grants. Missing or inaccessible requested runs remain unavailable; malformed or failed reads remain unknown. It returns an observation interval, not a lease or permission to start work. Quarantined workflow state remains visible as a hold.
Validation: 143 focused domain/tool tests and 153 existing bridge/dispatch guards passed, plus scoped lint, formatting and manual-register checks. A synthetic large-context fixture fell from 33,995 to 552 UTF-8 bytes (98.4%); this is fixture evidence, not a universal response-size or latency guarantee. The authenticated Postgres integration cases and native read measurements are added to
checkAgentTaskReadTools; their hosted execution and all required exact-head checks remain pending.Independent source review accepted the 11-file patch. No scheduler, capacity policy, workflow wake logic, or Ops adoption changes are included.