Skip to main content

Module workflow

Module workflow 

Source
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§

RetryPolicy
Deterministic retry policy metadata. This is descriptive in v0.1; no executor consumes it yet.
TaskContextItem
A receipt-backed context item that can seed a grounded task brief.
TaskContextSlice
A bounded, task-local read pack derived from a DAG node.
TaskDag
An internal acyclic decomposition for an agent task brief.
TaskEvent
A single state transition, with optional evidence attached by a future executor/reviewer.
TaskNode
One node in a task DAG.
TaskRun
A deterministic readiness projection for an internal decomposition.

Enums§

DagValidationError
Validation failures for a task DAG.
TaskContextError
Invalid task-context slice requests.
TaskEventError
Invalid state-transition attempts.
TaskOperator
The kind of work a task node represents.
TaskRisk
Coarse execution risk, used by future schedulers to gate writes/tests differently from reads.
TaskState
Runtime state vocabulary for future executors. The planner emits Pending only.

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.