Skip to main content

deploy_and_log

Function deploy_and_log 

Source
pub fn deploy_and_log(project_root: Option<&Path>) -> Option<RosterDeploy>
Expand description

Run ensure_roster_deployed for a bound project and log what happened.

Why: two entry points materialize the roster — the daemon’s router build and the legacy in-process run-task — and both want the same behaviour: deploy if we can, report loudly if we cannot, and never abort the run. A failed deploy is recoverable, because crate::agents::load_embedded_default_agents still answers every resolution from memory; aborting would turn a repairable ledger into an unusable harness. What: None when project_root is None (a projectless session writes nothing and keeps the in-memory embed). Otherwise the outcome, with a tracing::error! naming the failure when one occurred. #2074. No content installed is reported once per process with the loader’s line (#9011 D4). Test: deploy_and_log_is_a_no_op_without_a_project, deploy_and_log_reports_a_corrupt_ledger_without_panicking.