{
  "schema": "weftwight.public-c4ai-context-stack/0.2",
  "kind": "c4ai-context-stack",
  "status": "public language reference; exact UI response contracts remain versioned separately",
  "c4ai_definition": "Context For AI: the general practice of copying selected, bounded context so an AI teammate can understand a task and begin accurately. This WeftWight registry is one optional reference source for that practice.",
  "purpose": "Give an AI teammate compact, selected, reviewable authoring context without granting it mechanics, identity, provider, canon, or publication authority.",
  "zones": [
    {
      "id": "system_rules",
      "required": true,
      "contains": ["response_contract", "forbidden_actions", "authority_boundary"],
      "rule": "Short, explicit, versioned, and free of secrets or private resolver detail."
    },
    {
      "id": "active_scope",
      "required": true,
      "contains": ["stage_id", "selected_field_refs", "author_notes", "current_values"],
      "rule": "Only deliberately selected fields may be proposed for change. A current stage-level selection is valid while the field composer is being built."
    },
    {
      "id": "world_context",
      "required": true,
      "contains": ["premise_and_tags", "environments_and_start", "characters", "primary_gear"],
      "rule": "Include concise upstream facts only when relevant to the active scope. Use stable references or hashes rather than unnecessary complete records."
    },
    {
      "id": "side_context",
      "required": false,
      "contains": ["available_tags", "project_vocabulary", "local_library_refs"],
      "rule": "Advisory vocabulary must not disclose another author’s private work or create shared authority."
    },
    {
      "id": "documentation",
      "required": true,
      "contains": ["registry_url", "document_urls", "document_hashes", "inline_constraints"],
      "rule": "Use this public, versioned registry. Inline constraints remain sufficient when the teammate cannot browse."
    }
  ],
  "response_rules": {
    "bound": "An app-supplied response contract and request binding are authoritative for the exact machine-readable response shape.",
    "patch_direction": "A selective proposal targets stable field references, supplies a proposed value and rationale, and leaves omitted fields unchanged.",
    "review": "Every result is an explicit author-reviewed proposal; no response self-executes."
  },
  "forbidden_actions": ["execute_code", "call_provider", "publish", "grant_authority", "change_mechanics", "infer_private_data"]
}
