{
    "$schema": "../../../../schemas/diagram-spec.schema.json",
    "schemaVersion": "2.0",
    "diagramKind": "decision-tree",
    "id": "editorial-publication-decision",
    "title": "Editorial Publication Decision",
    "description": "A covered review tree that terminates every publication path in an authored outcome.",
    "language": "en",
    "rootNodeId": "required-checks",
    "nodes": [
        {
            "id": "required-checks",
            "type": "decision",
            "title": "Required checks complete?",
            "description": "Confirm editorial and policy gates."
        },
        {
            "id": "evidence-ready",
            "type": "decision",
            "title": "Claims supported?",
            "description": "Confirm every material claim has evidence."
        },
        {
            "id": "risk-acceptable",
            "type": "decision",
            "title": "Residual risk acceptable?",
            "description": "Confirm the release risk is within policy."
        },
        {
            "id": "revise-checks",
            "type": "outcome",
            "title": "Complete checks",
            "description": "Return to the missing review gate."
        },
        {
            "id": "revise-evidence",
            "type": "outcome",
            "title": "Strengthen evidence",
            "description": "Revise unsupported claims before release."
        },
        {
            "id": "publish",
            "type": "outcome",
            "title": "Publish",
            "description": "Release the approved article."
        },
        {
            "id": "block",
            "type": "outcome",
            "title": "Block",
            "description": "Stop publication and record the risk."
        }
    ],
    "edges": [
        {
            "id": "checks-pass",
            "type": "branch",
            "from": "required-checks",
            "to": "evidence-ready",
            "condition": "all-complete",
            "isDefault": false
        },
        {
            "id": "checks-default",
            "type": "branch",
            "from": "required-checks",
            "to": "revise-checks",
            "isDefault": true
        },
        {
            "id": "evidence-pass",
            "type": "branch",
            "from": "evidence-ready",
            "to": "risk-acceptable",
            "condition": "fully-cited",
            "isDefault": false
        },
        {
            "id": "evidence-default",
            "type": "branch",
            "from": "evidence-ready",
            "to": "revise-evidence",
            "isDefault": true
        },
        {
            "id": "risk-pass",
            "type": "branch",
            "from": "risk-acceptable",
            "to": "publish",
            "condition": "within-policy",
            "isDefault": false
        },
        {
            "id": "risk-default",
            "type": "branch",
            "from": "risk-acceptable",
            "to": "block",
            "isDefault": true
        }
    ]
}
