{
  "type": "object",
  "required": [
    "id",
    "body",
    "net_contract"
  ],
  "description": "TAM-70 (docs/tcs/post-state-effects.md §15): a document (performer) composite — the same shape as a registry composite, with atlas_ref/examples/post_state optional (S9: post_state, when present, is validated in code against the meta-schema's $defs/postState, not through this def — R7: this def accepts any object there).",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]*$"
    },
    "description": {
      "type": "string"
    },
    "labels": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "aliases": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "atlas_ref": {
      "type": "string"
    },
    "requires": {
      "type": "array",
      "items": {
        "enum": [
          "source",
          "target",
          "hand"
        ]
      },
      "uniqueItems": true
    },
    "parameters": {
      "type": "object"
    },
    "locals": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "body": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object"
      }
    },
    "net_contract": {
      "type": "object",
      "required": [
        "post_state_invariant"
      ],
      "additionalProperties": false,
      "properties": {
        "post_state_invariant": {
          "type": "string"
        },
        "post_state": {
          "type": "object"
        },
        "boundary_note": {
          "type": "string"
        }
      }
    },
    "presents_as": {
      "type": "string"
    },
    "presents_as_parameters": {
      "type": "object"
    },
    "examples": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "metadata": {
      "$ref": "#/$defs/metadata"
    }
  }
}