Back to index

Planning Timeline

Diagram kind
Editorial Diagram System — Phase 8A DeliveryPlannedActiveBlockedDone2026-08-132026-08-142026-08-152026-08-162026-08-172026-08-182026-08-192026-08-202026-08-212026-08-222026-08-232026-08-242026-08-252026-08-26PlatformDocumentationReleaseTimeline contract2026-08-13 — 2026-08-15Timeline rendering2026-08-15 — 2026-08-19Managed round-trip2026-08-19 — 2026-08-22Authoring guides2026-08-18 — 2026-08-22Quality review2026-08-23Phase 8A ready2026-08-26

Examples: timeline-editorial-delivery

Take it with you

Copy and paste, or save a file and hand it over. For a machine with no network, one “Everything” file is enough.

Everything

diagram-timeline-everything.md

Everything in this panel, including the contents behind each URL, in one Markdown file

Prompt

2.3 KB
I need a "Planning Timeline" diagram. It is published as text and vectors, so taking the published one and editing it beats redrawing it.
## What this diagram says
Places tasks and milestones on a dated axis, with their dependencies.
## When it fits
- Checking finish-to-start dependencies hold, on the drawing.
- Separating the work into workstreams.
## When it does not
- When there are no dates yet — use Strategic Roadmap.
- When you need a dependency other than finish-to-start: this profile handles one kind.
## What this kind validates
- Validates durations, workstreams, tasks and milestones, status, finish-to-start dependencies, and day-level geometry.
- `rescheduleTimelineItem` moves a date as meaning, not as pixels.
## What it does not
- Does not check that the estimates are sound.
## What you can take
- https://design-vault.pages.dev/designs/diagram-timeline/samples/timeline-editorial-delivery/diagram-spec.json
- https://design-vault.pages.dev/designs/diagram-timeline/samples/timeline-editorial-delivery/layout.json
- https://design-vault.pages.dev/designs/diagram-timeline/samples/timeline-editorial-delivery/timeline.drawio
- https://design-vault.pages.dev/designs/diagram-timeline/samples/timeline-editorial-delivery/timeline.png
- https://design-vault.pages.dev/designs/diagram-timeline/samples/timeline-editorial-delivery/timeline.svg
- https://design-vault.pages.dev/ai/assets/diagram-timeline.json
## What you can edit
The published `.drawio` is uncompressed XML. Open it in draw.io and edit it, or diff it as text.

Operations this kind accepts through the engine: moveNode, rescheduleTimelineItem
## Writing a new one
A `diagram-spec.json` can be written against the schema below.

- https://design-vault.pages.dev/schemas/diagram-spec.schema.json
- https://design-vault.pages.dev/schemas/layout.schema.json
## What cannot be done here
**A spec you write cannot be validated here, and `layout.json` cannot be computed here.** The generator that does both is not published; what is published is the artifacts, the inputs and the schemas. Place the geometry yourself, or hand the spec to someone who has the engine.
## Licence
The diagram and its inputs are CC BY 4.0 — carry the credit when you use them.

> "Planning Timeline" by zawa, licensed under CC BY 4.0. https://creativecommons.org/licenses/by/4.0/

The schemas are MIT.

Files

timeline-editorial-delivery/diagram-spec.json

3.9 KB

/designs/diagram-timeline/samples/timeline-editorial-delivery/diagram-spec.json

Show contents
{
    "$schema": "../../../../schemas/diagram-spec.schema.json",
    "schemaVersion": "2.0",
    "diagramKind": "timeline",
    "id": "editorial-delivery-timeline",
    "title": "Editorial Diagram System — Phase 8A Delivery",
    "description": "A dependency-aware delivery timeline for the first planning profile.",
    "language": "en",
    "windowStart": "2026-08-13",
    "windowEnd": "2026-08-26",
    "workstreams": [
        {
            "id": "platform",
            "type": "workstream",
            "title": "Platform"
        },
        {
            "id": "documentation",
            "type": "workstream",
            "title": "Documentation"
        },
        {
            "id": "release",
            "type": "workstream",
            "title": "Release"
        }
    ],
    "nodes": [
        {
            "id": "timeline-contract",
            "type": "task",
            "title": "Timeline contract",
            "description": "Define dates, workstreams, status, and dependencies.",
            "workstreamId": "platform",
            "startDate": "2026-08-13",
            "endDate": "2026-08-15",
            "status": "done"
        },
        {
            "id": "timeline-rendering",
            "type": "task",
            "title": "Timeline rendering",
            "description": "Render the axis, bars, milestones, and connectors.",
            "workstreamId": "platform",
            "startDate": "2026-08-15",
            "endDate": "2026-08-19",
            "status": "active"
        },
        {
            "id": "managed-round-trip",
            "type": "task",
            "title": "Managed round-trip",
            "description": "Synchronize managed dates and geometry safely.",
            "workstreamId": "platform",
            "startDate": "2026-08-19",
            "endDate": "2026-08-22",
            "status": "planned"
        },
        {
            "id": "authoring-guides",
            "type": "task",
            "title": "Authoring guides",
            "description": "Document the bounded planning workflow.",
            "workstreamId": "documentation",
            "startDate": "2026-08-18",
            "endDate": "2026-08-22",
            "status": "planned"
        },
        {
            "id": "quality-review",
            "type": "milestone",
            "title": "Quality review",
            "description": "Review semantic, round-trip, and visual quality.",
            "workstreamId": "release",
            "date": "2026-08-23",
            "status": "planned"
        },
        {
            "id": "phase-8a-ready",
            "type": "milestone",
            "title": "Phase 8A ready",
            "description": "Accept the Timeline vertical slice.",
            "workstreamId": "release",
            "date": "2026-08-26",
            "status": "planned"
        }
    ],
    "edges": [
        {
            "id": "contract-before-rendering",
            "type": "finish-to-start",
            "from": "timeline-contract",
            "to": "timeline-rendering"
        },
        {
            "id": "rendering-before-round-trip",
            "type": "finish-to-start",
            "from": "timeline-rendering",
            "to": "managed-round-trip"
        },
        {
            "id": "contract-before-guides",
            "type": "finish-to-start",
            "from": "timeline-contract",
            "to": "authoring-guides"
        },
        {
            "id": "round-trip-before-review",
            "type": "finish-to-start",
            "from": "managed-round-trip",
            "to": "quality-review"
        },
        {
            "id": "guides-before-review",
            "type": "finish-to-start",
            "from": "authoring-guides",
            "to": "quality-review"
        },
        {
            "id": "review-before-ready",
            "type": "finish-to-start",
            "from": "quality-review",
            "to": "phase-8a-ready"
        }
    ]
}

timeline-editorial-delivery/layout.json

3.1 KB

/designs/diagram-timeline/samples/timeline-editorial-delivery/layout.json

Show contents
{
    "$schema": "../../../../schemas/layout.schema.json",
    "schemaVersion": "1.0",
    "canvas": {
        "width": 1400,
        "height": 720
    },
    "boundaries": {
        "platform": {
            "x": 32,
            "y": 150,
            "width": 1336,
            "height": 230
        },
        "documentation": {
            "x": 32,
            "y": 410,
            "width": 1336,
            "height": 120
        },
        "release": {
            "x": 32,
            "y": 550,
            "width": 1336,
            "height": 120
        }
    },
    "nodes": {
        "timeline-contract": {
            "x": 280,
            "y": 190,
            "width": 231.429,
            "height": 48
        },
        "timeline-rendering": {
            "x": 434.286,
            "y": 255,
            "width": 385.714,
            "height": 48
        },
        "managed-round-trip": {
            "x": 742.857,
            "y": 320,
            "width": 308.571,
            "height": 48
        },
        "authoring-guides": {
            "x": 665.714,
            "y": 450,
            "width": 385.714,
            "height": 48
        },
        "quality-review": {
            "x": 1070,
            "y": 590,
            "width": 40,
            "height": 40
        },
        "phase-8a-ready": {
            "x": 1301.429,
            "y": 590,
            "width": 40,
            "height": 40
        }
    },
    "edges": {
        "contract-before-rendering": {
            "source": {
                "side": "right",
                "offset": 0.5
            },
            "target": {
                "side": "left",
                "offset": 0.5
            }
        },
        "rendering-before-round-trip": {
            "source": {
                "side": "right",
                "offset": 0.5
            },
            "target": {
                "side": "left",
                "offset": 0.5
            }
        },
        "contract-before-guides": {
            "source": {
                "side": "right",
                "offset": 0.5
            },
            "target": {
                "side": "left",
                "offset": 0.5
            },
            "waypoints": [
                {
                    "x": 250,
                    "y": 214
                },
                {
                    "x": 250,
                    "y": 474
                }
            ]
        },
        "round-trip-before-review": {
            "source": {
                "side": "right",
                "offset": 0.5
            },
            "target": {
                "side": "left",
                "offset": 0.5
            }
        },
        "guides-before-review": {
            "source": {
                "side": "right",
                "offset": 0.5
            },
            "target": {
                "side": "left",
                "offset": 0.5
            }
        },
        "review-before-ready": {
            "source": {
                "side": "right",
                "offset": 0.5
            },
            "target": {
                "side": "left",
                "offset": 0.5
            }
        }
    }
}

