Skip to content

Refactor app-agent lifecycle and package source management#2693

Merged
curtisman merged 7 commits into
microsoft:mainfrom
curtisman:refact
Jul 17, 2026
Merged

Refactor app-agent lifecycle and package source management#2693
curtisman merged 7 commits into
microsoft:mainfrom
curtisman:refact

Conversation

@curtisman

@curtisman curtisman commented Jul 17, 2026

Copy link
Copy Markdown
Member

Summary

  • replace the broad app-agent host mutation surface with a callback-scoped provider-set controller that serializes changes under the dispatcher command lock, rejects invalid/reused capabilities, and emits notifications from each run’s net effect
  • vend installed agents through a connected dynamic source with shared per-agent providers and coordinated cross-session install, update, and uninstall behavior, including late-join handling, bounded rollback, refcount verification, and version-scoped install-root cleanup
  • preserve per-session enablement settings when uninstall rolls back by finalizing config cleanup only for a net removal
  • gate update and uninstall commit on the durable agents.json write; a write failure now selects rollback and restores v1 before sessions resume
  • report package update/uninstall initiation and rollback outcomes, preserve update enablement settings, and group installed and available agent listings by configured source
  • update lifecycle, embedding-dispatcher, and default-agent-provider documentation for the new source/controller contracts

@curtisman curtisman changed the title Fix app-agent net-change notification and lockfile noise Refactor app-agent lifecycle and package source management Jul 17, 2026
@curtisman
curtisman requested a review from robgruen July 17, 2026 22:09
@curtisman
curtisman enabled auto-merge July 17, 2026 22:10
@curtisman
curtisman added this pull request to the merge queue Jul 17, 2026
Merged via the queue into microsoft:main with commit e1b240e Jul 17, 2026
26 checks passed
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.

2 participants