{
    "$schema": "../../../../schemas/diagram-spec.schema.json",
    "schemaVersion": "2.0",
    "diagramKind": "c4-system-context",
    "id": "c4-editorial-system-context",
    "title": "System Context — Editorial Diagram System",
    "description": "People and external systems around Editorial Diagram System.",
    "language": "en",
    "scopeSystemId": "editorial-diagram-system",
    "scopeBoundaryId": "system-in-scope",
    "boundaries": [
        {
            "id": "system-in-scope",
            "type": "system-boundary",
            "title": "SYSTEM IN SCOPE"
        }
    ],
    "nodes": [
        {
            "id": "diagram-author",
            "type": "person",
            "title": "Diagram Author",
            "description": "Defines diagram meaning and reviews generated outputs."
        },
        {
            "id": "architecture-reviewer",
            "type": "person",
            "title": "Architecture Reviewer",
            "description": "Reviews system intent, relationships, and change impact."
        },
        {
            "id": "editorial-diagram-system",
            "type": "software-system",
            "title": "Editorial Diagram System",
            "description": "Generates deterministic, editable diagrams from validated JSON contracts."
        },
        {
            "id": "drawio-desktop",
            "type": "external-system",
            "title": "draw.io",
            "description": "Provides GUI editing for managed draw.io files."
        },
        {
            "id": "source-repository",
            "type": "external-system",
            "title": "Source Repository",
            "description": "Stores semantic specs, layouts, operations, and generated artifacts."
        }
    ],
    "edges": [
        {
            "id": "author-uses-system",
            "from": "diagram-author",
            "to": "editorial-diagram-system",
            "type": "relationship",
            "description": "Authors diagrams with"
        },
        {
            "id": "system-supports-reviewer",
            "from": "editorial-diagram-system",
            "to": "architecture-reviewer",
            "type": "relationship",
            "description": "Presents diagrams to"
        },
        {
            "id": "system-generates-drawio",
            "from": "editorial-diagram-system",
            "to": "drawio-desktop",
            "type": "relationship",
            "description": "Exports editable diagrams to",
            "technology": "draw.io XML"
        },
        {
            "id": "system-uses-repository",
            "from": "editorial-diagram-system",
            "to": "source-repository",
            "type": "relationship",
            "description": "Reads and writes design files in",
            "technology": "JSON and files"
        }
    ]
}
