# AI Align Resource Hog Detector

> AI Align Resource Hog Detector is a paid API for AI agents from aialign.halowerk.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Divides observed resource usage (CPU, memory-time, network, tool calls, wall time) by caller-supplied budgets and ranks agents by their worst overrun ratio

## Facts

- Endpoint: POST https://aialign.halowerk.com/v1/resource-hog
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ai-align-resource-hog-detector-d69b6f3c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R7aeuYTY_9UUqZuadSm9_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability ai-align-resource-hog-detector-d69b6f3c -d '<json body>'
```

Example prompt: Check which of these 5 agents blew their resource budgets: CPU budget is 10 seconds, memory budget is 2 GB-seconds, network budget is 50 MB, tool calls budget is 20, and wall time budget is 30 seconds — here are the observed values for agent-001 through agent-005.

## When to prefer this

Choose this endpoint when you need a pure, stateless budget-ratio computation across multiple resource dimensions for one or many agents simultaneously, with no side effects or telemetry. It is ideal for governance pipelines, post-run audits, and real-time fleet monitoring where you supply your own budget thresholds and want a ranked list of worst offenders. Prefer it over heavier observability platforms when you already have the raw metrics and just need the math done deterministically and cheaply per call.

## Known failure modes

- Missing required budget dimensions returns a validation error
- Observations array is empty or exceeds 100,000 items — returns schema validation error
- Negative or zero observed values may cause ratio computation issues
- Budget values set to zero cause division errors
- agent_id field exceeds 128 characters returns validation error
- Malformed numeric types (e.g. string instead of number) cause 400 errors

## How this service works

Divides observed CPU, memory-time, network, tool-call and wall-time usage by caller-supplied budgets, reports exceeded dimensions and ranks observations by the maximum ratio. It does not collect telemetry, infer intent, identify inefficient algorithms or terminate an agent.

## Output

Returns each observation's ratio of actual usage to budget for all five dimensions (CPU, memory-time, network, tool calls, wall time), identifies which dimensions exceeded the budget, and ranks observations by their maximum ratio — highest overrun first. Does not terminate agents, collect telemetry, or suggest optimizations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "budgets": {
   "type": "object",
   "required": [
    "cpu_seconds",
    "memory_gb_seconds",
    "network_mb",
    "tool_calls",
    "wall_seconds"
   ],
   "properties": {
    "network_mb": {
     "type": "number",
     "maximum": 1000000000000000,
     "minimum": 0.000001
    },
    "tool_calls": {
     "type": "number",
     "maximum": 1000000000000,
     "minimum": 0.000001
    },
    "cpu_seconds": {
     "type": "number",
     "maximum": 1000000000000000,
     "minimum": 0.000001
    },
    "wall_seconds": {
     "type": "number",
     "maximum": 1000000000000000,
     "minimum": 0.000001
    },
    "memory_gb_seconds": {
     "type": "number",
     "maximum": 1000000000000000000,
     "minimum": 0.000001
    }
   },
   "additionalProperties": false
  },
  "observations": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "agent_id",
     "cpu_seconds",
     "memory_gb_seconds",
     "network_mb",
     "tool_calls",
     "wall_seconds"
    ],
    "properties": {
     "agent_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
     },
     "network_mb": {
      "type": "number",
      "maximum": 1000000000000000,
      "minimum": 0
     },
     "tool_calls": {
      "type": "integer",
      "maximum": 1000000000000,
      "minimum": 0
     },
     "cpu_seconds": {
      "type": "number",
      "maximum": 1000000000000000,
      "minimum": 0
     },
     "wall_seconds": {
      "type": "number",
      "maximum": 1000000000000000,
      "minimum": 0
     },
     "memory_gb_seconds": {
      "type": "number",
      "maximum": 1000000000000000000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "maxItems": 100000,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ai-align-resource-hog-detector-d69b6f3c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aialign.halowerk.com](https://www.zero.xyz/host/aialign.halowerk.com/llms.txt)
