Files
Duc Nguyenandntduc bb7712a9ff fix(collaboration): harden delegated task isolation (#1486)
* feat(collaboration): isolate delegated artifacts and child runs

Isolate delegated inputs and outputs behind secure artifact exchange lifecycles. Scope Agent Link tasks by tenant and root agent, and enforce delegation spawn-tree boundaries. Add process-wide child-run admission and preserve logical media paths across native, MCP, and sandbox execution.

* fix(collaboration): harden delegated task isolation

Enforce tenant and root-agent task scope across migrations and stores. Add exactly-once async completion delivery, delegated sandbox boundaries, and confined artifact and media recovery across runtime surfaces.

* fix(collaboration): recover interrupted async tasks

* fix(collaboration): normalize persisted child-run status

---------

Co-authored-by: ntduc <ntduc@cpp.ai.vn>
2026-07-30 14:17:40 +07:00

66 lines
2.4 KiB
Go

package store
import "database/sql"
// Stores is the top-level container for all storage backends.
type Stores struct {
DB *sql.DB // underlying connection
Sessions SessionStore
Memory MemoryStore
Cron CronStore
Pairing PairingStore
Skills SkillStore
Agents AgentStore
Providers ProviderStore
Tracing TracingStore
RunTimeline RunTimelineStore
MCP MCPServerStore
MCPOAuthTokens MCPOAuthTokenStore
ChannelInstances ChannelInstanceStore
ConfigSecrets ConfigSecretsStore
AgentLinks AgentLinkStore
Teams TeamStore
BuiltinTools BuiltinToolStore
PendingMessages PendingMessageStore
ChannelMemory ChannelMemoryExtractionStore
KnowledgeGraph KnowledgeGraphStore
Contacts ContactStore
Activity ActivityStore
Snapshots SnapshotStore
UsageEvents UsageEventStore
BrowserCookies BrowserCookieStore
SecureCLI SecureCLIStore
SecureCLIGrants SecureCLIAgentGrantStore
APIKeys APIKeyStore
Heartbeats HeartbeatStore
ConfigPermissions ConfigPermissionStore
Tenants TenantStore
BuiltinToolTenantCfgs BuiltinToolTenantConfigStore
SkillTenantCfgs SkillTenantConfigStore
SkillEvolution SkillEvolutionStore
SystemConfigs SystemConfigStore
SubagentTasks SubagentTaskStore
SubagentTaskRecovery SubagentTaskRecoveryStore
Vault VaultStore
Episodic EpisodicStore
EvolutionMetrics EvolutionMetricsStore
EvolutionSuggestions EvolutionSuggestionStore
BitrixPortals BitrixPortalStore
// Hooks is hooks.HookStore — typed as any to avoid import cycle
// (hooks package imports store for context helpers).
// Callers: type-assert to hooks.HookStore before use.
Hooks any
Webhooks WebhookStore
WebhookCalls WebhookCallStore
// Workstations — Standard edition only (gated at router registration).
Workstations WorkstationStore
WorkstationLinks AgentWorkstationLinkStore
WorkstationPermissions WorkstationPermissionStore
WorkstationActivity WorkstationActivityStore
// UsageCaps is Standard/PostgreSQL only in the first budget-control rollout.
UsageCaps UsageCapStore
}