cosmotron_mcp.inference.validate¶
validate_inference_spec ¶
Validate an InferenceSpec (schema + SACC file checks); promote a valid draft.
Runs the full validator (check_files=True — SACC exists, per-bin prior counts
match the SACC's bins, external-likelihood names resolve). On valid: True the
normalised spec is written to inference_spec.json beside the draft (the auditable
document of record) and its path is returned as final_path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session_dir
|
str
|
Session directory. |
required |
spec_path
|
str
|
Path to the spec JSON to validate. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
|
dict
|
is the promoted |