---
title: Curator status
lastModified: '2026-12-06T11:33:06.000Z'
description: 'curator.status reports what in one namespace needs a person: the proposal queue in counts, the accepted facts with a harm report or a failed graded run, the…'
---

`curator.status` reports what in one namespace needs a person: the proposal queue in counts, the accepted facts with a harm report or a failed graded run, the served facts whose linked code or source document changed, the startup budget the guide and the pinned facts spend, and the facts to pin or unpin. This page describes what the operation reads, the bound on each read and the codes it answers with, [the namespace's mode](#the-namespaces-mode), which records whether a scheduled pass may read a namespace, [the scheduled pass](#the-scheduled-pass), which counts the same findings on a schedule and records that it looked, [the model step](#the-model-step) of a pass in `assist` mode, which asks a model whether each pending proposal fits the namespace's guide, and [the state](#whether-the-pass-runs) every answer carries: whether that pass runs in the namespace, how the newest one ended and [what the curator needs](#what-the-curator-needs) there.

The answer is computed on every call from rows Loom already holds. The operation stores nothing, calls no model and changes no fact: each finding names the write that applies it, for a person to run under their own name.

## The caller

The operation needs the admin role on the namespace it addresses. A caller below it is refused with 403 `AUTH_INSUFFICIENT`. The report counts the whole namespace, so a token whose read scope is narrowed to one user or session is refused with the same code, as for the [knowledge gap](/docs/architecture/knowledge-gaps) operations.

| Surface      | How                                                                                                                                              |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| HTTP         | `POST /v1/curator.status`                                                                                                                        |
| MCP          | the tool `loom_curator_status`, called by name; it is on no toolset                                                                              |
| SDKs         | the generated `curator.status` method of each SDK                                                                                                |
| Command line | `loom curator status --namespace <namespace>` ([without the dashboard](/docs/guides/without-the-dashboard#what-a-namespace-needs-from-a-person)) |
| Dashboard    | the **Curator** tab of the **Review queue** ([the dashboard tab](#the-dashboard-tab))                                                            |

## Input

| Field        | Meaning                                                                                                                                                                                                                                             |
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `sections`   | Which of `proposals`, `flagged`, `stale`, `primer`, `pin`, `unpin`, `opinions` and `budget` to compute. Empty, the default, computes all of them. A section that was not asked for is `null` and makes no read. Another name is a validation error. |
| `limit`      | The most findings one section lists, 1 to 50, default 20.                                                                                                                                                                                           |
| `memory_ids` | At most 100 proposal ids. The `opinions` section then returns the opinion of each of them that has one, whatever `limit` is. Empty, the default, returns the opinions of the `limit` newest proposals.                                              |

A server on a build without a section refuses its name. A client that wants every section sends the empty list, which every build accepts, and reads a section missing from the answer as not computed.

## What each section reads

Every statement names one `(org, namespace)`. A fact's `value` is read to hash it for [the write its finding names](#the-write-a-finding-names), for the facts a list shows, and to measure the text of each pinned fact. No answer holds a value.

### `proposals`

| Field           | Read                                                                                                                                                                                                           |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `pending`       | The live rows of `loom.memory` with `status = 'proposed'`.                                                                                                                                                     |
| `oldest_days`   | The age in whole days of the oldest of them, 0 when none is pending.                                                                                                                                           |
| `filed_7d`      | The facts with a version in `loom.memory_versions` written as a proposal and a `created_at` in the last 7 days. A fact keeps its `created_at` through every version, so a proposal decided since still counts. |
| `decided_7d`    | The `memory.proposal_accept` and `memory.proposal_reject` rows of `loom.audit_log` in the last 7 days: two ranges of its sort key `(org, namespace, event_type, ts)`.                                          |
| `over_scan_cap` | True when `pending` is more than `LOOM_MEMORY_PROPOSALS_SCAN_CAP`, the most proposals `memory.proposals` reads for one listing. The count stays exact.                                                         |
| `with_opinion`  | The pending proposals the [`opinions`](#opinions) section holds an opinion for, before `limit` and `memory_ids` cut its list. 0 where that section is empty or not computed.                                   |

[Proposals](/docs/features/memory/writing#proposals) describes the queue and its decisions.

### `opinions`

What the model answered about the pending proposals of a namespace in `assist` mode, from the rows [the model step](#the-model-step) stored. The section holds `items`, the newest proposal first, and `unavailable`. Of proposals created in the same second, the one written last comes first.

| Field                     | Meaning                                                                                                                                                                                                                                                                |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `memory_id`, `memory_key` | The proposal.                                                                                                                                                                                                                                                          |
| `verdict`                 | A code and its title: `fits` (Fits the guide), `does_not_fit` (Does not fit the guide) or `unclear` (Unclear).                                                                                                                                                         |
| `reason`                  | A code and its title: `in_scope` (The guide covers it), `outside_scope` (The guide does not cover it), `not_durable` (True for a moment, a task or one person only), `sensitive` (A secret or personal data) or `unclear` (The guide or the fact does not say enough). |
| `guide_revision`          | The revision of the guide the model read.                                                                                                                                                                                                                              |
| `prompt_version`          | The version of the prompt the pass asked with.                                                                                                                                                                                                                         |
| `earlier_guide`           | True when the guide has a newer revision than the one the model read.                                                                                                                                                                                                  |

The section reads three things: the ids, keys and content hashes of the pending proposals a model may be sent, at most `LOOM_MEMORY_PROPOSALS_SCAN_CAP` of them; the guide's current revision; and the namespace's last 100 pass rows. It reads no value.

- An opinion is served only while the proposal's content is the content the model read: the `hash_prefix` stored with the opinion must match the proposal's content hash now. An opinion on a proposal edited since is not served, and the next pass asks again.
- A proposal with opinions on more than one revision of the guide shows the newest, with `earlier_guide` when it is not on the current one.
- The section is empty when the namespace's mode is not `assist`, when it has no guide and when no pending proposal may be sent to a model.
- With more such proposals than the scan cap the section answers `unavailable: "too_large"`: a cut list would read as the whole one.
- A stored opinion of another shape, or with a code outside the two sets, reads as not there.

The **Proposals** tab of the **Review queue** reads the section for a caller with the admin role: one call beside the list's, with `sections: ["opinions"]` and the `memory_ids` of the rows it lists.

- A row with an opinion ends its **Fact** cell with one line: "Model opinion:" and the verdict's title, then "Given under an earlier guide." when `earlier_guide` is set.
- The review shows the verdict's and the reason's titles as the fact **Model opinion**, after **Advice**, and says there once that an opinion is not evidence.
- The line is apart from the advice. The advice's badge and reasons are what `memory.proposals` sent, and an opinion changes none of them.
- Below the admin role the tab makes no call and shows no line. A call that fails leaves the rows as they are.
- A proposal opened from an address, and not among the rows listed, shows no opinion.

### `budget`

What the model step may spend in the namespace and what it spent, over the last 24 hours.

| Field                   | Meaning                                                                                                                                                                                                  |
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `cap_usd`               | The namespace's daily cost cap, 0 when it has none.                                                                                                                                                      |
| `spent_24h_usd`         | What every operation spent in the namespace.                                                                                                                                                             |
| `curator_cap_usd`       | The curator's share of the cap: `LOOM_CURATOR_CAP_SHARE` times `cap_usd`. 0 for a namespace without a cap, where the curator's calls are not capped.                                                     |
| `curator_spent_24h_usd` | What the model step's calls spent: the cost recorded under the operation `worker.curator`.                                                                                                               |
| `unavailable`           | `unreadable` when the cap or the spend could not be read: the four amounts are then 0, not computed, and the answer says so in `degraded` (`curator.status: budget_unread`). "" when they were computed. |

The section makes the read the model step makes before each call: one of the namespace's cap and one of its spend. The amounts are the ones the `under_cap` entry of [`setup`](#what-the-curator-needs) is decided on. The spend is read for a namespace without a cap too.

A client shows a code it does not know by its title. No field holds the proposal's value or a word the model wrote.

### `flagged`

Accepted facts, `status = 'active'`. A conflicted fact is not listed: `conflicts.list` already holds it.

1. The memory ids whose harm reports in `loom.memory_usage_totals` sum to more than zero, most reports first. A report is a `negative` outcome recorded with `memory.outcome`, `memory.outcome_run` or `run.complete`; a retraction (`run.retract_credit`) subtracts it.
2. The keys named in `memories_used` by the runs of `loom.agent_runs` graded `fail`, the key of the most runs first. A run counts once for a key, and a run regraded to `pass` no longer counts.
3. The current status of each of those ids, by the read `memory.statuses` makes, and the live accepted rows under those keys.

The list holds the harm reports first, then the failed runs, cut at `limit`.

### `stale`

Served facts, `status` `active` or `conflicted`.

1. The namespace's code links in the state `changed`, `unresolved` or `missing`, made from the fact as it is now, into repositories whose code namespace the caller may read, one per fact, newest check first.
2. The live rows tagged `source-changed`, newest write first. [Decision extraction](/docs/features/tasks-and-decisions#extract-decisions-from-a-document) sets the tag on a decision that its source document no longer states.

The list holds the stale links first, then the tagged facts, cut at `limit`.

### `primer`

Every session of the namespace starts with its guide and its pinned facts, each inside a token budget of the [startup context](/docs/features/unified-search#contextpack). The section measures both against those budgets and names no write: a person shortens the guide with [`namespace.guide_set`](/docs/features/namespaces-and-sharing#a-namespaces-guide), and the `unpin` section lists the pins to lift.

| Field                  | Read                                                                                                                                                                                                                                                                |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `guide_tokens`         | The estimate for the guide's current revision as the startup context shows it: the line naming its revision, writer and summary, then its text. 0 when the namespace has no guide.                                                                                  |
| `guide_budget_tokens`  | 200, the startup budget of the `namespace_guide` section.                                                                                                                                                                                                           |
| `pinned`               | The live pinned rows of `loom.memory` with `status` `active` or `conflicted`.                                                                                                                                                                                       |
| `pinned_tokens`        | The sum of the estimates for their values, each measured as the startup context prints it: the text of a string, any other value as it is stored, counted in characters.                                                                                            |
| `pinned_budget_tokens` | 500, the startup budget of the `memories` section, which the pinned facts lead.                                                                                                                                                                                     |
| `over`                 | True when `guide_tokens` or `pinned_tokens` is more than its budget, and when the pinned facts were not computed.                                                                                                                                                   |
| `unavailable`          | `too_large` when the namespace holds more pinned facts than the section reads: `pinned` and `pinned_tokens` are then 0, not computed, and `over` is true, since that many pins are over their budget. `guide_tokens` is computed. "" when the section was computed. |

The budgets are read from `server/memory/domain/context_layout.py`, and the estimate is the one the startup context uses: 4 characters a token, and at least one token for any text. A request that raises a section's budget with `section_token_budgets` is not what the section measures.

The pinned rows are read in two statements. The first lists each pinned row's id and live version and reads no value. The second reads the value of those rows, by id and version, and returns the length of the text the startup context prints for it. `memory.set` and `memory.pin` store a string as JSON, which writes a character outside ASCII as six bytes or twelve, so the stored length is not that length.

### `pin`

Served facts, `status` `active` or `conflicted`, that are not pinned.

1. The memory ids of `loom.memory_served_daily` with a row on at least 3 of the last 7 days, today among them, most days first. The table holds one row for a memory, an agent label and a day. A caller chooses its agent label, so the days are counted and the labels are not: a fact that many agents read on one day was served on one day.
2. Those of the ids that are live rows of the namespace, not pinned, with a served status. A proposal that was not accepted, a rejected fact and a deleted fact are not candidates, however often they were read.

The list is cut at `limit`.

### `unpin`

Pinned facts, read as for the `primer`.

1. Whether any memory of the namespace has a `used` label: one row of `loom.memory_usage_totals` with a `used_count` other than 0. A `used` label is what `run.complete` records for the keys in `memories_used`, and `memory.outcome` for `outcome: "used"` ([recalled is not relied on](/docs/features/runs#recalled-is-not-relied-on)). Where there is none the section answers `unavailable: "no_usage_labels"` with no items: nobody labels usage in that namespace, so a pin without a label is not known to be unused.
2. The `used` labels of the pinned ids in the last 30 days, from `loom.memory_usage_events`, retractions subtracted.

The list holds the pins with no label in those 30 days, in key order. Then, while the tokens of the pins left are more than `pinned_budget_tokens`, it holds the least used of them first, until the rest fit. It is cut at `limit`. A namespace with no pinned fact answers an empty list and asks nothing about its labels.

## Findings

A finding carries the fact's `memory_id` and `memory_key`, a `code`, the code's `title`, a `count`, a `ref` and the write that applies it in `apply`. The titles are in `server/memory/domain/curator.py` (`FINDING_TITLES`), so every surface prints the same words.

| Code              | Title                                                                                     | Section   | `count`                                    | `ref`                                                                  |
| ----------------- | ----------------------------------------------------------------------------------------- | --------- | ------------------------------------------ | ---------------------------------------------------------------------- |
| `harm_reported`   | Reported harmful                                                                          | `flagged` | The harm reports left after retractions.   |                                                                        |
| `graded_fails`    | Relied on by runs graded fail                                                             | `flagged` | The runs graded `fail` that named the key. |                                                                        |
| `stale_link`      | Linked code changed                                                                       | `stale`   | 0                                          | The linked file, then `::` and the definition when the link names one. |
| `source_changed`  | Source document changed                                                                   | `stale`   | 0                                          |                                                                        |
| `served_often`    | Served on 3 or more of the last 7 days; a pin stamps the fact with the person who pins it | `pin`     | The days of the last 7 it was served on.   |                                                                        |
| `unused_pin`      | Pinned, with no use labelled in 30 days                                                   | `unpin`   | 0                                          |                                                                        |
| `over_budget_pin` | Among the least used pins while the pinned facts are over budget                          | `unpin`   | Its `used` labels of the last 30 days.     |                                                                        |

A fact can be listed under more than one code.

## The write a finding names

`apply` has the shape `namespace.tune` gives its drafts. Its `required_role` is the role the named operation declares, read from the operation registry.

| Finding            | `op`                  | `args`                                                                                                                   | `args_complete`                              | `guard`                                                                                          |
| ------------------ | --------------------- | ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| `flagged`, `stale` | `memory.update_by_id` | `org`, the fact's `memory_id`, and `if_match_sha256`, the content hash the report read for it.                           | `false`: the person adds the new `value`.    | The write is refused with 409 `PRECONDITION_FAILED` when the fact changed after the report.      |
| `pin`              | `memory.pin`          | `org`, `namespace`, the `agent`, `user_id` and `session_id` that hold the fact, its `memory_key`, and `if_match_sha256`. | `false`: the person adds the fact's `value`. | The same refusal.                                                                                |
| `unpin`            | `memory.unpin`        | `org`, `namespace`, the `agent`, `user_id` and `session_id` that hold the fact, and its `memory_key`.                    | `true`                                       | None: an unpin changes no content, and answers `not_pinned` for a fact that is no longer pinned. |

`memory.pin` writes a whole new version of the fact, as `memory.set` does, and takes the key and the identity that holds it, not an id. The person reads the fact (`memory.get_by_id` with the finding's `memory_id`) and sends its `value` back with the named arguments, and with the tags and the other fields the fact should keep. The new version carries the person who pins as its `actor`, which the finding's title says. `memory.unpin` needs the admin role.

The hash is the `content_sha256` that `memory.get` serves for the fact, which is the one `memory.update_by_id` and `memory.pin` compare. The stored `content_sha256` column can differ from it: a read serves an object without its null fields, and hashes what it serves. After the sections are read, one read fetches the live revision and this hash of every fact the lists show. It is the read that [`namespace.audit`](/docs/features/namespaces-and-sharing#reading-a-namespaces-health) cites its rows with.

That read cites no hash for a high-sensitivity fact, for a value larger than `LOOM_NAMESPACE_REPORT_HASH_MAX_BYTES` (0 cites none), or for a fact revised while it ran. Such a fact is listed with `apply: null` under a `flagged`, `stale` or `pin` finding: an empty `if_match_sha256` is no precondition, so the write it would name could overwrite a change made since the report. An `unpin` finding compares no hash and always names its write.

A fact that is no longer live when its revision is read is left out, so a list can hold fewer than `limit` findings while a fact is being deleted. Under the [Postgres memory authority](/docs/architecture/storage-authority) a fact is listed only while the ClickHouse row the report read is the live head of its key there.

## The dashboard tab

The **Review queue**'s **Curator** tab calls the operation once each time it opens, with no `sections` and a `limit` of 20. It draws the **Scheduled pass** card when the answer holds a `state`, then one card per section the answer holds, in this order:

| Section     | Card                    | What the card shows                                                                                             |
| ----------- | ----------------------- | --------------------------------------------------------------------------------------------------------------- |
| `proposals` | **Proposals**           | `pending`, `oldest_days`, `filed_7d` and `decided_7d`, and a link to the queue's **Proposals** tab.             |
| `flagged`   | **Needs a second look** | Its findings.                                                                                                   |
| `stale`     | **Out of date**         | Its findings.                                                                                                   |
| `primer`    | **Startup budget**      | The guide's tokens and the pinned facts' tokens, each as a meter against its budget, and whether `over` is set. |
| `pin`       | **Worth pinning**       | Its findings.                                                                                                   |
| `unpin`     | **Pins to remove**      | Its findings.                                                                                                   |

A finding is one row: the fact's `memory_key`, the `title` the server sent with its `ref`, and its `count`. The key opens the fact in the memory drawer, where a person edits, pins or unpins it. The tab performs no write and shows no `apply`: the write a finding names stays on the API and the command line.

A key can be held by more than one agent, user or session, and the drawer reads and writes the row of one of them. The tab therefore reads the fact by the finding's `memory_id` (`memory.get_by_id` with `omit_high_value`, so no high-sensitivity value is read) and opens the drawer on the agent, user and session that hold it. The read by id answers no row for a deleted fact, and also for a live one whose id the caller can read in more than one namespace: a namespace restored from a snapshot keeps the memory ids ([storage authority](/docs/architecture/storage-authority)). The tab cannot tell the two apart, so when the id reads no row, or a row of another namespace, the finding's row says "This fact can't be opened from here. It may have been deleted; if not, open it by its key in Memories." and no drawer opens. A read that fails says why on the same row, with the request id and whether to try again.

The **Scheduled pass** card says [whether the pass runs](#whether-the-pass-runs): a badge and one sentence for the `state`, with the time `next_due_at` names where a pass is due, then the newest pass, when it started and how it ended in words for its `outcome`. A due time that is not ahead reads **now**: the first pass of a `waiting` namespace is due at the time of the call, and only `overdue` says how long ago a pass was due. One link, **Pass history**, opens the Runs page on the curator's runs (`/runs?agent=loom-curator`), where the newest pass is the first row. A `state` or an `outcome` the tab has no words for draws no sentence of another state's: the card keeps the last pass and the link, and shows the outcome's code.

Under the state the card lists each entry of [`setup`](#what-the-curator-needs) that is not met and that the namespace's mode needs, with what it is needed for (a pass, model opinions or a draftable question) and who can change it. For a newest pass that ran in `assist` mode it adds one line: how the model step ended, in words for its `model` code, the calls it made and what they cost, then what the curator spent in 24 hours against its share of the cap, from the [`budget`](#budget) section.

- A list that holds 20 findings says "The first 20 are listed." under it. The answer carries no total, so the tab cannot say how many more the section has.
- A section with `unavailable` shows the reason in words: `too_large` reads "Too many rows to list here" and `no_usage_labels` reads "No usage labels in this namespace yet". For `primer` the guide's meter stays and "Too many pinned facts to measure" takes the place of the pinned facts' meter, which lists no row.
- A section with no finding says "Nothing to do".
- A section the answer does not hold draws no card, so the tab works against a server on a build without that section ([rolling upgrades](/docs/architecture/rolling-upgrades#the-rules), rule 82).
- An answer without `state` draws no **Scheduled pass** card, so the tab works against a server on a build without it.
- A caller below admin sees the tab and the role the report needs, and the tab does not call the operation. The role check is the server's; the tab's own check only avoids a refused call. Above the role line the tab shows the namespace's newest pass, when it started and how it ended, from one `run.list` call for the newest run of the agent `loom-curator`: a pass's row is a run every viewer of the namespace may list. A row whose id is not a pass's is not shown, and a read that fails leaves the role line alone.
- Against a server that does not serve the operation the tab shows one line, "The curator's findings are not available on this deployment yet.", with no retry. Any other failure shows the queue's error state with a retry.

## Bounds

| Read                          | Bound                                                                                                                                                                                           |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Harm reports, failed-run keys | 2,000 each (`SCAN_CAP` in `server/memory/store/curator.py`). The statement asks for one row more.                                                                                               |
| Rows under the failed keys    | 2,000. A key is held once by each agent, user and session that wrote it.                                                                                                                        |
| Statuses of the harmed ids    | The ids the harm-report read returned.                                                                                                                                                          |
| Stale links, tagged rows      | `limit` rows each.                                                                                                                                                                              |
| Pinned rows                   | 2,000, read once for the `primer` and the `unpin` sections. The statement asks for one row more.                                                                                                |
| Lengths of the pinned values  | The pinned rows that read returned, each by its id and version; none when it returned more than 2,000.                                                                                          |
| The guide                     | Its current revision, one row.                                                                                                                                                                  |
| Ids served on 3 days or more  | 2,000, from the rows of the last 7 days. The statement asks for one row more.                                                                                                                   |
| Which of them are not pinned  | The ids the served-days read returned.                                                                                                                                                          |
| Whether usage is labelled     | One row of `loom.memory_usage_totals`, which holds one row a memory.                                                                                                                            |
| `used` labels of the pins     | The pinned ids, and the events of the last 30 days: a range of the table's sort key for each id.                                                                                                |
| Revisions and hashed values   | The facts the lists show, `limit` a list, each value at most `LOOM_NAMESPACE_REPORT_HASH_MAX_BYTES`.                                                                                            |
| Proposals with an opinion     | `LOOM_MEMORY_PROPOSALS_SCAN_CAP` ids, keys and hashes, no value. The statement asks for one row more.                                                                                           |
| Stored opinions               | The namespace's last 100 pass rows, each under 6,000 characters of metadata: about 600 KB at the largest, read on an administrator's call.                                                      |
| The prerequisites             | One read each: the registry row, the classification, the schema versions of the live replicas, the org's model switch, the guide's current revision, and the namespace's cap and 24-hour spend. |
| The whole call                | A p99 budget of 1,500 ms (`OP_BUDGETS_P99_MS` in `server/settings/catalog.py`).                                                                                                                 |

A `flagged`, `pin` or `unpin` section with a read over its bound answers `unavailable: "too_large"` with no items, because a cut list would read as the whole one, and so does the `primer`, whose pinned tokens would be those of a part. The other sections still answer.

`loom.memory_usage_events` keeps every event and has no TTL. No statement here reads it without the ids and the 30-day bound, and the question whether anybody labels usage is asked of the totals.

A failed statement fails the call. A repository whose grant could not be read is left out of the stale links, and the answer says so in `degraded` (`identity: code_links_unverified`).

## Limits

- Harm reports and failed runs are counted over the namespace's whole history. A fact keeps its id through a revision, so a revised fact stays listed, with the hash of its current content in `apply`, until its reports are retracted or it is deleted.
- `graded_fails` matches by key: a run records the keys it relied on, so every identity of the namespace that holds the key is listed.
- A namespace that has passed a bound of the `flagged` section keeps answering `too_large` for it: the counts never age out.
- With `limit` or more harm reports, the `flagged` list holds no failed run. Ask again with a larger `limit`, up to 50.
- A stale link into a repository the caller may not read is not listed.
- A served day is a UTC date on which an agent's recall (a search, a context pack, an answer) returned the fact. A lookup by key and a read by the dashboard write none.
- The pin rule counts days, not readers: a fact one agent recalls every day is a candidate, and so is a fact the startup context shows for being recent.
- `pinned_tokens` counts the text of each value. The label the startup context prints before each fact and its escaping of `<` and `>` are not counted.
- A pin rewritten between the two statements that read the pinned rows can have no row left at the version listed. It is then left out of `pinned`, `pinned_tokens` and the `unpin` list of that call.
- The `primer` and the pin lists count every identity of the namespace, whichever of them one session's startup context reads. A pinned fact the startup context leaves out, such as a high-sensitivity one, still counts in `pinned` and `pinned_tokens`.
- A pin with a `used` label older than 30 days and a pin that was never labelled are listed alike.
- The `unpin` rule reads labels and not the age of a pin. A pin younger than 30 days with no `used` label is listed like an old one, a fact pinned from a `pin` finding included: a `pin` candidate is chosen by its served days, so it can be listed under `unpin` at the next call after it is pinned.

## The namespace's mode

A namespace's registry row holds `curator_mode`: whether a scheduled curator pass may read the namespace. It is the namespace's choice, made by one of its admins, and it is `off` on every namespace until an admin sets it.

| Mode       | Meaning                                                                                                                                                   |
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `off`      | No pass reads the namespace. A row that never set a mode stores an empty string, which reads as `off`.                                                    |
| `findings` | A pass may compute what `curator.status` reports for the namespace. It calls no model and changes no fact.                                                |
| `assist`   | A pass does the same, then asks a model whether each pending proposal fits the namespace's guide ([the model step](#the-model-step)). It changes no fact. |

In `assist` mode the curator sends content of this namespace to the deployment's model provider:

- the namespace's guide;
- the text of each pending proposal of its shared scope that is not marked `high`, cut to 2,000 characters.

A pass in this mode also sends the deployment's embedder the text of each repeated question it searches the namespace's shared documents with ([the question walk](#the-question-walk)). The gap build sent the embedder the same text when it grouped the question.

The mode is the namespace's side of the choice. A pass also needs the deployment's own switch, `LOOM_CURATOR_ENABLED`, which only the operator sets and which is off by default. With both, [the scheduled pass](#the-scheduled-pass) reads the namespace. [What the curator needs](#what-the-curator-needs) lists every prerequisite and who changes it.

| Surface      | How                                                                                                                                                                                                                                                                                               |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| HTTP, MCP    | `namespace.register` with `curator_mode`. A call that omits the field keeps the stored mode.                                                                                                                                                                                                      |
| SDKs         | Read the row with `namespace.get`, then call `namespace.register` with its `owner_email`, its `tags` and the new mode.                                                                                                                                                                            |
| Command line | `loom curator mode --namespace <namespace> off\|findings\|assist` prints that row and sends it with `--apply`.                                                                                                                                                                                    |
| Dashboard    | **Settings** on the namespace, **Curator**: **Off**, **Findings only, no model** or **Findings and model opinions, uses a model**. A pick of the first two is saved at once. A pick of the third opens a note, and **Save** on the note sends the mode. No other save in the dialog sends a mode. |

The note of the third option says, before anything is saved:

- what is sent: the sentence and the list above, and that the model's answer accepts and rejects nothing;
- the amount the curator's share of the namespace's daily cost cap allows in 24 hours, or that the namespace has no cap;
- each [prerequisite](#what-the-curator-needs) that is not met, except the mode itself, with what it is needed for and who can change it.

The amount and the entries come from one `curator.status` call with `sections: ["budget"]`. **Save** waits for its answer and is allowed with entries unmet: the mode is the admin's part, and the rest may be another person's. When the call fails the note says the needs could not be read, and **Save** still sends the mode. A stored `assist` keeps the note, with nothing to save. A caller below the admin role sees what is sent, and the dialog makes no call for them.

`namespace.register` takes the mode under the rule it applies to every setting: the caller is an admin of the namespace, and a restricted namespace needs a direct grant as well. It refuses:

- a mode other than `off` on a person's own namespace, with 422 `PERSONAL_NAMESPACE`. The rule is the one a [document source](/docs/architecture/document-sources) is refused by: a name of a personal form, or a namespace claimed at signup, whose row names the namespace itself as its owner;
- a mode other than `off` on a namespace whose `kind` is not `memory`, with 422 `VALIDATION_FAILED`;
- a value outside the set, with 422.

The refusal judges the row the call writes, with no further read. A first row that names the namespace as its owner is refused the mode, and so is a soft-deleted row claimed at signup, which a restore reactivates with the mode it holds. A call that omits the mode keeps the stored one, so it is refused when it would leave that mode on a namespace that takes none: a call that changes the `kind`, or one that names the namespace as its owner. Send `curator_mode: "off"` with such a call.

`off` is accepted on every namespace. `namespace.get` and `namespace.list` return the stored word. A word this build does not accept on a write, stored by a newer build, is served as it is and kept by a register that omits the field.

`namespace.register` writes the whole row, so of two admins who save at the same moment one change is kept. During a rolling upgrade a register served by the previous build returns the mode to `off` ([rolling upgrades](/docs/architecture/rolling-upgrades#the-rules), rule 80).

## The scheduled pass

The worker `curator` runs a pass over each namespace whose mode is not `off`, once every `LOOM_CURATOR_CADENCE_SECONDS` (a day by default, an hour at the least; a runtime override reaches the next tick). A pass counts what `curator.status` reports for the namespace and writes one row of the [run ledger](/docs/features/runs#curator-passes) that says when it ran, how it ended and what it counted. It changes no fact and stores no finding: the report is still computed when someone asks for it. In `findings` mode it calls no model. In `assist` mode it then runs [the model step](#the-model-step), and its row also holds the model's opinions. It then decides which of the questions people keep asking a shared document could answer ([the question walk](#the-question-walk)), and its row holds a count for each code.

The worker is off until the operator sets `LOOM_CURATOR_ENABLED`. A stored mode this build does not know, which a later build wrote, runs the same pass as `findings`.

### A tick

The worker ticks every 300 s. A tick:

1. Does nothing until every live replica has the migration that adds the mode ([rolling upgrades](/docs/architecture/rolling-upgrades#the-rules), rule 83).
2. Reads the namespaces that are active, of kind `memory` and hold a mode other than `off`, in one statement. A deployment where none does stops here.
3. Reads the newest pass of each from the run ledger. A namespace is due when it has no pass, when its newest pass started more than the cadence ago, or when that pass is [abandoned](#an-abandoned-pass). A namespace whose mode is `assist` is also due when its newest pass is closed and ran in another mode: the mode was set since, and the namespace gets its first [model step](#the-model-step) at the next tick. A pass that ran as `assist` records that mode however it ended, so the rule runs one pass.
4. Runs the due namespaces one after another, the longest without a pass first. A namespace with no pass in the last two cadences sorts with those that never had one.

What is due is read from the ledger and the registry, so a restarted worker and a second replica need no state of their own.

### A pass

For each due namespace the tick:

1. Reads the namespace's classification. A namespace whose classification cannot be read is skipped, and so is a restricted one while `LOOM_RESTRICTED_SERVE` is false. Neither gets a row.
2. Takes the lease `curator:<org>:<namespace>` for 120 s, renewed while the pass runs. A lease another replica holds skips the namespace.
3. Reads the mode again and the namespace's newest pass, of any age, under the lease, as of every write that landed. A namespace whose mode changed, or whose newest pass is no longer the one the tick selected it by, is skipped: another replica ran its pass, or an admin turned it off.
4. Writes one `namespace.restricted_access` audit row when the namespace is restricted, under the actor `worker:curator`, before it counts a section. A row that cannot be written stops the pass.
5. Writes the pass row as `active`.
6. Counts the sections in five steps: `proposals`, `flagged`, `stale`, `pin`, then `primer` and `unpin` together, which share one read of the pinned facts. Each calls the function `curator.status` computes that section with, at 20 findings a section.
7. In `assist` mode, and when every section was counted, runs [the model step](#the-model-step).
8. In `assist` mode, and when the model step left the outcome `ok`, runs [the question walk](#the-question-walk).
9. Reads the erasure ledger. An erasure of the namespace that was open during the pass, or a ledger that cannot be read, closes the pass with no count, no opinion, no `unanswered` entry and no question.
10. Writes the row again as `completed` or `failed`, with the outcome.

| `outcome`      | `status`    | When                                                                                                                                                                                             |
| -------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `ok`           | `completed` | Every section was counted. A namespace with nothing to find has every count at 0.                                                                                                                |
| `time_bound`   | `completed` | The pass reached 120 s. The row holds the sections counted and the questions decided until then.                                                                                                 |
| `mode_changed` | `completed` | The mode was set to `off` during the pass, which is read before each step, or was no longer `assist` before a model call or a question of the walk. Later steps, calls and questions do not run. |
| `erasure`      | `completed` | An erasure reached the namespace during the pass. The row holds no count.                                                                                                                        |
| `error`        | `failed`    | A read failed. The row holds no count, and the worker notes a failed leg.                                                                                                                        |
| `abandoned`    | `failed`    | The pass never closed its row, and a later tick closed it.                                                                                                                                       |

A pass that ends `error` is the namespace's pass of that cadence: the next one runs a cadence later.

### The model step

A pass in `assist` mode asks the deployment's model one question about each pending proposal: does this fact fit the namespace's guide. The answer is an opinion for the person who reviews the proposal. It accepts and rejects nothing, it changes no `advice` of `memory.proposals`, and no other code reads it.

What a model is sent, and nothing else of the namespace:

- the namespace's guide;
- the text of one pending proposal a call. A proposal is sent only when it is of the namespace's shared scope (`user_id` and `session_id` are `-`), is not marked `high` and is not redacted. Its text is cut to 2,000 characters by the statement that reads it. The step then reads the cut text and sends none that reads as `high` ([sensitivity](/docs/architecture/security#sensitivity)), whatever the row is marked: a writer's own level wins on a write, and a deployment can turn detection off.

Both are placed inside a fence with a nonce made for the prompt (`fence` in `server/memory/domain/prompt_fence.py`, as for recalled memory in [security](/docs/architecture/security)), and the system text tells the model that fenced text is data. Nothing of a namespace that mirrors a source or holds a code store is sent.

The step ends its model work at the first of these gates that holds, and records why in the row's `model`. The pass still completes with its counts.

| `model`       | When                                                                                                                                                                     |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `no_provider` | The deployment has no model provider: a keyed provider without its key, or none chosen.                                                                                  |
| `off`         | The org's model calls are switched off, or the switch cannot be read.                                                                                                    |
| `over_cap`    | The curator's calls in the namespace reached `LOOM_CURATOR_CAP_SHARE` of its daily cost cap (a quarter by default), the whole cap is spent, or the spend cannot be read. |
| `unavailable` | Three calls in a row raised or ran out of time: the provider is down, or the inference gateway refuses the curator's calls.                                              |
| `not_called`  | No call was made. The namespace has no guide or no proposal to ask about, the pass spent its first 60 s counting, or the mode changed before the first call.             |
| `ok`          | Calls were made and none of the gates above stopped them.                                                                                                                |

Before every call the step reads the namespace's mode, the org's model switch and the spend again, after it flushed the cost of the calls it already made. A mode that is no longer `assist` ends the pass with the outcome `mode_changed`. A switch or a spend that cannot be read ends the calls as `off` or `over_cap`, and a mode that cannot be read fails the pass as `error`: none of the three sends anything.

A proposal is eligible when it is pending, may be sent, and has no stored opinion on its content at the guide's current revision. The step reads the ids, keys and content hashes of the newest `LOOM_MEMORY_PROPOSALS_SCAN_CAP` such proposals with no value, compares them with the opinions in the namespace's last 100 pass rows, and then reads the text of at most 20 of them. It takes the newest first, and after them the ones a pass of those rows took up and stored no opinion on (`unanswered` in [the pass row](#the-pass-row)). A proposal is therefore asked about once for each content and guide revision, the ones a pass does not reach wait for the next, and one that gets no answer on any pass keeps no other proposal from its turn.

Each call:

- is made for `(org, namespace, loom-curator, -, -)` under the operation `worker.curator`, at the stage `curator_advice`, with the namespace's capture consent. Its cost is the namespace's spend, recorded whether the call answers or fails;
- runs alone and with no tool, for at most 60 output tokens and 15 s. The step asks once a pass for each proposal. The model client's own retries (`LOOM_LLM_RETRY_ATTEMPTS`) and its fallback model (`LOOM_LLM_FALLBACK_MODEL`) run inside the 15 s, so one question can be several requests to the provider;
- starts only in the first 60 s of the pass's 120 s.

The model answers one JSON object, `{"verdict": ..., "reason": ...}`, with a `verdict` of `fits`, `does_not_fit` or `unclear` and a `reason` of `in_scope`, `outside_scope`, `not_durable`, `sensitive` or `unclear`. Any other answer is `invalid_output` and stores no opinion, and neither does a call that raised (`model_error`) or ran out of time (`timeout`). A call the inference gateway refuses for the curator's identity is one that raised. The worker notes each as a failure of the pass's leg, and the pass row lists the proposal under `unanswered`.

Three calls in a row that raised or ran out of time end the model work as `unavailable`. An answer outside the sets comes from a provider that is up, so it starts that count again and the step goes on to the next proposal.

### The question walk

After the model step, a pass in `assist` mode takes the 20 most asked gaps of the namespace's latest [gap build](/docs/architecture/knowledge-gaps#grouping) and decides, for each, whether a shared document could answer it: a document written for no one user (`user_id` is `-`). It decides by code alone: it asks no chat model and writes no fact. A question gets one code, that of the first step that ends it:

| Step | Code                      | When                                                                                                                                                                                                                                              |
| ---- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1    | `gap_ineligible`          | The gap may no longer be drafted from: the asker floor changed, the gap left the latest build, or fewer than `LOOM_KNOWLEDGE_GAPS_MIN_ASKERS` people still asked any of its questions. A rule that cannot be read ends the question the same way. |
| 1    | `erasure`                 | An erasure that may have deleted a question was open when the gaps were built or has finished since. A ledger that cannot be read counts as one.                                                                                                  |
| 2    | `definition_draft_exists` | A [definition draft](/docs/architecture/definition-drafts) claims the gap.                                                                                                                                                                                        |
| 3    | `already_drafted`         | A candidate of source kind `curator_draft` claims the gap, in any status, or the namespace holds a fact under [the gap's draft key](#the-draft-key), deleted or not.                                                                              |
| 3    | `drafted_other_wording`   | A candidate of that kind claims another wording the gap groups.                                                                                                                                                                                   |
| 4    | `no_evidence`             | No passage of the namespace's shared documents answers the question.                                                                                                                                                                              |
| 4    | `sensitive_passage`       | Every passage that answers it reads as `high` ([sensitivity](/docs/architecture/security#sensitivity)).                                                                                                                                                           |
|      | `draftable`               | No step ended it.                                                                                                                                                                                                                                 |

Step 1 is the check `knowledge.gaps.draft` makes, through the one function both call ([knowledge gaps](/docs/architecture/knowledge-gaps#the-list-and-the-dashboard)).

Step 4 searches the namespace's documents with the question: the vector, BM25 and exact-key legs, fused, over the chunks of shared documents. It takes the 4 passages that rank first and keeps those that answer the question, by the rule that keeps a search from being recorded as a miss: a passage as close as a hit that answers a query, or an exact-key match. A document written for one user is never read. A namespace with no shared document gets no search, and each question that reaches the step is `no_evidence`.

No step runs, and every question is counted under the reason, in a namespace where one of these holds, the first that does:

| Code              | When                                                                                   |
| ----------------- | -------------------------------------------------------------------------------------- |
| `gaps_off`        | `LOOM_KNOWLEDGE_GAPS_ENABLED` is off.                                                  |
| `capture_off`     | The namespace's capture level is `off`, or cannot be read.                             |
| `mirrored_source` | An active document source of the namespace is mirrored, or its sources cannot be read. |

The search embeds the question: the walk sends the question's text to the deployment's embedder, as the gap build did when it grouped the question, and sends a chat model nothing. The embedding is a call made for the org, recorded as the namespace's spend under the operation `worker.curator`. A walk that has a gap to decide, in a namespace where none of the three reasons above holds, therefore reads the org's model switch and the curator's share of the namespace's daily cost cap once, before its first question. While the calls are off, the share is spent or either cannot be read, it decides no question and the row holds no `questions`. The embedder refuses a call for an org whose calls were switched off after that read, which fails the walk.

A namespace with no gap build, or with a build that holds no gap, counts 0 for `draftable`, and one of the three reasons above counts every question, whatever the switch and the share are. A pass in `findings` mode never walks.

The walk reads the mode and the pass's 120 s before each question. A mode that is no longer `assist` ends the pass as `mode_changed` and the time as `time_bound`, and the row keeps the questions decided until then. A walk that fails is a failed leg of the worker: the pass keeps its counts and opinions, and its row holds no `questions`.

#### The draft key

The draft key of a gap is `curator/gap/<k>`, where `k` is the first 12 hex digits of a hash of the gap's id, keyed with the deployment's root secret under a label of its own. A gap's id is derived from its question, and a key must not reveal the question. The walk reads the key under the namespace's shared identity (agent, user and session `-`), as of every write that landed.

### The pass row

A pass is a row of `loom.agent_runs`, whose key is `(org, namespace, run_id)`:

| Column                              | Value                                                                                                                                                        |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `run_id`                            | `cur-` and the pass's start as ten digits of epoch seconds, so a namespace's passes sort by time.                                                            |
| `agent`, `user_id`, `session_id`    | `loom-curator`, `-`, `-`.                                                                                                                                    |
| `environment`, `goal`               | `worker`, `Curator pass (scheduled)`.                                                                                                                        |
| `memories_used`, `memories_written` | Empty.                                                                                                                                                       |
| `metadata`                          | `mode`, `outcome`, `counts` by section, `unavailable` by section, `duration_ms`, and in `assist` mode the keys below. Under 6,000 characters at the largest. |
| `version`                           | 4 × 10^18 plus the server's nanosecond clock.                                                                                                                |

`counts` holds one number a section: the pending proposals, the findings a list section holds (at most 20), and 1 for a `primer` over a startup budget. A section that cannot be computed has its code in `unavailable` and no count. The metadata of a pass in `findings` mode holds no key, no value, no memory id and no question, because `run.get` and `run.list` serve the row to every viewer of the namespace, while the findings themselves need the admin role.

A pass in `assist` mode adds what [the model step](#the-model-step) did:

| Key              | Value                                                                                                                                                                                                                                                         |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `prompt_version` | The version of the prompt the step asks with (`PROMPT_VERSION` in `server/memory/domain/curator_prompts.py`).                                                                                                                                                 |
| `model`          | How the model work ended: a code of the model step's table.                                                                                                                                                                                                   |
| `llm_calls`      | The calls the step made, failed ones included.                                                                                                                                                                                                                |
| `spend_usd`      | What they cost.                                                                                                                                                                                                                                               |
| `opinions`       | One entry an answer, at most 20: `memory_id`, `hash_prefix`, `verdict`, `reason` and `guide_revision`.                                                                                                                                                        |
| `questions`      | What [the question walk](#the-question-walk) decided: `counts`, a number for each code that holds a question and for `draftable` always, and `by_hash`, each question's code under 12 hex digits of a hash of its gap's id. Absent when the walk did not run. |
| `unanswered`     | One entry a proposal the step took up and stored no opinion on: `memory_id`, `hash_prefix` and `guide_revision`. Its call failed, its answer was outside the sets, or its text reads as `high` and was not sent.                                              |

An opinion holds no key, no value and no word the model wrote: the two codes come from closed sets. An `unanswered` entry holds the same id, hash prefix and revision and no reason. `hash_prefix` is the first 16 hex digits of a hash of the proposal's content hash, keyed with the deployment's root secret. Every viewer of the namespace can read the row, and the row outlives the proposal. A reader without the key cannot test a guessed value against the prefix, as they could against a prefix of the plain content hash. A deployment that rotates the root secret asks about each pending proposal once more.

A proposal a pass took up is in `opinions` or in `unanswered`, 20 in all at the most, and an opinion is the longer entry. The largest row, with 20 opinions and 20 questions, stays under the 6,000 characters.

`questions` holds no question, no gap id, no draft key and no passage. The hash that names a question is keyed with the deployment's root secret under a label of its own, apart from the draft key's: a gap's id is derived from its question, so a reader of the row could test a guessed question against a plain id, and cannot against the hash.

Every read of pass rows is one statement (`pass_rows` in `server/tasks/store/runs.py`): the rows of the namespace whose `run_id` lies between `cur-<lower bound>` and the end of the `cur-` prefix, at a `version` of 4 × 10^18 or more, newest first. A request path writes the nanosecond clock as its version, which is below that floor. A row a caller opened under a pass-shaped id on a build that did not reserve the shape is therefore never read as a pass, however far ahead its id is dated.

### An abandoned pass

A worker that dies in a pass leaves the row `active`, and its lease lapses 120 s after the last renewal. A tick treats a namespace whose newest pass is `active` and started more than 240 s ago as due. Under the namespace's lease, which a live pass would hold, it closes that row as `failed` with the outcome `abandoned` and runs the pass again in the same turn. An `active` pass younger than 240 s is left alone.

The read under the lease is not bound to the last two cadences. A pass can die before a longer time without a tick over its namespace, because the switch or the mode was off or the namespace was restricted and not served. Its row is older than the dueness read looks back, and the first pass after that time closes it the same way.

A namespace whose newest pass is closed as `abandoned` is due whatever the row's age. That is the state a tick leaves when it closes the dead row and fails before it writes the row of the pass that follows, and the next tick runs that pass.

A pass the supervisor stops, or one that loses its lease, writes nothing more. Its row is closed the same way.

### Bounds of the pass

| Bound                         | Value                                                                                                                                                                                                                                |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Namespaces a tick selects     | 5,000. A deployment with more notes a failed leg on every tick, and the namespaces past the bound get no pass.                                                                                                                       |
| Pass rows the dueness reads   | Two cadences back, 200 namespaces a statement, 4 rows a namespace. A read that fills is repeated a namespace at a time.                                                                                                              |
| Time a pass has               | 120 s, checked before each step.                                                                                                                                                                                                     |
| Time a tick starts passes for | 720 s. The supervisor cuts a tick at 900 s, which leaves the last pass its 120 s.                                                                                                                                                    |
| Passes at once                | One a namespace, by the lease, and one after another inside a tick.                                                                                                                                                                  |
| Model calls a pass            | 20, one at a time, none started after 60 s of the pass. Three in a row that raised or ran out of time end them.                                                                                                                      |
| One model call                | 60 output tokens, a proposal text of 2,000 characters, and 15 s for the client's retries and fallback model together.                                                                                                                |
| Questions a pass decides      | 20, the most asked first, with 4 passages a question; none is started after the pass's 120 s.                                                                                                                                        |
| Model spend in a namespace    | `LOOM_CURATOR_CAP_SHARE` of its daily cost cap, read before every call of the model step: at most one call past the share. The walk reads it once, before its first question: at most the embeddings of 20 questions past the share. |
| Opinions the step compares    | The namespace's last 100 pass rows, and `LOOM_MEMORY_PROPOSALS_SCAN_CAP` pending proposals without their value.                                                                                                                      |

### Limits of the pass

- A count is cut at 20 for a list section: a pass says that a section has findings, and `curator.status` lists them.
- The counts include a fact that changed between the section's read and the report's citation read, which `curator.status` leaves out of its list.
- A pass reads with no caller, so its `stale` count includes a link into any repository of the org, where `curator.status` lists only those its caller may read.
- Cadence is one setting for the deployment. No namespace has a schedule of its own, and no operation starts a pass on demand.
- Pass rows follow the run ledger's retention.
- A namespace with no daily cost cap, of its own or the deployment's, has no share to spend: its model calls are bound by the 20 a pass and the cadence.
- An opinion older than the namespace's last 100 passes is asked again and no longer served.
- A proposal past the newest `LOOM_MEMORY_PROPOSALS_SCAN_CAP` pending ones gets no opinion until the queue shortens.
- A proposal whose call fails or answers outside the sets is not asked about again in the pass. Later passes ask again, after the proposals no pass took up. One that never gets an answer therefore costs a call in every pass that has a place left for it.
- The model reads the first 2,000 characters of a proposal, and the guide whole.
- A question's code is that of one pass: the next pass decides it again, and nothing is stored for a question but its code.
- The walk reads the latest gap build, which the gap worker makes once a day. A question first asked after that build is not decided until the next.

## Whether the pass runs

Every answer of `curator.status` holds five fields besides its sections, whatever `sections` asks for: `mode`, `state`, `next_due_at`, `last_pass` and [`setup`](#what-the-curator-needs). They say whether the scheduled pass runs in the namespace, when the next pass is due, how the newest one ended and what the curator needs there. They are computed on the call and stored nowhere.

`mode` is the word the namespace's registry row holds, as a pass reads it: `off` for a namespace that set none, is not active or is not of kind `memory`.

`state` is the first row of this table that holds:

| `state`          | When                                                                                                           | What the surfaces say                                                                          |
| ---------------- | -------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| `off`            | The mode is `off`.                                                                                             | No scheduled pass reads the namespace. The findings are computed on every call in either mode. |
| `deployment_off` | The mode is on, and `LOOM_CURATOR_ENABLED` is off or a live replica is below the migration that adds the mode. | An operator has not turned the curator on for this deployment.                                 |
| `waiting`        | The namespace has no pass.                                                                                     | The first pass is due at `next_due_at`.                                                        |
| `overdue`        | `next_due_at` is more than 600 s in the past.                                                                  | The worker is behind or stopped.                                                               |
| `failed`         | The newest pass's `status` is `failed`.                                                                        | The last pass failed, with its `outcome`.                                                      |
| `ok`             | None of the above.                                                                                             | When the next pass is due, and how the last one ended.                                         |

- A mode this build does not know, which a later build stored, is on: the pass runs it as `findings`.
- 600 s is two ticks of the worker, so one slow tick is not reported.
- A fleet that cannot be read counts as below the migration: the state is `deployment_off`, never `ok`.
- `overdue` is decided before `failed`: once a pass is late, that none followed says more than how the last one ended.
- A pass that is still running is the namespace's pass: the state is `ok` until the pass after it is late.
- The state does not read the namespace's classification. A restricted namespace whose passes are skipped while `LOOM_RESTRICTED_SERVE` is false reads `waiting`, or `overdue` once its newest pass is a cadence old.

`next_due_at` is the newest pass's start plus `LOOM_CURATOR_CADENCE_SECONDS`, or the time of the call for a namespace with no pass. It is `null` when the state is `off` or `deployment_off`, where no pass will run. The next tick runs [an abandoned pass](#an-abandoned-pass) again, and the pass of a namespace set to `assist` whose newest pass ran in another mode, before the time this field names.

`last_pass` is the namespace's newest pass, whatever the mode is now, or `null` for a namespace with none:

| Field                                           | From                                                                                                                                                                                                                                      |
| ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `run_id`, `started_at`, `status`, `duration_ms` | The pass row's own columns, as `run.list` serves them. `duration_ms` is the time from the pass's start to the write that closed its row, 0 while it runs.                                                                                 |
| `outcome`, `mode`, `counts`                     | The row's `metadata`: how the pass ended, the mode it ran in and what it counted by section.                                                                                                                                              |
| `model`, `llm_calls`, `spend_usd`               | The row's `metadata`: how [the model step](#the-model-step) ended, the calls it made and what they cost. `not_called`, 0 and 0 for a pass in another mode.                                                                                |
| `questions`                                     | The row's `metadata`: one entry for each code of [the question walk](#the-question-walk) that holds a question, and for `draftable` always, with `code`, `title` and `count`, `draftable` first. Empty for a pass whose walk did not run. |

A row whose metadata is not a JSON object answers with the row's columns, an empty `outcome` and `mode` and no count, and so does a value of another type for its field. Neither fails the call.

The state costs two reads, the registry row and the namespace's newest pass row, beside the reads of [`setup`](#what-the-curator-needs), whose `deployment_on` and `fleet_ready` entries decide `deployment_off`. The pass row is read through [the statement every read of a pass uses](#the-pass-row), so a caller's row under a pass-shaped id is never the last pass.

| Surface      | What it shows                                                                                                                                                                                                                                                                                                                                                                     |
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Command line | `loom curator status` prints the state line first, then one line for each unmet entry of `setup` the namespace's mode needs, then the last pass, the model line and the questions line of a pass in `assist` mode and the budget line of a namespace in `assist` mode, then the findings and one line an opinion: the verdict's title, the reason's title and the proposal's key. |
| Dashboard    | The **Scheduled pass** card of the **Curator** tab, above the findings, with the unmet entries under the state ([the dashboard tab](#the-dashboard-tab)).                                                                                                                                                                                                                         |

A server on a build without these fields sends none of them. The command line and the tab then show the findings alone, and an answer without `setup` or `budget` lists no entry and no amount.

## What the curator needs

`setup` lists every prerequisite of the curator in the namespace, each once, with whether it is met now. It is computed on every call, in every mode, so an admin reads why no pass ran or no opinion was given, and what is still missing before a mode is set.

| Field        | Meaning                                                                                                                                                   |
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `code`       | The prerequisite, from the table below.                                                                                                                   |
| `title`      | What it is, in words.                                                                                                                                     |
| `needed_for` | `pass` for one the scheduled pass needs, `opinions` for one the model step needs besides, `drafts` for one a question needs to be counted as `draftable`. |
| `met`        | Whether it holds now. One that cannot be read is not met.                                                                                                 |
| `changed_by` | Who can change it: `operator`, `org_admin` or `namespace_admin`.                                                                                          |

| `code`               | Needed for | Who changes it    | Met when                                                                                                                 |
| -------------------- | ---------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------ |
| `deployment_on`      | `pass`     | `operator`        | `LOOM_CURATOR_ENABLED` is set.                                                                                           |
| `fleet_ready`        | `pass`     | `operator`        | Every live replica has the migration that adds the mode.                                                                 |
| `mode`               | `pass`     | `namespace_admin` | The namespace's mode is not `off`.                                                                                       |
| `restricted_serve`   | `pass`     | `operator`        | The namespace is not restricted, or `LOOM_RESTRICTED_SERVE` is set.                                                      |
| `provider`           | `opinions` | `operator`        | The deployment has a model provider.                                                                                     |
| `model_on`           | `opinions` | `org_admin`       | The org's model calls are switched on.                                                                                   |
| `under_cap`          | `opinions` | `namespace_admin` | The curator's share of the namespace's daily cost cap is unspent, and so is the cap. A namespace without a cap meets it. |
| `guide`              | `opinions` | `namespace_admin` | The namespace has a guide.                                                                                               |
| `gaps_on`            | `drafts`   | `operator`        | `LOOM_KNOWLEDGE_GAPS_ENABLED` is set.                                                                                    |
| `capture_on`         | `drafts`   | `namespace_admin` | The namespace's capture level is not `off`.                                                                              |
| `shared_documents`   | `drafts`   | `namespace_admin` | The namespace holds a current document written for no one user (`user_id` is `-`).                                       |
| `no_mirrored_source` | `drafts`   | `namespace_admin` | No active document source of the namespace is mirrored.                                                                  |

Each entry is the answer of one function of `server/memory/app/curator_gates.py`, and the worker's tick, the pass, the model step and the question walk call the same function before they act. The list is therefore what the worker reads, not a second account of it. The `deployment_on` entry is whether the worker supervisor starts the worker: whether its row of the worker registry is enabled, which the deployment's switch decides.

- A guide that cannot be read leaves its entry unmet and fails nothing else when no section asked for reads the guide as well: the other entries, the state and the sections still answer, and the answer names the entry in `degraded` (`curator.status: prerequisite_unread`, with its code). `primer` reads the guide, and so do `proposals` and `opinions` in a namespace in `assist` mode with a pending proposal a model may be sent: a call that asks for one of them fails. A registry row that cannot be read fails the call, because the state reads it too. Any other read that fails leaves its entry unmet and names nothing in `degraded`.
- An entry is about now. How a pass that ran earlier ended is in `last_pass`, whose `model` holds `no_provider`, `off` or `over_cap` for a model step one of these stopped, and `not_called` for a namespace without a guide.
- The model step has two conditions that are not entries: a mode of `assist`, which the `mode` field says, and a namespace whose name is not reserved, which no setting changes.
- [The question walk](#the-question-walk) needs `model_on` and `under_cap` besides its `drafts` entries, because its search embeds the question. An entry needed for `drafts` stops no pass and no opinion.
- The command line and the **Curator** tab list an unmet entry only where the stored mode needs it: none while the mode is `off`, the `pass` entries in any other mode, and the `opinions` and `drafts` entries in `assist`. The settings dialog, where an admin is choosing `assist`, lists every unmet entry but `mode`.

## Drafted answers

A draft is an answer the curator wrote to a question several people asked, from one shared document. Until a person accepts it, it is text nobody has reviewed, so only the namespace's administrators read it. It is stored as a candidate of the [learnings review queue](/docs/features/memory/procedures-and-learnings#learnings-review-queue) with `source_kind` `curator_draft`, and never as a memory row: no memory read, search or count holds it, and `memory.proposals` does not list it, because the proposal policy, the advice and the suite checks judge proposals and a draft is judged on the document it cites. This section describes the candidate, its review and the fact it becomes. No pass writes a draft.

### The candidate

| Column               | Holds                                                                                                                                                                                                                                 |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `memory_key`         | The key the fact is written under, `curator/gap/<k>`.                                                                                                                                                                                 |
| `proposed_value`     | The drafted answer.                                                                                                                                                                                                                   |
| `source_resource_id` | The gap the draft answers.                                                                                                                                                                                                            |
| `evidence`           | A pointer as JSON, never a quote or a passage: the `kind`, `key`, `version` and `sha256` of the shared document the draft cites, the keys to `recheck`, the `run_id` of the pass that drafted it, and the draft it is a `redraft_of`. |

`learnings.list` lists a draft only to a caller with the admin role on the namespace. For every other caller the row is absent from the list and from the counts of `learnings.quality`, and `memory.lineage` names no such candidate. The filter is part of each statement, so it applies before a limit or a count. An administrator's entry carries `content_sha256`, the server's hash of the drafted answer, and `evidence`, the pointer. An administrator whose grant is revoked stops reading drafts when the replica's grant cache refreshes, as for every read that needs the admin role.

### The review

`learnings.review` decides a draft. The operation needs the admin role, and a draft answers 404 `RESOURCE_NOT_FOUND` to a caller the namespace does not admit as an administrator, as a candidate that does not exist does.

| Decision  | Who                                                                          | What it needs                                                                                                                                                                                             |
| --------- | ---------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `promote` | A person who administers the namespace, signed in under their own name.      | `approved_sha256` equal to the `content_sha256` the list served. An empty or different hash answers 409 `PRECONDITION_FAILED`, which does not return the stored hash. `destination` is `memory` or unset. |
| `reject`  | Any caller with the admin role on the namespace, a service account included. | Nothing: `approved_sha256` is ignored.                                                                                                                                                                    |

- A service account that promotes is refused with 403 `AUTH_INSUFFICIENT`.
- One review of a draft runs at a time: a second answers 503 `OVERLOADED` while the first holds the draft's claim.
- A draft is decided once. A decided draft answers its status to a repeat of the same decision and 409 `PRECONDITION_FAILED` to the other one. Its `promoted` or `rejected` row is what records that the question was drafted, and a later draft of the same question is a new candidate that names it in `redraft_of`.
- Each of these refusals is raised before the write: it stores no memory row and no decision row.

### The fact

A promotion writes the draft through `memory.set` as the curator's namespace-wide row and then records the decision:

| Field                   | Value                                                                                  |
| ----------------------- | -------------------------------------------------------------------------------------- |
| Identity                | `(org, namespace, loom-curator, -, -)` under the draft's `memory_key`, type `semantic` |
| `actor`                 | The reviewer, from the review's token: accepting the draft is the reviewer's write.    |
| `source_class`          | `derived`                                                                              |
| `source_trace`          | `curator:<candidate_id>`                                                               |
| `source_resource_id`    | The `key` of the cited document.                                                       |
| `grounding`, `evidence` | `verbatim` and the draft's pointer. No `memory.set` body sets either column.           |
| Precondition            | `if_match_sha256: absent`: the write lands only where no live row holds the key.       |

A `memory.bulk_set` entry sets `grounding` and `evidence` on the row it writes, so neither column proves that a review accepted a row.

A refusal of the write leaves the draft pending and records no decision:

| The write is refused by                                                                                 | The review answers                                 |
| ------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| A row now under the key                                                                                 | 409 `PRECONDITION_FAILED`                          |
| A row under the key that is locked `read_only` and holds another text                                   | 423 `LOCKED`                                       |
| A blacklisted value                                                                                     | 422 `BLACKLISTED`                                  |
| A conflict with a pinned fact                                                                           | 409 `PINNED_CONFLICT`                              |
| A text that is, or contains, a value deleted from a namespace-wide row (`user_id` `-`) of the namespace | 422 `VALIDATION_FAILED` with `reason: "forgotten"` |
| A text that a row of the namespace already states                                                       | 409 `PRECONDITION_FAILED`                          |

Deleting an accepted fact makes its text a deleted value ([refusal](/docs/features/memory/conflicts-and-refusal#refusal-the-blacklist)), so a later draft that restates it is refused: reject that draft.

`memory.set` merges a text that a row already states into that row and stores nothing under the draft's key. The review's answer names that row's key when the reviewer may read it. The merge itself is recorded: it adds one `conflict.merge` count to `loom.memory_drops`, and under the `auto_reinforce` [conflict policy](/docs/features/memory/conflicts-and-refusal#namespace-conflict-policy), the default, it records one `evidence` usage event on that row when the reviewer may read it. A repeat of the promotion records both again.

None of these refusals keeps the lease that serializes the private candidate writes of the org, so the next review, redaction or erasure proceeds at once. A review that stopped after the write and before the decision row completes on a repeat: a live row of the curator that carries the draft's trace and content hash is taken as written, and the repeat records the decision without a second write. Rejecting a draft writes no memory.

### Redaction and erasure

Redacting a version of the fact a draft became blanks that draft's candidate: its `proposed_value`, `rationale`, `decision_reason` and `evidence` in every version. The candidate is the one the row's `source_trace` names, read by id, whatever key the fact holds by then. A blanked draft answers `learnings.review` as a missing candidate does. A namespace erasure deletes every row of the namespace in `loom.learnings_queue`, drafts of every status included, in its `learnings_queue.delete` step. A candidate row of a private kind is written under the lease that step takes, so a write and the deletion never overlap.

### Rolling back

A build without drafts lists a `curator_draft` candidate, with its text, to every viewer of the namespace. So `learnings.review` of a draft answers 503 `OVERLOADED` until every live replica has the migration that adds `evidence` ([rolling upgrades](/docs/architecture/rolling-upgrades), rule 104), and a rollback below this build is not supported while a `curator_draft` row of any status exists. Rejecting the drafts does not make a rollback safe: a rejection keeps the draft's text on its status row. Before a rollback:

1. Set `curator_mode` to `off` in every namespace, and let the reviews in flight end.
2. Delete the drafts, and check that none is left:

   ```sql
   ALTER TABLE loom.learnings_queue DELETE WHERE source_kind = 'curator_draft' SETTINGS mutations_sync = 2;
   SELECT count() FROM loom.learnings_queue WHERE source_kind = 'curator_draft';
   ```

3. Roll back.

A fact a draft became is an ordinary memory row. It stays, and the older build serves it as it serves any fact.

## Source entry points

- `server/memory/api/ops_curator.py` (`curator_status`), `server/memory/api/models_curator.py`: the operation and its wire models.
- `server/memory/app/curator_status.py` (`handle_curator_status`): the sections and the findings.
- `server/memory/store/curator.py`: the statements of the sections, and `SCAN_CAP`.
- `server/memory/store/reads.py` (`statuses_by_ids`): the current status of each id with a harm report.
- `server/memory/domain/curator.py`: the section names, the codes and their titles, the thresholds of the pin findings (`PIN_MIN_DAYS`, `PIN_WINDOW_DAYS`, `UNPIN_UNUSED_DAYS`) and the order pins over the budget are lifted in (`over_budget`).
- `server/memory/domain/context_layout.py`: the startup budgets, the token estimate (`tokens_of`) and the guide's item in the startup context (`guide_item`).
- `server/identity/app/namespace_guide.py` (`current_guide`): the guide the primer measures.
- `server/memory/app/code_link_reads.py` (`stale_links`): the stale link read.
- `server/memory/app/finding_evidence.py` (`revisions_for`): the live revision and served hash of each fact a list shows.
- `server/memory/app/curator_gates.py` (`GATES`, `setup`), `server/memory/domain/curator.py` (`SETUP`, `curator_cap`): the read of each prerequisite, the entries and the curator's share of the cap.
- `server/observability/budget.py` (`budget_snapshot`, `namespace_over_cap`): the cap and the spend the `budget` section and the `under_cap` entry read.
- `sdk/python/loom/cli_curator.py`: the commands.
- `frontend/src/views/admin/Curator.tsx`, `frontend/src/api/curator.ts`: the dashboard tab and its client. `frontend/src/views/Runs.tsx`: the Runs page the tab's **Pass history** opens.
- `frontend/src/components/CuratorSetup.tsx`: the unmet entries and the allowance, as the tab and the settings dialog word them. `frontend/src/flows/NamespaceCuratorControl.tsx`: the mode control of the settings dialog and its note. `frontend/src/views/admin/Proposals.tsx` (`ProposalOpinion`, `ProposalFacts`): the opinion on a proposal's row and in its review.
- `server/identity/app/namespace.py` (`registry_row`, `refuse_curator_mode`): the mode on the registry row and its refusals.
- `server/knowledge/app/sources.py` (`is_personal_namespace`): the rule for a person's own namespace.
- `server/memory/domain/curator.py` (`Mode`, `stored_mode`, `CURATOR_MODE_MIGRATION`): the modes, the read of a stored one, and the number of the migration that adds the column.
- `server/memory/workers/curator.py` (`run_pass`): the tick and the pass.
- `server/memory/app/curator_status.py` (`count_sections`): what a pass stores of each section.
- `server/memory/domain/curator.py` (`run_state`, `pass_facts`, `OVERDUE_SECONDS`) and `server/memory/app/curator_status.py` (`_running`): the state, the time the next pass is due and the last pass.
- `server/memory/store/curator.py` (`opted_in`, `pass_mode`): the namespaces a pass may read, and one namespace's mode.
- `server/tasks/app/run.py` (`open_pass`, `close_pass`, `pass_rows`) and `server/tasks/store/runs.py` (`pass_rows`): the pass row and the one statement that reads it.
- `server/tasks/domain/session_runs.py` (`PASS_VERSION_BASE`, `pass_run_id`): the version floor and the id.
- `server/memory/domain/curator.py` (`PASS_STEPS`, the `OUTCOME_` codes, `PASS_SECONDS`, `PASS_ABANDONED_SECONDS`, `TICK_START_SECONDS`): the steps, the outcomes and the bounds.
- `server/identity/app/restricted_access.py` (`note_worker_access`): the audit row of a pass over a restricted namespace.
- `server/memory/app/curator_opinions.py` (`run_step`, `current_opinions`, `hash_prefix`): the model step, the opinions `curator.status` serves and the keyed prefix.
- `server/memory/app/curator_questions.py` (`walk`, `draft_key`, `question_hash`): the question walk, the draft key and the hash a pass row names a question with.
- `server/knowledge/app/gap_drafts.py` (`eligibility`, `most_asked`): the check a gap draft and the walk share, and the gaps a walk decides.
- `server/knowledge/app/knowledge_search.py` (`shared_passages`), `server/knowledge/app/search.py` (`shared_only`): the search of the namespace's shared documents.
- `server/memory/domain/curator.py` (the `QUESTION_` codes, `QUESTION_TITLES`, `QUESTIONS_A_PASS`, `PASSAGES_A_QUESTION`, `DRAFT_KEY_PREFIX`): the codes of the walk with their titles, its bounds, and the key prefix of a drafted answer.
- `server/memory/domain/curator_prompts.py` (`PROMPT_VERSION`, `OPINION_SYSTEM`, `opinion_user`, `parse_opinion`): the prompt, the two sets of codes with their titles, and the parse of an answer.
- `server/memory/store/curator.py` (`opinion_rows`, `opinion_texts`): the proposals a model may be sent, and their cut text.
- `server/memory/domain/definitions.py` (`CURATOR_DRAFT_KIND`, `PRIVATE_CANDIDATE_KINDS`, `CURATOR_DRAFT_MIGRATION`): the kind of a draft, the candidates only an administrator reads, and the number of the migration that adds `evidence`.
- `server/memory/app/curator_draft_review.py` (`require_acceptance`, `fact`, `written`): who may accept a draft, the fact an acceptance writes, and the repeat that finds it written. `server/memory/app/learnings.py` (`handle_learnings_review`): the review.
- `server/memory/app/definition_review.py` (`redact_candidates`): the candidate a redaction blanks.
- `server/memory/domain/curator.py` (the `MODEL_` codes, `OPINIONS_A_PASS`, `OPINION_START_SECONDS`, `OPINION_LOOKBACK_ROWS`, `OPINION_TEXT_MAX`, `OPINION_CALL_SECONDS`, `OPINION_FAILURES_STOP`): the gates' codes and the bounds of the model step.

## Invariants

- The operation writes no row and calls no model.
- A statement reads one namespace, and no answer holds a value: a value is read only to hash it or to measure its length.
- A list is whole or absent: a section that could be cut answers `too_large`.
- A write named in `apply` that changes or re-writes a fact's content carries the content hash a read of the fact served when the report ran, and a fact with no such hash names no such write.
- The findings name Reinforce (`memory.pin`) and its reversal (`memory.unpin`) for a person to run. The operation performs neither.
- A pin candidate is a served fact: a proposal that was not accepted is never one.
- A scheduled pass performs no belief-revision verb: it writes its own run row, an audit row for a restricted namespace, the cost events of its model calls and of the walk's searches, and nothing else.
- A chat model is sent only the guide and pending proposals of the shared scope that are not `high`, each inside a fence, and only while the org's model switch is on, the namespace's mode is `assist` and the curator's share of the cap is unspent. Each of the three is read before every call, and one that cannot be read sends nothing.
- A pass sends the embedder only the text of each repeated question its walk searches with, which the gap build sent it before. The walk reads the org's model switch and the curator's share of the cap once, before its first question, and the mode before each question: one that cannot be read sends nothing.
- An opinion is a verdict and a reason from closed sets. It changes no advice, no count and no decision, and no code reads it but `curator.status`.
- An opinion is served only on the content the model read, and a stored opinion holds no value and no plain content hash.
- An opinion is readable by whoever can read the proposal: the pass row that stores it is a run every viewer of the namespace may read, and the Runs page shows its metadata. The **Proposals** tab shows it to administrators because `curator.status` is an ADMIN op.
- A draft is read by the namespace's administrators only, in every status, and answers as a missing candidate to everyone else.
- A draft becomes a fact only when a person who administers the namespace accepts the hash of the text they were served. The fact's `actor` is that reviewer, and its `source_class` is `derived`. The curator performs no belief-revision verb: the promotion is the reviewer's Expand.
- A draft's `evidence` holds a pointer and no text of the document it cites.
- A prerequisite is read by one function, which the worker, the model step, the question walk and `curator.status` all call, and one that cannot be read is not met.
- The question walk searches only documents written for no one user, and what it stores of a question is a code under a keyed hash: no question, no gap id, no draft key and no passage.
- A pass reads one namespace, and its row carries the identity `(org, namespace, loom-curator, -, -)`.
- A pass does not run when the fleet is not at the mode's migration, the classification cannot be read or the lease is held, and it keeps no count when the erasure ledger cannot be read.
- What is due and who runs it live in ClickHouse: the run ledger and the lease.
- The state is computed on read and stored nowhere, and it reads `ok` only when the switch is set and the fleet was read at the mode's migration.

## Related

- [Writing memory](/docs/features/memory/writing#facts-that-need-a-second-look)
- [Graded runs](/docs/features/runs#graded-runs): `run.grade` and `memories_used`.
- [Operations reference](/docs/reference/operations/curator#curatorstatus)
