Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
d9b523b
The assistant qualification set covers every Loom use case, with help…
zlareb1 Nov 10, 2026
3c6db56
The harness checks a help section by the server's exact rule and leav…
zlareb1 Nov 11, 2026
dc5f6fb
The connected-agents case checks the agent count, and a help answer's…
zlareb1 Nov 11, 2026
d7c2ee7
Rescore keeps the unknown-name rule, and the help labels need what th…
zlareb1 Nov 11, 2026
4267f0c
Every help label is held to right and wrong sample answers, and a hel…
zlareb1 Nov 11, 2026
dfcf154
The guide's table holds only what the current harness measures, and t…
zlareb1 Nov 11, 2026
b4e3ffe
The forbids no longer fail an answer that denies the wrong thing, and…
zlareb1 Nov 11, 2026
e3308b0
The no-docs case is held to the documented settings, every forbid is …
zlareb1 Nov 11, 2026
bd6a932
An earlier memory version is a valid citation only in a history case,…
zlareb1 Nov 11, 2026
6377308
Help labels accept the docs' answer in other words, and the guide's s…
zlareb1 Nov 11, 2026
8019694
The quickstart and erasure cases rely on their expected values alone,…
zlareb1 Nov 11, 2026
eb5360d
The quickstart, upgrade, setting and no-docs labels pass the common w…
zlareb1 Nov 11, 2026
bbd6372
The collection, task, run, erasure, tracker and graph labels pass the…
zlareb1 Nov 11, 2026
13a89ef
The deployed-assistant section states the current run's spend and nam…
zlareb1 Nov 11, 2026
348c6c4
The harness's citation patterns are tested equal to the server's, and…
zlareb1 Nov 11, 2026
f8b4430
A placeholder settings family documents only names of its own shape, …
zlareb1 Nov 11, 2026
142f22c
The erasure page contrasts erasure and memory.clear by what they reac…
zlareb1 Nov 11, 2026
a4269e5
The direct LibreChat agent is told to read Loom's docs for how-to que…
zlareb1 Nov 11, 2026
5cb6f0d
Every help forbid pattern is held to a wrong sample only it fails, an…
zlareb1 Nov 11, 2026
1fd1cf2
The quickstart label fails 'does not run without an API key', and the…
zlareb1 Nov 11, 2026
3ce7ae4
The quickstart and graph labels fail a denial in any determiner or tense
zlareb1 Nov 11, 2026
b72828b
The quickstart label needs the page's claim, and the working-memory a…
zlareb1 Nov 11, 2026
1a6527b
The tracker and assistant-health labels need the page's claim, the he…
zlareb1 Nov 11, 2026
16ca28d
Five help labels fail the contradiction that passed them, and the hel…
zlareb1 Nov 11, 2026
5679efa
The tracker and quickstart labels tie their claim to its subject, and…
zlareb1 Nov 11, 2026
64584d0
Every help case with a claim fails an answer that denies it
zlareb1 Nov 11, 2026
8e616b1
A settings family's bare prefix is not a documented setting, and a fa…
zlareb1 Nov 11, 2026
90d2c2d
The help path guard keeps only help.get's length limit, and the docum…
zlareb1 Nov 11, 2026
a05ac3e
A direct path that cannot cite stays out of the cited count on failur…
zlareb1 Nov 11, 2026
1c69ed9
A memory citation's read waits out a 429 and stops on a failure inste…
zlareb1 Nov 11, 2026
3619679
The quickstart case fails a yes-then-needs-a-key answer, and a test h…
zlareb1 Nov 11, 2026
b766179
A help abstention reads the agent's closing sentence, and the conflic…
zlareb1 Nov 11, 2026
c329136
A test holds every help forbid off the pages its case cites
zlareb1 Nov 11, 2026
9a87ad3
The assistant-health label no longer takes the problem's own name as …
zlareb1 Nov 11, 2026
d2e59af
A test holds every help label off its own question
zlareb1 Nov 11, 2026
d33d48b
A server with no docs stops the help checks instead of failing every …
zlareb1 Nov 11, 2026
14c63e7
A run with help cases checks for docs before its first model answer, …
zlareb1 Nov 11, 2026
1d36524
require_docs owns the no-docs rule and runs before every run
zlareb1 Nov 11, 2026
217f0d7
The docs probe reads with the scorer's token and stops on any failure
zlareb1 Nov 11, 2026
7663b4c
The guide says how the direct LibreChat path counts a quoted example …
zlareb1 Nov 11, 2026
80a861f
The direct LibreChat agent names the help tools as LibreChat lists them
zlareb1 Nov 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 95 additions & 13 deletions docs/features/integrations/librechat.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,16 @@ orgs, mints a token per person, revokes one, and scores each answer:
inspect or tune case contains the labeled value; a refusal case says access was refused
or failed; an abstention case says the fact is not stored. The forbidden text is the
other org's canary for the cross-tenant case, the person's own answer (`friday`) for the
revoked-token case, and a stale or wrong value for some others.
- **citation valid:** every memory key the answer names exists in the person's namespace,
and a version written next to it is the row's current version.
revoked-token case, and a stale or wrong value for some others. Through Loom's assistant
route, an answer of any kind that names an op or setting the build neither serves nor
documents (`unknown_names`) is wrong.
- **citation valid:** every memory key the answer cites exists in the person's namespace,
and a version written next to it is the row's current version, or, for a question about
the key's history (`cite_history`), one of its earlier versions. Through Loom's assistant
route a memory citation is `[memory:<key>@v<version>]`; otherwise it is any key-shaped
text outside a `[help:]` citation, so on that path a help answer that quotes the docs'
example key counts it as an invalid memory citation; the help figures below come from
the assistant route.
- **tool calls:** the `mcp` rows Loom ledgered under the person's subject during the answer.
- **latency and time to first token:** end to end, and to the first streamed delta, which
for the harness's own agent (`setup`) is the model's one-line preamble before its first
Expand All @@ -153,9 +160,10 @@ orgs, mints a token per person, revokes one, and scores each answer:
| Tool calls per question | at most 3 | at most 3, 16 in all |
| Model cost per answer, every prompt token at list price | at most $0.05 | mean $0.029; max $0.064 (`abstain-cfo`, three searches) misses the target |

