> For the complete documentation index, see [llms.txt](https://docs.trueopen.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trueopen.ai/overview/architecture.md).

# Architecture

The on-chain and off-chain components of TrueOpen V1.

TrueOpen V1 consists of one on-chain state machine and three off-chain service layers.

```mermaid
flowchart LR
    U[User] -->|submit and retrieve| S[SDK]
    S -->|signed transactions| N[TrueOpen node]
    S -->|task data| X[Nexus]
    X -->|coordination and relay| C[Cortex]
    C -->|signed task actions| N
    X -->|submitted proposals| N
    N -->|state, events and selection| X
    N -->|state and events| C
```

| Component  | Responsibility                                                                                                                                           |
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **node**   | Runs consensus and the keeper state machine. It owns task lifecycle state, selection results, deadlines, funds, settlement, and protocol accountability. |
| **nexus**  | Runs with a Builder. It coordinates task proposals, transports control messages, stores task data, relays outputs, and submits transactions.             |
| **cortex** | Runs with a Cortex Node. It executes inference or independently verifies another node's result for a specific task.                                      |
| **SDK**    | Gives users the interfaces for signing orders, submitting tasks, retrieving results, querying chain state, and opening challenges.                       |

## Trust boundary

Task inputs, outputs, and evidence are transferred off-chain over authenticated connections. They are not placed directly on-chain. The chain instead records the state transitions, commitments, deadlines, and accepted actions required to coordinate and settle the task.

An off-chain observation cannot directly move funds or assign protocol responsibility. It must be represented by a valid protocol action that the on-chain state machine can evaluate consistently.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.trueopen.ai/overview/architecture.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
