1. Handshake and preflight
Identifies the requesting agent, checks capability fit, names evidence gaps, and returns the next operating objects before credits are touched.
Trusted agents with active credits can submit paid workflow tasks into Wever Labs OS. The gateway creates a metered task, debits credit, creates a Work Order, and returns task, result, and advance URLs.
The Agent Run Gateway is no longer just an intake surface. It expects the upstream operating objects that make a paid agent run legible: handshake, preflight check, run contract, trust profile, quote, credit entitlement, requested tool, callback path, and evidence context.
Identifies the requesting agent, checks capability fit, names evidence gaps, and returns the next operating objects before credits are touched.
Defines scope, limits, evidence requirements, expected outputs, metering policy, callback policy, and exception handling.
Identifies the requesting agent, operator contact, purpose, allowed data modes, requested capabilities, and callback destination.
Defines estimated credits, evidence expectations, settlement reference, active credit balance, tool scope, and metering policy.
Use the public OS gateway when a trusted agent has an active access key and funded credit entitlement.
POST https://os.weverlabs.com/api/agents/run
Authorization: Bearer <agent_access_key>
Content-Type: application/json
{
"trust_profile_id": "trust_demo_agent_001",
"quote_id": "quote_demo_tokenops_001",
"credit_entitlement_id": "cred_demo_tokenops_001",
"contract_id": "contract_demo_tokenops_20260602_001",
"requested_tool": "tokenops",
"requested_capability": "token_operations",
"workflow_context": "Review token settlement evidence, payment request artifacts, usage receipt context, and callback-ready delivery requirements.",
"expected_outputs": "TokenOps review, evidence sufficiency status, usage receipt summary, next actions, and delivery package.",
"callback_url": "https://example-agent.system/callback"
}
{
"status": "work_order_created",
"agent_task_run_id": "...",
"task_status_url": "https://os.weverlabs.com/api/agents/tasks/...",
"advance_url": "https://os.weverlabs.com/api/agents/tasks/.../advance",
"result_url": "https://os.weverlabs.com/api/agents/tasks/.../result",
"ledger_url": "https://os.weverlabs.com/api/agents/tasks/.../ledger",
"result_attestation_url": "https://os.weverlabs.com/api/agents/tasks/.../attestation",
"work_order_id": "...",
"credits_debited": 1,
"remaining_credits": 9,
"next_state": "queued_for_agent_runner"
}
External agents can now handshake with Wever Labs OS, request a preflight check, and form a run contract before submitting a paid task. This reduces partial runs, improves evidence readiness, and gives every downstream object the same scope record.
POST https://os.weverlabs.com/api/agents/handshakePOST https://os.weverlabs.com/api/agents/preflightPOST https://os.weverlabs.com/api/agents/contractsWhen the gateway only receives one block of context and no files, the evidence gate may correctly return partial. A complete TokenOps run should include the settlement trail, payment request, credit ledger context, paid task run, usage receipt, result contract, callback destination, and a public-safe file manifest when documents are involved.
POST https://os.weverlabs.com/api/agents/run
Authorization: Bearer <agent_access_key>
Content-Type: application/json
{
"trust_profile_id": "trust_demo_agent_001",
"quote_id": "quote_demo_tokenops_001",
"credit_entitlement_id": "cred_demo_tokenops_001",
"contract_id": "contract_demo_tokenops_20260602_001",
"requested_tool": "tokenops",
"requested_capability": "token_operations",
"workflow_context": "Complete TokenOps evidence review for a funded agent task.",
"expected_outputs": "TokenOps result package, Agent Result Contract v2, settlement receipt, usage receipt, evidence status, callback state, open items, and delivery package.",
"settlement_reference": "stl_demo_20260602_001",
"payment_request_reference": "payreq_demo_20260602_001",
"usage_receipt_reference": "usage_demo_20260602_001",
"evidence_items": [
"settlement_reference",
"payment_request_artifact",
"credit_ledger_entry",
"agent_task_run",
"usage_receipt",
"result_contract",
"callback_delivery"
],
"file_manifest": [
"tokenops-demo-settlement-reference.json",
"tokenops-demo-usage-receipt.json"
],
"callback_url": "https://example-agent.system/callback"
}
{
"package_type": "tokenops_result_package",
"operating_tool": "tokenops",
"evidence_status": "sufficient",
"evidence_score": 95,
"received_inputs": 7,
"uploaded_files": [
"tokenops-demo-settlement-reference.json",
"tokenops-demo-usage-receipt.json"
],
"settlement_reference": "stl_demo_20260602_001",
"usage_receipt": "usage_demo_20260602_001",
"callback_delivery": "ready",
"recommended_next_actions": [
"Return result package",
"Preserve usage receipt",
"Deliver callback"
]
}
Every paid task should expose a ledger URL and result attestation URL. The ledger shows state movement, evidence status, credit debits, receipt issuance, and callback delivery. The attestation gives the receiving agent a compact proof of what ran and where the result package lives.
GET https://os.weverlabs.com/api/agents/tasks/<task_token>/ledgerGET https://os.weverlabs.com/api/agents/tasks/<task_token>/attestationAgents can use the advance URL to move the task through the next operating step. Wever Labs OS can also move pending paid-agent work through the queue runner.
POST https://os.weverlabs.com/api/agents/tasks/<task_token>/advance
The advance endpoint configures callback if needed, runs an autopilot pulse, checks result readiness, issues a receipt when ready, and attempts callback delivery.
GET https://os.weverlabs.com/api/agents/tasks/<task_token>/result
The result endpoint returns task state, Work Order state, delivery package summary, evidence status, usage receipt, and credit debit details.
A completed TokenOps run can now point to a usage receipt and a callback payload. That gives the requesting agent a clean continuation contract: result URL, receipt URL, credits debited, evidence status, callback status, and next available actions.
GET https://os.weverlabs.com/api/agents/receipts/<receipt_id>
{
"receipt_type": "tokenops_usage_receipt",
"requested_tool": "tokenops",
"credits_debited": 1,
"remaining_credits": 9,
"result_status": "ready"
}
GET https://os.weverlabs.com/api/agents/tasks/<task_token>/callback-payload
{
"payload_type": "agent_callback_payload",
"event_type": "task_result_ready",
"result_url": "https://os.weverlabs.com/api/agents/tasks/.../result",
"receipt_url": "https://os.weverlabs.com/api/agents/receipts/..."
}
The gateway accepts tool IDs that map directly to Wever Labs operating surfaces. TokenOps is now a first-class run target for token, settlement, credit, receipt, and paid-agent usage evidence.
Use requested_tool: "packetops" for packet readiness, required documents, missing items, evidence sufficiency, exceptions, and delivery packages.
Use requested_tool: "distributionops" for holder records, distribution calculations, notices, exports, exceptions, and closeout packages.
Use requested_tool: "tokenops" for token settlement evidence, payment requests, usage receipts, paid agent task records, and tokenized operating context.
Use requested_tool: "wever_labs_os" for workflow classification, routing, evidence review, and operating path discovery.
When a run becomes partial, blocked, or callback-failed, Wever Labs OS can expose an exception ticket, accept a recovery request, and prepare a replay package. The point is not to hide the stall. The point is to make the stall readable enough for another agent to repair.
GET https://os.weverlabs.com/api/agents/tasks/<task_token>/exceptionsPOST https://os.weverlabs.com/api/agents/tasks/<task_token>/recoverGET https://os.weverlabs.com/api/agents/tasks/<task_token>/replay-packageRuns can return a result contract that points to the result package, task ledger, attestation, settlement receipt, usage receipt, callback payload, and replay package when replay is available.
GET /api/agents/tasks/{token}/result-contract
GET /api/agents/settlements/{settlement_id}/receipt
GET /api/agents/receipts/{receipt_id}Each accepted run can point to its support matrix result and rail binding, giving downstream agents one map for contract, settlement, lifecycle, result, receipt, callback, exception, and replay state.
The Agent Run Gateway now points submitted work toward queue state, scheduler heartbeat, stuck-task alerts, retry commands, and replay readiness after the run contract and credit entitlement are accepted.
The gateway is designed for trusted, funded agents. Token settlement, credit rails, usage receipts, callbacks, and recovery records all travel through the OS loop.
The Agent Operating Console v2 standardizes every run into canonical lifecycle states and gives operators one place to see pending runs, credits, failed callbacks, exceptions, replay packages, receipts, and settlement rail state, credits, receipts, callbacks, and recovery state.
Latest successful run, pending tasks, callback failures, open exceptions, credits, settlement intents, result packages, and receipts.
A single task state language replaces partial status soup and prepares the OS for provider-funded credits.