Skip to content
HALOWERK

Agent Interfaces

petrinet deadlock shortest trace

Return a shortest trace to a dead marking in a supplied capacity-limited Petri net.

POST https://agent.halowerk.com/v1/petrinet-deadlock-shortest-trace

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
initialarrayYes
transitionsarrayYes
capacityarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "initial": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 32
      },
      "maxItems": 8,
      "minItems": 1
    },
    "transitions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "consume": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 32
            },
            "maxItems": 8,
            "minItems": 1
          },
          "produce": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 32
            },
            "maxItems": 8,
            "minItems": 1
          }
        },
        "required": [
          "consume",
          "produce"
        ],
        "additionalProperties": false
      },
      "maxItems": 16,
      "minItems": 1
    },
    "capacity": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 32
      },
      "maxItems": 8,
      "minItems": 1
    }
  },
  "required": [
    "initial",
    "transitions",
    "capacity"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "initial": [
    1
  ],
  "transitions": [
    {
      "consume": [
        1
      ],
      "produce": [
        0
      ]
    }
  ],
  "capacity": [
    1
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-19 UTC.

More endpoints in this hub

All endpoints in this hub โ†’