TaskQ is the control plane between customers, AI providers, verified workers, compliance policy, HashIQ proofs, and settlement. It is not a wrapper. It is the machine that makes AI execution defensible.
The Gateway owns auth, balance, policy, placement, lease, proof, usage, settlement, and customer-facing response headers.
Customer bearer + entitlement.
Defaults + request constraints merge without loosening.
Cheapest compliant capacity.
HashIQ entry begins.
Relay or queue plane.
Usage, hashes, status.
Journal maps to chain.
receive → authenticate → balance_gate resolve_policy → resolve_byok_handle query_registry → solve_placement acquire_lease → open_hashiq_entry route_to_plane → capture_usage close_chain → write_settlement return x-taskq-chain-key
Relay keeps synchronous API shape. Queue handles long-running execution and artifacts. They share auth, policy, proof, billing, and settlement.
Chat, completions, model listing, token counting, and streaming SSE. Defaults to pinned, enclave, or customer-owned custody.
Long-running work: reports, patches, code edits, files, artifacts, and checkpointed deliverables.
Both planes emit HashIQ evidence, placement decisions, usage records, and settlement references.
TaskQ solves over jurisdiction, custody, attestation, certification, health, capacity, price, and deterministic tie-breakers. Hard constraints never relax.
| Constraint | Decision | Result |
|---|---|---|
| Must run in Canada | must_run_in: CA | Workers outside Canada are excluded before price is considered. |
| No US execution | must_not_run_in: US | A cheaper US worker cannot silently win. |
| Audited custody | key_custody: pinned|enclave | Plain leased workers are rejected for sync credential unwrap. |
| Cost ceiling | max_price | If no eligible worker fits, the system refuses with proof. |


TaskQ’s commercial model is control, placement, proof, retention, reporting, and capacity settlement. The upstream provider spend remains customer-owned through BYOK.
{
"chain_seq": 184467,
"request_id": "req_...",
"operator_id": "op_worlds_energy",
"lines": [
{"account":"customer_balance", "direction":"debit"},
{"account":"taskq_platform_revenue", "direction":"credit"},
{"account":"operator_payable", "direction":"credit"}
]
}One Gateway. Customer-owned credentials. Verified workers. Policy placement. HashIQ proof. Exportable evidence.