Skip to main content

require_system_args

Function require_system_args 

Source
fn require_system_args(name: &str, args: &[String]) -> Result<(), String>
Expand description

Render a one-line “what is this binary doing” string for the boot log. Pulls out the high-signal flags (port, vlm model+host) and drops noisy ones (–capabilities, –log, raw API keys). Per-binary required-arg sanity check, run before spawning.

Pilot needs all three VLM fields non-empty. The manifest renders ${VLM_BASE_URL} etc. literally when the env var isn’t set, which produces --vlm-upstream "" — pilot then registers briefly, dies with missing required field 'vlm.upstream', and boot reports [ OK ] because the failure happens after spawn-and-register. Catch it here so the user sees a [FAIL] line naming the bad keys.