Expand description
Subagent orchestration (core-owned, tauri-free).
This module coordinates delegated tasks across subagents and executes them via the
unified crate::pipeline::AgentPipeline.
§Layering
- gestura-core owns orchestration policy (permissions, task tracking, execution).
- Adapters (GUI/CLI) may attach observers to emit UI events, but must not re-implement orchestration logic.
Structs§
- Active
Task Snapshot - Active workflow-task snapshot surfaced to adapters for live operator views.
- Agent
Info - Public agent info for status queries
- Agent
Orchestrator - Orchestrator for coordinating subagents and delegated task execution.
- Agent
Spawn Request - Spawn configuration for a managed agent.
- Approval
Actor - Actor provenance for an approval request or decision.
- Approval
Decision - Audit entry for a single approval decision.
- Approval
Policy - End-to-end approval policy for a delegated task.
- Approval
Request - Snapshot of a single approval request.
- Approval
Requirement - Policy requirement for a single approval scope.
- Child
Supervisor RunRequest - Request payload for creating a direct child supervisor run.
- Child
Supervisor RunSummary - Summary stored on parent runs for each child supervisor run.
- Cleanup
Result - Cleanup result for an environment.
- Delegated
Checkpoint Summary - Compact checkpoint metadata surfaced on workflow task records.
- Delegated
Task - Task that can be delegated to a subagent
- Delegated
Task Checkpoint - Durable checkpoint record for delegated-task execution.
- Delegation
Brief - Structured brief attached to delegated work.
- Environment
Failure - Structured failure details for environment operations.
- Environment
Lease - Active or historical environment lease.
- Environment
Record - Durable persisted record for an execution environment.
- Environment
Spec - Durable specification for an execution environment.
- Execution
Environment - Execution environment bound to a task.
- GitWorktree
Spec - Git worktree provisioning details.
- Local
Execution Environment Snapshot - Environment snapshot carried alongside local delegated telemetry.
- Local
Execution Progress - Local delegated execution progress mirrored from the streaming agent loop.
- Local
Execution Record - Mirrored local execution state for a workflow task.
- Local
Execution Token Usage Snapshot - Token usage telemetry captured during local delegated execution.
- Orchestrator
Tool Call - Record of a tool call during orchestrated task execution
- Remote
Agent Target - Remote target details for delegated work that may execute via A2A.
- Remote
Execution Artifact - Summary of a remote artifact available for a task.
- Remote
Execution Compatibility - Compatibility assessment for a remote peer.
- Remote
Execution Progress - Remote progress snapshot mirrored from an A2A task.
- Remote
Execution Record - Mirrored remote execution state for a workflow task.
- Shared
Cognition Note - Durable run-scoped collaboration memory surfaced to workflows and prompt enrichment.
- Supervisor
Hierarchy Summary - Roll-up state for a run and its direct children.
- Supervisor
Inheritance Policy - Inherited policy applied to tasks created inside a supervisor run.
- Supervisor
Parent RunRef - Parent run reference stored on child supervisor runs.
- Supervisor
Run - Persistent supervisor run state.
- Supervisor
RunTask Summary - Task-state counts for a supervisor run.
- Supervisor
Task Record - Persistent task record owned by a supervisor run.
- Task
Approval Record - Approval details tracked per task.
- Task
Artifact Record - Artifact produced by delegated task execution.
- Task
Result - Result from a delegated task
- Team
Action Request - Actionable request embedded in a collaboration message.
- Team
Action Request Draft - Draft payload for creating a new actionable request.
- Team
Artifact Reference - Artifact reference attached to a collaboration message.
- Team
Escalation - Structured escalation details for a collaboration message.
- Team
Escalation Draft - Draft escalation payload for a collaboration message.
- Team
Message - Message exchanged within a supervisor run.
- Team
Message Draft - Draft payload for creating or replying within a collaboration thread.
- Team
Result Reference - Result reference attached to a collaboration message.
- Team
Thread - Grouped collaboration thread view.
Enums§
- Agent
Execution Mode - Execution mode used by a subagent.
- Agent
Role - Specialist role assigned to a managed agent.
- Approval
Actor Kind - Actor category authorized to make approval decisions.
- Approval
Decision Kind - Decision outcome for an approval request.
- Approval
Scope - Gate scope for an approval request.
- Approval
State - Approval state tracked by the supervisor.
- Cleanup
Disposition - Resulting cleanup action for an environment.
- Cleanup
Policy - Cleanup behavior for an execution environment.
- Collaboration
Action Status - Resolution status for an actionable collaboration request.
- Collaboration
Escalation Level - Escalation severity for a collaboration thread.
- Collaboration
Request Kind - Actionable collaboration request type.
- Collaboration
Thread Status - Aggregate status for a collaboration thread.
- Delegated
Checkpoint Action - Operator actions exposed for delegated-task checkpoints.
- Delegated
Checkpoint Stage - Persisted lifecycle stage for a delegated-task checkpoint.
- Delegated
Replay Safety - Replay-safety class used during delegated-task restart reconciliation.
- Delegated
Resume Disposition - Recovery disposition for a delegated-task checkpoint.
- Environment
Failure Kind - Kind of failure observed while managing an environment.
- Environment
Health - Health assessment for an environment on disk.
- Environment
Lease Kind - Lease type held on an environment.
- Environment
State - Durable environment lifecycle state.
- Local
Execution Phase - Local delegated execution progress mirrored from the streaming agent loop.
- Local
Execution Waiting Reason - Structured waiting reason for local delegated execution.
- Recovery
Action - Recommended recovery action for an environment.
- Recovery
Status - Recovery status for an environment.
- Shared
Cognition Kind - Structured shared-cognition note persisted on a supervisor run and projected into durable memory.
- Supervisor
RunStatus - Aggregate status for a supervisor run.
- Supervisor
Task State - Execution state for a task managed by the supervisor.
- Task
Terminal State Hint - Optional terminal-state mapping returned by delegated execution.
- Team
Message Kind - Structured team-message category.
Constants§
- DEFAULT_
RESOLVED_ THREAD_ RETENTION_ DAYS - Retention period before resolved threads are auto-archived.
- MAX_
CHILD_ SUPERVISOR_ DEPTH - Maximum allowed parent -> child supervisor depth.
- SHARED_
COGNITION_ CATEGORY - Durable memory-bank category used for run/task shared cognition.
- SHARED_
COGNITION_ TAG - Stable tag applied to shared-cognition memory entries.
Traits§
- Agent
Spawner - Trait for spawning and managing isolated agents
- Orchestrator
Agent Manager - Agent manager capabilities required by the orchestrator.
- Orchestrator
Observer - Optional observer for adapter-side UI/event wiring.
Functions§
- actor_
kind_ for_ agent_ role - Infer the default actor kind from an agent role when possible.
- archive_
resolved_ threads - Archive resolved threads older than the configured retention period.
- build_
team_ threads - Build grouped threads from flat collaboration messages.
- build_
team_ threads_ with_ options - Build grouped threads from flat collaboration messages with archive controls.
- default_
actor_ kind_ for_ scope - Build the default approval actor role for a task gate scope.