pub async fn bootstrap_palace(
state: &AppState,
palace_id: &str,
project_path: Option<&Path>,
) -> Result<BootstrapResult>Expand description
Run the bootstrap scan against a palace.
Why: Single async entry point that the MCP dispatcher (and the
auto-bootstrap hook in palace_create) calls. Encapsulates path
resolution, scanning, triple construction, and KG assertion.
What: Resolves project_path (caller-supplied), runs the blocking
scanner, seeds temporal metadata triples, and asserts every discovery
through handle.kg.assert(...). Returns a summary of what was written.
Test: bootstrap_palace_seeds_temporal_metadata_when_no_files,
bootstrap_palace_scans_cargo_toml.