{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/useimmensity-com/json-schema/useimmensity-com-signal-case-document-schema.json",
  "title": "SignalCaseDocument",
  "description": "The complete document served to the three Signal workspace screens.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/useimmensity-com-openapi.json#/components/schemas/SignalCaseDocument",
  "properties": {
    "version": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Version"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "generating",
        "ready",
        "stale",
        "insufficient_evidence",
        "failed"
      ],
      "title": "Status"
    },
    "progress": {
      "anyOf": [
        {
          "$ref": "#/$defs/SignalAnalysisProgress"
        },
        {
          "type": "null"
        }
      ]
    },
    "safeError": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Safeerror"
    },
    "project": {
      "$ref": "#/$defs/SignalProjectContext"
    },
    "metrics": {
      "$ref": "#/$defs/SignalMetricSnapshot"
    },
    "thesis": {
      "anyOf": [
        {
          "$ref": "#/$defs/SignalThesis"
        },
        {
          "type": "null"
        }
      ]
    },
    "claims": {
      "items": {
        "$ref": "#/$defs/SignalClaim"
      },
      "type": "array",
      "title": "Claims"
    },
    "problemUnits": {
      "items": {
        "$ref": "#/$defs/SignalProblemUnit"
      },
      "type": "array",
      "maxItems": 20,
      "title": "Problemunits"
    },
    "audiences": {
      "items": {
        "$ref": "#/$defs/SignalAudience"
      },
      "type": "array",
      "title": "Audiences"
    },
    "alternatives": {
      "items": {
        "$ref": "#/$defs/SignalAlternative"
      },
      "type": "array",
      "title": "Alternatives"
    },
    "assumptions": {
      "items": {
        "$ref": "#/$defs/SignalAssumption"
      },
      "type": "array",
      "title": "Assumptions"
    },
    "evidence": {
      "items": {
        "$ref": "#/$defs/SignalEvidenceRecord"
      },
      "type": "array",
      "title": "Evidence"
    },
    "recommendedFocus": {
      "anyOf": [
        {
          "$ref": "#/$defs/SignalRecommendedFocus"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "version",
    "status",
    "project",
    "metrics"
  ],
  "$defs": {
    "SignalAlternative": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "title": "Id"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "title": "Name"
        },
        "category": {
          "type": "string",
          "enum": [
            "manual",
            "software",
            "service",
            "avoidance",
            "none"
          ],
          "title": "Category"
        },
        "reasonUsed": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reasonused"
        },
        "weakness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Weakness"
        },
        "evidenceIds": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Evidenceids"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "name",
        "category"
      ],
      "title": "SignalAlternative"
    },
    "SignalAnalysisProgress": {
      "properties": {
        "step": {
          "type": "string",
          "enum": [
            "queued",
            "preparing_evidence",
            "analyzing_problem",
            "mapping_context",
            "validating_citations",
            "saving"
          ],
          "title": "Step"
        },
        "label": {
          "type": "string",
          "maxLength": 160,
          "minLength": 1,
          "title": "Label"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "step",
        "label"
      ],
      "title": "SignalAnalysisProgress"
    },
    "SignalAssumption": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "title": "Id"
        },
        "question": {
          "type": "string",
          "minLength": 1,
          "title": "Question"
        },
        "whyItMatters": {
          "type": "string",
          "minLength": 1,
          "title": "Whyitmatters"
        },
        "category": {
          "type": "string",
          "enum": [
            "problem",
            "audience",
            "behavior",
            "access",
            "willingness_to_pay",
            "feasibility"
          ],
          "title": "Category"
        },
        "evidenceStrength": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ],
          "title": "Evidencestrength"
        },
        "evidenceIds": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Evidenceids"
        },
        "resolutionEvidence": {
          "type": "string",
          "minLength": 1,
          "title": "Resolutionevidence"
        },
        "problemUnitId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Problemunitid"
        },
        "resolved": {
          "type": "boolean",
          "title": "Resolved",
          "default": false
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "question",
        "whyItMatters",
        "category",
        "evidenceStrength",
        "resolutionEvidence"
      ],
      "title": "SignalAssumption"
    },
    "SignalAudience": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "title": "Id"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "title": "Name"
        },
        "description": {
          "type": "string",
          "minLength": 1,
          "title": "Description"
        },
        "kind": {
          "type": "string",
          "enum": [
            "observed",
            "inferred",
            "user_confirmed"
          ],
          "title": "Kind"
        },
        "language": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Language"
        },
        "communities": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Communities"
        },
        "reachChannels": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Reachchannels"
        },
        "evidenceIds": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Evidenceids"
        },
        "unknowns": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Unknowns"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "name",
        "description",
        "kind"
      ],
      "title": "SignalAudience"
    },
    "SignalClaim": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "title": "Id"
        },
        "text": {
          "type": "string",
          "minLength": 1,
          "title": "Text"
        },
        "kind": {
          "type": "string",
          "enum": [
            "observed",
            "inferred",
            "user_confirmed"
          ],
          "title": "Kind"
        },
        "confidence": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ],
          "title": "Confidence"
        },
        "evidenceIds": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Evidenceids"
        },
        "confirmed": {
          "type": "boolean",
          "title": "Confirmed",
          "default": false
        },
        "rejected": {
          "type": "boolean",
          "title": "Rejected",
          "default": false
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "text",
        "kind",
        "confidence"
      ],
      "title": "SignalClaim"
    },
    "SignalEvidenceRecord": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "title": "Id"
        },
        "title": {
          "type": "string",
          "minLength": 1,
          "title": "Title"
        },
        "excerpt": {
          "type": "string",
          "minLength": 1,
          "title": "Excerpt"
        },
        "body": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Body"
        },
        "platform": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Platform"
        },
        "community": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Community"
        },
        "author": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Author"
        },
        "observedAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Observedat"
        },
        "score": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Score"
        },
        "commentCount": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Commentcount"
        },
        "sourceUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sourceurl"
        },
        "stance": {
          "type": "string",
          "enum": [
            "supporting",
            "contradictory",
            "ambiguous",
            "excluded"
          ],
          "title": "Stance"
        },
        "claimIds": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Claimids"
        },
        "problemUnitIds": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Problemunitids"
        },
        "relevanceReason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Relevancereason"
        },
        "pinned": {
          "type": "boolean",
          "title": "Pinned",
          "default": false
        },
        "userNote": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Usernote"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "title",
        "excerpt",
        "stance"
      ],
      "title": "SignalEvidenceRecord"
    },
    "SignalMetricSnapshot": {
      "properties": {
        "freshnessDays": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Freshnessdays"
        },
        "evidenceCount": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Evidencecount"
        },
        "authorCount": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Authorcount"
        },
        "sourceDiversity": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Sourcediversity"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "evidenceCount"
      ],
      "title": "SignalMetricSnapshot"
    },
    "SignalProblemUnit": {
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "title": "Id"
        },
        "parentId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Parentid"
        },
        "title": {
          "type": "string",
          "minLength": 1,
          "title": "Title"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "kind": {
          "type": "string",
          "enum": [
            "cause",
            "core_problem",
            "symptom",
            "consequence",
            "workaround"
          ],
          "title": "Kind"
        },
        "audienceIds": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Audienceids"
        },
        "claimIds": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Claimids"
        },
        "evidenceIds": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Evidenceids"
        },
        "evidenceCount": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Evidencecount"
        },
        "sourceDiversity": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Sourcediversity"
        },
        "frequency": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "low",
                "medium",
                "high"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Frequency"
        },
        "intensity": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "low",
                "medium",
                "high"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Intensity"
        },
        "momentum30d": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Momentum30D"
        },
        "confidence": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ],
          "title": "Confidence"
        },
        "affectedUsers": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Affectedusers"
        },
        "situation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Situation"
        },
        "relatedProblemIds": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Relatedproblemids"
        },
        "pinned": {
          "type": "boolean",
          "title": "Pinned",
          "default": false
        },
        "rejected": {
          "type": "boolean",
          "title": "Rejected",
          "default": false
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "id",
        "title",
        "kind",
        "evidenceCount",
        "confidence"
      ],
      "title": "SignalProblemUnit"
    },
    "SignalProjectContext": {
      "properties": {
        "pipelineId": {
          "type": "string",
          "minLength": 1,
          "title": "Pipelineid"
        },
        "projectName": {
          "type": "string",
          "minLength": 1,
          "title": "Projectname"
        },
        "clusterName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Clustername"
        },
        "sourceFingerprint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sourcefingerprint"
        },
        "analyzedAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Analyzedat"
        },
        "sourceUpdatedAt": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sourceupdatedat"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "pipelineId",
        "projectName"
      ],
      "title": "SignalProjectContext"
    },
    "SignalRecommendedFocus": {
      "properties": {
        "problemUnitId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Problemunitid"
        },
        "title": {
          "type": "string",
          "minLength": 1,
          "title": "Title"
        },
        "rationale": {
          "type": "string",
          "minLength": 1,
          "title": "Rationale"
        },
        "supported": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Supported"
        },
        "risky": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Risky"
        },
        "suggestedValidationStep": {
          "type": "string",
          "minLength": 1,
          "title": "Suggestedvalidationstep"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "title",
        "rationale",
        "suggestedValidationStep"
      ],
      "title": "SignalRecommendedFocus"
    },
    "SignalThesis": {
      "properties": {
        "statement": {
          "type": "string",
          "minLength": 1,
          "title": "Statement"
        },
        "audience": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Audience"
        },
        "context": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Context"
        },
        "coreProblem": {
          "type": "string",
          "minLength": 1,
          "title": "Coreproblem"
        },
        "consequence": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Consequence"
        },
        "workaround": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Workaround"
        },
        "claimIds": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Claimids"
        },
        "confirmed": {
          "type": "boolean",
          "title": "Confirmed",
          "default": false
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "statement",
        "coreProblem"
      ],
      "title": "SignalThesis"
    }
  }
}