# Research mode

> Research mode answers a broad question across several pages: Octy plans sub-questions, gathers and reads the sources, and writes a structured summary in which every line is cited, within a model-call limit, a time budget and the profile's monthly cap.

Research mode gives visitors a structured, cited summary of a broad question that no single page answers, from the profile’s own knowledge, with one signed receipt for the whole run.

Octy™ has three modes on every profile that allows them: `search` returns the passages, with no model call; `explain` writes a short answer from those passages; `research` plans the question as several sub-questions, gathers sources for each, and writes a summary with one section per sub-question. The Ask Octy panel presents them as two buttons: **Fast answer** runs `search`, and **Deep answer** runs `research`, or `explain` when Research is off or paused. Deep answer runs only from its own button. Pressing Enter in the question box sends a Fast answer.

## Procedure

Octy runs each Research question in these steps:

1. **Plan.** A model divides the question into 3 to 5 sub-questions. Result: the panel lists the sub-questions, each marked pending.
2. **Gather.** For each sub-question in turn, Octy searches the profile’s corpora, then reads the top pages or items in full from the profile’s own index: every passage of a documentation page, the passages of a published knowledge item, or, in a client deployment, the engine’s retrieval over the profile’s corpora. No URL is fetched. Result: each sub-question is marked done as its sources are gathered.
3. **Write.** A model writes a summary paragraph and one section per sub-question from the gathered passages. Every line must cite a passage it was given. Result: the answer, with its citations, evidence and receipt.
4. **Check.** Before the answer is sent, uncited lines are removed, and so are lines that read as a price, a promise, a guarantee or a timeline. A section left empty is removed. Result: if no line remains, the answer states that the knowledge does not cover the question.

Every model step goes through the [profile’s router](/octy/router/), which tries the cheapest candidate first and records every rung as a routing decision. The sub-questions are not stored or logged.

## The answer

