{
  "version": "0.1.0",
  "description": "Workflow definitions discovered in .claude/workflows/. Generated from each script's meta block by scripts/generate-workflow-catalog.mjs — never hand-edited.",
  "workflows": [
    {
      "id": "agentic-delegation",
      "name": "agentic-delegation",
      "path": ".claude/workflows/agentic-delegation.js",
      "description": "Context7-grounded delegation: Haiku recon, orchestrator-tier spec, Opus implementation (Sonnet for prose-only specs), adversarial claim verification, then the repo gate suite.",
      "when_to_use": "Multi-step work in this repo that decomposes into cheap parallel recon plus a small amount of genuine judgment — especially anything that encodes external technical facts (model names, API behaviour, version-specific semantics) that must be grounded in primary sources before they ship.",
      "phases": [
        {
          "title": "Resolve sources",
          "detail": "Resolve Context7 library IDs once, centrally",
          "model": "haiku"
        },
        {
          "title": "Recon",
          "detail": "Parallel Haiku sweeps, one narrow question each, citations required",
          "model": "haiku"
        },
        {
          "title": "Spec",
          "detail": "Orchestrator-tier file-scoped specs — architecture stays here",
          "model": ""
        },
        {
          "title": "Implement",
          "detail": "Opus writes code against an exact spec; prose-only specs go to Sonnet",
          "model": "opus"
        },
        {
          "title": "Regenerate",
          "detail": "Settle generated output before verification, when generators are declared",
          "model": "haiku"
        },
        {
          "title": "Verify",
          "detail": "Adversarial Context7-grounded check of every factual claim written",
          "model": "sonnet"
        },
        {
          "title": "Gate",
          "detail": "Repo gate suite in documented order, asset-integrity last",
          "model": "haiku"
        }
      ]
    },
    {
      "id": "plugin-security-scan",
      "name": "plugin-security-scan",
      "path": ".claude/workflows/plugin-security-scan.js",
      "description": "HOL plugin-scanner loop: deterministic autofix, orchestrator-tier per-rule triage, rationale-bearing suppression, adversarial re-scan, then the repo gate suite.",
      "when_to_use": "When the HOL AI Plugin Scanner reports findings against this repo or its plugin bundles — a failing hol-plugin-scanner job, a catalog reviewer citing a score, or a pre-submission self-check. Also for auditing whether the existing .plugin-scanner.toml suppressions are still honest.",
      "phases": [
        {
          "title": "Inventory",
          "detail": "Resolve a runnable scanner + version and the vendor rule list; fail closed rather than guess",
          "model": "haiku"
        },
        {
          "title": "Baseline",
          "detail": "Record score, grade and findings per target before touching anything",
          "model": "haiku"
        },
        {
          "title": "Autofix",
          "detail": "Deterministic lint --fix on fixable rules, before any model judgment",
          "model": "haiku"
        },
        {
          "title": "Triage",
          "detail": "Orchestrator-tier per-rule disposition — fix vs suppress vs accept stays here",
          "model": ""
        },
        {
          "title": "Remediate",
          "detail": "Sonnet implements fixes and writes rationale-bearing suppressions",
          "model": "sonnet"
        },
        {
          "title": "Rescan",
          "detail": "Barrier re-scan: the decisive probe that the disposition held",
          "model": "haiku"
        },
        {
          "title": "Refute",
          "detail": "Adversarial audit of every suppression — silenced is not fixed",
          "model": "sonnet"
        },
        {
          "title": "Gate",
          "detail": "Repo gate suite, integrity manifest regenerated first so validate reads a settled tree",
          "model": "haiku"
        }
      ]
    }
  ]
}