timeline-editorial-delivery/timeline.drawio

25.8 KB

/designs/diagram-timeline/samples/timeline-editorial-delivery/timeline.drawio

Show contents
<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="app.diagrams.net" compressed="false">
<diagram id="editorial-delivery-timeline" name="Planning Timeline" syncFormat="1.0" diagramKind="timeline" windowStart="2026-08-13" windowEnd="2026-08-26" inputHash="89f01d598db118200a2649551d8bcaaf9d22079ebb972aae20fecfa8bf78ac57" generatorVersion="0.8.0">
<mxGraphModel dx="1200" dy="820" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1400" pageHeight="720" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="diagram-title" value="Editorial Diagram System — Phase 8A Delivery" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=23;fontStyle=1;fontColor=#292E35;spacing=0;align=left;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="32" y="22" width="720" height="42" as="geometry"/></mxCell>
<mxCell id="legend-0-mark" value="" style="ellipse;html=1;aspect=fixed;fillColor=#FFFFFF;strokeColor=#69717D;strokeWidth=1.6;" vertex="1" parent="1"><mxGeometry x="32" y="85" width="10" height="10" as="geometry"/></mxCell>
<mxCell id="legend-0-text" value="Planned" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=13;fontStyle=0;fontColor=#292E35;spacing=0;align=left;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="49" y="77" width="170" height="28" as="geometry"/></mxCell>
<mxCell id="legend-1-mark" value="" style="ellipse;html=1;aspect=fixed;fillColor=#FFFFFF;strokeColor=#343A42;strokeWidth=1.6;" vertex="1" parent="1"><mxGeometry x="254" y="85" width="10" height="10" as="geometry"/></mxCell>
<mxCell id="legend-1-text" value="Active" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=13;fontStyle=0;fontColor=#292E35;spacing=0;align=left;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="271" y="77" width="170" height="28" as="geometry"/></mxCell>
<mxCell id="legend-2-mark" value="" style="ellipse;html=1;aspect=fixed;fillColor=#FFFFFF;strokeColor=#B44343;strokeWidth=1.6;" vertex="1" parent="1"><mxGeometry x="476" y="85" width="10" height="10" as="geometry"/></mxCell>
<mxCell id="legend-2-text" value="Blocked" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=13;fontStyle=0;fontColor=#292E35;spacing=0;align=left;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="493" y="77" width="170" height="28" as="geometry"/></mxCell>
<mxCell id="legend-3-mark" value="" style="ellipse;html=1;aspect=fixed;fillColor=#FFFFFF;strokeColor=#59697D;strokeWidth=1.6;" vertex="1" parent="1"><mxGeometry x="698" y="85" width="10" height="10" as="geometry"/></mxCell>
<mxCell id="legend-3-text" value="Done" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=13;fontStyle=0;fontColor=#292E35;spacing=0;align=left;verticalAlign=middle;" vertex="1" parent="1"><mxGeometry x="715" y="77" width="170" height="28" as="geometry"/></mxCell>
<mxCell id="timeline-axis-rule" value="" style="shape=line;strokeColor=#DCE2E9;strokeWidth=1;" vertex="1" parent="1" syncRole="timeline-axis"><mxGeometry x="280" y="120" width="1080" height="1" as="geometry"/></mxCell>
<mxCell id="timeline-grid-0" value="" style="shape=line;strokeColor=#DCE2E9;strokeWidth=1;dashed=1;dashPattern=2 5;" vertex="1" parent="1" syncRole="timeline-grid"><mxGeometry x="280" y="120" width="1" height="570" as="geometry"/></mxCell>
<mxCell id="timeline-date-0" value="2026-08-13" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="1" syncRole="timeline-date"><mxGeometry x="244" y="100" width="77.143" height="20" as="geometry"/></mxCell>
<mxCell id="timeline-grid-1" value="" style="shape=line;strokeColor=#DCE2E9;strokeWidth=1;dashed=1;dashPattern=2 5;" vertex="1" parent="1" syncRole="timeline-grid"><mxGeometry x="357.143" y="120" width="1" height="570" as="geometry"/></mxCell>
<mxCell id="timeline-date-1" value="2026-08-14" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="1" syncRole="timeline-date"><mxGeometry x="321.143" y="100" width="77.143" height="20" as="geometry"/></mxCell>
<mxCell id="timeline-grid-2" value="" style="shape=line;strokeColor=#DCE2E9;strokeWidth=1;dashed=1;dashPattern=2 5;" vertex="1" parent="1" syncRole="timeline-grid"><mxGeometry x="434.286" y="120" width="1" height="570" as="geometry"/></mxCell>
<mxCell id="timeline-date-2" value="2026-08-15" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="1" syncRole="timeline-date"><mxGeometry x="398.286" y="100" width="77.143" height="20" as="geometry"/></mxCell>
<mxCell id="timeline-grid-3" value="" style="shape=line;strokeColor=#DCE2E9;strokeWidth=1;dashed=1;dashPattern=2 5;" vertex="1" parent="1" syncRole="timeline-grid"><mxGeometry x="511.429" y="120" width="1" height="570" as="geometry"/></mxCell>
<mxCell id="timeline-date-3" value="2026-08-16" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="1" syncRole="timeline-date"><mxGeometry x="475.429" y="100" width="77.143" height="20" as="geometry"/></mxCell>
<mxCell id="timeline-grid-4" value="" style="shape=line;strokeColor=#DCE2E9;strokeWidth=1;dashed=1;dashPattern=2 5;" vertex="1" parent="1" syncRole="timeline-grid"><mxGeometry x="588.571" y="120" width="1" height="570" as="geometry"/></mxCell>
<mxCell id="timeline-date-4" value="2026-08-17" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="1" syncRole="timeline-date"><mxGeometry x="552.571" y="100" width="77.143" height="20" as="geometry"/></mxCell>
<mxCell id="timeline-grid-5" value="" style="shape=line;strokeColor=#DCE2E9;strokeWidth=1;dashed=1;dashPattern=2 5;" vertex="1" parent="1" syncRole="timeline-grid"><mxGeometry x="665.714" y="120" width="1" height="570" as="geometry"/></mxCell>
<mxCell id="timeline-date-5" value="2026-08-18" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="1" syncRole="timeline-date"><mxGeometry x="629.714" y="100" width="77.143" height="20" as="geometry"/></mxCell>
<mxCell id="timeline-grid-6" value="" style="shape=line;strokeColor=#DCE2E9;strokeWidth=1;dashed=1;dashPattern=2 5;" vertex="1" parent="1" syncRole="timeline-grid"><mxGeometry x="742.857" y="120" width="1" height="570" as="geometry"/></mxCell>
<mxCell id="timeline-date-6" value="2026-08-19" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="1" syncRole="timeline-date"><mxGeometry x="706.857" y="100" width="77.143" height="20" as="geometry"/></mxCell>
<mxCell id="timeline-grid-7" value="" style="shape=line;strokeColor=#DCE2E9;strokeWidth=1;dashed=1;dashPattern=2 5;" vertex="1" parent="1" syncRole="timeline-grid"><mxGeometry x="820" y="120" width="1" height="570" as="geometry"/></mxCell>
<mxCell id="timeline-date-7" value="2026-08-20" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="1" syncRole="timeline-date"><mxGeometry x="784" y="100" width="77.143" height="20" as="geometry"/></mxCell>
<mxCell id="timeline-grid-8" value="" style="shape=line;strokeColor=#DCE2E9;strokeWidth=1;dashed=1;dashPattern=2 5;" vertex="1" parent="1" syncRole="timeline-grid"><mxGeometry x="897.143" y="120" width="1" height="570" as="geometry"/></mxCell>
<mxCell id="timeline-date-8" value="2026-08-21" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="1" syncRole="timeline-date"><mxGeometry x="861.143" y="100" width="77.143" height="20" as="geometry"/></mxCell>
<mxCell id="timeline-grid-9" value="" style="shape=line;strokeColor=#DCE2E9;strokeWidth=1;dashed=1;dashPattern=2 5;" vertex="1" parent="1" syncRole="timeline-grid"><mxGeometry x="974.286" y="120" width="1" height="570" as="geometry"/></mxCell>
<mxCell id="timeline-date-9" value="2026-08-22" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="1" syncRole="timeline-date"><mxGeometry x="938.286" y="100" width="77.143" height="20" as="geometry"/></mxCell>
<mxCell id="timeline-grid-10" value="" style="shape=line;strokeColor=#DCE2E9;strokeWidth=1;dashed=1;dashPattern=2 5;" vertex="1" parent="1" syncRole="timeline-grid"><mxGeometry x="1051.429" y="120" width="1" height="570" as="geometry"/></mxCell>
<mxCell id="timeline-date-10" value="2026-08-23" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="1" syncRole="timeline-date"><mxGeometry x="1015.429" y="100" width="77.143" height="20" as="geometry"/></mxCell>
<mxCell id="timeline-grid-11" value="" style="shape=line;strokeColor=#DCE2E9;strokeWidth=1;dashed=1;dashPattern=2 5;" vertex="1" parent="1" syncRole="timeline-grid"><mxGeometry x="1128.571" y="120" width="1" height="570" as="geometry"/></mxCell>
<mxCell id="timeline-date-11" value="2026-08-24" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="1" syncRole="timeline-date"><mxGeometry x="1092.571" y="100" width="77.143" height="20" as="geometry"/></mxCell>
<mxCell id="timeline-grid-12" value="" style="shape=line;strokeColor=#DCE2E9;strokeWidth=1;dashed=1;dashPattern=2 5;" vertex="1" parent="1" syncRole="timeline-grid"><mxGeometry x="1205.714" y="120" width="1" height="570" as="geometry"/></mxCell>
<mxCell id="timeline-date-12" value="2026-08-25" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="1" syncRole="timeline-date"><mxGeometry x="1169.714" y="100" width="77.143" height="20" as="geometry"/></mxCell>
<mxCell id="timeline-grid-13" value="" style="shape=line;strokeColor=#DCE2E9;strokeWidth=1;dashed=1;dashPattern=2 5;" vertex="1" parent="1" syncRole="timeline-grid"><mxGeometry x="1282.857" y="120" width="1" height="570" as="geometry"/></mxCell>
<mxCell id="timeline-date-13" value="2026-08-26" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="1" syncRole="timeline-date"><mxGeometry x="1246.857" y="100" width="77.143" height="20" as="geometry"/></mxCell>
<mxCell id="timeline-grid-end" value="" style="shape=line;strokeColor=#DCE2E9;strokeWidth=1;dashed=1;dashPattern=2 5;" vertex="1" parent="1" syncRole="timeline-grid"><mxGeometry x="1360" y="120" width="1" height="570" as="geometry"/></mxCell>
<object id="platform" label="" componentId="platform" timelineItemType="boundary" timelineBoundaryType="workstream" variant="external"><mxCell style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=none;strokeColor=#69717D;strokeWidth=1.4;dashed=1;dashPattern=7 5;connectable=0;" vertex="1" parent="1"><mxGeometry x="32" y="150" width="1336" height="230" as="geometry"/></mxCell></object>
<mxCell id="platform--title" value="Platform" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=12;fontStyle=1;fontColor=#69717D;spacing=0;align=left;verticalAlign=middle;labelBackgroundColor=#FFFFFF;" vertex="1" parent="platform" syncRole="boundary-title" ownerId="platform"><mxGeometry x="9" y="4" width="80" height="22" as="geometry"/></mxCell>
<object id="documentation" label="" componentId="documentation" timelineItemType="boundary" timelineBoundaryType="workstream" variant="external"><mxCell style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=none;strokeColor=#69717D;strokeWidth=1.4;dashed=1;dashPattern=7 5;connectable=0;" vertex="1" parent="1"><mxGeometry x="32" y="410" width="1336" height="120" as="geometry"/></mxCell></object>
<mxCell id="documentation--title" value="Documentation" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=12;fontStyle=1;fontColor=#69717D;spacing=0;align=left;verticalAlign=middle;labelBackgroundColor=#FFFFFF;" vertex="1" parent="documentation" syncRole="boundary-title" ownerId="documentation"><mxGeometry x="9" y="4" width="112.72" height="22" as="geometry"/></mxCell>
<object id="release" label="" componentId="release" timelineItemType="boundary" timelineBoundaryType="workstream" variant="external"><mxCell style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=none;strokeColor=#69717D;strokeWidth=1.4;dashed=1;dashPattern=7 5;connectable=0;" vertex="1" parent="1"><mxGeometry x="32" y="550" width="1336" height="120" as="geometry"/></mxCell></object>
<mxCell id="release--title" value="Release" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=12;fontStyle=1;fontColor=#69717D;spacing=0;align=left;verticalAlign=middle;labelBackgroundColor=#FFFFFF;" vertex="1" parent="release" syncRole="boundary-title" ownerId="release"><mxGeometry x="9" y="4" width="80" height="22" as="geometry"/></mxCell>
<object id="contract-before-rendering" label="" componentId="contract-before-rendering" timelineItemType="edge" timelineDependencyType="finish-to-start" variant="external" direction="forward"><mxCell style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#69717D;strokeWidth=1.6;endArrow=open;endFill=0;endSize=8;startArrow=none;dashed=1;dashPattern=7 5;exitX=1;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=1;" edge="1" parent="1" source="timeline-contract" target="timeline-rendering"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell></object>
<object id="rendering-before-round-trip" label="" componentId="rendering-before-round-trip" timelineItemType="edge" timelineDependencyType="finish-to-start" variant="external" direction="forward"><mxCell style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#69717D;strokeWidth=1.6;endArrow=open;endFill=0;endSize=8;startArrow=none;dashed=1;dashPattern=7 5;exitX=1;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=1;" edge="1" parent="1" source="timeline-rendering" target="managed-round-trip"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell></object>
<object id="contract-before-guides" label="" componentId="contract-before-guides" timelineItemType="edge" timelineDependencyType="finish-to-start" variant="external" direction="forward"><mxCell style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#69717D;strokeWidth=1.6;endArrow=open;endFill=0;endSize=8;startArrow=none;dashed=1;dashPattern=7 5;exitX=1;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=1;" edge="1" parent="1" source="timeline-contract" target="authoring-guides"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="250" y="214"/><mxPoint x="250" y="474"/></Array></mxGeometry></mxCell></object>
<object id="round-trip-before-review" label="" componentId="round-trip-before-review" timelineItemType="edge" timelineDependencyType="finish-to-start" variant="external" direction="forward"><mxCell style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#69717D;strokeWidth=1.6;endArrow=open;endFill=0;endSize=8;startArrow=none;dashed=1;dashPattern=7 5;exitX=1;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=1;" edge="1" parent="1" source="managed-round-trip" target="quality-review"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell></object>
<object id="guides-before-review" label="" componentId="guides-before-review" timelineItemType="edge" timelineDependencyType="finish-to-start" variant="external" direction="forward"><mxCell style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#69717D;strokeWidth=1.6;endArrow=open;endFill=0;endSize=8;startArrow=none;dashed=1;dashPattern=7 5;exitX=1;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=1;" edge="1" parent="1" source="authoring-guides" target="quality-review"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell></object>
<object id="review-before-ready" label="" componentId="review-before-ready" timelineItemType="edge" timelineDependencyType="finish-to-start" variant="external" direction="forward"><mxCell style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#69717D;strokeWidth=1.6;endArrow=open;endFill=0;endSize=8;startArrow=none;dashed=1;dashPattern=7 5;exitX=1;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=1;" edge="1" parent="1" source="quality-review" target="phase-8a-ready"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell></object>
<object id="timeline-contract" label="" componentId="timeline-contract" timelineItemType="task" variant="delegated" timelineStatus="done" workstreamId="platform" startDate="2026-08-13" endDate="2026-08-15" description="Define dates, workstreams, status, and dependencies."><mxCell style="rounded=1;arcSize=4;whiteSpace=wrap;html=1;fillColor=#EDF3FF;strokeColor=#59697D;strokeWidth=1.6;" vertex="1" parent="1"><mxGeometry x="280" y="190" width="231.429" height="48" as="geometry"/></mxCell></object>
<mxCell id="timeline-contract--title" value="Timeline contract" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=12;fontStyle=1;fontColor=#292E35;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="timeline-contract" syncRole="title" ownerId="timeline-contract"><mxGeometry x="10" y="4" width="211.429" height="22" as="geometry"/></mxCell>
<mxCell id="timeline-contract--date" value="2026-08-13 — 2026-08-15" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="timeline-contract" syncRole="timeline-date" ownerId="timeline-contract"><mxGeometry x="10" y="25" width="211.429" height="18" as="geometry"/></mxCell>
<object id="timeline-rendering" label="" componentId="timeline-rendering" timelineItemType="task" variant="realtime" timelineStatus="active" workstreamId="platform" startDate="2026-08-15" endDate="2026-08-19" description="Render the axis, bars, milestones, and connectors."><mxCell style="rounded=1;arcSize=4;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#343A42;strokeWidth=1.6;" vertex="1" parent="1"><mxGeometry x="434.286" y="255" width="385.714" height="48" as="geometry"/></mxCell></object>
<mxCell id="timeline-rendering--title" value="Timeline rendering" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=12;fontStyle=1;fontColor=#292E35;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="timeline-rendering" syncRole="title" ownerId="timeline-rendering"><mxGeometry x="10" y="4" width="365.714" height="22" as="geometry"/></mxCell>
<mxCell id="timeline-rendering--date" value="2026-08-15 — 2026-08-19" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="timeline-rendering" syncRole="timeline-date" ownerId="timeline-rendering"><mxGeometry x="10" y="25" width="365.714" height="18" as="geometry"/></mxCell>
<object id="managed-round-trip" label="" componentId="managed-round-trip" timelineItemType="task" variant="external" timelineStatus="planned" workstreamId="platform" startDate="2026-08-19" endDate="2026-08-22" description="Synchronize managed dates and geometry safely."><mxCell style="rounded=1;arcSize=4;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#69717D;strokeWidth=1.6;" vertex="1" parent="1"><mxGeometry x="742.857" y="320" width="308.571" height="48" as="geometry"/></mxCell></object>
<mxCell id="managed-round-trip--title" value="Managed round-trip" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=12;fontStyle=1;fontColor=#292E35;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="managed-round-trip" syncRole="title" ownerId="managed-round-trip"><mxGeometry x="10" y="4" width="288.571" height="22" as="geometry"/></mxCell>
<mxCell id="managed-round-trip--date" value="2026-08-19 — 2026-08-22" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="managed-round-trip" syncRole="timeline-date" ownerId="managed-round-trip"><mxGeometry x="10" y="25" width="288.571" height="18" as="geometry"/></mxCell>
<object id="authoring-guides" label="" componentId="authoring-guides" timelineItemType="task" variant="external" timelineStatus="planned" workstreamId="documentation" startDate="2026-08-18" endDate="2026-08-22" description="Document the bounded planning workflow."><mxCell style="rounded=1;arcSize=4;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#69717D;strokeWidth=1.6;" vertex="1" parent="1"><mxGeometry x="665.714" y="450" width="385.714" height="48" as="geometry"/></mxCell></object>
<mxCell id="authoring-guides--title" value="Authoring guides" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=12;fontStyle=1;fontColor=#292E35;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="authoring-guides" syncRole="title" ownerId="authoring-guides"><mxGeometry x="10" y="4" width="365.714" height="22" as="geometry"/></mxCell>
<mxCell id="authoring-guides--date" value="2026-08-18 — 2026-08-22" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="authoring-guides" syncRole="timeline-date" ownerId="authoring-guides"><mxGeometry x="10" y="25" width="365.714" height="18" as="geometry"/></mxCell>
<object id="quality-review" label="" componentId="quality-review" timelineItemType="milestone" variant="external" timelineStatus="planned" workstreamId="release" date="2026-08-23" description="Review semantic, round-trip, and visual quality."><mxCell style="rhombus;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#69717D;strokeWidth=1.6;" vertex="1" parent="1"><mxGeometry x="1070" y="590" width="40" height="40" as="geometry"/></mxCell></object>
<mxCell id="quality-review--title" value="Quality review" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=12;fontStyle=1;fontColor=#292E35;spacing=0;align=left;verticalAlign=middle;" vertex="1" parent="quality-review" syncRole="title" ownerId="quality-review"><mxGeometry x="50" y="0" width="180" height="22" as="geometry"/></mxCell>
<mxCell id="quality-review--date" value="2026-08-23" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=left;verticalAlign=middle;" vertex="1" parent="quality-review" syncRole="timeline-date" ownerId="quality-review"><mxGeometry x="50" y="20" width="180" height="18" as="geometry"/></mxCell>
<object id="phase-8a-ready" label="" componentId="phase-8a-ready" timelineItemType="milestone" variant="external" timelineStatus="planned" workstreamId="release" date="2026-08-26" description="Accept the Timeline vertical slice."><mxCell style="rhombus;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#69717D;strokeWidth=1.6;" vertex="1" parent="1"><mxGeometry x="1301.429" y="590" width="40" height="40" as="geometry"/></mxCell></object>
<mxCell id="phase-8a-ready--title" value="Phase 8A ready" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=12;fontStyle=1;fontColor=#292E35;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="phase-8a-ready" syncRole="title" ownerId="phase-8a-ready"><mxGeometry x="-70" y="-43" width="180" height="22" as="geometry"/></mxCell>
<mxCell id="phase-8a-ready--date" value="2026-08-26" style="text;html=1;strokeColor=none;fillColor=none;whiteSpace=wrap;rounded=0;fontFamily=Meiryo UI;fontSize=10;fontStyle=0;fontColor=#58616C;spacing=0;align=center;verticalAlign=middle;" vertex="1" parent="phase-8a-ready" syncRole="timeline-date" ownerId="phase-8a-ready"><mxGeometry x="-70" y="-25" width="180" height="18" as="geometry"/></mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

