---
title: "Work Mandate Compiler"
method: POST
path: "/v1/tools/compile_work_mandate"
tags: ["TODO_TAGS_REVIEW", "TODO_AP2_EXPORT_REVIEW"]
---

# Work Mandate Compiler

`POST /v1/tools/compile_work_mandate`

## Request

- Base URL: `https://ainumbers.co`
- URL: `https://ainumbers.co/v1/tools/compile_work_mandate`
- Auth: none declared

Compiles a §22 Work Mandate document into a deterministic §21.4 gated-chain config. Transforms scope.tool_ids (or scope.chains) into an ordered steps[] skeleton, maps conditions into gate rules (op/value/next), and maps escalation_triggers into rules whose next routes to the reserved 'escalate' target (§22.3). All conditions and triggers must share one RFC 6901 pointer per §22.4 Rule 2; multi-pointer policies are rejected with error:'multi_pointer_gate'. Default for every gate is 'escalate'. Same mandate always produces byte-identical config (deterministic, hash-stable). Not a payment-mandate builder, not an audit-mandate tool, not an agent-OBO validator -- this compiles a policy mandate into an enforceable gated-chain config. Zero PII: structural mandate fields only.

**Tool URL:** https://ainumbers.co/chaingraph/art-274-compile-work-mandate.html

## Request body

- object
  - `mandate` unknown, required

## Response `200`

Successful tool execution result

- object
  - `chain_config` object
    - `steps` object[]
      - `gate` object
        - `default` string
        - `input` string
        - `rules` object[]
          - `next` string
          - `op` string
          - `value` boolean
      - `id` string
      - `tool_id` string

---

[API](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite.md) · [All operations](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite/llms.txt) · [OpenAPI document](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite/revisions/b462e4f5bb28?raw)
