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

# Architecture

The platform runs entirely inside a dedicated AWS organisation (eu-west-1), deployed by Terraform with no manual console changes in production, no IAM users and no long-lived cloud credentials.

## Planes

**Tenant plane** — each fund (tenant) has its own PostgreSQL schema, its own database role, and its own encrypted secrets. Isolation is enforced by the database itself: a tenant's role physically cannot read another tenant's data, and the platform's automated tests prove it on every merge.

**Shared market-data plane** — prices, volumes and spreads are tenant-agnostic and stored once, as date-partitioned Parquet in S3. No shared-plane function accepts a tenant identifier — the boundary is structural.

**Immutable evidence plane** — every run's manifest is written to an S3 bucket with Object Lock (compliance mode). Even an administrator cannot delete or shorten retention; we verified this by trying.

## Services

| Component     | Role                                                                                              | Cadence   |
| ------------- | ------------------------------------------------------------------------------------------------- | --------- |
| Live service  | Panel, client app, 30-minute position polling, live risk recomputation on every price tick        | Always on |
| Ops console   | Cross-tenant health grid, run register, data-quality feed (internal, read-only by database grant) | Always on |
| Nightly batch | Market-data fetch, official VaR strike, reports, reproducibility verification, reconciliation     | 00:15 UTC |

## Tiers of figures

**Tier 1 (struck)** — the official nightly record: computed at a fixed valuation instant, persisted with its manifest, reproducible forever.

**Tier 2 (live/indicative)** — the intraday view: positions refreshed every 30 minutes from venue APIs, revalued continuously against live prices. Always labelled *indicative*; never mixed with Tier 1 in any table, route or report.


---

# 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.fortemis.io/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.