| Part          | Content                                                                                                            |
| ------------- | ------------------------------------------------------------------------------------------------------------------ |
| **Summary**   | One short paragraph, every line cited                                                                              |
| **Sections**  | One per sub-question that was gathered, headed by the sub-question, every line cited                               |
| **Citations** | The pages and items the lines cite, as in every other answer                                                       |
| **Plan**      | Each sub-question, marked done, or skipped when the time budget was reached first                                  |
| **Evidence**  | The passages, how the answer was made with a breakdown per step, and the signed receipt. See [Evidence](#evidence) |

A run that stops early is marked **partial**. The answer then covers only the sub-questions gathered, and the others are shown as skipped.

## Guards

Research applies the same guards as every other mode, before any model call:

| Question                                                                              | Answer                                                                      |
| ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| A commercial question, on [atlanticagenticlabs.com](https://atlanticagenticlabs.com/) | The commercial answer. No model is called                                   |
| A question asking for a promise or a timeline                                         | Handed to the team on atlanticagenticlabs.com; elsewhere, “not covered”     |
| A question about an account                                                           | A pointer to sign in                                                        |
| A request to act                                                                      | The fixed refusal. See [Controls](/octy/controls/#what-octy-always-refuses) |

## Limits

| Limit              | Rule                                                                                                                                                                                                                                                                                        |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Model calls**    | At most 5 per run: the plan, the summary and any escalations                                                                                                                                                                                                                                |
| **Time budget**    | About 60 seconds. Gathering stops at the budget. When less than 15 seconds remain, the summary is not written by a model, and Octy answers from what was gathered. The answer is marked partial                                                                                             |
| **Spend cap**      | Each model call reserves its cost against the profile’s monthly cap before it is made. A refused reservation stops the run, and Octy answers from what was gathered                                                                                                                         |
| **Rate limits**    | Research has its own limits per visitor and per session, per minute, hour and day, separate from the limits on Search and Explain. A visitor over a limit receives a notice to wait. The figures are in the client documentation                                                            |
| **Explain limits** | A run counts as one Explain per model call. One is counted when the run starts, and the run is refused if the limit is already reached. The others are added when the run ends and do not refuse it. The profile’s limits on model answers for every visitor together count each model call |
| **Bot check**      | On a public profile, one Cloudflare Turnstile check for each run, as for Explain. See [The bot check](/octy/controls/#the-bot-check)                                                                                                                                                        |

## Cost

A Research answer calls a model between one and five times. Its tokens and cost are the sums over every model call of the run, and the evidence panel shows them for each step. The profile’s [cost analysis](/octy/costs/) counts it with the profile’s other model answers.

## Evidence

A Research answer carries one signed receipt for the whole run, of kind `research`, which lists every model the run called. The evidence panel reads “Researched by a language model across these passages” and adds a table with one row per step:

| Column       | Content                                          |
| ------------ | ------------------------------------------------ |
| Step         | Plan, gather (one row per sub-question) or write |
| Sub-question | For a gather row, the sub-question               |
| Model        | The model the step called, if any                |
| Calls        | The model calls the step made                    |
| Tokens       | Tokens read and written                          |
| Cost         | The step’s recorded cost                         |
| Time         | The step’s duration, in milliseconds             |

The panel also lists every model the run called, in order of first use. The receipt fields are described in [How Octy’s answers are signed](/trust/octy-signed-answers/#receipt-fields).

## Availability

| Profile                                  | Research                                                                                                      |
| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| Octy on these docs (`docs`)              | On                                                                                                            |
| Octy on atlanticagenticlabs.com (`site`) | On                                                                                                            |
| Every other profile                      | Off until a `client_admin` turns it on in the profile’s controls. For Atlantic’s own profiles, Atlantic staff |

When Research is off for a profile, or paused, the panel’s **Deep answer** button runs Explain instead. When neither Research nor Explain is available, because the monthly cap is reached or the bot check is not configured, the panel shows **Deep answer** as unavailable, with the reason. When both are off, the panel does not show the button.

## API

Research uses the same ask route as Search and Explain, with `"mode": "research"`: `POST /api/v1/docs-ask` for these docs, `POST /api/v1/site-ask` for atlanticagenticlabs.com, and the profile’s own ask route for any other profile. The body is `{"question", "mode": "research", "turnstile", "page"}`, with `turnstile` and `page` optional.

| Request                          | Response                                                                                   |
| -------------------------------- | ------------------------------------------------------------------------------------------ |
| With `Accept: text/event-stream` | `200` and a server-sent event stream: one JSON object per `data:` line, each with a `type` |
| Without it                       | One JSON answer, as for the API channel, MCP and the command line                          |

A request refused before any work starts receives an ordinary HTTP error with its JSON body: `400`, `403` (the bot check, the origin, the address, the page, or Research off), `404`, `429` with `Retry-After`, or `503`. A failure after the stream has started is sent as an `error` event, which ends the stream.

| Event `type`  | Fields                                      | Sent when                                                    |
| ------------- | ------------------------------------------- | ------------------------------------------------------------ |
| `status`      | `step: "plan"`                              | Planning starts                                              |
| `subquestion` | `n` (1 to 5), `text`                        | Each sub-question is planned                                 |
| `status`      | `step: "gather"`, `n`, `of`                 | Gathering for sub-question `n` of `of` starts                |
| `status`      | `step: "read"`, `n`, `of`, `pages`          | The top pages or items for sub-question `n` are read in full |
| `gathered`    | `n`, `sources`                              | Sub-question `n` is done                                     |
| `status`      | `step: "write"`                             | Writing starts                                               |
| `answer`      | The answer object                           | Last event                                                   |
| `error`       | `code`, `message`, `retry_after` (optional) | A failure after the stream started; last event               |

A client ignores event types it does not recognise, and treats a stream that ends without an `answer` event as an error.

The answer object is the same as for the other modes, with `kind` `research` and a `research` member: `summary`, `sections` (each with `n`, `question`, `text` and `citations`), `plan` (each with `n`, `text` and `state`, `done` or `skipped`), `partial`, and `stopped`, which is `null`, `time`, `cap` or `calls`. `answer` is the Markdown text, the summary followed by one `## `section per sub-question, and is the text the receipt’s `answer_sha256` covers.

The profile’s configuration (`GET` on its `config` route) carries `research`: `available`, `reason` (`null`, `off`, `cap` or `bot_check_unconfigured`), `per_hour` and `time_budget_s`.

Source: https://docs.atlanticagenticlabs.com/octy/research/
