Skip to content
HALOWERK

Calculators and Rule Checks

project network single task compression

Project deadline compression finds the smallest reduction of one activity that meets a target finish. Use it when an agent needs evaluating a schedule recovery proposal.

POST https://rechen.halowerk.com/v1/project-network-single-task-compression

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
tasksarrayYes
activitystringYes
deadlineintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "tasks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9_-]{1,32}$"
          },
          "ticks": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000000
          },
          "after": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-zA-Z0-9_-]{1,32}$"
            },
            "maxItems": 48,
            "minItems": 0
          }
        },
        "required": [
          "id",
          "ticks",
          "after"
        ],
        "additionalProperties": false
      },
      "maxItems": 60,
      "minItems": 1
    },
    "activity": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]{1,32}$"
    },
    "deadline": {
      "type": "integer",
      "minimum": 0,
      "maximum": 60000000
    }
  },
  "required": [
    "tasks",
    "activity",
    "deadline"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "tasks": [
    {
      "id": "verify",
      "ticks": 76,
      "after": []
    },
    {
      "id": "publisher",
      "ticks": 1005,
      "after": [
        "verify"
      ]
    },
    {
      "id": "http",
      "ticks": 69,
      "after": [
        "verify"
      ]
    },
    {
      "id": "accept",
      "ticks": 2,
      "after": [
        "publisher",
        "http"
      ]
    }
  ],
  "activity": "publisher",
  "deadline": 1000
}

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": {
        "achievable": {
          "type": "boolean"
        },
        "reduction": {
          "type": [
            "integer",
            "null"
          ]
        },
        "fastest_finish": {
          "type": "integer"
        }
      },
      "required": [
        "achievable",
        "reduction",
        "fastest_finish"
      ]
    },
    "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 →