{
  "interface_version": "dn.local-agent-interface.v1",
  "input_schema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "SignWarden input shape",
    "type": "object",
    "properties": {
      "evidence": {
        "type": "string"
      },
      "parties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "scope": {
        "type": "string"
      },
      "price": {
        "type": "string"
      },
      "currency": {
        "type": "string"
      },
      "deadline": {
        "type": "string"
      }
    },
    "description": "Basic shape only. The shared executable core additionally validates domain rules and required values; structured errors are authoritative. This schema does not establish identity, supplier ownership, customer rights or acceptance."
  },
  "output_schema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "SignWarden local agent result",
    "oneOf": [
      {
        "type": "object",
        "required": [
          "schema",
          "ok",
          "result"
        ],
        "properties": {
          "schema": {
            "const": "signwarden.agent-result.v1"
          },
          "ok": {
            "const": true,
            "description": "Invocation completed only; inspect result domain status/unknowns/limits. Not business acceptance."
          },
          "result": {
            "type": "object"
          }
        },
        "additionalProperties": false
      },
      {
        "type": "object",
        "required": [
          "schema",
          "ok",
          "error"
        ],
        "properties": {
          "schema": {
            "const": "signwarden.agent-result.v1"
          },
          "ok": {
            "const": false
          },
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      }
    ]
  },
  "sample_input": "sample-input.json",
  "transport": "local command stdout JSON; exit0 success/exit2 failure",
  "permissions": "Only explicitly authorized local inputs; Truquence export may write the explicitly chosen directory. No network/signing/payment/mail."
}
