Raw schema
{
"type": "object",
"properties": {
"cause": {
"title": "Cause",
"type": "string"
},
"effect": {
"title": "Effect",
"type": "string"
},
"csv": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Csv"
},
"data": {
"anyOf": [
{
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Data"
},
"dataset_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Dataset Id"
},
"known_confounders": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Known Confounders"
},
"context": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Context"
},
"units": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Units"
},
"step": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Step"
},
"time_col": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Time Col"
},
"adstock": {
"anyOf": [
{
"$ref": "#/$defs/AdstockOptions"
},
{
"type": "null"
}
],
"default": null
},
"se": {
"default": "auto",
"enum": [
"nonrobust",
"HC1",
"HAC",
"auto"
],
"title": "Se",
"type": "string"
},
"test_design": {
"anyOf": [
{
"type": "boolean"
},
{
"$ref": "#/$defs/TestDesignOptions"
}
],
"default": false,
"title": "Test Design"
},
"estimator": {
"anyOf": [
{
"enum": [
"ols_adjusted",
"aipw",
"ipw",
"psm",
"dml_forest"
],
"type": "string"
},
{
"const": "auto",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Estimator"
},
"config": {
"anyOf": [
{
"$ref": "#/$defs/EngineConfigIn"
},
{
"type": "null"
}
],
"default": null
},
"seed": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Seed"
},
"cate": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Cate"
},
"sensitivity": {
"default": false,
"title": "Sensitivity",
"type": "boolean"
}
},
"required": [
"cause",
"effect"
],
"$defs": {
"AdstockOptions": {
"description": "Opt-in geometric-adstock transform for a lagged/carryover treatment.\n\nMirrors `syl_causal_core.adstock.AdstockSpec`; the decay search itself (when\n`decay` is omitted) is run deterministically by `syl-causal-core`, never here.",
"properties": {
"time_col": {
"description": "Column to sort by before applying the adstock transform.",
"title": "Time Col",
"type": "string"
},
"decay": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"description": "Fixed decay in [0, 1). Omit to grid-search it by AIC.",
"title": "Decay"
},
"grid": {
"anyOf": [
{
"items": {
"type": "number"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Candidate decay values to grid-search when `decay` is omitted.",
"title": "Grid"
}
},
"required": [
"time_col"
],
"title": "AdstockOptions",
"type": "object"
},
"EngineConfigIn": {
"additionalProperties": false,
"description": "Per-step engine mode: ``\"rule\"`` (deterministic, no LLM) or ``\"llm\"``.\n\nOmitted steps take their defaults: ``cleaning=\"llm\"``, ``discovery=\"llm\"``,\n``estimator=\"rule\"``, ``summary=\"rule\"``. An ``\"llm\"`` step falls back to the rule\npath (and says so in the response's ``engine_steps``) when no server-side Gemini\nkey is configured or the LLM call fails. The LLM never computes a number.",
"properties": {
"cleaning": {
"anyOf": [
{
"enum": [
"rule",
"llm"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Derived-column proposals and null imputation. Default 'llm'.",
"title": "Cleaning"
},
"discovery": {
"anyOf": [
{
"enum": [
"rule",
"llm"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "LLM pruning/orienting of the discovered DAG. Guardian always supplies cause/effect, so this only affects prune/orient. Default 'llm'.",
"title": "Discovery"
},
"estimator": {
"anyOf": [
{
"enum": [
"rule",
"llm"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Primary-effect estimator choice. Default 'rule'.",
"title": "Estimator"
},
"summary": {
"anyOf": [
{
"enum": [
"rule",
"llm"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Interpretation prose. Default 'rule': a fixed, audit-friendly template that explains the why (confounder importance, interval, adjustment set, estimator). 'llm' lets Gemini write prose (never numbers).",
"title": "Summary"
}
},
"title": "EngineConfigIn",
"type": "object"
},
"TestDesignOptions": {
"description": "Tuning for the opt-in spend-cut test design (`syl_causal_core.design_spend_test`).",
"properties": {
"cut_fraction": {
"default": 0.5,
"description": "Fraction of baseline spend to cut.",
"exclusiveMinimum": 0,
"maximum": 1,
"title": "Cut Fraction",
"type": "number"
},
"detectable_multiplier": {
"default": 1.2,
"description": "Size the test to detect this multiple of the fitted effect.",
"exclusiveMinimum": 0,
"title": "Detectable Multiplier",
"type": "number"
},
"alpha": {
"default": 0.05,
"exclusiveMaximum": 1,
"exclusiveMinimum": 0,
"title": "Alpha",
"type": "number"
},
"power": {
"default": 0.8,
"exclusiveMaximum": 1,
"exclusiveMinimum": 0,
"title": "Power",
"type": "number"
}
},
"title": "TestDesignOptions",
"type": "object"
}
},
"additionalProperties": false,
"title": "guardian_reviewArguments"
}