Raw schema
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"status",
"run",
"diary",
"revert",
"configure",
"apply"
],
"description": "\"status\" reports the settings, the last/next dream and any sweep in flight. \"run\" starts (or continues) a sweep NOW and advances it as far as one request allows. \"diary\" returns recent Dream Diary entries (newest first). \"revert\" undoes one dream via its preimages (requires `id`). \"configure\" changes this vault's dreaming settings. \"apply\" decides a proposed dream (propose mode): applies the listed `proposals` (all when omitted) and rejects the rest (requires `id`)."
},
"id": {
"type": "string",
"description": "With \"revert\" or \"apply\": the dream id (from \"diary\" or \"status\")."
},
"proposals": {
"type": "array",
"items": {
"type": "integer",
"minimum": 0
},
"maxItems": 200,
"description": "With \"apply\": the proposal numbers (`n`) to approve; omit for all, [] to reject all."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "With \"diary\": how many entries to return (default 10)."
},
"enabled": {
"type": "boolean",
"description": "With \"configure\": Turn scheduled dreaming on or off."
},
"cadenceHours": {
"type": "integer",
"minimum": 1,
"maximum": 168,
"description": "With \"configure\": Hours between dreams (default 24)."
},
"runHourUtc": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 23
},
{
"type": "null"
}
],
"description": "With \"configure\": Preferred UTC hour for a dream when the cadence is 24h or more; null clears it."
},
"mode": {
"type": "string",
"enum": [
"apply",
"propose",
"light-only"
],
"description": "With \"configure\": \"apply\" writes the changes that pass the gates (default); \"propose\" holds them in the Dream Diary until approved with {action: \"apply\"}; \"light-only\" never calls an LLM."
},
"phases": {
"type": "object",
"properties": {
"merges": {
"type": "boolean"
},
"promotions": {
"type": "boolean"
},
"links": {
"type": "boolean"
},
"contradictions": {
"type": "boolean"
}
},
"additionalProperties": false,
"description": "With \"configure\": Turn individual kinds of change on or off: merges, promotions, links, contradictions."
},
"thresholds": {
"type": "object",
"properties": {
"merge": {
"type": "number",
"minimum": 0.5,
"maximum": 1
},
"promote": {
"$ref": "#/properties/thresholds/properties/merge"
},
"link": {
"$ref": "#/properties/thresholds/properties/merge"
},
"contradiction": {
"$ref": "#/properties/thresholds/properties/merge"
}
},
"additionalProperties": false,
"description": "With \"configure\": Minimum confidence (0.5-1) per kind: merge 0.8, promote 0.7, link 0.7, contradiction 0.6 by default."
},
"caps": {
"type": "object",
"properties": {
"maxMerges": {
"type": "integer",
"minimum": 1,
"maximum": 20
},
"maxPromotions": {
"type": "integer",
"minimum": 1,
"maximum": 20
},
"maxLinks": {
"type": "integer",
"minimum": 1,
"maximum": 50
},
"maxContradictions": {
"type": "integer",
"minimum": 1,
"maximum": 10
}
},
"additionalProperties": false,
"description": "With \"configure\": Most changes per dream: maxMerges 5 (1-20), maxPromotions 5 (1-20), maxLinks 10 (1-50), maxContradictions 3 (1-10)."
},
"lossRail": {
"type": "object",
"properties": {
"maxTouchFraction": {
"type": "number",
"minimum": 0.01,
"maximum": 0.2
},
"minTouchAllowance": {
"type": "integer",
"minimum": 0,
"maximum": 3
}
},
"additionalProperties": false,
"description": "With \"configure\": How much of the vault one dream may modify: maxTouchFraction (0.01-0.2) and minTouchAllowance (0-3). Can only be made stricter than the defaults."
},
"llm": {
"type": "object",
"properties": {
"provider": {
"type": "string",
"enum": [
"auto",
"workers-ai",
"byok"
]
},
"model": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 200,
"pattern": "^[A-Za-z0-9._:/@-]+$"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false,
"description": "With \"configure\": Cloud: which LLM the REM step uses — \"auto\" (default), \"workers-ai\", or \"byok\" (only the account's own key) — and a model id for the account's own key; null clears it."
}
},
"required": [
"action"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}