File size: 2,560 Bytes
d751b95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
title: Cortex architecture
description: Understand Cortex components, trust boundaries, and network interactions.
---

# Cortex architecture

Cortex is the local control plane of a compute provider. It turns chain assignments and Builder coordination messages into constrained calls to a model adapter, validates the returned material, and signs protocol actions.

```mermaid
flowchart LR
    O[Compute provider] --> C[Cortex control plane]
    C -->|queries, events, self-rescue| K[TrueOpen chain]
    C -->|coordination and Task data| N[Builder Nexus]
    C -->|adapter operations| A[Model adapter]
    A --> R[Compute runtime]
    C --> S[(Task state and evidence)]
```

## Components and trust

| Component | Trust role | Responsibility |
|---|---|---|
| Cortex control plane | Trusted | Keys, chain reconciliation, policy, Task state, signing, retries, and self-rescue |
| Model adapter | Constrained | Converts a model runtime into stable inference and verification operations |
| Compute runtime | Untrusted input to Cortex | Produces raw output, scores, and intermediate material |
| Task and evidence store | Recoverable local authority | Persists leases, signed material, deduplication records, evidence, and cursors |

The compute runtime does not decide protocol verdicts, hold the service key, or communicate directly with the chain or Builders. Cortex checks returned bindings and digests before signing.

## Outbound connections

A Cortex Node initiates connections to the chain, Builder Nexus endpoints, its adapter, and operator-controlled management systems. It does not require a public inbound endpoint.

An event or Nexus message prompts reconciliation; it is not final authority. Cortex uses chain queries to determine whether assignment, submission, settlement, or finality has been accepted.

## Trust order

Cortex evaluates information in this order:

1. Chain query results
2. Chain events, which trigger a query
3. Nexus acknowledgements and coordination messages
4. Runtime observations and operator configuration

A lower level cannot override a higher one. For example, a successful Nexus response proves transport, not chain acceptance.

## What Cortex does not do

Cortex does not participate in consensus, choose network-wide Workers or Verifiers, decide the final Task verdict, calculate final payouts, or convert local queue and hardware claims into protocol facts.

For practical operation, use the [compute provider guide](../README.md). To implement the runtime boundary, use the [model integrator guide](README.md).