{
  "version": "0.1",
  "updated": "2026-06-19",
  "spec": "https://ecoclouddev.com/constitution-spec/",
  "kernel": "https://ecoclouddev.com/kernel/flowdesk-constitution-kernel.js",
  "note": "Ready-to-use FlowDesk Constitutions. Each `rules` object is enforced deterministically by the open-source Constitution kernel, server-side and in-browser. These govern AGENT BEHAVIOUR; they are NOT a compliance certification — a Constitution can support controls, but adopting a template does not make an organization SOC 2 / GDPR / HIPAA certified.",
  "templates": [
    {
      "id": "least-privilege",
      "name": "Least privilege (cautious default)",
      "description": "A safe starting point: caps priority at medium, blocks destructive language, and routes anything the agent is less than 85% sure about to a human.",
      "rules": { "max_priority": "medium", "forbidden_terms": ["delete", "drop table", "truncate", "rm -rf", "wipe", "disable", "revoke"], "require_approval_below_confidence": 0.85 }
    },
    {
      "id": "human-in-the-loop",
      "name": "Human in the loop",
      "description": "Nothing the agent is less than 90% confident about executes without a human approving it first.",
      "rules": { "require_approval_below_confidence": 0.9 }
    },
    {
      "id": "no-destructive-actions",
      "name": "No destructive actions",
      "description": "Denies any action whose title implies destruction or teardown — deletes, drops, wipes, shutdowns, revokes.",
      "rules": { "forbidden_terms": ["delete", "drop", "truncate", "wipe", "rm -rf", "revoke", "disable", "shutdown", "terminate", "destroy"] }
    },
    {
      "id": "strategic-alignment",
      "name": "Strategic alignment",
      "description": "Agents may only do work that maps to a current objective. Replace the tags with your live priorities; off-objective actions are denied before they run.",
      "rules": { "objective_tags": ["q3-launch", "reliability", "retention"] }
    },
    {
      "id": "quiet-hours",
      "name": "Quiet hours",
      "description": "No agent writes overnight — blocks actions between 22:00 and 06:00 UTC.",
      "rules": { "quiet_hours_utc": { "start": 22, "end": 6 } }
    },
    {
      "id": "rate-limited",
      "name": "Rate limited",
      "description": "Caps how much an agent can create per day and how high it can prioritize — a brake on a runaway agent.",
      "rules": { "max_creates_per_day": 20, "max_priority": "high" }
    },
    {
      "id": "locked-down",
      "name": "Locked down (high-stakes)",
      "description": "Stacked controls for a tightly governed agent: low priority cap, destructive-language block, a small daily cap, and approval on anything below 95% confidence.",
      "rules": { "max_priority": "medium", "forbidden_terms": ["delete", "drop", "truncate", "wipe", "rm -rf", "revoke", "disable", "shutdown"], "max_creates_per_day": 10, "require_approval_below_confidence": 0.95 }
    }
  ]
}
