Skip to content

Read capability files with bounded concurrency - #618

Merged
SaladDay merged 2 commits into
aos/cutoverfrom
aos/read-capability-files-with-bounded-concurrency
Oct 9, 2026
Merged

SaladDay merged 2 commits into
aos/cutoverfrom
aos/read-capability-files-with-bounded-concurrency

Conversation

@SaladDay

@SaladDay SaladDay commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Environment capability snapshots read each file sequentially, adding avoidable File service round trips to initialization. Enumerate and validate the tree serially, then read at most four retained files concurrently within the service's declared handle limit while preserving output order, total size limits and all published integrity readback. Join all reads before reference cleanup; use bounded handle release after cancellation and fail the attachment on an unconfirmed release.

The original composition fixture retains all 393 RPCs. Fixed 20/100 ms handler delays decrease snapshot time from 7.995/39.481 seconds to 5.956/29.254 seconds. Zero-delay samples overlap, and this does not establish live micro qualification.

Validation: real File-service concurrency/error/cancellation/tampering tests, race ×50, agenthost and capability packages (87 passed, 6 explicit native prerequisite skips), daemon build, vet and naming/docs/CI checks. Independent review found one low-limit service regression, fixed with old-fails/new-passes coverage for declared limits of 1–3. Coordinator reviewed the full follow-up; real integrated lifecycle and strong MCP cancellation acceptance remain outstanding.

@SaladDay
SaladDay marked this pull request as ready for review October 9, 2026 11:44
@SaladDay
SaladDay merged commit e63a793 into aos/cutover Oct 9, 2026
20 checks passed
@SaladDay
SaladDay deleted the aos/read-capability-files-with-bounded-concurrency branch October 9, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant