Files
future-map-OPEN/data/insights-hub/schemas/future-map-derivative.schema.json
T
2026-08-21 13:31:32 -06:00

99 lines
5.1 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "future-map-derivative.schema.json",
"title": "Future Map Authored Derivative",
"type": "object",
"additionalProperties": false,
"required": [
"schema_version", "id", "source_signal_id", "artifact_type", "channel", "audiences",
"objective", "title", "content", "content_format", "call_to_action", "claims_used",
"references", "authoring", "review", "publication", "lineage"
],
"properties": {
"schema_version": {"const": "1.0"},
"id": {"type": "string", "pattern": "^fm-derivative-[a-z0-9-]+-[0-9]{3}$"},
"source_signal_id": {"type": "string", "pattern": "^fm-signal-[a-z0-9-]+$"},
"artifact_type": {"enum": ["social-post", "email-response", "article-section", "presentation-slide", "webinar-talking-point", "prediction", "recommendation", "document-update", "standalone-document", "other"]},
"channel": {"enum": ["linkedin", "x", "email", "article", "presentation", "webinar", "website", "internal", "other"]},
"audiences": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"enum": ["individuals", "families", "workers", "business-leaders", "investors", "policymakers", "consumer-brands", "outdoor-industry"]}},
"objective": {"type": "string", "minLength": 10},
"title": {"type": ["string", "null"]},
"content": {"type": "string", "minLength": 20},
"content_format": {"enum": ["markdown", "plain-text"]},
"call_to_action": {"type": ["string", "null"]},
"claims_used": {
"type": "array",
"items": {
"type": "object", "additionalProperties": false,
"required": ["claim_index", "text", "type", "confidence"],
"properties": {
"claim_index": {"type": "integer", "minimum": 0},
"text": {"type": "string", "minLength": 1},
"type": {"enum": ["reported-fact", "interpretation", "prediction", "opinion", "recommendation"]},
"confidence": {"enum": ["low", "medium", "high"]}
}
}
},
"references": {
"type": "array",
"items": {
"type": "object", "additionalProperties": false,
"required": ["connection_id", "target_type", "target_id", "relationship", "label", "repository_path", "url"],
"properties": {
"connection_id": {"type": "string", "pattern": "^fm-connection-[a-f0-9]{20}$"},
"target_type": {"enum": ["signal", "core-section"]},
"target_id": {"type": "string", "minLength": 1},
"relationship": {"enum": ["supports", "challenges", "updates", "illustrates", "early-warning", "contradicts", "supersedes"]},
"label": {"type": "string", "minLength": 1},
"repository_path": {"type": "string", "minLength": 1},
"url": {"type": "string", "minLength": 1}
}
}
},
"authoring": {
"type": "object", "additionalProperties": false,
"required": ["skill", "source_repository", "source_path", "voice_profile", "authoring_notes", "generated_by", "generated_at"],
"properties": {
"skill": {"const": "eddie-voice-writing"},
"source_repository": {"const": "ES-authoring-skills"},
"source_path": {"const": "skills/ES-writing-skill.md"},
"voice_profile": {"const": "eddie-soehnel"},
"authoring_notes": {"type": "array", "uniqueItems": true, "items": {"type": "string", "minLength": 1}},
"generated_by": {"type": "string", "minLength": 1},
"generated_at": {"type": "string", "format": "date-time"}
}
},
"review": {
"type": "object", "additionalProperties": false,
"required": ["status", "reviewer", "reviewed_at", "feedback"],
"properties": {
"status": {"enum": ["draft", "human-reviewed", "approved", "rejected", "published", "deprecated", "superseded"]},
"reviewer": {"type": ["string", "null"]},
"reviewed_at": {"type": ["string", "null"], "format": "date-time"},
"feedback": {"type": ["string", "null"]}
}
},
"publication": {
"type": "object", "additionalProperties": false,
"required": ["status", "url", "published_at", "channel"],
"properties": {
"status": {"enum": ["not-published", "published", "removed"]},
"url": {"type": ["string", "null"], "format": "uri"},
"published_at": {"type": ["string", "null"], "format": "date-time"},
"channel": {"type": ["string", "null"]}
}
},
"lineage": {
"type": "object", "additionalProperties": false,
"required": ["source_record_hash", "source_reasoning_hash", "selected_connections_hash", "authoring_patch_hash", "supersedes_derivative_id"],
"properties": {
"source_record_hash": {"type": "string", "pattern": "^sha256:[a-f0-9]{64}$"},
"source_reasoning_hash": {"type": "string", "pattern": "^sha256:[a-f0-9]{64}$"},
"selected_connections_hash": {"type": "string", "pattern": "^sha256:[a-f0-9]{64}$"},
"authoring_patch_hash": {"type": "string", "pattern": "^sha256:[a-f0-9]{64}$"},
"supersedes_derivative_id": {"type": ["string", "null"], "pattern": "^fm-derivative-[a-z0-9-]+-[0-9]{3}$"}
}
}
}
}