diagram-spec.schema.json

45.7 KB

/schemas/diagram-spec.schema.json — Large, so it goes as a file (copy is for 32 KB and under)

Show contents
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://example.local/schemas/diagram-spec.schema.json",
  "title": "Editorial diagram semantic specification",
  "oneOf": [
    { "$ref": "#/$defs/legacyArchitectureSpec" },
    { "$ref": "#/$defs/architectureSpec" },
    { "$ref": "#/$defs/c4SystemContextSpec" },
    { "$ref": "#/$defs/c4ContainerSpec" },
    { "$ref": "#/$defs/dataFlowSpec" },
    { "$ref": "#/$defs/deploymentSpec" },
    { "$ref": "#/$defs/bpmnLiteSpec" },
    { "$ref": "#/$defs/sequenceSpec" },
    { "$ref": "#/$defs/erSpec" },
    { "$ref": "#/$defs/stateSpec" },
    { "$ref": "#/$defs/decisionTreeSpec" },
    { "$ref": "#/$defs/timelineSpec" },
    { "$ref": "#/$defs/roadmapSpec" },
    { "$ref": "#/$defs/capabilityMapSpec" },
    { "$ref": "#/$defs/executiveViewSpec" }
  ],
  "$defs": {
    "baseSpec": {
      "type": "object",
      "required": ["schemaVersion", "id", "title", "language", "legend", "nodes", "edges"],
      "properties": {
        "$schema": { "type": "string" },
        "schemaVersion": { "type": "string" },
        "id": { "$ref": "#/$defs/id" },
        "title": { "type": "string", "minLength": 1, "maxLength": 120 },
        "description": { "type": "string", "maxLength": 500 },
        "language": { "enum": ["en", "ja", "mixed"] },
        "metadata": { "$ref": "#/$defs/metadata" },
        "legend": {
          "type": "array",
          "maxItems": 8,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": ["label", "variant"],
            "properties": {
              "label": { "type": "string", "minLength": 1, "maxLength": 60 },
              "variant": { "$ref": "#/$defs/variant" }
            }
          }
        },
        "boundaries": {
          "type": "array",
          "maxItems": 50,
          "items": { "$ref": "#/$defs/boundary" }
        },
        "nodes": {
          "type": "array",
          "minItems": 1,
          "items": { "$ref": "#/$defs/node" }
        },
        "edges": {
          "type": "array",
          "items": { "$ref": "#/$defs/edge" }
        }
      }
    },
    "legacyArchitectureSpec": {
      "type": "object",
      "allOf": [
        { "$ref": "#/$defs/baseSpec" },
        {
          "type": "object",
          "properties": {
            "schemaVersion": { "const": "1.0" }
          }
        }
      ],
      "unevaluatedProperties": false
    },
    "architectureSpec": {
      "type": "object",
      "allOf": [
        { "$ref": "#/$defs/baseSpec" },
        {
          "type": "object",
          "required": ["diagramKind"],
          "properties": {
            "schemaVersion": { "const": "2.0" },
            "diagramKind": { "const": "architecture" }
          }
        }
      ],
      "unevaluatedProperties": false
    },
    "c4SystemContextSpec": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "schemaVersion", "diagramKind", "id", "title", "language", "scopeSystemId",
        "scopeBoundaryId", "boundaries", "nodes", "edges"
      ],
      "properties": {
        "$schema": { "type": "string" },
        "schemaVersion": { "const": "2.0" },
        "diagramKind": { "const": "c4-system-context" },
        "id": { "$ref": "#/$defs/id" },
        "title": { "type": "string", "minLength": 1, "maxLength": 120 },
        "description": { "type": "string", "maxLength": 500 },
        "language": { "enum": ["en", "ja", "mixed"] },
        "metadata": { "$ref": "#/$defs/metadata" },
        "scopeSystemId": { "$ref": "#/$defs/id" },
        "scopeBoundaryId": { "$ref": "#/$defs/id" },
        "boundaries": {
          "type": "array",
          "minItems": 1,
          "maxItems": 8,
          "items": { "$ref": "#/$defs/c4SystemBoundary" }
        },
        "nodes": {
          "type": "array",
          "minItems": 2,
          "maxItems": 50,
          "items": { "$ref": "#/$defs/c4Element" }
        },
        "edges": {
          "type": "array",
          "minItems": 1,
          "maxItems": 100,
          "items": { "$ref": "#/$defs/c4Relationship" }
        }
      }
    },
    "c4SystemBoundary": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "system-boundary" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "c4Element": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "description"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "enum": ["person", "software-system", "external-system"] },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "description": { "type": "string", "minLength": 3, "maxLength": 240 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "c4Relationship": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "from", "to", "type", "description"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "from": { "$ref": "#/$defs/id" },
        "to": { "$ref": "#/$defs/id" },
        "type": { "const": "relationship" },
        "description": { "type": "string", "minLength": 3, "maxLength": 160 },
        "technology": { "type": "string", "minLength": 1, "maxLength": 64 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "c4ContainerSpec": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "schemaVersion", "diagramKind", "id", "title", "language", "contextDiagramId",
        "scopeSystemId", "scopeBoundaryId", "boundaries", "nodes", "edges"
      ],
      "properties": {
        "$schema": { "type": "string" },
        "schemaVersion": { "const": "2.0" },
        "diagramKind": { "const": "c4-container" },
        "id": { "$ref": "#/$defs/id" },
        "title": { "type": "string", "minLength": 1, "maxLength": 120 },
        "description": { "type": "string", "maxLength": 500 },
        "language": { "enum": ["en", "ja", "mixed"] },
        "metadata": { "$ref": "#/$defs/metadata" },
        "contextDiagramId": { "$ref": "#/$defs/id" },
        "scopeSystemId": { "$ref": "#/$defs/id" },
        "scopeBoundaryId": { "$ref": "#/$defs/id" },
        "boundaries": {
          "type": "array",
          "minItems": 1,
          "maxItems": 8,
          "items": { "$ref": "#/$defs/c4SystemBoundary" }
        },
        "nodes": {
          "type": "array",
          "minItems": 1,
          "maxItems": 80,
          "items": { "$ref": "#/$defs/c4ContainerElement" }
        },
        "edges": {
          "type": "array",
          "minItems": 1,
          "maxItems": 160,
          "items": { "$ref": "#/$defs/c4Relationship" }
        }
      }
    },
    "c4ContainerElement": {
      "oneOf": [
        { "$ref": "#/$defs/c4ContainerPrimary" },
        { "$ref": "#/$defs/c4ContainerSupportingElement" }
      ]
    },
    "c4ContainerPrimary": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "containerKind", "title", "description", "technology"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "container" },
        "containerKind": { "enum": ["application", "data-store"] },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "description": { "type": "string", "minLength": 3, "maxLength": 240 },
        "technology": { "type": "string", "minLength": 1, "maxLength": 80 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "c4ContainerSupportingElement": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "description"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "enum": ["person", "external-system"] },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "description": { "type": "string", "minLength": 3, "maxLength": 240 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "bpmnLiteSpec": {
      "type": "object",
      "additionalProperties": false,
      "required": ["schemaVersion", "diagramKind", "id", "title", "language", "pool", "lanes", "nodes", "edges"],
      "properties": {
        "$schema": { "type": "string" },
        "schemaVersion": { "const": "2.0" },
        "diagramKind": { "const": "bpmn-lite" },
        "id": { "$ref": "#/$defs/id" },
        "title": { "type": "string", "minLength": 1, "maxLength": 120 },
        "description": { "type": "string", "maxLength": 500 },
        "language": { "enum": ["en", "ja", "mixed"] },
        "metadata": { "$ref": "#/$defs/metadata" },
        "pool": { "$ref": "#/$defs/bpmnPool" },
        "lanes": {
          "type": "array",
          "minItems": 2,
          "maxItems": 16,
          "items": { "$ref": "#/$defs/bpmnLane" }
        },
        "nodes": {
          "type": "array",
          "minItems": 4,
          "maxItems": 160,
          "items": { "$ref": "#/$defs/bpmnFlowNode" }
        },
        "edges": {
          "type": "array",
          "minItems": 3,
          "maxItems": 320,
          "items": { "$ref": "#/$defs/bpmnSequenceFlow" }
        }
      }
    },
    "bpmnPool": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "pool" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "bpmnLane": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "lane" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "bpmnFlowNode": {
      "oneOf": [
        { "$ref": "#/$defs/bpmnSimpleFlowNode" },
        { "$ref": "#/$defs/bpmnGateway" }
      ]
    },
    "bpmnSimpleFlowNode": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "laneId"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "enum": ["start-event", "end-event", "task"] },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "laneId": { "$ref": "#/$defs/id" },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "bpmnGateway": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "laneId", "gatewayRole"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "enum": ["exclusive-gateway", "parallel-gateway"] },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "laneId": { "$ref": "#/$defs/id" },
        "gatewayRole": { "enum": ["split", "join"] },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "bpmnSequenceFlow": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "from", "to"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "sequence-flow" },
        "from": { "$ref": "#/$defs/id" },
        "to": { "$ref": "#/$defs/id" },
        "condition": { "type": "string", "minLength": 1, "maxLength": 160 },
        "isDefault": { "type": "boolean" },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "sequenceSpec": {
      "type": "object",
      "additionalProperties": false,
      "required": ["schemaVersion", "diagramKind", "id", "title", "language", "nodes", "fragments", "edges"],
      "properties": {
        "$schema": { "type": "string" },
        "schemaVersion": { "const": "2.0" },
        "diagramKind": { "const": "sequence" },
        "id": { "$ref": "#/$defs/id" },
        "title": { "type": "string", "minLength": 1, "maxLength": 120 },
        "description": { "type": "string", "maxLength": 500 },
        "language": { "enum": ["en", "ja", "mixed"] },
        "metadata": { "$ref": "#/$defs/metadata" },
        "nodes": { "type": "array", "minItems": 2, "maxItems": 32, "items": { "$ref": "#/$defs/sequenceLifeline" } },
        "fragments": { "type": "array", "maxItems": 24, "items": { "$ref": "#/$defs/sequenceFragment" } },
        "edges": { "type": "array", "minItems": 1, "maxItems": 320, "items": { "$ref": "#/$defs/sequenceMessage" } }
      }
    },
    "sequenceLifeline": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "occurrenceIds"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "lifeline" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "occurrenceIds": { "type": "array", "minItems": 1, "maxItems": 320, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "sequenceFragment": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "operator", "title", "operands"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "combined-fragment" },
        "operator": { "enum": ["alt", "opt", "par"] },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "operands": { "type": "array", "minItems": 1, "maxItems": 8, "items": { "$ref": "#/$defs/sequenceOperand" } },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "sequenceOperand": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "occurrenceIds"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "guard": { "type": "string", "minLength": 1, "maxLength": 120 },
        "occurrenceIds": { "type": "array", "minItems": 1, "maxItems": 160, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } }
      }
    },
    "sequenceMessage": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "from", "to", "title", "sendOccurrenceId", "receiveOccurrenceId"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "enum": ["sync-message", "async-message", "return-message"] },
        "from": { "$ref": "#/$defs/id" },
        "to": { "$ref": "#/$defs/id" },
        "title": { "type": "string", "minLength": 1, "maxLength": 120 },
        "sendOccurrenceId": { "$ref": "#/$defs/id" },
        "receiveOccurrenceId": { "$ref": "#/$defs/id" },
        "replyTo": { "$ref": "#/$defs/id" },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "erSpec": {
      "type": "object",
      "additionalProperties": false,
      "required": ["schemaVersion", "diagramKind", "id", "title", "language", "nodes", "edges"],
      "properties": {
        "$schema": { "type": "string" },
        "schemaVersion": { "const": "2.0" },
        "diagramKind": { "const": "er" },
        "id": { "$ref": "#/$defs/id" },
        "title": { "type": "string", "minLength": 1, "maxLength": 120 },
        "description": { "type": "string", "maxLength": 500 },
        "language": { "enum": ["en", "ja", "mixed"] },
        "metadata": { "$ref": "#/$defs/metadata" },
        "nodes": { "type": "array", "minItems": 2, "maxItems": 120, "items": { "$ref": "#/$defs/erEntity" } },
        "edges": { "type": "array", "maxItems": 240, "items": { "$ref": "#/$defs/erForeignKey" } }
      }
    },
    "erEntity": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "description", "attributes", "primaryKey", "uniqueKeys"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "entity" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "description": { "type": "string", "minLength": 3, "maxLength": 240 },
        "attributes": { "type": "array", "minItems": 1, "maxItems": 80, "items": { "$ref": "#/$defs/erAttribute" } },
        "primaryKey": { "$ref": "#/$defs/erKey" },
        "uniqueKeys": { "type": "array", "maxItems": 24, "items": { "$ref": "#/$defs/erKey" } },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "erAttribute": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "name", "dataType", "nullable"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "name": { "type": "string", "minLength": 1, "maxLength": 80 },
        "dataType": { "type": "string", "minLength": 1, "maxLength": 80 },
        "nullable": { "type": "boolean" }
      }
    },
    "erKey": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "attributeIds"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "attributeIds": { "type": "array", "maxItems": 16, "items": { "$ref": "#/$defs/id" } }
      }
    },
    "erForeignKey": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "from", "to", "fromAttributeIds", "toAttributeIds", "fromCardinality", "toCardinality", "identifying"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "foreign-key" },
        "from": { "$ref": "#/$defs/id" },
        "to": { "$ref": "#/$defs/id" },
        "title": { "type": "string", "minLength": 1, "maxLength": 120 },
        "fromAttributeIds": { "type": "array", "maxItems": 16, "items": { "$ref": "#/$defs/id" } },
        "toAttributeIds": { "type": "array", "maxItems": 16, "items": { "$ref": "#/$defs/id" } },
        "fromCardinality": { "$ref": "#/$defs/erCardinality" },
        "toCardinality": { "$ref": "#/$defs/erCardinality" },
        "identifying": { "type": "boolean" },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "erCardinality": { "enum": ["zero-or-one", "one", "zero-or-many", "one-or-many"] },
    "stateSpec": {
      "type": "object",
      "additionalProperties": false,
      "required": ["schemaVersion", "diagramKind", "id", "title", "language", "initialStateId", "nodes", "edges"],
      "properties": {
        "$schema": { "type": "string" },
        "schemaVersion": { "const": "2.0" },
        "diagramKind": { "const": "state" },
        "id": { "$ref": "#/$defs/id" },
        "title": { "type": "string", "minLength": 1, "maxLength": 120 },
        "description": { "type": "string", "maxLength": 500 },
        "language": { "enum": ["en", "ja", "mixed"] },
        "metadata": { "$ref": "#/$defs/metadata" },
        "initialStateId": { "$ref": "#/$defs/id" },
        "nodes": { "type": "array", "minItems": 2, "maxItems": 120, "items": { "$ref": "#/$defs/stateNode" } },
        "edges": { "type": "array", "minItems": 1, "maxItems": 240, "items": { "$ref": "#/$defs/stateTransition" } }
      }
    },
    "stateNode": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "description"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "enum": ["state", "final-state"] },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "description": { "type": "string", "minLength": 3, "maxLength": 240 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "stateTransition": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "from", "to", "event"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "transition" },
        "from": { "$ref": "#/$defs/id" },
        "to": { "$ref": "#/$defs/id" },
        "event": { "type": "string", "minLength": 1, "maxLength": 120 },
        "guard": { "type": "string", "minLength": 1, "maxLength": 160 },
        "action": { "type": "string", "minLength": 1, "maxLength": 160 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "decisionTreeSpec": {
      "type": "object",
      "additionalProperties": false,
      "required": ["schemaVersion", "diagramKind", "id", "title", "language", "rootNodeId", "nodes", "edges"],
      "properties": {
        "$schema": { "type": "string" },
        "schemaVersion": { "const": "2.0" },
        "diagramKind": { "const": "decision-tree" },
        "id": { "$ref": "#/$defs/id" },
        "title": { "type": "string", "minLength": 1, "maxLength": 120 },
        "description": { "type": "string", "maxLength": 500 },
        "language": { "enum": ["en", "ja", "mixed"] },
        "metadata": { "$ref": "#/$defs/metadata" },
        "rootNodeId": { "$ref": "#/$defs/id" },
        "nodes": { "type": "array", "minItems": 3, "maxItems": 160, "items": { "$ref": "#/$defs/decisionTreeNode" } },
        "edges": { "type": "array", "minItems": 2, "maxItems": 320, "items": { "$ref": "#/$defs/decisionBranch" } }
      }
    },
    "decisionTreeNode": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "description"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "enum": ["decision", "outcome"] },
        "title": { "type": "string", "minLength": 1, "maxLength": 120 },
        "description": { "type": "string", "minLength": 3, "maxLength": 240 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "decisionBranch": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "from", "to", "isDefault"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "branch" },
        "from": { "$ref": "#/$defs/id" },
        "to": { "$ref": "#/$defs/id" },
        "condition": { "type": "string", "minLength": 1, "maxLength": 160 },
        "isDefault": { "type": "boolean" },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "timelineSpec": {
      "type": "object",
      "additionalProperties": false,
      "required": ["schemaVersion", "diagramKind", "id", "title", "language", "windowStart", "windowEnd", "workstreams", "nodes", "edges"],
      "properties": {
        "$schema": { "type": "string" },
        "schemaVersion": { "const": "2.0" },
        "diagramKind": { "const": "timeline" },
        "id": { "$ref": "#/$defs/id" },
        "title": { "type": "string", "minLength": 1, "maxLength": 120 },
        "description": { "type": "string", "maxLength": 500 },
        "language": { "enum": ["en", "ja", "mixed"] },
        "metadata": { "$ref": "#/$defs/metadata" },
        "windowStart": { "$ref": "#/$defs/isoDate" },
        "windowEnd": { "$ref": "#/$defs/isoDate" },
        "workstreams": { "type": "array", "minItems": 1, "maxItems": 6, "items": { "$ref": "#/$defs/timelineWorkstream" } },
        "nodes": { "type": "array", "minItems": 1, "maxItems": 40, "items": { "$ref": "#/$defs/timelineItem" } },
        "edges": { "type": "array", "maxItems": 80, "items": { "$ref": "#/$defs/timelineDependency" } }
      }
    },
    "timelineWorkstream": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "workstream" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "timelineItem": {
      "oneOf": [
        { "$ref": "#/$defs/timelineTask" },
        { "$ref": "#/$defs/timelineMilestone" }
      ]
    },
    "timelineTask": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "description", "workstreamId", "startDate", "endDate", "status"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "task" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "description": { "type": "string", "minLength": 3, "maxLength": 240 },
        "workstreamId": { "$ref": "#/$defs/id" },
        "startDate": { "$ref": "#/$defs/isoDate" },
        "endDate": { "$ref": "#/$defs/isoDate" },
        "status": { "$ref": "#/$defs/timelineStatus" },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "timelineMilestone": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "description", "workstreamId", "date", "status"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "milestone" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "description": { "type": "string", "minLength": 3, "maxLength": 240 },
        "workstreamId": { "$ref": "#/$defs/id" },
        "date": { "$ref": "#/$defs/isoDate" },
        "status": { "$ref": "#/$defs/timelineStatus" },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "timelineDependency": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "from", "to"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "finish-to-start" },
        "from": { "$ref": "#/$defs/id" },
        "to": { "$ref": "#/$defs/id" },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "timelineStatus": { "enum": ["planned", "active", "blocked", "done"] },
    "isoDate": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$" },
    "roadmapSpec": {
      "type": "object",
      "additionalProperties": false,
      "required": ["schemaVersion", "diagramKind", "id", "title", "language", "vision", "horizons", "themes", "nodes", "edges"],
      "properties": {
        "$schema": { "type": "string" },
        "schemaVersion": { "const": "2.0" },
        "diagramKind": { "const": "roadmap" },
        "id": { "$ref": "#/$defs/id" },
        "title": { "type": "string", "minLength": 1, "maxLength": 120 },
        "description": { "type": "string", "maxLength": 500 },
        "language": { "enum": ["en", "ja", "mixed"] },
        "metadata": { "$ref": "#/$defs/metadata" },
        "vision": { "type": "string", "minLength": 8, "maxLength": 180 },
        "horizons": { "type": "array", "minItems": 3, "maxItems": 3, "items": { "$ref": "#/$defs/roadmapHorizon" } },
        "themes": { "type": "array", "minItems": 1, "maxItems": 5, "items": { "$ref": "#/$defs/roadmapTheme" } },
        "nodes": { "type": "array", "minItems": 1, "maxItems": 24, "items": { "$ref": "#/$defs/roadmapInitiative" } },
        "edges": { "type": "array", "maxItems": 0 }
      }
    },
    "roadmapHorizon": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "kind", "title", "description"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "kind": { "enum": ["now", "next", "later"] },
        "title": { "type": "string", "minLength": 1, "maxLength": 40 },
        "description": { "type": "string", "minLength": 3, "maxLength": 120 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "roadmapTheme": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "description"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "theme" },
        "title": { "type": "string", "minLength": 1, "maxLength": 60 },
        "description": { "type": "string", "minLength": 3, "maxLength": 160 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "roadmapInitiative": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "description", "outcome", "themeId", "horizonId", "status"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "initiative" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "description": { "type": "string", "minLength": 3, "maxLength": 200 },
        "outcome": { "type": "string", "minLength": 8, "maxLength": 220 },
        "themeId": { "$ref": "#/$defs/id" },
        "horizonId": { "$ref": "#/$defs/id" },
        "status": { "enum": ["exploring", "planned", "active", "delivered"] },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "capabilityMapSpec": {
      "type": "object",
      "additionalProperties": false,
      "required": ["schemaVersion", "diagramKind", "id", "title", "language", "scope", "domains", "nodes", "edges"],
      "properties": {
        "$schema": { "type": "string" },
        "schemaVersion": { "const": "2.0" },
        "diagramKind": { "const": "capability-map" },
        "id": { "$ref": "#/$defs/id" },
        "title": { "type": "string", "minLength": 1, "maxLength": 120 },
        "description": { "type": "string", "maxLength": 500 },
        "language": { "enum": ["en", "ja", "mixed"] },
        "metadata": { "$ref": "#/$defs/metadata" },
        "scope": { "type": "string", "minLength": 8, "maxLength": 220 },
        "domains": { "type": "array", "minItems": 2, "maxItems": 6, "items": { "$ref": "#/$defs/capabilityDomain" } },
        "nodes": { "type": "array", "minItems": 2, "maxItems": 30, "items": { "$ref": "#/$defs/capability" } },
        "edges": { "type": "array", "maxItems": 0 }
      }
    },
    "capabilityDomain": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "description"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "domain" },
        "title": { "type": "string", "minLength": 1, "maxLength": 60 },
        "description": { "type": "string", "minLength": 3, "maxLength": 160 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "capability": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "description", "domainId", "strategicImportance"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "capability" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "description": { "type": "string", "minLength": 3, "maxLength": 200 },
        "domainId": { "$ref": "#/$defs/id" },
        "strategicImportance": { "enum": ["low", "medium", "high"] },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "executiveViewSpec": {
      "type": "object",
      "additionalProperties": false,
      "required": ["schemaVersion", "diagramKind", "id", "title", "language", "asOfDate", "objective", "recommendation", "nodes", "edges"],
      "properties": {
        "$schema": { "type": "string" },
        "schemaVersion": { "const": "2.0" },
        "diagramKind": { "const": "executive-view" },
        "id": { "$ref": "#/$defs/id" },
        "title": { "type": "string", "minLength": 1, "maxLength": 120 },
        "description": { "type": "string", "maxLength": 500 },
        "language": { "enum": ["en", "ja", "mixed"] },
        "metadata": { "$ref": "#/$defs/metadata" },
        "asOfDate": { "$ref": "#/$defs/isoDate" },
        "objective": { "type": "string", "minLength": 8, "maxLength": 220 },
        "recommendation": { "type": "string", "minLength": 8, "maxLength": 240 },
        "nodes": { "type": "array", "minItems": 4, "maxItems": 13, "items": { "$ref": "#/$defs/executiveItem" } },
        "edges": { "type": "array", "maxItems": 0 }
      }
    },
    "executiveItem": {
      "oneOf": [
        { "$ref": "#/$defs/executiveIndicator" },
        { "$ref": "#/$defs/executiveRisk" },
        { "$ref": "#/$defs/executiveDecision" }
      ]
    },
    "executiveIndicator": {
      "type": "object", "additionalProperties": false,
      "required": ["id", "type", "title", "description", "value", "target", "trend", "status"],
      "properties": {
        "id": { "$ref": "#/$defs/id" }, "type": { "const": "indicator" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "description": { "type": "string", "minLength": 3, "maxLength": 200 },
        "value": { "type": "string", "minLength": 1, "maxLength": 60 },
        "target": { "type": "string", "minLength": 1, "maxLength": 60 },
        "trend": { "enum": ["improving", "steady", "declining"] },
        "status": { "enum": ["on-track", "at-risk", "off-track"] },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "executiveRisk": {
      "type": "object", "additionalProperties": false,
      "required": ["id", "type", "title", "description", "impact", "response", "status"],
      "properties": {
        "id": { "$ref": "#/$defs/id" }, "type": { "const": "risk" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "description": { "type": "string", "minLength": 3, "maxLength": 200 },
        "impact": { "enum": ["low", "medium", "high"] },
        "response": { "type": "string", "minLength": 3, "maxLength": 220 },
        "status": { "enum": ["open", "watch", "mitigated"] },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "executiveDecision": {
      "type": "object", "additionalProperties": false,
      "required": ["id", "type", "title", "description", "recommendation", "status"],
      "properties": {
        "id": { "$ref": "#/$defs/id" }, "type": { "const": "decision" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "description": { "type": "string", "minLength": 3, "maxLength": 200 },
        "recommendation": { "type": "string", "minLength": 3, "maxLength": 220 },
        "status": { "enum": ["open", "approved", "deferred"] },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "dataFlowSpec": {
      "type": "object",
      "additionalProperties": false,
      "required": ["schemaVersion", "diagramKind", "id", "title", "language", "boundaries", "nodes", "edges"],
      "properties": {
        "$schema": { "type": "string" },
        "schemaVersion": { "const": "2.0" },
        "diagramKind": { "const": "data-flow" },
        "id": { "$ref": "#/$defs/id" },
        "title": { "type": "string", "minLength": 1, "maxLength": 120 },
        "description": { "type": "string", "maxLength": 500 },
        "language": { "enum": ["en", "ja", "mixed"] },
        "metadata": { "$ref": "#/$defs/metadata" },
        "boundaries": {
          "type": "array",
          "maxItems": 32,
          "items": { "$ref": "#/$defs/dataFlowTrustBoundary" }
        },
        "nodes": {
          "type": "array",
          "minItems": 2,
          "maxItems": 120,
          "items": { "$ref": "#/$defs/dataFlowNode" }
        },
        "edges": {
          "type": "array",
          "minItems": 1,
          "maxItems": 240,
          "items": { "$ref": "#/$defs/dataFlowEdge" }
        }
      }
    },
    "dataFlowTrustBoundary": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "trustLevel"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "trust-boundary" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "trustLevel": { "enum": ["external", "controlled", "restricted"] },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "dataFlowNode": {
      "oneOf": [
        { "$ref": "#/$defs/dataFlowSimpleNode" },
        { "$ref": "#/$defs/dataFlowProcess" },
        { "$ref": "#/$defs/dataFlowDataStore" }
      ]
    },
    "dataFlowSimpleNode": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "description"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "enum": ["source", "sink", "external-system"] },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "description": { "type": "string", "minLength": 3, "maxLength": 240 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "dataFlowProcess": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "description", "transformation"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "process" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "description": { "type": "string", "minLength": 3, "maxLength": 240 },
        "transformation": { "type": "string", "minLength": 3, "maxLength": 160 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "dataFlowDataStore": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "description", "classification"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "data-store" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "description": { "type": "string", "minLength": 3, "maxLength": 240 },
        "classification": { "$ref": "#/$defs/dataClassification" },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "dataFlowEdge": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "from", "to", "type", "dataName", "format", "frequency", "mode", "classification"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "from": { "$ref": "#/$defs/id" },
        "to": { "$ref": "#/$defs/id" },
        "type": { "const": "data-flow" },
        "dataName": { "type": "string", "minLength": 1, "maxLength": 100 },
        "format": { "type": "string", "minLength": 1, "maxLength": 80 },
        "frequency": { "type": "string", "minLength": 1, "maxLength": 80 },
        "mode": { "enum": ["batch", "streaming", "request-response"] },
        "classification": { "$ref": "#/$defs/dataClassification" },
        "trustBoundaryIds": {
          "type": "array",
          "maxItems": 32,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/id" }
        },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "dataClassification": { "enum": ["public", "internal", "confidential", "restricted"] },
    "deploymentSpec": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "schemaVersion", "diagramKind", "id", "title", "language", "environment",
        "entryNodeIds", "boundaries", "nodes", "edges"
      ],
      "properties": {
        "$schema": { "type": "string" },
        "schemaVersion": { "const": "2.0" },
        "diagramKind": { "const": "deployment" },
        "id": { "$ref": "#/$defs/id" },
        "title": { "type": "string", "minLength": 1, "maxLength": 120 },
        "description": { "type": "string", "maxLength": 500 },
        "language": { "enum": ["en", "ja", "mixed"] },
        "metadata": { "$ref": "#/$defs/metadata" },
        "environment": { "type": "string", "minLength": 1, "maxLength": 80 },
        "entryNodeIds": {
          "type": "array",
          "minItems": 1,
          "maxItems": 32,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/id" }
        },
        "boundaries": {
          "type": "array",
          "minItems": 4,
          "maxItems": 64,
          "items": { "$ref": "#/$defs/deploymentBoundary" }
        },
        "nodes": {
          "type": "array",
          "minItems": 2,
          "maxItems": 160,
          "items": { "$ref": "#/$defs/deploymentNode" }
        },
        "edges": {
          "type": "array",
          "minItems": 1,
          "maxItems": 320,
          "items": { "$ref": "#/$defs/deploymentCommunication" }
        }
      }
    },
    "deploymentBoundary": {
      "oneOf": [
        { "$ref": "#/$defs/deploymentCloudProvider" },
        { "$ref": "#/$defs/deploymentRegion" },
        { "$ref": "#/$defs/deploymentNetworkBoundary" }
      ]
    },
    "deploymentCloudProvider": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "cloud-provider" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "deploymentRegion": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "parentId"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "region" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "parentId": { "$ref": "#/$defs/id" },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "deploymentNetworkBoundary": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "parentId", "exposure"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "enum": ["network", "subnet"] },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "parentId": { "$ref": "#/$defs/id" },
        "exposure": { "$ref": "#/$defs/networkExposure" },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "deploymentNode": {
      "oneOf": [
        { "$ref": "#/$defs/deploymentExternalSystem" },
        { "$ref": "#/$defs/deploymentManagedNode" }
      ]
    },
    "deploymentExternalSystem": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "description", "technology", "exposure"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "const": "external-system" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "description": { "type": "string", "minLength": 3, "maxLength": 240 },
        "technology": { "type": "string", "minLength": 1, "maxLength": 100 },
        "exposure": { "const": "public" },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "deploymentManagedNode": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "title", "description", "technology", "exposure", "boundaryId"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "enum": ["gateway", "load-balancer", "firewall", "host", "service", "database"] },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "description": { "type": "string", "minLength": 3, "maxLength": 240 },
        "technology": { "type": "string", "minLength": 1, "maxLength": 100 },
        "exposure": { "$ref": "#/$defs/networkExposure" },
        "boundaryId": { "$ref": "#/$defs/id" },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "deploymentCommunication": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "from", "to", "type", "description", "protocol", "port"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "from": { "$ref": "#/$defs/id" },
        "to": { "$ref": "#/$defs/id" },
        "type": { "const": "communication" },
        "description": { "type": "string", "minLength": 3, "maxLength": 160 },
        "protocol": { "type": "string", "minLength": 1, "maxLength": 40 },
        "port": { "type": "integer", "minimum": 1, "maximum": 65535 },
        "boundaryIds": {
          "type": "array",
          "maxItems": 64,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/id" }
        },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "networkExposure": { "enum": ["public", "private", "restricted"] },
    "id": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
    "variant": { "enum": ["realtime", "delegated", "external", "warning", "critical"] },
    "status": { "enum": ["planned", "experimental", "beta", "stable", "deprecated", "retired"] },
    "metadata": {
      "type": "object",
      "additionalProperties": { "type": "string", "maxLength": 200 }
    },
    "boundary": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "variant", "title"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": { "enum": ["system", "network", "trust", "organization", "runtime"] },
        "variant": { "$ref": "#/$defs/variant" },
        "title": { "type": "string", "minLength": 1, "maxLength": 80 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "node": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "type", "variant", "status", "title"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "type": {
          "enum": [
            "actor", "client", "frontend", "backend", "api", "service", "model", "agent",
            "tool", "database", "cache", "queue", "event-bus", "storage", "batch-job",
            "external-service", "observability", "security", "network", "note"
          ]
        },
        "variant": { "$ref": "#/$defs/variant" },
        "status": { "$ref": "#/$defs/status" },
        "title": { "type": "string", "minLength": 1, "maxLength": 60 },
        "subtitle": { "type": "string", "maxLength": 100 },
        "icon": { "$ref": "#/$defs/id" },
        "controls": {
          "type": "array",
          "maxItems": 8,
          "items": { "type": "string", "minLength": 1, "maxLength": 32 }
        },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    },
    "edge": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "from", "to", "type", "variant", "direction"],
      "properties": {
        "id": { "$ref": "#/$defs/id" },
        "from": { "$ref": "#/$defs/id" },
        "to": { "$ref": "#/$defs/id" },
        "type": {
          "enum": [
            "sync-request", "async-request", "realtime-stream", "event", "batch", "data-read",
            "data-write", "control", "monitoring", "authentication"
          ]
        },
        "variant": { "$ref": "#/$defs/variant" },
        "label": { "type": "string", "maxLength": 80 },
        "direction": { "enum": ["forward", "bidirectional"] },
        "protocol": { "type": "string", "maxLength": 32 },
        "metadata": { "$ref": "#/$defs/metadata" }
      }
    }
  }
}

layout.schema.json

2.9 KB

/schemas/layout.schema.json

Show contents
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://example.local/schemas/layout.schema.json",
  "title": "Architecture diagram layout",
  "type": "object",
  "additionalProperties": false,
  "required": ["schemaVersion", "canvas", "nodes", "edges"],
  "properties": {
    "$schema": { "type": "string" },
    "schemaVersion": { "const": "1.0" },
    "canvas": {
      "type": "object",
      "additionalProperties": false,
      "required": ["width", "height"],
      "properties": {
        "width": { "type": "integer", "minimum": 320, "maximum": 10000 },
        "height": { "type": "integer", "minimum": 240, "maximum": 10000 }
      }
    },
    "boundaries": {
      "type": "object",
      "additionalProperties": { "$ref": "#/$defs/boundaryGeometry" }
    },
    "nodes": {
      "type": "object",
      "additionalProperties": { "$ref": "#/$defs/nodeGeometry" }
    },
    "edges": {
      "type": "object",
      "additionalProperties": { "$ref": "#/$defs/edgeGeometry" }
    }
  },
  "$defs": {
    "point": {
      "type": "object",
      "additionalProperties": false,
      "required": ["x", "y"],
      "properties": {
        "x": { "type": "number", "minimum": 0, "maximum": 10000 },
        "y": { "type": "number", "minimum": 0, "maximum": 10000 }
      }
    },
    "port": {
      "type": "object",
      "additionalProperties": false,
      "required": ["side", "offset"],
      "properties": {
        "side": { "enum": ["top", "right", "bottom", "left"] },
        "offset": { "type": "number", "minimum": 0, "maximum": 1 }
      }
    },
    "nodeGeometry": {
      "type": "object",
      "additionalProperties": false,
      "required": ["x", "y", "width", "height"],
      "properties": {
        "x": { "type": "number", "minimum": 0, "maximum": 10000 },
        "y": { "type": "number", "minimum": 0, "maximum": 10000 },
        "width": { "type": "number", "minimum": 40, "maximum": 3000 },
        "height": { "type": "number", "minimum": 30, "maximum": 3000 }
      }
    },
    "boundaryGeometry": {
      "type": "object",
      "additionalProperties": false,
      "required": ["x", "y", "width", "height"],
      "properties": {
        "x": { "type": "number", "minimum": 0, "maximum": 10000 },
        "y": { "type": "number", "minimum": 0, "maximum": 10000 },
        "width": { "type": "number", "minimum": 120, "maximum": 10000 },
        "height": { "type": "number", "minimum": 80, "maximum": 10000 }
      }
    },
    "edgeGeometry": {
      "type": "object",
      "additionalProperties": false,
      "required": ["source", "target"],
      "properties": {
        "source": { "$ref": "#/$defs/port" },
        "target": { "$ref": "#/$defs/port" },
        "waypoints": {
          "type": "array",
          "maxItems": 20,
          "items": { "$ref": "#/$defs/point" }
        },
        "label": { "$ref": "#/$defs/point" }
      }
    }
  }
}