Documentation
¶
Overview ¶
Package daemon wires the Compozy runtime packages into a single long-lived process.
Index ¶
- Constants
- Variables
- func GracefulShutdownTimeout(cfg *compozyconfig.Config) time.Duration
- func RemoveInfo(path string) error
- func RunRelaunchHelper(ctx context.Context, cfg *RelaunchHelperConfig) error
- func WriteInfo(path string, info Info) (returnErr error)
- type ClarifyKeepalive
- type ClarifyPingParams
- type ComposedAssembler
- func (a *ComposedAssembler) Assemble(ctx context.Context, agent compozyconfig.AgentDef, ...) (string, error)
- func (a *ComposedAssembler) AssembleStartup(ctx context.Context, startup session.StartupPromptContext, ...) (string, error)
- func (a *ComposedAssembler) AssembleStartupWithManifest(ctx context.Context, startup session.StartupPromptContext, ...) (string, acp.StartupManifest, error)
- type ComposedAssemblerOption
- func WithAppendPromptProviders(providers ...session.PromptProvider) ComposedAssemblerOption
- func WithPrependPromptProviders(providers ...session.PromptProvider) ComposedAssemblerOption
- func WithPromptSectionDescriptors(descriptors ...PromptSectionDescriptor) ComposedAssemblerOption
- func WithSectionSelector(selector *SectionSelector) ComposedAssemblerOption
- type ConfigLoader
- type CoordinatorRoleResolver
- type Daemon
- func (d *Daemon) Boundaries(context.Context) error
- func (d *Daemon) Drain(ctx context.Context) error
- func (d *Daemon) DrainState() DrainState
- func (d *Daemon) DrainStatus(ctx context.Context) (contract.DrainStatusResponse, error)
- func (d *Daemon) GetRestartOperation(_ context.Context, operationID string) (RestartOperation, error)
- func (d *Daemon) IsDraining() bool
- func (d *Daemon) RequestRestart(ctx context.Context) (RestartOperation, error)
- func (d *Daemon) Run(ctx context.Context) error
- func (d *Daemon) Shutdown(ctx context.Context) error
- func (d *Daemon) SubagentService() session.SubagentService
- func (d *Daemon) Undrain(ctx context.Context) error
- type DetachedRunMetadata
- type DetachedRunMode
- type DrainState
- type GatewayTierServerFactory
- type HarnessAugmenter
- type HarnessContextResolver
- func (r *HarnessContextResolver) Resolve(input HarnessResolutionInput) (ResolvedHarnessContext, error)
- func (r *HarnessContextResolver) ResolvePrompt(info *session.Info, source session.TurnSource, meta acp.PromptMeta) (ResolvedHarnessContext, error)
- func (r *HarnessContextResolver) ResolveStartup(startup session.StartupPromptContext) (ResolvedHarnessContext, error)
- type HarnessContextResolverOption
- type HarnessPromptSection
- type HarnessResolutionInput
- type HarnessRuntimeSignals
- type HarnessSessionContext
- type HarnessSessionInput
- type HarnessTurnContext
- type HarnessTurnRequest
- type Info
- type Lock
- type Observer
- type Option
- func WithBoundaryVerification(enabled bool) Option
- func WithCompozyExecutableResolver(resolver func() (string, error)) Option
- func WithConfig(cfg *compozyconfig.Config) Option
- func WithConfigLoader(loader ConfigLoader) Option
- func WithGatewayProviderEffects(effects gateway.EffectDriver) Option
- func WithGatewayTierServerFactory(factory GatewayTierServerFactory) Option
- func WithHTTPServerFactory(factory ServerFactory) Option
- func WithHomePaths(homePaths compozyconfig.HomePaths) Option
- func WithLogger(logger *slog.Logger) Option
- func WithNow(now func() time.Time) Option
- func WithSignalBridge(ch <-chan os.Signal) Option
- func WithUDSServerFactory(factory ServerFactory) Option
- type PromptSectionBudgetBehavior
- type PromptSectionDescriptor
- type PromptSectionPosition
- type ReentryMode
- type Registry
- type RelaunchHelperConfig
- type ResolutionSurface
- type ResolvedHarnessContext
- type ResolvedHarnessPolicy
- type ResolvedRole
- type RestartOperation
- type RestartStatus
- type RoleResolutionError
- type RoleResolver
- type RuntimeDeps
- type SectionPredicate
- type SectionSelector
- type Server
- type ServerFactory
- type SessionClass
- type SessionManager
- type SessionManagerDeps
- type SessionPolicy
- type SessionRuntimeMode
- type SessionRuntimePolicy
- type SkillInjectionFilter
- type StartupSectionPredicate
- type SyntheticTurnMetadata
- type TurnOrigin
- type UpdateLock
- type UpdateLockOwner
Constants ¶
const ( DrainStateActive = contract.DrainStateActive DrainStateDraining = contract.DrainStateDraining )
const (
// RestartOperationEnvKey carries the restart operation id from the helper to the replacement daemon.
RestartOperationEnvKey = "COMPOZY_INTERNAL_RESTART_OPERATION_ID"
)
Variables ¶
var ( // ErrAlreadyRunning reports that another daemon process currently owns the singleton lock. ErrAlreadyRunning = errors.New("daemon: already running") )
var ( // ErrRestartOperationNotFound reports a missing persisted restart operation. ErrRestartOperationNotFound = errors.New("daemon: restart operation not found") )
var ErrRuntimeMutationInProgress = errors.New("daemon: runtime mutation in progress")
ErrRuntimeMutationInProgress reports that another process owns update.lock.
Functions ¶
func GracefulShutdownTimeout ¶
func GracefulShutdownTimeout(cfg *compozyconfig.Config) time.Duration
GracefulShutdownTimeout returns the daemon's complete shutdown budget for a config.
func RunRelaunchHelper ¶
func RunRelaunchHelper(ctx context.Context, cfg *RelaunchHelperConfig) error
RunRelaunchHelper runs the detached helper that waits for daemon shutdown resources to release and then launches the replacement daemon.
Types ¶
type ClarifyKeepalive ¶
type ClarifyKeepalive interface {
Ping(ctx context.Context, ping ClarifyPingParams) error
}
ClarifyKeepalive delivers one keepalive ping for a pending clarification; failures are advisory. The payload shape keeps ping numbering in the broker and the resolver stateless.
type ClarifyPingParams ¶
type ClarifyPingParams struct {
SessionID string
RequestID string
Seq uint64
AskedAt time.Time
Deadline time.Time
}
ClarifyPingParams is one keepalive tick's identity-only payload. It carries no tokens, answers, or question content beyond what pending events expose.
type ComposedAssembler ¶
type ComposedAssembler struct {
// contains filtered or unexported fields
}
ComposedAssembler assembles selected startup prompt sections around the base agent prompt.
func NewComposedAssembler ¶
func NewComposedAssembler(opts ...ComposedAssemblerOption) *ComposedAssembler
NewComposedAssembler constructs a ComposedAssembler from startup section descriptors.
func (*ComposedAssembler) Assemble ¶
func (a *ComposedAssembler) Assemble( ctx context.Context, agent compozyconfig.AgentDef, workspace *workspacepkg.ResolvedWorkspace, ) (string, error)
Assemble renders the selected startup sections using a baseline startup context for callers that only know about the legacy assembler seam.
func (*ComposedAssembler) AssembleStartup ¶
func (a *ComposedAssembler) AssembleStartup( ctx context.Context, startup session.StartupPromptContext, agent compozyconfig.AgentDef, workspace *workspacepkg.ResolvedWorkspace, ) (string, error)
AssembleStartup renders eligible prepend sections, the trimmed base prompt, and eligible append sections into one composed startup system prompt.
func (*ComposedAssembler) AssembleStartupWithManifest ¶
func (a *ComposedAssembler) AssembleStartupWithManifest( ctx context.Context, startup session.StartupPromptContext, agent compozyconfig.AgentDef, workspace *workspacepkg.ResolvedWorkspace, ) (string, acp.StartupManifest, error)
AssembleStartupWithManifest measures budgeted sections in their document order.
type ComposedAssemblerOption ¶
type ComposedAssemblerOption func(*ComposedAssembler)
ComposedAssemblerOption customizes the prompt section chain for a ComposedAssembler.
func WithAppendPromptProviders ¶
func WithAppendPromptProviders(providers ...session.PromptProvider) ComposedAssemblerOption
WithAppendPromptProviders preserves the legacy append provider option by wrapping providers in explicit append descriptors.
func WithPrependPromptProviders ¶
func WithPrependPromptProviders(providers ...session.PromptProvider) ComposedAssemblerOption
WithPrependPromptProviders preserves the legacy prepend provider option by wrapping providers in explicit prepend descriptors.
func WithPromptSectionDescriptors ¶
func WithPromptSectionDescriptors(descriptors ...PromptSectionDescriptor) ComposedAssemblerOption
WithPromptSectionDescriptors appends explicit startup prompt section descriptors to the assembler.
func WithSectionSelector ¶
func WithSectionSelector(selector *SectionSelector) ComposedAssemblerOption
WithSectionSelector installs the daemon-owned startup section selector.
type ConfigLoader ¶
type ConfigLoader func() (compozyconfig.Config, error)
ConfigLoader resolves the daemon-level runtime configuration.
type CoordinatorRoleResolver ¶
type CoordinatorRoleResolver interface {
ResolveCoordinatorRole(ctx context.Context, workspaceID string) (compozyconfig.ResolvedCoordinatorRole, error)
}
CoordinatorRoleResolver resolves coordinator routing and safety policy without starting behavior.
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
Daemon is the sole Compozy composition root.
func (*Daemon) Boundaries ¶
Boundaries performs a best-effort import boundary verification for local source checkouts.
func (*Daemon) DrainState ¶
func (d *Daemon) DrainState() DrainState
DrainState returns the current in-memory daemon admission state.
func (*Daemon) DrainStatus ¶
DrainStatus returns the daemon-owned quiesce readout used before process stop.
func (*Daemon) GetRestartOperation ¶
func (d *Daemon) GetRestartOperation(_ context.Context, operationID string) (RestartOperation, error)
GetRestartOperation reads one persisted restart operation by id.
func (*Daemon) IsDraining ¶
IsDraining reports whether new-work admission is closed.
func (*Daemon) RequestRestart ¶
func (d *Daemon) RequestRestart(ctx context.Context) (RestartOperation, error)
RequestRestart creates the persisted restart operation, launches the detached relaunch helper, and signals the running daemon to enter its normal graceful shutdown path.
func (*Daemon) Run ¶
Run boots the daemon, blocks until signal or context cancellation, then performs graceful shutdown.
func (*Daemon) SubagentService ¶
func (d *Daemon) SubagentService() session.SubagentService
type DetachedRunMetadata ¶
DetachedRunMetadata carries detached task-runtime correlation fields.
type DetachedRunMode ¶
type DetachedRunMode string
DetachedRunMode identifies detached task-runtime behavior for the resolved policy.
const ( // DetachedRunModeNone means detached task-runtime behavior is not enabled. DetachedRunModeNone DetachedRunMode = "none" // DetachedRunModeTaskRuntime means detached work reuses the existing task runtime. DetachedRunModeTaskRuntime DetachedRunMode = "task_runtime" )
type DrainState ¶
type DrainState = contract.DrainState
DrainState is the public daemon admission state.
type GatewayTierServerFactory ¶
type GatewayTierServerFactory func( ctx context.Context, deps *RuntimeDeps, tier gateway.Tier, surfaces []gateway.Surface, ) (Server, error)
GatewayTierServerFactory constructs one daemon-owned loopback listener for a tier and its active surfaces.
type HarnessAugmenter ¶
type HarnessAugmenter string
HarnessAugmenter identifies a prompt input augmenter managed by harness policy.
const ( // HarnessAugmenterSituation injects fresh bounded Compozy situation context. HarnessAugmenterSituation HarnessAugmenter = "situation" // HarnessAugmenterSkills injects the current effective skills catalog. HarnessAugmenterSkills HarnessAugmenter = "skills" )
type HarnessContextResolver ¶
type HarnessContextResolver struct {
// contains filtered or unexported fields
}
HarnessContextResolver derives harness policy from durable session state plus turn-origin metadata.
func NewHarnessContextResolver ¶
func NewHarnessContextResolver( runtime HarnessRuntimeSignals, opts ...HarnessContextResolverOption, ) *HarnessContextResolver
NewHarnessContextResolver constructs a daemon-owned harness context resolver.
func (*HarnessContextResolver) Resolve ¶
func (r *HarnessContextResolver) Resolve(input HarnessResolutionInput) (ResolvedHarnessContext, error)
Resolve derives one authoritative harness context from explicit inputs.
func (*HarnessContextResolver) ResolvePrompt ¶
func (r *HarnessContextResolver) ResolvePrompt( info *session.Info, source session.TurnSource, meta acp.PromptMeta, ) (ResolvedHarnessContext, error)
ResolvePrompt resolves one live prompt-turn policy from session metadata.
func (*HarnessContextResolver) ResolveStartup ¶
func (r *HarnessContextResolver) ResolveStartup(startup session.StartupPromptContext) (ResolvedHarnessContext, error)
ResolveStartup resolves startup policy from durable session context.
type HarnessContextResolverOption ¶
type HarnessContextResolverOption func(*HarnessContextResolver)
HarnessContextResolverOption configures provider-native skill-root resolution.
func WithHarnessSkillInjectionEnvLookup ¶
func WithHarnessSkillInjectionEnvLookup( lookup func(string) (string, bool), ) HarnessContextResolverOption
WithHarnessSkillInjectionEnvLookup configures the effective provider environment lookup.
func WithHarnessSkillInjectionHome ¶
func WithHarnessSkillInjectionHome(homePaths compozyconfig.HomePaths) HarnessContextResolverOption
WithHarnessSkillInjectionHome configures the operator and managed provider homes.
func WithHarnessSkillInjectionLogger ¶
func WithHarnessSkillInjectionLogger(logger *slog.Logger) HarnessContextResolverOption
WithHarnessSkillInjectionLogger configures suppression decision logging.
type HarnessPromptSection ¶
type HarnessPromptSection string
HarnessPromptSection identifies a startup prompt section managed by harness policy.
const ( // HarnessPromptSectionRuntimeIdentity injects the daemon-owned Compozy runtime envelope. HarnessPromptSectionRuntimeIdentity HarnessPromptSection = "runtime_identity" // HarnessPromptSectionSituation injects the bounded Compozy situation context. HarnessPromptSectionSituation HarnessPromptSection = "situation" // HarnessPromptSectionSkills injects the active skills catalog prompt context. HarnessPromptSectionSkills HarnessPromptSection = "skills" // HarnessPromptSectionTools injects Compozy-native tool discovery and invocation guidance. HarnessPromptSectionTools HarnessPromptSection = "tools" )
type HarnessResolutionInput ¶
type HarnessResolutionInput struct {
Surface ResolutionSurface
Session HarnessSessionInput
Turn HarnessTurnRequest
}
HarnessResolutionInput captures one resolver request.
type HarnessRuntimeSignals ¶
type HarnessRuntimeSignals struct {
RuntimeIdentityPromptSectionEnabled bool
SituationPromptSectionEnabled bool
SkillsPromptSectionEnabled bool
ToolsPromptSectionEnabled bool
SkillsAugmenter bool
SituationAugmenter bool
SyntheticTurnsEnabled bool
DetachedTaskRuntimeEnabled bool
}
HarnessRuntimeSignals captures daemon-owned capability flags available to the resolver.
type HarnessSessionContext ¶
type HarnessSessionContext struct {
SessionID string
Type session.Type
SpawnRole string
SessionClass SessionClass
WorkspaceID string
Workspace string
AgentName string
Provider string
ProviderHomePolicy compozyconfig.ProviderHomePolicy
}
HarnessSessionContext is the normalized durable session context emitted by the resolver.
type HarnessSessionInput ¶
type HarnessSessionInput struct {
SessionID string
Type session.Type
SpawnRole string
WorkspaceID string
Workspace string
AgentName string
Provider string
ProviderHomePolicy compozyconfig.ProviderHomePolicy
}
HarnessSessionInput carries durable session metadata into the resolver.
type HarnessTurnContext ¶
type HarnessTurnContext struct {
Origin TurnOrigin
PromptMeta acp.PromptMeta
Synthetic *SyntheticTurnMetadata
Detached *DetachedRunMetadata
}
HarnessTurnContext is the normalized turn context emitted by the resolver.
type HarnessTurnRequest ¶
type HarnessTurnRequest struct {
Source session.TurnSource
PromptMeta acp.PromptMeta
Synthetic *SyntheticTurnMetadata
Detached *DetachedRunMetadata
}
HarnessTurnRequest carries turn-time metadata into the resolver.
type Info ¶
type Info struct {
PID int `json:"pid"`
HTTPHost string `json:"http_host,omitempty"`
Port int `json:"port"`
StartedAt time.Time `json:"started_at"`
}
Info is the persisted daemon discovery record written to daemon.json.
type Lock ¶
type Lock struct {
// contains filtered or unexported fields
}
Lock owns the singleton daemon file lock.
func AcquireLock ¶
AcquireLock acquires the singleton daemon lock and records the current PID in the lock file.
type Observer ¶
type Observer interface {
core.Observer
session.Notifier
Reconcile(ctx context.Context) (store.ReconcileResult, error)
}
Observer is the daemon observer surface used for transport wiring and reconciliation.
type Option ¶
type Option func(*Daemon)
Option customizes daemon construction.
func WithBoundaryVerification ¶
WithBoundaryVerification enables best-effort import boundary verification on boot.
func WithCompozyExecutableResolver ¶
WithCompozyExecutableResolver supplies the executable used by bundled extension commands.
func WithConfig ¶
func WithConfig(cfg *compozyconfig.Config) Option
WithConfig overrides daemon-level configuration loading.
func WithConfigLoader ¶
func WithConfigLoader(loader ConfigLoader) Option
WithConfigLoader overrides daemon-level configuration loading.
func WithGatewayProviderEffects ¶
func WithGatewayProviderEffects(effects gateway.EffectDriver) Option
WithGatewayProviderEffects injects the provider preflight, establish, verify, advertise, withdraw, teardown, and health-supervision lifecycle used by gateway reconciliation.
func WithGatewayTierServerFactory ¶
func WithGatewayTierServerFactory(factory GatewayTierServerFactory) Option
WithGatewayTierServerFactory overrides daemon-owned tier listener construction.
func WithHTTPServerFactory ¶
func WithHTTPServerFactory(factory ServerFactory) Option
WithHTTPServerFactory overrides HTTP server construction.
func WithHomePaths ¶
func WithHomePaths(homePaths compozyconfig.HomePaths) Option
WithHomePaths overrides the resolved Compozy home layout.
func WithSignalBridge ¶
WithSignalBridge overrides OS signal delivery, mainly for tests.
func WithUDSServerFactory ¶
func WithUDSServerFactory(factory ServerFactory) Option
WithUDSServerFactory overrides UDS server construction.
type PromptSectionBudgetBehavior ¶
type PromptSectionBudgetBehavior string
PromptSectionBudgetBehavior controls how an oversized section is handled.
const ( // PromptSectionBudgetBehaviorTrim truncates the section to its declared budget. PromptSectionBudgetBehaviorTrim PromptSectionBudgetBehavior = "trim" // PromptSectionBudgetBehaviorOmit drops the section when it exceeds budget. PromptSectionBudgetBehaviorOmit PromptSectionBudgetBehavior = "omit" )
type PromptSectionDescriptor ¶
type PromptSectionDescriptor struct {
Name string
Position PromptSectionPosition
Order int
Budget int
BudgetBehavior PromptSectionBudgetBehavior
Provider any
Predicate SectionPredicate
StartupPredicate StartupSectionPredicate
}
PromptSectionDescriptor describes one startup prompt section provider plus its ordering, policy eligibility, and budget behavior.
type PromptSectionPosition ¶
type PromptSectionPosition string
PromptSectionPosition identifies whether a startup section renders before or after the base agent prompt.
const ( // PromptSectionPositionPrepend renders the section before the base prompt. PromptSectionPositionPrepend PromptSectionPosition = "prepend" // PromptSectionPositionAppend renders the section after the base prompt. PromptSectionPositionAppend PromptSectionPosition = "append" )
type ReentryMode ¶
type ReentryMode string
ReentryMode identifies how a resolved policy participates in synthetic reentry.
const ( // ReentryModeNone means the turn is not synthetic reentry. ReentryModeNone ReentryMode = "none" // ReentryModeSynthetic means the turn is a validated synthetic reentry path. ReentryModeSynthetic ReentryMode = "synthetic" )
type Registry ¶
type Registry interface {
store.SkillExposureRepository
core.TaskDesignationStore
gateway.Store
store.OnboardingStore
looppkg.ReconciliationStore
VerifyDefaultProfile(context.Context) error
// contains filtered or unexported methods
}
Registry is the composition-root database surface grouped by owning domain. Consumers depend on their local narrow interfaces instead of this aggregate.
type RelaunchHelperConfig ¶
type RelaunchHelperConfig struct {
HomePaths compozyconfig.HomePaths
OperationID string
Executable func() (string, error)
Sandbox []string
PollInterval time.Duration
ReleaseTimeout time.Duration
ReadyTimeout time.Duration
ExitDrainWait time.Duration
}
RelaunchHelperConfig configures one internal `compozy daemon relaunch` execution.
type ResolutionSurface ¶
type ResolutionSurface string
ResolutionSurface identifies which runtime seam is consuming the resolver.
const ( // ResolutionSurfaceStartup resolves startup prompt policy. ResolutionSurfaceStartup ResolutionSurface = "startup" // ResolutionSurfaceTurn resolves live prompt-turn policy. ResolutionSurfaceTurn ResolutionSurface = "turn" )
type ResolvedHarnessContext ¶
type ResolvedHarnessContext struct {
Surface ResolutionSurface
Session HarnessSessionContext
Turn HarnessTurnContext
Policy ResolvedHarnessPolicy
}
ResolvedHarnessContext captures the normalized inputs plus the derived policy.
type ResolvedHarnessPolicy ¶
type ResolvedHarnessPolicy struct {
SessionClass SessionClass
TurnOrigin TurnOrigin
IncludeSections []HarnessPromptSection
EnableAugmenters []HarnessAugmenter
ReentryMode ReentryMode
DetachedRunMode DetachedRunMode
DiagnosticLabel string
ObservabilityTags map[string]string
SkillInjectionFilter SkillInjectionFilter
}
ResolvedHarnessPolicy is the authoritative daemon-owned harness runtime policy.
type ResolvedRole ¶
type ResolvedRole struct {
Role compozyconfig.RoleName
Enabled bool
AgentName string
Builtin bool
Inherit bool
AgentDef compozyconfig.AgentDef
Provider string
Model string
ReasoningEffort string
Fallbacks []compozyconfig.RoleFallback
Provenance map[string]string
// contains filtered or unexported fields
}
ResolvedRole is one invocation-time role routing decision.
type RestartOperation ¶
type RestartOperation struct {
OperationID string `json:"operation_id"`
Status RestartStatus `json:"status"`
OldPID int `json:"old_pid"`
OldStartedAt time.Time `json:"old_started_at"`
OldSocketPath string `json:"old_socket_path"`
NewPID int `json:"new_pid,omitzero"`
ActiveSessionCount int `json:"active_session_count"`
FailureReason string `json:"failure_reason,omitempty"`
StartedAt time.Time `json:"started_at"`
UpdatedAt time.Time `json:"updated_at"`
CompletedAt *time.Time `json:"completed_at,omitempty"`
}
RestartOperation is the persisted restart status record stored under ~/.compozy/restarts/.
func ReadRestartOperation ¶
func ReadRestartOperation(homePaths compozyconfig.HomePaths, operationID string) (RestartOperation, error)
ReadRestartOperation reads restart progress without requiring a ready daemon.
func (RestartOperation) Validate ¶
func (o RestartOperation) Validate() error
Validate ensures the persisted restart operation is structurally usable.
type RestartStatus ¶
type RestartStatus string
RestartStatus is the durable lifecycle state of one daemon restart operation.
const ( RestartStatusPending RestartStatus = "pending" RestartStatusStopping RestartStatus = "stopping" RestartStatusWaitingRelease RestartStatus = "waiting_release" RestartStatusStarting RestartStatus = "starting" RestartStatusReady RestartStatus = "ready" RestartStatusFailed RestartStatus = "failed" )
type RoleResolutionError ¶
type RoleResolutionError struct {
Code string
Role compozyconfig.RoleName
Agent string
Err error
}
RoleResolutionError is a deterministic role-resolution failure.
func (*RoleResolutionError) DiagnosticCode ¶
func (e *RoleResolutionError) DiagnosticCode() string
DiagnosticCode returns the stable public code for transport projections.
func (*RoleResolutionError) Error ¶
func (e *RoleResolutionError) Error() string
func (*RoleResolutionError) Unwrap ¶
func (e *RoleResolutionError) Unwrap() error
type RoleResolver ¶
type RoleResolver interface {
Resolve(ctx context.Context, workspaceID string, role compozyconfig.RoleName) (ResolvedRole, error)
}
type RuntimeDeps ¶
type RuntimeDeps struct {
Subagents session.SubagentService
SessionMonitors core.SessionMonitorService
Config compozyconfig.Config
AgentProbeConfig *agentProbeConfigState
HomePaths compozyconfig.HomePaths
Logger *slog.Logger
Sessions SessionManager
DrainController core.DaemonDrainController
Tasks taskpkg.Manager
ToolRegistry toolspkg.Registry
Toolsets core.ToolsetRegistry
ToolArtifacts toolspkg.ToolArtifactStore
SessionAttachments attachmentspkg.Store
SessionFiles core.SessionFileSearcher
ToolApprovals toolspkg.ApprovalTokenIssuer
ApprovalCoordinator toolspkg.ApprovalCoordinator
CmdPalette cmdpalette.Registry
ApprovalGrants toolspkg.ApprovalGrantStore
Clarify toolspkg.ClarifyBroker
HostedMCP *mcppkg.HostedService
MCPHostAPI mcppkg.HostAPIInvoker
Observer Observer
SchemaStreams core.SchemaStreamStatusReader
Automation core.AutomationManager
Loops core.LoopService
Registry Registry
Profiles *profile.Manager
RuntimeMemory doctor.RuntimeMemorySnapshotSource
HostLoad doctor.HostLoadSnapshotSource
DeadEntities doctor.DeadEntitySource
WorkspaceResolver workspacepkg.RuntimeResolver
WorkspaceService core.WorkspaceService
Worktrees core.WorktreeService
WorkspaceAccess workspaceaccess.Policy
AgentCatalog core.AgentCatalog
AgentResolver session.AgentResolver
AgentDefinitionSync core.AgentDefinitionSync
ModelCatalog core.ModelCatalogService
ProviderUsage core.ProviderUsageService
MarketplaceCatalog core.MarketplaceCatalogService
AgentContext *situation.Service
SoulAuthoring core.SoulAuthoringService
SoulHistoryPurger core.SoulHistoryPurger
SoulRefresher core.SoulRefresher
HeartbeatAuthor core.HeartbeatAuthoringService
HeartbeatPurger core.HeartbeatHistoryPurger
HeartbeatStatus core.HeartbeatStatusService
HeartbeatWake core.HeartbeatWakeService
SessionHealth core.SessionHealthReader
WakeEvents core.HeartbeatWakeEventReader
CoordinatorRole CoordinatorRoleResolver
Roles core.RolesStatusProvider
SkillsRegistry core.SkillsRegistry
SkillResources core.SkillResourceSyncer
Settings core.SettingsService
SettingsRestart core.SettingsRestartController
SettingsUpdate core.SettingsUpdateController
SupportBundles core.SupportBundleService
Vault core.VaultService
Extensions udsapi.ExtensionService
Resources core.ResourceService
WindowManagers *windowManagerRegistry
Terminals *terminalpkg.Service
AppTokens *gateway.DeviceService
Gateway *gateway.Service
GatewayChallenges *gateway.ChallengeRegistry
GatewayAuthLimiter *gateway.AuthFailureLimiter
StartedAt time.Time
OnProviderAuthSuccess func()
}
RuntimeDeps captures the composition-root dependencies available to server factories.
type SectionPredicate ¶
type SectionPredicate func(ResolvedHarnessPolicy) bool
SectionPredicate decides whether a prompt section is eligible for one resolved startup policy.
type SectionSelector ¶
type SectionSelector struct {
// contains filtered or unexported fields
}
SectionSelector resolves startup policy and selects eligible startup prompt sections before final assembly.
func NewSectionSelector ¶
func NewSectionSelector( resolver *HarnessContextResolver, recorder *harnessLifecycleRecorder, ) *SectionSelector
NewSectionSelector constructs a daemon-owned startup section selector.
func (*SectionSelector) Select ¶
func (s *SectionSelector) Select( startup session.StartupPromptContext, descriptors []PromptSectionDescriptor, ) ([]PromptSectionDescriptor, ResolvedHarnessContext, error)
Select resolves startup policy for the provided startup context and returns the eligible startup sections in deterministic order without duplicates.
type ServerFactory ¶
type ServerFactory func(ctx context.Context, deps RuntimeDeps) (Server, error)
ServerFactory constructs runtime components such as HTTP and UDS servers.
type SessionClass ¶
type SessionClass string
SessionClass is the session-side harness axis derived from durable session metadata rather than a top-level profile enum.
const ( // SessionClassInteractive identifies user-owned interactive sessions. SessionClassInteractive SessionClass = "interactive" // SessionClassSystem identifies daemon-owned system sessions. SessionClassSystem SessionClass = "system" // SessionClassCoordinator identifies daemon-owned workspace coordinator sessions. SessionClassCoordinator SessionClass = "coordinator" // SessionClassSpawned identifies bounded child worker sessions. SessionClassSpawned SessionClass = "spawned" )
type SessionManager ¶
type SessionManager = core.SessionManager
SessionManager is the shared transport-facing session surface consumed by daemon/.
type SessionManagerDeps ¶
type SessionManagerDeps struct {
HomePaths compozyconfig.HomePaths
Logger *slog.Logger
Notifier session.Notifier
SpawnWakeNotifier session.SpawnWakeNotifier
Hooks session.HookSet
PromptAssembler session.PromptAssembler
StartupPromptOverlay session.StartupPromptOverlay
PromptInputAugmenter session.PromptInputAugmenter
CommandService session.CommandService
WorkAdmission admission.Checker
AgentResolver session.AgentResolver
SkillRegistry session.SkillRegistry
MCPResolver session.MCPResolver
WorkspaceResolver session.WorkspaceResolver
WorktreeResolver session.WorktreeResolver
WindowReconciler session.WindowReconciler
SessionSupervision compozyconfig.SessionSupervisionConfig
SessionStop compozyconfig.SessionStopConfig
SessionBusyInput compozyconfig.SessionBusyInputConfig
SessionMessaging compozyconfig.SessionMessagingConfig
SessionDerive compozyconfig.SessionDeriveConfig
SessionInputQueue store.SessionInputQueueStore
SessionPromptAdmission store.SessionPromptAdmissionStore
SessionAttachments session.AttachmentOpener
SessionHealthConfig compozyconfig.HeartbeatConfig
AttentionConfig compozyconfig.AttentionConfig
AttentionWorkspaceMutes session.AttentionWorkspaceMuteReader
SessionCatalog store.SessionCatalog
EventLedger store.EventSummaryStore
ProcessRegistry *toolruntime.Registry
Terminals acp.TerminalHost
HostedMCP session.HostedMCPLauncher
ProviderSecrets session.ProviderSecretResolver
ProfileNames session.ProfileNameResolver
ModelCatalog modelcatalog.Service
SoulStore session.SoulSnapshotStore
SoulRunChecker session.SoulRunActivityChecker
SessionHealthStore session.HealthStore
MentionReferences session.MentionReferenceRenderer
AgentNiceness int
}
SessionManagerDeps captures the composition-root dependencies needed to create a session manager.
type SessionPolicy ¶
type SessionPolicy struct {
Runtime SessionRuntimePolicy
}
type SessionRuntimeMode ¶
type SessionRuntimeMode string
const (
SessionRuntimeModeEvidence SessionRuntimeMode = "evidence"
)
type SessionRuntimePolicy ¶
type SessionRuntimePolicy struct {
Mode SessionRuntimeMode
Permissions compozyconfig.PermissionMode
}
type SkillInjectionFilter ¶
SkillInjectionFilter decides whether one resolved skill remains in prompt catalogs.
type StartupSectionPredicate ¶
type StartupSectionPredicate func(session.StartupPromptContext) bool
StartupSectionPredicate decides whether a prompt section is eligible for the concrete startup context being assembled.
type SyntheticTurnMetadata ¶
type SyntheticTurnMetadata struct {
Reason string
Trigger string
SourceTask string
SourceRunID string
}
SyntheticTurnMetadata carries validated daemon-only synthetic reentry metadata.
type TurnOrigin ¶
type TurnOrigin string
TurnOrigin identifies the resolved harness origin for one turn.
const ( // TurnOriginUser identifies a standard user-driven turn. TurnOriginUser TurnOrigin = "user" // TurnOriginSynthetic identifies a daemon-owned synthetic turn. TurnOriginSynthetic TurnOrigin = "synthetic" )
type UpdateLock ¶
type UpdateLock struct {
// contains filtered or unexported fields
}
UpdateLock owns the cross-process runtime mutation lock.
func AcquireUpdateLock ¶
func AcquireUpdateLock(path string, owner UpdateLockOwner) (*UpdateLock, error)
AcquireUpdateLock locks update.lock and records the caller's process identity.
func (*UpdateLock) Release ¶
func (l *UpdateLock) Release() error
Release clears the owner payload, unlocks, and closes update.lock.
func (*UpdateLock) StaleOwner ¶
func (l *UpdateLock) StaleOwner() *UpdateLockOwner
StaleOwner reports the stale identity replaced during acquisition, if any.
Source Files
¶
- agent_catalog_scope.go
- agent_probe_config.go
- agent_probe_diagnostics.go
- agent_probes.go
- agent_resource_catalog.go
- agent_sidecar_resources.go
- agent_skill_catalog.go
- agent_skill_desired_resources.go
- agent_skill_publisher.go
- agent_skill_resource_mapping.go
- agent_skill_resources.go
- agent_skill_runtime_wiring.go
- agent_skill_source_scopes.go
- agent_skill_sync.go
- agent_skill_sync_staged.go
- app_sdk.go
- authored_context_heartbeat_hooks.go
- authored_context_runtime.go
- authored_context_soul_hooks.go
- authored_context_wake_hooks.go
- authoring_service_dependencies.go
- auto_title_generator.go
- auto_title_runtime.go
- automation_loop_starter.go
- automation_resources.go
- automation_runtime_types.go
- boot.go
- boot_automation.go
- boot_automation_extensions.go
- boot_cleanup.go
- boot_components.go
- boot_config.go
- boot_dead_entity.go
- boot_extension_manager_deps.go
- boot_extension_publishers.go
- boot_extensions.go
- boot_finalize.go
- boot_gateway.go
- boot_hook_observers.go
- boot_hooks.go
- boot_lifecycle.go
- boot_observer.go
- boot_profile_name_resolver.go
- boot_profiles.go
- boot_publish.go
- boot_resource_graph.go
- boot_resource_watchers.go
- boot_runtime_foundation.go
- boot_runtime_services.go
- boot_session_attachments.go
- boot_session_repair.go
- boot_session_runtime.go
- boot_session_supervision.go
- boot_settings.go
- boot_state_extensions.go
- boot_subprocess_health.go
- boot_tool_artifacts.go
- boot_tool_registry.go
- boot_tool_registry_providers.go
- boot_workspace_access.go
- boot_worktrees.go
- boundary.go
- clarify_bridge.go
- clarify_bridge_lifecycle.go
- clarify_keepalive.go
- cmd_palette_action_executor.go
- cmd_palette_bindings.go
- cmd_palette_boot.go
- cmd_palette_client_directory.go
- cmd_palette_events.go
- cmd_palette_extensions.go
- cmd_palette_view_patch_provider.go
- cmd_palette_view_patches.go
- composed_assembler.go
- coordinator_config.go
- coordinator_runtime.go
- coordinator_runtime_hooks.go
- coordinator_runtime_logging.go
- coordinator_runtime_reconcile.go
- coordinator_runtime_session.go
- coordinator_runtime_wake.go
- coordinator_runtime_worktrees.go
- daemon.go
- daemon_defaults.go
- daemon_lifecycle.go
- daemon_options.go
- daemon_resource_projection.go
- daemon_runtime_state.go
- daemon_shutdown_operation.go
- daemon_shutdown_resources.go
- daemon_shutdown_runtime.go
- daemon_shutdown_targets.go
- database_source.go
- drain.go
- event_summary_content.go
- execution_worktrees.go
- extension_commands.go
- extension_declared_profiles.go
- extension_dev_lifecycle.go
- extension_gateway_confirmation.go
- extension_gateway_lifecycle.go
- extension_inputs_commit.go
- extension_inputs_plan.go
- extension_inputs_secrets.go
- extension_inputs_state.go
- extension_inputs_status.go
- extension_kit_resources.go
- extension_lifecycle.go
- extension_lifecycle_packages.go
- extension_lifecycle_rollback.go
- extension_manager_wiring.go
- extension_mcp_details.go
- extension_mcp_health.go
- extension_mcp_lifecycle.go
- extension_mcp_publication.go
- extension_palette_notifications.go
- extension_profile_payload.go
- extension_profile_reads.go
- extension_resource_name.go
- extension_resource_owner.go
- extension_resource_snapshots.go
- extension_search.go
- extension_secret_events.go
- extension_secret_gc.go
- extension_secret_retirement.go
- extension_secrets.go
- extension_secrets_mutation.go
- extensions.go
- extensions_catalog_inspection.go
- extensions_dev.go
- extensions_dev_remove.go
- extensions_enablement.go
- extensions_events.go
- extensions_install.go
- extensions_install_inputs.go
- extensions_install_mcp.go
- extensions_install_preview.go
- extensions_installed_remove.go
- extensions_inventory.go
- extensions_inventory_profile.go
- extensions_inventory_specs.go
- extensions_lifecycle.go
- extensions_marketplace_events.go
- extensions_marketplace_trust.go
- extensions_reinstall.go
- extensions_scope.go
- extensions_service.go
- extensions_update_batch.go
- extensions_update_inputs.go
- gateway_audit.go
- gateway_ingress_events.go
- gateway_listener_effects.go
- gateway_provider_events.go
- gateway_tier_server.go
- goal_tool_projection_invalidation.go
- harness_context.go
- harness_context_diagnostics.go
- harness_context_policy.go
- harness_context_session.go
- harness_context_turn.go
- harness_detached_work.go
- harness_detached_work_helpers.go
- harness_detached_work_metadata.go
- harness_detached_work_task.go
- harness_observability.go
- harness_observability_format.go
- harness_observability_profile.go
- harness_reentry_bridge.go
- harness_reentry_decision.go
- harness_reentry_finalize.go
- harness_reentry_heartbeat.go
- harness_reentry_message.go
- harness_reentry_queue.go
- harness_reentry_recovery.go
- hook_agent_events.go
- hook_binding_resources.go
- hook_bindings.go
- hook_dispatch_events.go
- hooks_bridge.go
- hooks_bridge_agent_dispatch.go
- hooks_bridge_extended_dispatch.go
- hooks_bridge_loop_started.go
- hooks_bridge_loop_terminal.go
- hooks_bridge_observer_notify.go
- hooks_bridge_observers.go
- hooks_bridge_session_dispatch.go
- hooks_bridge_subprocess_health.go
- hooks_bridge_task_dispatch.go
- hooks_bridge_task_status.go
- hooks_bridge_watch_events.go
- hooks_bridge_watch_events_phase_b.go
- hooks_bridge_watch_events_phase_c.go
- hooks_bridge_wiring.go
- hooks_declaration_providers.go
- hooks_declaration_workspace.go
- hooks_notifier.go
- hooks_runtime_contract.go
- host_api_options.go
- host_api_session_adapter.go
- host_load_admission.go
- hosted_mcp.go
- info.go
- lifecycle_rw_gate.go
- lock.go
- lock_pid_other.go
- log_keys.go
- loop_action_checkpoint.go
- loop_action_claim.go
- loop_action_death_resume.go
- loop_action_environment.go
- loop_action_failure.go
- loop_action_liveness.go
- loop_action_liveness_policy.go
- loop_action_policy.go
- loop_action_registry_boot.go
- loop_action_runtime.go
- loop_action_session_truth.go
- loop_action_tool_workspace.go
- loop_action_usage_state.go
- loop_api_amendments.go
- loop_api_catalog.go
- loop_api_catalog_batch.go
- loop_api_contract.go
- loop_api_fork.go
- loop_api_goal_snapshot.go
- loop_api_goal_snapshot_mapping.go
- loop_api_goal_tools.go
- loop_api_goal_turns.go
- loop_api_nodes.go
- loop_api_payloads.go
- loop_api_publish.go
- loop_api_reads.go
- loop_api_requests.go
- loop_api_run_history.go
- loop_api_run_list.go
- loop_api_runs.go
- loop_api_service.go
- loop_api_timetravel.go
- loop_api_watch_events.go
- loop_command_literals.go
- loop_coordinator_activation.go
- loop_coordinator_boot_gate.go
- loop_defaults.go
- loop_delete.go
- loop_effect_relay.go
- loop_effect_relay_boot.go
- loop_goal_activation.go
- loop_goal_command.go
- loop_goal_command_control.go
- loop_goal_command_definition.go
- loop_goal_command_start.go
- loop_goal_context_runtime.go
- loop_goal_executor.go
- loop_goal_managed_lifecycle.go
- loop_goal_managed_owner.go
- loop_goal_managed_revoke.go
- loop_goal_outbox_boot.go
- loop_goal_outbox_relay.go
- loop_goal_policy.go
- loop_goal_prompt_recovery.go
- loop_goal_runtime_composition.go
- loop_goal_session_stop.go
- loop_goal_stop.go
- loop_hook_observer.go
- loop_input_defaults.go
- loop_input_entity_catalog.go
- loop_judge_execution.go
- loop_keys.go
- loop_managed_binding.go
- loop_managed_binding_profile.go
- loop_managed_binding_projection.go
- loop_managed_binding_resolution.go
- loop_managed_constants.go
- loop_managed_prompt.go
- loop_managed_prompt_events.go
- loop_managed_usage.go
- loop_parent_close_postcommit.go
- loop_profile_resources.go
- loop_prompt_failure.go
- loop_reconciler_boot.go
- loop_reconciler_runtime.go
- loop_resources.go
- loop_resources_scan.go
- loop_resources_watcher.go
- loop_responder_policy.go
- loop_review_candidate.go
- loop_runtime_adapters.go
- loop_runtime_catalog.go
- loop_runtime_options.go
- loop_target_health.go
- loop_tool_schema_source.go
- loop_watch_events_doorbell.go
- loop_watch_events_observer.go
- loop_watch_events_observer_index.go
- loop_watch_events_payloads.go
- loop_web_url.go
- loop_worker_activation.go
- managed_resource_sync.go
- marketplace.go
- marketplace_acquisition.go
- marketplace_presets.go
- marketplace_source_management.go
- marketplace_sources.go
- mcp_auth_events.go
- mcp_host_api_runtime.go
- mcp_server_lookup.go
- mcp_server_resolver.go
- model_catalog.go
- model_catalog_bootstrap.go
- model_catalog_config.go
- model_catalog_execution_context.go
- model_catalog_reasoning.go
- model_catalog_refresh_cancels.go
- model_catalog_refresh_loop.go
- model_catalog_staging.go
- native_agent_catalog.go
- native_automation_bindings.go
- native_automation_errors.go
- native_automation_job_conversion.go
- native_automation_list_tools.go
- native_automation_scope.go
- native_automation_suggestions.go
- native_automation_tool_input.go
- native_automation_tool_query.go
- native_automation_tools.go
- native_automation_trigger_tools.go
- native_autonomy_claim_input.go
- native_autonomy_errors.go
- native_clarify_tool.go
- native_cmd_palette_bindings.go
- native_cmd_palette_tools.go
- native_config_helpers.go
- native_config_hook_input.go
- native_config_hook_tools.go
- native_config_mutation_tools.go
- native_create_tools.go
- native_entity_catalog_tools.go
- native_extension_dev_tools.go
- native_extension_distribution_tools.go
- native_extension_errors.go
- native_extension_inventory_tools.go
- native_extension_tool_provider.go
- native_extension_tools.go
- native_filter_values.go
- native_gateway_mutations.go
- native_gateway_tools.go
- native_goal_tools.go
- native_goal_tools_availability.go
- native_hook_helpers.go
- native_hook_mutation_tools.go
- native_hook_query_tools.go
- native_loop_lifecycle_support.go
- native_loop_lifecycle_tools.go
- native_loop_request_tools.go
- native_loop_timetravel_tools.go
- native_loop_tool_bindings.go
- native_loop_tools.go
- native_loop_tools_support.go
- native_marketplace_tools.go
- native_mcp_auth_tools.go
- native_mcp_provider.go
- native_profile_catalog_tools.go
- native_profile_selection.go
- native_profile_tools.go
- native_provider_model_tools.go
- native_provider_usage_tools.go
- native_resource_tools.go
- native_resource_tools_error.go
- native_resource_tools_info.go
- native_resource_tools_input.go
- native_resource_tools_list.go
- native_resource_tools_policy.go
- native_resource_tools_read.go
- native_resource_tools_snapshot.go
- native_result_keys.go
- native_review_tools.go
- native_session_archive.go
- native_session_compact.go
- native_session_derive.go
- native_session_input.go
- native_session_input_clear.go
- native_session_layout.go
- native_session_list.go
- native_session_mutation.go
- native_session_navigation.go
- native_session_origin.go
- native_session_prompt_attachments.go
- native_session_prompt_stream.go
- native_session_rename.go
- native_session_reparent.go
- native_session_runtime.go
- native_session_worktree_binding.go
- native_skills_dependency.go
- native_task_actor_scope.go
- native_task_list.go
- native_task_run_list_input.go
- native_task_run_result_input.go
- native_terminal_bindings.go
- native_terminal_calls.go
- native_terminal_context.go
- native_terminal_identity.go
- native_terminal_input.go
- native_terminal_io.go
- native_terminal_lifecycle.go
- native_tool_approval_grants.go
- native_tool_artifacts.go
- native_tool_authored_paths.go
- native_tool_autonomy_calls.go
- native_tool_availability.go
- native_tool_binding_groups.go
- native_tool_bindings.go
- native_tool_catalog_payload.go
- native_tool_catalog_session_input.go
- native_tool_clone_policy.go
- native_tool_command_errors.go
- native_tool_dependencies.go
- native_tool_dependency_access.go
- native_tool_entity_binding_groups.go
- native_tool_hooks.go
- native_tool_http_errors.go
- native_tool_observe_helpers.go
- native_tool_registry_skills.go
- native_tool_results.go
- native_tool_scope.go
- native_tool_session_attention_calls.go
- native_tool_session_calls.go
- native_tool_session_monitor.go
- native_tool_session_orchestration.go
- native_tool_session_orchestration_bindings.go
- native_tool_session_orchestration_input.go
- native_tool_session_pages.go
- native_tool_session_spawn.go
- native_tool_session_stop.go
- native_tool_subagent_bindings.go
- native_tool_subagent_input.go
- native_tool_subagent_permissions.go
- native_tool_subagent_results.go
- native_tool_task_calls.go
- native_tool_task_errors.go
- native_tool_task_fan_out.go
- native_tool_task_input.go
- native_tool_task_run_bindings.go
- native_tool_window_manager_bindings.go
- native_tool_window_manager_commands.go
- native_tool_window_manager_desktop.go
- native_tool_window_manager_execute.go
- native_tool_window_manager_input.go
- native_tool_window_manager_layout.go
- native_tool_window_manager_result.go
- native_tool_window_manager_tabs.go
- native_tool_window_manager_window.go
- native_tool_workspace_calls.go
- native_tool_worktree_calls.go
- native_tools.go
- native_tools_dependencies_builder.go
- native_workspace_input_authorizer.go
- native_workspace_input_binder.go
- observer_factory.go
- orphan.go
- owned_worker_group.go
- payload_keys.go
- profile_user_journal.go
- prompt_input_composite.go
- prompt_input_composite_augment.go
- prompt_input_composite_budget.go
- prompt_input_composite_message.go
- prompt_sections.go
- prompt_skills.go
- prompt_soul.go
- provider_usage.go
- provider_usage_metrics.go
- provider_usage_profiles.go
- provider_usage_resolver.go
- reply_watch_reactor.go
- resource_store.go
- restart.go
- restart_environment.go
- restart_relaunch.go
- restart_request.go
- restart_sessions.go
- restart_store.go
- review_router.go
- review_router_create.go
- review_router_existing.go
- review_router_helpers.go
- review_router_selection.go
- role_dependencies.go
- role_fallback.go
- role_resolver.go
- role_runtime.go
- role_status.go
- runtime_dependencies.go
- runtime_deps.go
- runtime_memory_monitor.go
- runtime_memory_resident_linux.go
- runtime_prompt.go
- runtime_workers.go
- scheduler_loop_coordinator.go
- scheduler_loop_due_scan.go
- scheduler_loop_retry_timer.go
- scheduler_runtime.go
- scheduler_session_source.go
- scheduler_task_source_runs.go
- scheduler_task_source_types.go
- scheduler_waker.go
- scheduler_watch_events_gap.go
- schema_stream_status.go
- section_selector.go
- server_dependencies.go
- server_options.go
- session_commands.go
- session_context_window.go
- session_files.go
- session_manager_deps.go
- session_manager_factory.go
- session_mention_history.go
- session_mention_references.go
- session_monitor_bridge.go
- session_policy_gate.go
- session_pull_request_settle.go
- session_pull_requests.go
- session_shutdown.go
- session_skill_resolution.go
- session_wake_bridge.go
- session_work_recovery.go
- session_work_sources.go
- session_worktree_resolver.go
- settings.go
- settings_dependencies.go
- settings_extension_palette.go
- settings_mcp_auth.go
- settings_mcp_extension_collection.go
- settings_mcp_extension_override.go
- settings_mcp_extensions.go
- settings_mcp_runtime.go
- settings_runtime_applier.go
- settings_runtime_applier_attention.go
- settings_runtime_busy_input.go
- settings_runtime_dependencies.go
- settings_runtime_failure.go
- settings_runtime_skills.go
- settings_update.go
- skill_activation_context.go
- skill_injection_policy.go
- soul_runtime.go
- spawn_reaper.go
- spawn_reaper_hooks.go
- sqlite_persistence.go
- starvation_spawn.go
- string_helpers.go
- subagent_reactor.go
- subagent_worktrees.go
- subprocess_health_escalator.go
- support_bundle_status.go
- sync_dir_unix.go
- task_claim_handoff.go
- task_claim_prompt.go
- task_event_observer.go
- task_role_prompt.go
- task_role_runtime.go
- task_role_sessions.go
- task_run_activation_dispatch.go
- task_runtime.go
- task_runtime_boot.go
- task_runtime_boot_roles.go
- task_runtime_options.go
- task_runtime_recovery.go
- task_runtime_views.go
- task_session_attachment.go
- task_session_bridge.go
- task_status_projection_observer.go
- task_status_projection_replay.go
- task_wake_bridge.go
- terminal_boot.go
- terminal_environment.go
- terminal_execution_root.go
- terminal_hooks.go
- terminal_permissions.go
- terminal_run_lifecycle.go
- terminal_window_bridge.go
- tool_approval_boot.go
- tool_approval_bridge.go
- tool_approval_bridge_grants.go
- tool_approval_grant_service.go
- tool_events.go
- tool_mcp_resource_catalog.go
- tool_mcp_resources.go
- tool_mcp_resources_encoding.go
- tool_mcp_resources_providers.go
- tool_mcp_resources_sync.go
- tool_policy_resolver.go
- tool_projection_generation.go
- tool_resource_clone.go
- truncate_utf8.go
- update_background.go
- update_lock.go
- user_scope_migration.go
- window_manager_boot.go
- window_manager_deprecation.go
- window_manager_hooks.go
- window_manager_layout_projector.go
- window_manager_layout_registry.go
- window_manager_partition_reconciliation.go
- window_manager_registry.go
- window_manager_registry_clients.go
- window_manager_repository.go
- window_manager_repository_reconcile.go
- window_manager_runtime.go
- window_manager_session_reconciler.go
- window_manager_snapshot_migration.go
- window_manager_workspace_removal.go
- workspace_access_audit.go
- workspace_access_consent.go
- workspace_access_mode_source.go
- workspace_access_prompt_bridge.go
- workspace_deletion_lifecycle.go
- workspace_pattern.go
- worktree_delivery.go
- worktree_forge_provider.go
- worktree_turn_refresh.go