pub fn validate_input(
args: Value,
manifest: &Manifest,
cell_map: &CellMap,
) -> Result<ValidatedInput, WorkbookToolError>Expand description
Validate + tier-check the raw tool args against the manifest + cell_map, fail-closed.
§Errors
Returns a WorkbookToolError (NOT an Err the handler surfaces as a
protocol error — the handler renders it as isError:true) when:
- arg-parse /
deny_unknown_fieldsfails (invalid_input); - an
inputskey is not a knowncell_mapjson_key(invalid_input, WR-05); - a supplied input’s
seed_coordhas no manifest role (invalid_input, WR-05); - a value fails its declared dtype or closed-enum membership (
invalid_input, WR-01/WR-02); - an
overrideskey resolves to a strict constant (strict_constant_override, V4) or to no manifest cell (unsupported_option).