You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cut the Agent API, subagents, compression, and reusable role runtimes over to the transactional profile architecture. Remove their independent profile stores/populators/activation paths and prove multiple concurrent execution owners are isolated without ambient runtime identity.
This task does not implement interactive OAuth coordination (#2562) or utility-model generation (#2629).
saved/v2-document/unconfigured initial state for createAgent/fromConfig/preflight;
no runtime/provider/settings/credential/store escape hatches.
ProfilesControl, legacy activation APIs, and providerActivationExecutor are removed in a versioned change or retained only as thin adapters with no directory scan, alternate schema, private store, direct mutation, profile-as-CLI-overrides, or ambient access. Failed initial profile construction publishes no partial agent.
Subagents
Every launch creates an independent controller/runtime/session; definitions are templates, not live shared active state.
Pass qualified profile ID or explicit captured v2 document across launch boundaries, never foreground current state or runtime ID.
Apply role capability ceilings: compression can deny tools/shell even if referenced profile requests them.
Establish narrow construction/runtime capability for future search/summarization roles without exposing interactive profile CRUD or adding role-specific fields to base profile schema.
Concurrency and routing
Explicit Agent/Turn/ProviderCall/ToolInvocation contexts route all calls/events/messages.
AsyncLocalStorage may carry tracing/request metadata only, never active execution identity.
Multiple simultaneous subagents/roles/foreground agents may use the same named definition without sharing mutable state.
Shared repositories/credential stores/catalogs/transports are borrowed through keyed ports; runtime disposal never closes shared infrastructure.
Subagent auth challenges route to the supervising host or fail fast noninteractively; no hidden prompt/instructions occur.
Compression standard/LB/parent-overlay/reference capture/role-ceiling behavior runs through the shared resolver/factory with no late repository mutation.
Role runtimes are parent-revision children with deterministic cleanup and no shared-infrastructure disposal.
subagentSettingsPopulation, profile-derived CLI overrides, compression population/auth lists, applyLoadedProfile, importFromProfile, and independent ProfilesControl mutation have no production consumers.
Agent API, createAgent, subagent concurrency, compression standard/LB, role lifecycle, auth escalation boundaries, and noninteractive behavioral tests pass with full test/lint/typecheck/format/build verification.
Parent: #2635
Objective
Cut the Agent API, subagents, compression, and reusable role runtimes over to the transactional profile architecture. Remove their independent profile stores/populators/activation paths and prove multiple concurrent execution owners are isolated without ambient runtime identity.
This task does not implement interactive OAuth coordination (#2562) or utility-model generation (#2629).
Scope
Agent API
Expose narrow public capabilities:
ProfileCommandprotocol;createAgent/fromConfig/preflight;ProfilesControl, legacy activation APIs, andproviderActivationExecutorare removed in a versioned change or retained only as thin adapters with no directory scan, alternate schema, private store, direct mutation, profile-as-CLI-overrides, or ambient access. Failed initial profile construction publishes no partial agent.Subagents
subagentSettingsPopulation,buildActivationCliOverrides, LBrunWithRuntimeScopeprofile pinning, and parallel auth/keyfile population.Compression and reusable roles
CompressionProfileResolver,CompressionLoadBalancingProviderpopulation/auth/LB duplication,ProfileManager.applyLoadedProfile, andSettingsService.importFromProfilewith shared graph resolution/runtime construction.Concurrency and routing
Coordination / non-overlap
Acceptance criteria
subagentSettingsPopulation, profile-derived CLI overrides, compression population/auth lists,applyLoadedProfile,importFromProfile, and independent ProfilesControl mutation have no production consumers.