Expand description
Task Operating State — introspection-driven state synthesis.
This module defines the types and synthesis rules for building a
TaskOperatingState from raw subsystem outputs (TaskStateInput).
§Design Invariants
roboticus-agentowns all synthesis rules.roboticus-apisupplies inputs only.- No duplicated truth between crates — if both compute “fit,” that’s a bug.
- Memory has two roles:
- Conversation: ambient enrichment (passive, automatic)
- Task: operational input (active, introspective)
InspectMemoryapplies to task turns only. Conversational turns get passive memory via the existing context builder.
Structs§
- Behavioral
History - Behavioral self-assessment based on recent output history.
- Declared
Action - A user-declared action that must be resolved, not redirected.
- Declared
Action State - Assessment of whether the user declared a specific action.
- Decomposition
Proposal - Decomposition gate output, used as one scored signal by the planner.
- Memory
Confidence - Memory retrieval confidence assessment.
- Roster
Fit - Subagent roster fit assessment.
- Runtime
Constraints - Runtime and storage constraints affecting action selection.
- Skill
Fit - Skill fit assessment.
- Task
Operating State - Full introspection-driven operating state for a turn.
- Task
State Input - Raw facts assembled by
roboticus-apifrom pipeline subsystems. This is the sole input tosynthesize— the API layer collects these values but does NOT interpret them. - ToolFit
- Tool availability and relevance assessment.
Enums§
- Task
Classification - Classification of the turn as task-oriented or conversational.
Constants§
- ACTION_
VERBS - Canonical list of physical/mechanical action verbs indicating the user is
declaring an action that must be resolved, not a conversational request.
Shared between
task_state::assess_declared_actionand theDeclaredActionGuardinguard_registry.rs.
Functions§
- extract_
echo_ fragments - Extract notable phrases (8+ words) from assistant response text.
- response_
skeleton - Derive a compact structural skeleton label from an assistant response.
- synthesize
- Synthesize a
TaskOperatingStatefrom raw subsystem outputs.