Expand description
Deterministic task decomposition primitives.
This module defines an internal, validated acyclic artifact for turning focused context into bounded inspection and verification hints. It does not execute anything and performs no IO.
Structs§
- Retry
Policy - Deterministic retry policy metadata. This is descriptive in v0.1; no executor consumes it yet.
- Task
Context Item - A receipt-backed context item that can seed a grounded task brief.
- Task
Context Slice - A bounded, task-local read pack derived from a DAG node.
- TaskDag
- An internal acyclic decomposition for an agent task brief.
- Task
Event - A single state transition, with optional evidence attached by a future executor/reviewer.
- Task
Node - One node in a task DAG.
- TaskRun
- A deterministic readiness projection for an internal decomposition.
Enums§
- DagValidation
Error - Validation failures for a task DAG.
- Task
Context Error - Invalid task-context slice requests.
- Task
Event Error - Invalid state-transition attempts.
- Task
Operator - The kind of work a task node represents.
- Task
Risk - Coarse execution risk, used by future schedulers to gate writes/tests differently from reads.
- Task
State - Runtime state vocabulary for future executors. The planner emits
Pendingonly.
Functions§
- apply_
task_ event - Apply a state event and return the next run projection.
- draft_
task_ dag - Draft a conservative non-executing decomposition from a task and its focused context.
- initial_
run - Create an initial run projection and mark dependency-free tasks as ready.
- ready_
tasks - Return ready task ids in deterministic order for the current run projection.
- task_
context_ slice - Return the smallest useful context slice for one DAG task.
- task_
context_ slice_ for_ run - Return a task context slice annotated with the current run state.
- validate_
dag - Validate a DAG and return a deterministic topological execution order.