> For the complete documentation index, see [llms.txt](https://doc.nexo.coodee.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.nexo.coodee.dev/readme.md).

# Nexo Engineering Handbook

Referência técnica da plataforma Nexo. Tudo que um engenheiro precisa para entender, construir e operar o sistema.

### Arquitetura

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Visão Geral</strong></td><td>Stack, princípios, estrutura de pastas</td><td></td><td></td><td><a href="/pages/7FvWQMF0kTK7HGhlQfmo">/pages/7FvWQMF0kTK7HGhlQfmo</a></td></tr><tr><td><strong>Service Layer</strong></td><td>Arquitetura em camadas com diagramas</td><td></td><td></td><td><a href="/pages/QPzbTvC6XsT5gERiU43E">/pages/QPzbTvC6XsT5gERiU43E</a></td></tr><tr><td><strong>Mapa da Arquitetura</strong></td><td>Modelo de dados, fluxo de auth, ciclo de vida da request</td><td></td><td></td><td><a href="/pages/rSkGRP2Kn8C2BxhOLYpY">/pages/rSkGRP2Kn8C2BxhOLYpY</a></td></tr></tbody></table>

### Decisões

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>ADR-001</strong></td><td>Redis Cache-Aside com armazenamento de DTO</td><td></td><td></td><td><a href="/pages/EPuww69A4UOrpDdUF06A">/pages/EPuww69A4UOrpDdUF06A</a></td></tr><tr><td><strong>ADR-002</strong></td><td>Redis Sentinel ao invés de Cluster</td><td></td><td></td><td><a href="/pages/WiHCCW416rhOcWWcS3zz">/pages/WiHCCW416rhOcWWcS3zz</a></td></tr><tr><td><strong>ADR-003</strong></td><td>SOPS + age para Secrets</td><td></td><td></td><td><a href="/pages/L5a96qXsT1pbr9jGsque">/pages/L5a96qXsT1pbr9jGsque</a></td></tr><tr><td><strong>ADR-004</strong></td><td>Tipos do Prisma na fronteira Repository–Service</td><td></td><td></td><td><a href="/pages/cFvg1QeEZ685kKNCCgWp">/pages/cFvg1QeEZ685kKNCCgWp</a></td></tr></tbody></table>

### Infraestrutura

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Arquitetura de Infraestrutura</strong></td><td>Containers, volumes, rede</td><td></td><td></td><td><a href="/pages/usX03wwdEPzqRxC2dvxq">/pages/usX03wwdEPzqRxC2dvxq</a></td></tr><tr><td><strong>Deploy</strong></td><td>Pipeline CI/CD, fluxo de deploy</td><td></td><td></td><td><a href="/pages/Ash0t8GT7hfAG34C4xLY">/pages/Ash0t8GT7hfAG34C4xLY</a></td></tr><tr><td><strong>Rede</strong></td><td>Rede Docker, portas, DNS</td><td></td><td></td><td><a href="/pages/KYkJGuQgODOKVwjME6Xe">/pages/KYkJGuQgODOKVwjME6Xe</a></td></tr></tbody></table>

### Segurança

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Modelo de Segurança</strong></td><td>Autenticação, gerenciamento de sessão</td><td></td><td></td><td><a href="/pages/1epwCft2z1pyy9ei3OkH">/pages/1epwCft2z1pyy9ei3OkH</a></td></tr><tr><td><strong>RBAC</strong></td><td>Roles, permissões, enforcement</td><td></td><td></td><td><a href="/pages/hwPWt7ByRqWWm7Pmndu3">/pages/hwPWt7ByRqWWm7Pmndu3</a></td></tr><tr><td><strong>Gerenciamento de Secrets</strong></td><td>Workflow SOPS + age</td><td></td><td></td><td><a href="/pages/DWwPK4wCnlLYUb0ajZdJ">/pages/DWwPK4wCnlLYUb0ajZdJ</a></td></tr></tbody></table>


---

# 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://doc.nexo.coodee.dev/readme.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.
