Expand description
AI Plan snapshot.
Plan stores one immutable planning revision for an Intent. It
records the chosen strategy, the stable step structure, and the
frozen planning context used to derive that strategy.
§How to use this object
- Create a base
Planafter analyzing anIntent. - Create a new
Planrevision when replanning is needed. - Use multi-parent revisions to represent merged planning branches.
- Freeze planning-time context through
context_frames. - Keep analysis-time context on the owning
Intent; do not reuse this field for prompt-analysis inputs.
§How it works with other objects
Intentis the canonical owner viaPlan.intent.Task.origin_step_idpoints back to the logical step that spawned delegated work.PlanStepEventrecords runtime step status, produced context, outputs, and spawned tasks.ContextFramestores incremental context facts referenced by the plan or step events.
§How Libra should call it
Libra should write a new Plan whenever the strategy itself changes.
Libra should not mutate a stored plan to reflect execution progress;
instead it should append PlanStepEvent objects and keep the active
plan head in scheduler state.