Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

2.8 KB
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
        "base_version": {
            "description": "Workflow version this was authored against, as read from the workflow. It is the snapshot approve compares against to tell whether someone edited the same steps or fields since, and a defaulted version would read as current however long the producer took.",
            "minimum": 1,
            "type": "number"
        },
        "content": {
            "additionalProperties": {},
            "description": "Only the workflow content fields this proposal changes. Approving merges them over the live content to build the staged draft, so unrelated parts of the workflow stay as they are. In `actions`, send each step you change with its `id` and only the fields you change; they merge into the live step, and a null field deletes it.",
            "propertyNames": {
                "type": "string"
            },
            "type": "object"
        },
        "evidence": {
            "additionalProperties": {},
            "description": "The metric numbers behind the proposal, so a human can judge it without re-deriving them.",
            "propertyNames": {
                "type": "string"
            },
            "type": "object"
        },
        "id": {
            "description": "A UUID string identifying this hog flow.",
            "type": "string"
        },
        "rationale": {
            "description": "Why this change is worth making, in prose a human reads.",
            "type": "string"
        },
        "source_id": {
            "anyOf": [
                {
                    "maxLength": 200,
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "description": "Stable id of the producing agent run or finding. Posting the same one twice returns the existing proposal instead of creating a duplicate."
        },
        "step_id": {
            "anyOf": [
                {
                    "maxLength": 200,
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "description": "The step this is about. Send it for a change to one step: both the evidence and the outcome then read that step's metrics, so a change to one email in a sequence is not measured against the rest. Leave it out only for a change that spans the workflow, such as its exit condition or a step being taken out, which is measured on the workflow's own numbers."
        },
        "title": {
            "description": "Short summary of the proposed change.",
            "maxLength": 200,
            "type": "string"
        }
    },
    "required": ["id", "title", "rationale", "content", "base_version"],
    "type": "object"
}