pub fn arm(agent: &mut Agent, store: &SessionStore, name: &str) -> RestoreReportExpand description
BP-8 — arm what [core.session] promises for a session about to go live
under name, and restore what a previous process left behind.
This is the composition, in the crate that owns both halves, so the CLI’s session doors and an SDK embedder that owns a store run the SAME code — and so a test can drive the real path rather than a copy of it.
Order matters: everything is RESTORED first and the journal is opened for writing LAST, so a restored queue entry or plan is never re-recorded (which would double it on the next restart).