{
  "artifact": "D11-022 manual API UI contract",
  "version": "d11-022.v1",
  "generated_at_utc": "2026-09-08T13:27:52Z",
  "production_changed": false,
  "views": [
    {
      "name": "Catalog",
      "route": "/catalog",
      "api": "GET /api/v1/articles",
      "actions": [
        "search",
        "topic/language/freshness filters",
        "select articles"
      ]
    },
    {
      "name": "Article",
      "route": "/catalog/{id}",
      "api": "GET /api/v1/articles/{id}",
      "actions": [
        "read revision",
        "open provenance",
        "save to shelf"
      ]
    },
    {
      "name": "Jobs",
      "route": "/work/jobs",
      "api": "GET /api/v1/jobs",
      "actions": [
        "create",
        "cancel own",
        "retry allowed failures",
        "view partial"
      ]
    },
    {
      "name": "Job detail",
      "route": "/work/jobs/{id}",
      "api": "GET /api/v1/jobs/{id}",
      "actions": [
        "progress",
        "runs",
        "errors",
        "evidence"
      ]
    },
    {
      "name": "Promotion",
      "route": "/work/promotion",
      "api": "POST /api/v1/articles/{id}/promote",
      "actions": [
        "bulk select",
        "preview",
        "send to Сырьё"
      ]
    }
  ],
  "ui_rules": [
    "Use existing Work tokens/components and responsive states.",
    "All mutations require confirmation and request_id feedback.",
    "Selection is scoped to current project and filter snapshot.",
    "Disabled action explains permission, state or budget reason.",
    "Loading/empty/error/no_access/rate_limited are first-class states."
  ],
  "security": [
    "No raw tokens or stack traces in UI.",
    "Escape/sanitize article HTML and external URLs.",
    "Server remains source of permissions; client state is advisory."
  ],
  "acceptance": [
    "Read-only catalog works without mutation.",
    "Create/cancel/promote sends Idempotency-Key.",
    "Bulk selection cannot cross project scope.",
    "Every action displays success or error request_id.",
    "Mobile 390px has no horizontal overflow."
  ]
}
