Skip to contents

Creates a file-backed session under <project_dir>/qualification/lrt/<session_id>/, persists the approved plan as an immutable plan.json (its content hash is checked on every advance_sequential_lrt() call), and either adopts an already-fit anchor$job_id or launches a fresh anchor refit (model_stage = "structural_anchor"). Refuses to launch without user_confirmed = TRUE (as an argument, or already set inside spec).

Usage

start_sequential_lrt(spec, project_dir = ".", user_confirmed = FALSE)

Arguments

spec

See validate_sequential_lrt(). Re-validated here; launch is refused on any validation error.

project_dir

Project root; the session directory is created under it.

user_confirmed

Explicit confirmation gate. TRUE here or spec$user_confirmed = TRUE is required to launch.

Value

A list with session_id, state ("anchoring"), session_dir, anchor_job_id, anchor_source ("existing_job"/"launched"), plan_summary, a fixed non_nesting_note, and next_action (call advance_sequential_lrt()).