Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

workflow / workflow singleflight cancellation transcript

An agent that coalesces concurrent paid artifact requests needs claimed execution launches aborts and delivered waiters checked through client cancellation and stale completion generations.

POST https://detect.halowerk.com/v1/workflow/workflow-singleflight-cancellation-transcript

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
artifactobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "artifact": {
      "type": "object",
      "properties": {
        "events": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "const": "request"
                  },
                  "client": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 255
                  },
                  "key": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 31
                  },
                  "claimed_new_execution": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "kind",
                  "client",
                  "key",
                  "claimed_new_execution"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "const": "cancel"
                  },
                  "client": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 255
                  },
                  "claimed_aborted": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "kind",
                  "client",
                  "claimed_aborted"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "const": "complete"
                  },
                  "key": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 31
                  },
                  "generation": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000
                  },
                  "claimed_delivered": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 256
                  }
                },
                "required": [
                  "kind",
                  "key",
                  "generation",
                  "claimed_delivered"
                ],
                "additionalProperties": false
              }
            ]
          },
          "minItems": 0,
          "maxItems": 512
        }
      },
      "required": [
        "events"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "artifact"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "artifact": {
    "events": [
      {
        "kind": "request",
        "client": 0,
        "key": 0,
        "claimed_new_execution": true
      },
      {
        "kind": "request",
        "client": 1,
        "key": 0,
        "claimed_new_execution": false
      },
      {
        "kind": "complete",
        "key": 0,
        "generation": 1,
        "claimed_delivered": 2
      }
    ]
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →