Module phase

Module phase 

Source
Expand description

Phase Inference Rules Engine

Automatically infers trajectory phases from episode patterns. Per SPECIFICATION_HARD.md Section 8.

§Phases

PhaseIndicators
ExplorationQuestions, short turns, topic shifts
ConsolidationLong responses, code blocks, file references
Synthesis“Decision:”, “Let’s go with”, summaries
Debugging“Traceback”, “Exception”, “doesn’t work”, traces
Planning“Phase”, “roadmap”, “steps”, numbered lists

§Performance

This module uses compiled regex patterns and efficient string matching for high-throughput inference over large corpora.

Structs§

PhaseConfig
Configuration for phase inference.
PhaseInferencer
Phase inference engine.
PhaseTransition
Phase transition detection result.
TurnFeatures
Features extracted from an episode for phase inference.

Enums§

TrajectoryPhase
Trajectory phase as defined in specification.

Type Aliases§

ConversationPhaseDeprecated
Backward-compatible type alias.