Expand description
Phase Inference Rules Engine
Automatically infers trajectory phases from episode patterns. Per SPECIFICATION_HARD.md Section 8.
§Phases
| Phase | Indicators |
|---|---|
| Exploration | Questions, short turns, topic shifts |
| Consolidation | Long 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§
- Phase
Config - Configuration for phase inference.
- Phase
Inferencer - Phase inference engine.
- Phase
Transition - Phase transition detection result.
- Turn
Features - Features extracted from an episode for phase inference.
Enums§
- Trajectory
Phase - Trajectory phase as defined in specification.
Type Aliases§
- Conversation
Phase Deprecated - Backward-compatible type alias.