Skip to content
Fourohtwo

detect.halowerk.com/v1/workflow/workflow-acyclic-stack-type-joins

Returns the claimed type safety checked across every acyclic control-flow branch, including stack joins and typed return contracts, for an agent that hands over workflow bytecode.

BaseAnswering
POSThttps://detect.halowerk.com/v1/workflow/workflow-acyclic-stack-type-joins

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://detect.halowerk.com/v1/workflow/workflow-acyclic-stack-type-joins", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"artifact":{"blocks":[{"next":[2,5],"ops":["boolean"],"returns":[]},{"next":[3,5],"ops":["eq"],"returns":["number","boolean"]},{"next":[4],"ops":["boolean"],"returns":["number"]},{"next":[4],"ops":["number","add","eq","number"],"returns":["boolean","number"]},{"next":[],"ops":[],"returns":["boolean"]},{"next":[],"ops":["drop","boolean"],"returns":[]}],"claimed_valid":false}}),
});
console.log(await res.json());

Example input

{
  "artifact": {
    "blocks": [
      {
        "next": [
          2,
          5
        ],
        "ops": [
          "boolean"
        ],
        "returns": []
      },
      {
        "next": [
          3,
          5
        ],
        "ops": [
          "eq"
        ],
        "returns": [
          "number",
          "boolean"
        ]
      },
      {
        "next": [
          4
        ],
        "ops": [
          "boolean"
        ],
        "returns": [
          "number"
        ]
      },
      {
        "next": [
          4
        ],
        "ops": [
          "number",
          "add",
          "eq",
          "number"
        ],
        "returns": [
          "boolean",
          "number"
        ]
      },
      {
        "next": [],
        "ops": [],
        "returns": [
          "boolean"
        ]
      },
      {
        "next": [],
        "ops": [
          "drop",
          "boolean"
        ],
        "returns": []
      }
    ],
    "claimed_valid": false
  }
}