{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.demiton.io/registers/memory_recall/v1.json",
  "title": "memory_recall contract v1",
  "type": "object",
  "required": [
    "confidence",
    "content",
    "occurred_at",
    "subject_entity_id"
  ],
  "properties": {
    "domain": {
      "type": "string",
      "description": "The report's business domain (e.g. `finance`, `operations`).",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "none"
    },
    "content": {
      "type": "string",
      "description": "The durable conclusion: a chat statement, a run narrative, or a report finding.",
      "x-demiton-requiredness": "required",
      "x-demiton-unit": "none"
    },
    "citation": {
      "type": "object",
      "description": "Provenance leaf (shelf, source kind, origin URI, confidence).",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "none"
    },
    "confidence": {
      "type": "number",
      "description": "Producer's confidence in the statement.",
      "x-demiton-requiredness": "required",
      "x-demiton-unit": "none"
    },
    "occurred_at": {
      "type": "string",
      "description": "When the remembered event happened (the atom's event time).",
      "x-demiton-requiredness": "required",
      "x-demiton-unit": "none",
      "format": "date-time",
      "x-demiton-type": "datetime"
    },
    "report_type": {
      "type": "string",
      "description": "The report class.",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "none"
    },
    "source_type": {
      "type": "string",
      "description": "`report_run` \\",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "`workflow_run` \\"
    },
    "valid_until": {
      "type": "string",
      "description": "Soft-delete/retirement time; `NULL` means live.",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "none",
      "format": "date-time",
      "x-demiton-type": "datetime"
    },
    "workflow_name": {
      "type": "string",
      "description": "Report workflow name, also embedded in `content`.",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "none"
    },
    "summary_source": {
      "type": "string",
      "description": "none",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "deterministic fallback)"
    },
    "run_finished_at": {
      "type": "string",
      "description": "When the producing run finished.",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "none",
      "format": "date-time",
      "x-demiton-type": "datetime"
    },
    "workflow_run_id": {
      "type": "integer",
      "description": "The `WorkflowRun` whose completion produced the narrative or finding.",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "none"
    },
    "subject_entity_id": {
      "type": "string",
      "description": "The subject the memory is about; today always the org-root Entity for narratives and reports, or the resolved entity/project for chat.",
      "x-demiton-requiredness": "required",
      "x-demiton-unit": "none",
      "x-demiton-reference": true
    },
    "workflow_run_name": {
      "type": "string",
      "description": "Display name of the producing run.",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "none"
    }
  },
  "x-demiton-register-type": "memory_recall",
  "x-demiton-contract-version": "1.0.3",
  "x-demiton-store": "tenant",
  "x-demiton-axes": [],
  "x-demiton-measures": [],
  "x-demiton-provenance": {
    "standards": [
      {
        "code": "Privacy Act 1988 (Cth)",
        "title": "Privacy Act 1988 - Australian Privacy Principles",
        "access": "public_summary",
        "clause": "APPs 1-13; ss 6FA, 6FB (sensitive/health information as cited)",
        "region": "Australia",
        "edition": "compilation current at 2026-09",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Regulation (EU) 2016/679 (GDPR)",
        "title": "General Data Protection Regulation",
        "access": "public_summary",
        "region": "European Union",
        "edition": "2016/679",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Privacy Act 2020 (NZ)",
        "title": "Privacy Act 2020 - Information Privacy Principles",
        "access": "public_summary",
        "region": "New Zealand",
        "edition": "2020 No 31",
        "checked_on": "2026-09-14"
      },
      {
        "code": "UK GDPR and Data Protection Act 2018",
        "title": "UK General Data Protection Regulation with Data Protection Act 2018",
        "access": "public_summary",
        "region": "United Kingdom",
        "edition": "UK GDPR (retained) + DPA 2018",
        "checked_on": "2026-09-14"
      }
    ]
  },
  "description": "Conclusions Ask Demiton and your workflows have written back to memory.",
  "x-demiton-contract-url": "https://docs.demiton.io/registers/memory_recall/",
  "x-demiton-register-catalog": "https://docs.demiton.io/concepts/register-catalog"
}