[WIP] Corgent API Spec (Draft v0.1)

THIS SPEC IS A DRAFT. NAMES AND FIELDS MAY CHANGE AS VIRTUAL SDK AND CORTENSOR TESTNET PHASE 3–4 HARDEN.

0) Purpose

Corgent is a Virtual ecosystem service agent that provides:

  1. Delegation-as-a-Service (Compute Oracle)

  2. Validation-as-a-Service (Result Oracle)

  3. Arbitration-as-a-Service (Dispute Oracle)

Corgent sits client/router-side and uses Cortensor to run redundant inference and produce PoI/PoUW-backed verification artifacts. (Cortensorarrow-up-right)


1) Surfaces

Corgent exposes two integration surfaces:

A. GAME Worker/Function Surface (Virtual SDK)

Corgent is callable as a Function target from a GAME Worker. The Virtual SDK is built around Agent → Worker → Function. (GitHubarrow-up-right)

B. ACP Marketplace Surface (Virtual ACP)

Corgent can act as an ACP Evaluator / Oracle Seller:

  • Buyers request verification or arbitration.

  • Sellers may optionally request pre-verification. ACP role model: Buyer (Client), Seller (Provider), optional Evaluator. (Virtuals Protocolarrow-up-right)


2) Core Concepts

2.1 Task

A unit of work to run or verify.

  • claimed_result only required for validation/arbitration.

2.2 Policy / Tier

Tiers map to redundancy + scoring depth (as you described). SLA weighting is aligned with NodePool/SLA routing direction in Testnet. (Cortensorarrow-up-right)

2.3 Verdict

Evidence contains PoI/PoUW outputs, consensus stats, reputation view, and/or schema failures. (Cortensorarrow-up-right)


3) GAME Function API

3.1 delegate_to_corgent

Use case: Delegation-as-a-Service. Pattern: GAME Worker → Corgent → Cortensor → Corgent → Worker.

Signature (conceptual):

Request

Response

Notes:

  • payment.mode aligns with Cortensor’s Pay-Per-Use + Stake-to-Use rails; Router-level x402 is planned in agentic phases. (Cortensorarrow-up-right)


3.2 validate_with_corgent

Use case: Validation-as-a-Service (Result Oracle).

Signature (conceptual):

Request

Response


3.3 arbitrate_with_corgent

Use case: Arbitration-as-a-Service (Buyer/Seller dispute).

Signature (conceptual):

Request

Response


4) ACP Surface (Marketplace)

4.1 ACP Job Template

When listed as an ACP Seller/Evaluator, Corgent advertises:

ERC-8004 artifacts/identity are part of Cortensor’s agentic alignment. (Cortensorarrow-up-right)

4.2 ACP Calls

  • Buyer → Corgent (validate/arbitrate)

  • Seller → Corgent (optional pre-verify)

  • Corgent returns verdict used for settlement

Field shapes match the GAME API above, plus ACP job ids:


5) Evidence Object (Common)

Attestation + ERC-8004 validation registry linkage is explicitly in the agentic Testnet plan. (Cortensorarrow-up-right)


6) Error Codes

  • NEEDS_SPEC used when task is underspecified or schema missing (per your design).

  • LOW_CONFIDENCE triggers adaptive escalation if enabled.


7) Payments & Auth (Draft)

Corgent supports three payment modes:

  1. Stake-to-Use: uses caller’s staked COR session budget

  2. Pay-Per-Use: spends COR from prepaid balance

  3. x402: per-call invoice settlement at Router/Corgent surface

x402 at Router/Agent level is the current intended direction; core-level x402 remains optional. (Cortensorarrow-up-right)

Auth:

  • Virtual SDK agents authenticate via standard GAME/Virtual keys. (GitHubarrow-up-right)

  • Corgent authenticates to Cortensor Router Nodes using session auth + on-chain identity (exact scheme finalized during agentic phases). (Cortensorarrow-up-right)


8) Versioning

  • corgent.*.v1 indicates stable GAME/ACP callable surfaces.

  • Breaking changes bump major (v2).

  • Evidence schema additions are backward-compatible.


9) Minimal Usage Examples

Delegation

Validation

Arbitration (ACP)


What I couldn’t confirm from public docs

Public Cortensor docs don’t yet publish the final Router /completions or /validate wire schema nor the final Virtual ACP function naming. So the endpoint names and some field titles above are drafted to match your concept + the published agentic roadmap, and should be treated as spec-level placeholders until Testnet Phase 3–4 SDKs finalize. (Cortensorarrow-up-right)

Last updated