Skip to content
HALOWERK

Calculators and Rule Checks

service queue observed start audit

FIFO queue audit finds the first observed job start that differs from a work-conserving dispatch and counts observed worker-capacity breaches. Use it when an agent needs checking a measured start trace against declared staffing.

POST https://rechen.halowerk.com/v1/service-queue-observed-start-audit

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
arrivals_sarrayYes
service_sarrayYes
workersintegerYes
observed_sarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "arrivals_s": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 2592000
      },
      "maxItems": 200,
      "minItems": 1
    },
    "service_s": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 1,
        "maximum": 604800
      },
      "maxItems": 200,
      "minItems": 1
    },
    "workers": {
      "type": "integer",
      "minimum": 1,
      "maximum": 32
    },
    "observed_s": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 3000000
      },
      "maxItems": 200,
      "minItems": 1
    }
  },
  "required": [
    "arrivals_s",
    "service_s",
    "workers",
    "observed_s"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "arrivals_s": [
    0,
    0,
    0,
    0,
    0
  ],
  "service_s": [
    34,
    15,
    13,
    15,
    19
  ],
  "workers": 1,
  "observed_s": [
    3,
    2,
    3,
    3,
    2
  ]
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "mismatches": {
          "type": "integer"
        },
        "first_job": {
          "type": "integer"
        },
        "first_offset_s": {
          "type": "integer"
        },
        "peak_observed_active": {
          "type": "integer"
        },
        "over_capacity": {
          "type": "boolean"
        }
      },
      "required": [
        "mismatches",
        "first_job",
        "first_offset_s",
        "peak_observed_active",
        "over_capacity"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub →