//! Active planner for Common Agent Runtime.
//!
//! Composes inference (candidate generation) with static scoring (car-planner)
//! to produce, evaluate, and select the best proposal for a given goal.
//!
//! Also provides `ActiveReplanAdapter` — a `ReplanCallback` implementation
//! that generates diverse alternatives when a proposal fails.
//!
//! ## Architecture
//!
//! ```text
//! Goal/FailureContext
//!   → generate_candidates() [N parallel inference calls with strategy diversity]
//!   → parse() [LLM text → ActionProposal with JSON repair]
//!   → planner.rank() [static verification + cost scoring]
//!   → best proposal
//! ```

mod generate;
mod parse;
mod replan_adapter;

pub use generate::{generate_candidates, ActivePlannerConfig, Strategy};
pub use parse::{parse_proposal, ParseError};
pub use replan_adapter::ActiveReplanAdapter;