The LibreChat numbers are from one run of the 14 memory, inventory, inspect, tune, refusal
and abstention cases, scored against the current `cases.json` with `qualify.py rescore`;
the direct-path numbers are from a later run of that path alone
The LibreChat numbers are from one run of the 14 memory, inventory, inspect, tune and
refusal cases and memory abstentions (`abstain-wifi`, `abstain-cfo`), other than
`data-history` and `data-connected-agents`, scored against the current `cases.json` with
`qualify.py rescore`; the direct-path numbers are from a later run of that path alone
(`qualify.py run --native-only`) on a fresh seed. The document cases below were run
separately.

Expand Down Expand Up @@ -212,6 +220,79 @@ breadcrumbs reach the hits, not that retrieval holds up at scale. No citation na
revision: the hits of the measured build carry none, and the model read `knowledge.get`
only on the two unanswerable questions.

### Use cases

The case set holds at least one question per use case of Loom: what a namespace holds and
how it is used (the data tools), and how Loom works and how to do something in it (the
help tools, which read the documentation the server ships). Each help case labels the
values its answer must state and the pages that hold them, with a right and a wrong sample
answer the label is tested against. Its answer is scored correct when it states them and
does not deny them (each case's `forbid`), under the unknown-name rule above. For the case
with no answer in the docs, the answer is correct when it says so and writes no `LOOM_`
name that no docs page writes, as a name or as a member of a family a page writes with
placeholders; an answer that names an invented setting only to deny it is scored wrong.
The labels are patterns over the answer's text, so they err both ways: an answer that
states the labeled values beside a wrong claim about them can pass, and a right answer
worded otherwise can fail. A correct score means the answer has what the page says. A help
citation is valid when its page is in the server's documentation (`help.get`) and its
section is one of the page's own, by the rule the server's own check uses. The cases go
through Loom's assistant route (`qualify.py setup-bridge`), so each answer also carries
the question's asker line and the bridge's own citation check.

| Use case | Cases | Correct | No invalid citation |
| --------------------------------- | ----- | -------- | ------------------- |
| U1 Look up a stored fact | 7 | 7 of 7 | 7 of 7 |
| U2 What a document says | 10 | 9 of 10 | 10 of 10 |
| U3 What the namespace holds | 4 | 4 of 4 | 4 of 4 |
| U4 Usage counts and trends | 3 | 3 of 3 | 3 of 3 |
| U5 Cost and spend | 1 | 1 of 1 | 1 of 1 |
| U6 Write memory better | 4 | 4 of 4 | 2 of 4 |
| U7 History of a fact | 2 | 2 of 2 | 2 of 2 |
| U8 Entity graph | 1 | 1 of 1 | 1 of 1 |
| U9 Code index | 1 | 1 of 1 | 1 of 1 |
| U10 Conflicts and refusal | 1 | 1 of 1 | 1 of 1 |
| U11 Sharing and collections | 1 | 1 of 1 | 1 of 1 |
| U12 My role and who can change it | 1 | 1 of 1 | 1 of 1 |
| U13 Connect a coding agent | 1 | 1 of 1 | 1 of 1 |
| U14 Tokens | 1 | 1 of 1 | 1 of 1 |
| U15 Models and keys | 1 | 1 of 1 | 0 of 1 |
| U16 Health problems | 1 | 1 of 1 | 1 of 1 |
| U17 Why search returned this | 1 | 1 of 1 | 1 of 1 |
| U18 Runs | 1 | 1 of 1 | 1 of 1 |
| U19 Tasks between agents | 1 | 1 of 1 | 1 of 1 |
| U20 Tracker | 1 | 1 of 1 | 1 of 1 |
| U21 Retention and erasure | 1 | 1 of 1 | 1 of 1 |
| U22 Extraction from transcripts | 1 | 1 of 1 | 1 of 1 |
| U23 Working memory | 1 | 1 of 1 | 1 of 1 |
| U24 Integrations | 1 | 1 of 1 | 1 of 1 |
| U25 What a setting does | 1 | 1 of 1 | 1 of 1 |
| U26 Getting started | 1 | 1 of 1 | 1 of 1 |
| U27 Operating a deployment | 1 | 1 of 1 | 1 of 1 |
| U28 Refusals and abstentions | 5 | 5 of 5 | 5 of 5 |
| All | 56 | 55 of 56 | 53 of 56 |

Measured on v0.8.8 with `claude-haiku-4-5`, on a server running fake embeddings and a fake
LLM for Loom's own model jobs. A full run of the 56 cases costs about $3 at list price
counting every prompt token, a mean of $0.053 per answer. The figures take 14 cases (three
memory, nine document and two help cases) from one run and the other 42 from a full run,
on agent definitions that differ from `integrations/librechat/agent.yaml` in one sentence
on the asker's role, and for the full run also in the wording of the first step's
searches. Twelve answers cite no memory, document or help page: two refusals, three
abstentions, three SQL analyses (which cite their statement instead) and four counts,
which come from tallies with no row to cite; every other answer cites one. The misses:

- `doc-cache-entries` asks for a value one of the namespace's documents holds
(`config/cache.toml`); the answer searches Loom's own documentation instead and does not
find it: the question and Loom's settings share their words.
- Two recommendation answers cite `mentor.guide`, Loom's writing guide, as a docs page,
which the harness marks invalid (no such page): the guide has no citation form.
- One answer names a section the page does not have.

Answers vary from run to run at this model. A question about the person's own data that
shares words with Loom's docs (a rate limit, webhook retries) is sometimes answered from
the docs; the agent's instructions ask for the memory, document and help searches together
in its first step for that reason.

## The deployed assistant

Loom can also run LibreChat itself, headless, with one agent it seeds: the shape the
Expand Down Expand Up @@ -289,8 +370,9 @@ The qualification runs the same cases through Loom's assistant route
(`POST /v1/assistant/chat/completions`), each with the person's own token, so Loom
delegates each answer's token and runs the agent it seeded. `setup-bridge` grants each
person `viewer` on their namespace, since an answer's token is delegated from a live
grant. A run spends about a dollar from each namespace's daily model cost cap, and the
assistant may spend half of it, so raise the cap for the run
grant. A full run spends about $3, most of it from `acme-handbook`'s daily model cost cap
(45 of the 56 cases ask there), and the assistant may spend half of a cap, so raise the cap
for the run
(`LOOM_DEFAULT_DAILY_COST_CAP_USD=20` on the server, or the namespace's
`daily_cost_cap_usd`); otherwise the last cases are refused with `RATE_LIMITED`:

Expand All @@ -302,11 +384,11 @@ python $Q revoke
python $Q run --cancel-probe
```

Beside every earlier case it runs three analysis cases (`insights.query` over the
namespace, one asking for every org's counts, whose answer must name no other tenant's
rows) and two recommendation cases over `acme-notes`, a namespace written badly on
purpose (hash-named keys, a JSON value encoded twice, a 6.5 KB runbook stored as a
memory).
Among its cases are three analysis cases (`insights.query` over the namespace, one asking
for every org's counts, whose answer must name no other tenant's rows) and two
recommendation cases over `acme-notes`, a namespace written badly on purpose (hash-named
keys, a JSON value encoded twice, a 6.5 KB runbook stored as a memory). The table measures
the data cases other than `data-history` and `data-connected-agents`.

| Measured on v0.8.8, 28 cases, `claude-haiku-4-5`, fake embedder | The deployed agent, asked directly |
| ----------------------------------------------------------------- | --------------------------------------------------------------- |
Expand Down
6 changes: 5 additions & 1 deletion docs/features/memory/retention-and-erasure.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ wins.
## Erasure

`erasure.request` erases one scope everywhere Loom keeps it, and returns once it can show
nothing in scope is left.
nothing in scope is left. To erase everything one user id holds across the org, an org
admin requests the `user_id` scope, which erases the user's rows in every namespace of the
org (`purge=true` deletes them rather than tombstoning them; what it leaves is listed
below). `memory.clear` tombstones one agent's or user's memories in one namespace only
([delete is not erase](#delete-is-not-erase)).

| `scope_type` | `scope_value` | Who may request it |
| ---------------- | --------------------------------------------------------------------------- | -------------------------------------------- |
Expand Down
Loading
Loading