spawn_with_trust_path

Function spawn_with_trust_path 

Source
pub fn spawn_with_trust_path(
    cfg: AgentConfig,
    trust_path: PathBuf,
    _clock: ClockHandle,
    input_tx: Sender<ReducerInput>,
    shutdown: ShutdownToken,
) -> JoinHandle<()>
Expand description

Tunable-trust-path entry point. Production code calls spawn which threads AgentConfig::trust_file (the --trust-file CLI arg); integration tests under the test-helpers feature gate call this variant with a tempdir-rooted trust.json so the worker can run without touching /etc/nixfleet/agent/. Same convention as nixfleet_agent::runtime::ShutdownToken::__test_only_from_rx.