{ "lexicon": 1, "id": "org.latha.strata", "description": "A structured synthesis of an external source, cross-referenced with local knowledge (carry + vault). The stigmergic signal — a pheromone trail others can discover and build on.", "defs": { "main": { "type": "record", "description": "A Strata synthesis record. Produced when a user runs Strata analysis on a Semble card (or any AT Protocol record). Cross-references the source with the user's vault and carry data, producing themes, connections, tensions, and a prose synthesis.", "key": "tid", "record": { "type": "object", "required": ["source", "analysis", "createdAt"], "properties": { "source": { "type": "ref", "ref": "#sourceRef", "description": "The source record that triggered this analysis." }, "analysis": { "type": "ref", "ref": "#structuredAnalysis", "description": "The structured analysis output." }, "carryRefs": { "type": "array", "maxLength": 20, "items": { "type": "ref", "ref": "#carryCrossRef" }, "description": "Carry entities cross-referenced in this analysis. Carry stays local-first — only summaries are included unless explicitly published as companion records." }, "createdAt": { "type": "string", "format": "datetime", "description": "When this synthesis was created." }, "updatedAt": { "type": "string", "format": "datetime", "description": "When this synthesis was last updated." } } } }, "sourceRef": { "type": "object", "description": "Reference to the source record that triggered the analysis.", "required": ["uri"], "properties": { "uri": { "type": "string", "format": "at-uri", "description": "AT URI of the source record (Semble card, Bluesky post, etc.)" }, "cid": { "type": "string", "description": "CID of the source record at time of analysis." }, "collection": { "type": "string", "description": "NSID of the source collection (e.g. network.cosmik.card)." } } }, "structuredAnalysis": { "type": "object", "description": "The structured output of a Strata analysis run.", "required": ["themes"], "properties": { "themes": { "type": "array", "maxLength": 20, "items": { "type": "string", "maxGraphemes": 100 }, "description": "Key themes identified in the source." }, "connections": { "type": "array", "maxLength": 20, "items": { "type": "ref", "ref": "#connection" }, "description": "Connections to existing knowledge in vault and carry." }, "tensions": { "type": "array", "maxLength": 10, "items": { "type": "string", "maxGraphemes": 500 }, "description": "Tensions or contradictions with existing claims." }, "openQuestions": { "type": "array", "maxLength": 10, "items": { "type": "string", "maxGraphemes": 500 }, "description": "Questions raised by the analysis." }, "synthesis": { "type": "string", "maxGraphemes": 2000, "maxLength": 20000, "description": "Prose synthesis connecting the source to existing knowledge." } } }, "connection": { "type": "object", "description": "A connection between the source and an existing knowledge item.", "required": ["description", "targetUri"], "properties": { "description": { "type": "string", "maxGraphemes": 500, "description": "Human-readable description of the connection." }, "targetUri": { "type": "string", "format": "at-uri", "description": "AT URI of the connected record." }, "relation": { "type": "string", "knownValues": [ "org.latha.strata#supports", "org.latha.strata#contradicts", "org.latha.strata#extends", "org.latha.strata#contextualizes", "org.latha.strata#exemplifies" ], "description": "Type of connection." } } }, "carryCrossRef": { "type": "object", "description": "Cross-reference to a carry entity, translated to AT Protocol addressable format.", "required": ["entityType", "atUri"], "properties": { "entityType": { "type": "string", "knownValues": [ "org.latha.strata.defs#claimRef", "org.latha.strata.defs#sourceRef" ], "description": "Type of carry entity." }, "carryId": { "type": "string", "description": "Original carry entity ID for local correlation." }, "atUri": { "type": "string", "format": "at-uri", "description": "AT Protocol URI for this carry entity (if published as companion record)." }, "summary": { "type": "string", "maxGraphemes": 500, "description": "Summary of the carry entity." } } }, "supports": { "type": "token", "description": "Connection relation: the source supports an existing claim." }, "contradicts": { "type": "token", "description": "Connection relation: the source contradicts an existing claim." }, "extends": { "type": "token", "description": "Connection relation: the source extends an existing claim." }, "contextualizes": { "type": "token", "description": "Connection relation: the source provides context for an existing claim." }, "exemplifies": { "type": "token", "description": "Connection relation: the source is an example of an existing claim." } } }