Skip to content

Commit 2abfae3

Browse files
zlareb1claude
andauthored
The assistant qualification set covers every Loom use case, with help cases scored by the server's citation rule (#513)
* The assistant qualification set covers every Loom use case, with help cases scored by the server's citation rule Each case names its use case; help cases list the values the answer must state and the pages holding them. qualify.py checks a help citation as the server does, accepts an earlier version of a memory key, scores unknown_names, and reports per use case. The LibreChat page carries the before and after table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The harness checks a help section by the server's exact rule and leaves the unscored direct path out of its totals A help breadcrumb keeps its case, as the server's section_path does. The summary counts a help abstention with the abstentions; the direct path of a question the docs leave open is not scored. Use cases are listed in number order, with the guide's labels. Tests cover the help citation check, the memory-citation filters, help abstention and unknown-name scoring, and the report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The connected-agents case checks the agent count, and a help answer's abstention is read with the documentation patterns namespace.inventory always returns four populations, so the direct path now reads the agents' total. Every help case reads abstention with the documentation phrases. The tracker case no longer accepts a bare 'live'. The guide's column says what it counts (no invalid citation) and names the 14 re-probed cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * Rescore keeps the unknown-name rule, and the help labels need what the docs say rescore scores with score_answer and takes the cases' current use-case labels. A history read that is rate-limited waits instead of marking a citation invalid. The setting and quickstart labels need the page's own words; a question the docs leave open forbids telling the person to set a setting, not naming one to deny it. The history case's direct path reads the key's versions. Rescored, the before run answers 9 of 26 help questions, not 10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * Every help label is held to right and wrong sample answers, and a help citation in a document answer is checked only as help Each help case carries samples; a test scores each label against them, and the labels that passed a wrong answer or restated the question now need what the page states. The document citation parse no longer reads [help:] citations as documents. The guide's figures follow: before 8 of 26, after 53 of 56 with no invalid citation, and the doc-cache-entries miss is described as it happened. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The guide's table holds only what the current harness measures, and the cost-cap and no-docs labels catch near misses The before column describes a build the tree does not have, so it moves to the PR; the guide names the agent definitions the runs used. The cost cap needs 1.0, not 1.50; the no-docs case forbids any suggested setting. A help citation whose section is only separators cites the page, as the server reads it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The forbids no longer fail an answer that denies the wrong thing, and rescore reads the saved run's path The role, no-docs and erasure forbids catch the wrong claim, not a denial of it, with right samples that deny it; the docs-abstention phrases cover 'no setting' and 'don't list'. A run saves whether it went through the bridge, and rescore reads memory citations by that. The guide's storage table is restored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The no-docs case is held to the documented settings, every forbid is reached by a wrong sample, and bridge citations are read whole An answer to the question the docs leave open is correct when it abstains and writes no LOOM_ name a docs page lacks, the docs half of the server's unknown-name check, in place of verb patterns; the bridge's unknown names count for it too. Each help forbid has a wrong sample that passes the label and fails only on it. Through the bridge a memory citation is parsed in the server's form, and memory citations are not read as documents. Rescore needs the saved run's path. The upgrade label ties booting to applying the migrations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * An earlier memory version is a valid citation only in a history case, and the op-naming help cases fail a wrong claim about their op check_citations takes history_ok from the case's cite_history; elsewhere an earlier version is stale again, as the guide says. Six help cases gain a wrong sample that names the op and denies it, with a forbid that fails it. Code citations are not read as documents; the documented settings skip development/, as the help index does; the history and get reads share one body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * Help labels accept the docs' answer in other words, and the guide's scoring bullets match the scorer The upgrade, cost-cap, setting and no-docs labels pass the docs' own and paraphrased wording, each held by a right sample; the history and erasure forbids fail only the wrong claim. The connected-agents case is a namespace-inventory question (U3). The guide states the unknown-name rule for every case and the bridge's memory citation form. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The quickstart and erasure cases rely on their expected values alone, and the no-docs and tracker labels read more of the docs' answer Their forbids failed right answers that contrasted the wrong op or added a caveat; the expected op and role decide those cases now, and the guide says a label shows the answer has what the page says. The docs-abstention phrases read 'doesn't have a setting' and 'there is no ... setting' but not a how-to's 'no other setting'. The tracker label reads 'doesn't store' and 'queries it live'. The revoke-token sample uses the CLI's --jti. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The quickstart, upgrade, setting and no-docs labels pass the common ways of saying the docs' answer "You don't need an API key", "migrations run automatically at boot", a setting answer without its timing, and "the dashboard has no theme setting" now score correct, each held by a right sample. The documented settings are read as UTF-8, as the help index reads them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The collection, task, run, erasure, tracker and graph labels pass the docs' other wordings, and the guide says labels err both ways The labels accept the sharing page's definition of a collection, the SDK forms of task and run calls, 'organization admin' and 'reads your tracker live'; the graph forbid fails only a claim that entities are not extracted. The guide says a right answer worded otherwise can fail, and the use-case report's unknown-name column has a test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The deployed-assistant section states the current run's spend and names its 28-case table, and native-only takes the use-case labels A full run spends about $3, mostly from acme-handbook's cap; the 28-case table is the data cases it measures. The upgrade and assistant-health labels pass their pages' own wording. --native-only sets each row's use case from cases.json, as rescore does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The harness's citation patterns are tested equal to the server's, and a documented settings family counts as documented A test pins MEMORY_CITE_RE, CODE_CITE_RE and HELP_CITE_RE to the server's patterns, and one covers an earlier version cited through the bridge in a history case. A LOOM_ family the docs write with a placeholder documents its members. The deployed-assistant table names the 28 data cases it measured. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * A placeholder settings family documents only names of its own shape, and a help citation help.get would refuse is marked, not fatal LOOM_RETENTION_<TABLE>_DAYS takes LOOM_RETENTION_EVENTS_DAYS, not LOOM_RETENTION_THEME; the docs are read once for both settings checks. An empty or over-long help path is no such page without a call. The working-memory, quickstart, revoke-token, setting and models-keys labels fail a denial of the documented answer, each held by a wrong sample. A test holds every case to a use case and every cited page to a file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The erasure page contrasts erasure and memory.clear by what they reach, and three help labels take their pages' own wording Erasure of a user_id reaches every table and namespace of the org, and purge=true deletes; memory.clear tombstones one namespace's memories. The add-repo label takes the operator path (LOOM_CODE_REPOS_JSON, loom code backfill), the setting label 'the definition's model', and the quickstart label fails a claim that it needs a key. The deployed-assistant table header names its 28 cases plainly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The direct LibreChat agent is told to read Loom's docs for how-to questions, and the no-docs direct path stays unscored on a failed read The setup agent's instructions name the help tools and the [help:] form. A non-200 help.search on the no-docs question is not scored. The collection and upgrade labels take their pages' wording ('a grant on one', 'applies pending files'); a cited help page under development/ fails the case test; the guide's 14-case table and no-docs rule state what the code checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * Every help forbid pattern is held to a wrong sample only it fails, and the direct agent abstains in the docs scorer's words The forbid test checks each pattern; patterns no wrong sample needs are removed. The setup agent names help.search and help.get and, for a question about Loom, says the documentation does not cover it. The revoke-token label takes the dashboard path. A test reads the bridge's loom.citations event through ask_assistant. The guide's edited paragraphs are rewrapped, and its deployed-assistant table keeps its header, with the measured cases named above it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The quickstart label fails 'does not run without an API key', and the direct agent names the help tools as MCP lists them The quickstart forbid takes either word order of a run that needs a key; the setup agent's instructions say help_search and help_get, rewrapped to the file's width. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The quickstart and graph labels fail a denial in any determiner or tense The quickstart forbid takes 'without the/your key'; the graph forbid takes 'never extracts'. Each has a wrong sample in that wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The quickstart label needs the page's claim, and the working-memory and op cases fail a denial of what the page says help-quickstart requires 'needs no API key' or 'doesn't need an API key', so a 'cannot … without a key' answer fails whatever its verb; its forbids are no longer needed. Working memory fails 'expires after'; history, upload, extraction, add-repo and tasks fail 'there is no <op>'. Each new rule has a wrong sample only it fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The tracker and assistant-health labels need the page's claim, the help direct path counts its expected page, and the erasure sentence says what it reaches The tracker label ties 'doesn't copy' to the data and the health label to a failed setup, each with the wrong answer that passed. The help direct path's cited_expected is its top hit, so the summary compares like with like. A user_id erasure erases the user's rows in every namespace, with what it leaves listed below; the guide's memory-citation rule names the help strip. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * Five help labels fail the contradiction that passed them, and the help path guard measures the path as written Quickstart needs 'no API key is needed'; tracker fails 'yes … copies'; assistant health needs a failed setup, not any 'retry'; upgrade's 'before' is 'before it reports ready'; erase-user fails a denial of erasure.request. Each has the passing answer as a wrong sample. The 300-character guard reads the cited path before the docs/ strip, as help.get validates it, and native_score sets cited_expected where the direct path can cite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The tracker and quickstart labels tie their claim to its subject, and help.get gets the cited path as written The tracker label needs the tracker's data not copied and fails a yes-then-copy, import, sync or mirror claim; the quickstart label needs the quickstart, you or it as the one needing no key. help.get strips docs/ itself, once, as the bridge does, so the harness sends the path unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * Every help case with a claim fails an answer that denies it Upgrade, cost cap, setting, search vs ask, key shape, conflicts, collections, Claude Code, assistant health, ranking and Langfuse each gain a forbid on the denial of their page's claim, with a wrong sample that states the labeled values and only that forbid fails. The ranking label no longer takes search_trace, which scores the vector leg alone. The tracker forbid takes 'copies your …' but not 'does not copy your …'. The documented-settings docstring says how it differs from the server's rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * A settings family's bare prefix is not a documented setting, and a failed direct read cites no labeled source SETTING_RE reads whole names only, so LOOM_RETENTION_* documents its members and not LOOM_RETENTION; a family may be written with <PLACEHOLDER> or *. A failed direct read sets cited_expected False for a case that labels a source. The guide says a help answer is wrong when it denies the labeled values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The help path guard keeps only help.get's length limit, and the document-report test checks the current summary label help.get answers found:false to an empty path after the docs/ strip, so only a path past 300 characters (a 422) is marked without a call; its test uses one. The document-report assertion names 'expected source cited'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * A direct path that cannot cite stays out of the cited count on failure too, and memory.clear is described by what it clears A failed read counts a labeled source as not cited only where the direct path could cite it (memory.search, help.search); data-history is left out either way. The erasure paragraph says memory.clear tombstones one agent's or user's memories in one namespace. The help citation check uses the cited path for both the length guard and help.get, and strips docs/ only at the page comparison. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * A memory citation's read waits out a 429 and stops on a failure instead of marking the key invalid memory.get goes through scorer_read like every other scorer read: found:false marks the key invalid, and a read that fails says nothing about the answer. A settings family's * placeholder follows an underscore, so Markdown bold around a name is not one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The quickstart case fails a yes-then-needs-a-key answer, and a test holds every help case with a claim to a forbid help-quickstart was the only help case with a claim and no forbid; it now fails 'Yes: … requires an API key', with that answer as its wrong sample. A parametrized test requires a forbid on every help case except the question the docs leave open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * A help abstention reads the agent's closing sentence, and the conflict forbid spares the page's own allowlist line HELP_ABSTAIN_PATTERNS takes 'Nothing stored in Loom', which agent.yaml ends an abstention with after its three searches. The conflict forbid fails a denial that the write is flagged, not the page's 'a pair on the allowlist is not flagged'; both have right samples. The 14-case sentence names data cases, and a duplicated comment is cut. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * A test holds every help forbid off the pages its case cites An answer that quotes its cited page must never trip the case's forbid; the test reads each cited page against each pattern. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The assistant-health label no longer takes the problem's own name as a failure, and the guide counts the uncited answers by kind A fail word inside assistant_service_failing satisfied the label; the failure must now be its own word, with wrong samples that write the name. The twelve answers with no memory, document or help citation are two refusals, three abstentions, three SQL analyses (which cite their statement) and four counts; the mentor.guide miss is the harness marking the page invalid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * A test holds every help label off its own question No expected pattern may match the question's text, so an answer that only repeats a name the question gives (a setting, a health problem) states nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * A server with no docs stops the help checks instead of failing every answer, and the first table's 14 cases are named help.get and help.search answer available:false on a server with no docs; the harness stops there, as the bridge reports the check as not run, rather than mark every help citation invalid and every direct path wrong. The guide names the two memory abstentions among the 14 cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * A run with help cases checks for docs before its first model answer, and the assistant-health label takes the architecture page's wording require_docs asks help.search once and stops on available:false, so no answer is paid for and then discarded. The health label accepts LibreChat refusing the sign-in and a sealed value neither secret opens, as architecture/assistant.md words the failures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * require_docs owns the no-docs rule and runs before every run Any answer may cite a help page, so the docs check runs before a run of any cases, and native-only calls it too; baseline no longer repeats it. use_case is read directly where every case carries one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The docs probe reads with the scorer's token and stops on any failure require_docs goes through scorer_read with the scorer token, so a revoked first person or a failed read stops the run instead of letting a no-docs run go on; it sends only help.search's own fields. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The guide says how the direct LibreChat path counts a quoted example key, and two test names match what they hold Outside the assistant route any key-shaped text is a memory citation, so a help answer quoting the docs' example key counts it invalid there; the help figures come from the assistant route. The docs-probe test is named for every run, and a comment says 'straight through LibreChat' rather than 'direct path'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> * The direct LibreChat agent names the help tools as LibreChat lists them Through LibreChat the help tools are loom_help_search_mcp_loom and loom_help_get_mcp_loom, as agent.yaml says of every Loom tool; the setup instructions now use those names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> --------- Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 719df6f commit 2abfae3

6 files changed

Lines changed: 2005 additions & 102 deletions

File tree

‎docs/features/integrations/librechat.md‎

Lines changed: 95 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,16 @@ orgs, mints a token per person, revokes one, and scores each answer:
134134
inspect or tune case contains the labeled value; a refusal case says access was refused
135135
or failed; an abstention case says the fact is not stored. The forbidden text is the
136136
other org's canary for the cross-tenant case, the person's own answer (`friday`) for the
137-
revoked-token case, and a stale or wrong value for some others.
138-
- **citation valid:** every memory key the answer names exists in the person's namespace,
139-
and a version written next to it is the row's current version.
137+
revoked-token case, and a stale or wrong value for some others. Through Loom's assistant
138+
route, an answer of any kind that names an op or setting the build neither serves nor
139+
documents (`unknown_names`) is wrong.
140+
- **citation valid:** every memory key the answer cites exists in the person's namespace,
141+
and a version written next to it is the row's current version, or, for a question about
142+
the key's history (`cite_history`), one of its earlier versions. Through Loom's assistant
143+
route a memory citation is `[memory:<key>@v<version>]`; otherwise it is any key-shaped
144+
text outside a `[help:]` citation, so on that path a help answer that quotes the docs'
145+
example key counts it as an invalid memory citation; the help figures below come from
146+
the assistant route.
140147
- **tool calls:** the `mcp` rows Loom ledgered under the person's subject during the answer.
141148
- **latency and time to first token:** end to end, and to the first streamed delta, which
142149
for the harness's own agent (`setup`) is the model's one-line preamble before its first
@@ -153,9 +160,10 @@ orgs, mints a token per person, revokes one, and scores each answer:
153160
| Tool calls per question | at most 3 | at most 3, 16 in all |
154161
| 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 |
155162

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

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

223+
### Use cases
224+
225+
The case set holds at least one question per use case of Loom: what a namespace holds and
226+
how it is used (the data tools), and how Loom works and how to do something in it (the
227+
help tools, which read the documentation the server ships). Each help case labels the
228+
values its answer must state and the pages that hold them, with a right and a wrong sample
229+
answer the label is tested against. Its answer is scored correct when it states them and
230+
does not deny them (each case's `forbid`), under the unknown-name rule above. For the case
231+
with no answer in the docs, the answer is correct when it says so and writes no `LOOM_`
232+
name that no docs page writes, as a name or as a member of a family a page writes with
233+
placeholders; an answer that names an invented setting only to deny it is scored wrong.
234+
The labels are patterns over the answer's text, so they err both ways: an answer that
235+
states the labeled values beside a wrong claim about them can pass, and a right answer
236+
worded otherwise can fail. A correct score means the answer has what the page says. A help
237+
citation is valid when its page is in the server's documentation (`help.get`) and its
238+
section is one of the page's own, by the rule the server's own check uses. The cases go
239+
through Loom's assistant route (`qualify.py setup-bridge`), so each answer also carries
240+
the question's asker line and the bridge's own citation check.
241+
242+
| Use case | Cases | Correct | No invalid citation |
243+
| --------------------------------- | ----- | -------- | ------------------- |
244+
| U1 Look up a stored fact | 7 | 7 of 7 | 7 of 7 |
245+
| U2 What a document says | 10 | 9 of 10 | 10 of 10 |
246+
| U3 What the namespace holds | 4 | 4 of 4 | 4 of 4 |
247+
| U4 Usage counts and trends | 3 | 3 of 3 | 3 of 3 |
248+
| U5 Cost and spend | 1 | 1 of 1 | 1 of 1 |
249+
| U6 Write memory better | 4 | 4 of 4 | 2 of 4 |
250+
| U7 History of a fact | 2 | 2 of 2 | 2 of 2 |
251+
| U8 Entity graph | 1 | 1 of 1 | 1 of 1 |
252+
| U9 Code index | 1 | 1 of 1 | 1 of 1 |
253+
| U10 Conflicts and refusal | 1 | 1 of 1 | 1 of 1 |
254+
| U11 Sharing and collections | 1 | 1 of 1 | 1 of 1 |
255+
| U12 My role and who can change it | 1 | 1 of 1 | 1 of 1 |
256+
| U13 Connect a coding agent | 1 | 1 of 1 | 1 of 1 |
257+
| U14 Tokens | 1 | 1 of 1 | 1 of 1 |
258+
| U15 Models and keys | 1 | 1 of 1 | 0 of 1 |
259+
| U16 Health problems | 1 | 1 of 1 | 1 of 1 |
260+
| U17 Why search returned this | 1 | 1 of 1 | 1 of 1 |
261+
| U18 Runs | 1 | 1 of 1 | 1 of 1 |
262+
| U19 Tasks between agents | 1 | 1 of 1 | 1 of 1 |
263+
| U20 Tracker | 1 | 1 of 1 | 1 of 1 |
264+
| U21 Retention and erasure | 1 | 1 of 1 | 1 of 1 |
265+
| U22 Extraction from transcripts | 1 | 1 of 1 | 1 of 1 |
266+
| U23 Working memory | 1 | 1 of 1 | 1 of 1 |
267+
| U24 Integrations | 1 | 1 of 1 | 1 of 1 |
268+
| U25 What a setting does | 1 | 1 of 1 | 1 of 1 |
269+
| U26 Getting started | 1 | 1 of 1 | 1 of 1 |
270+
| U27 Operating a deployment | 1 | 1 of 1 | 1 of 1 |
271+
| U28 Refusals and abstentions | 5 | 5 of 5 | 5 of 5 |
272+
| All | 56 | 55 of 56 | 53 of 56 |
273+
274+
Measured on v0.8.8 with `claude-haiku-4-5`, on a server running fake embeddings and a fake
275+
LLM for Loom's own model jobs. A full run of the 56 cases costs about $3 at list price
276+
counting every prompt token, a mean of $0.053 per answer. The figures take 14 cases (three
277+
memory, nine document and two help cases) from one run and the other 42 from a full run,
278+
on agent definitions that differ from `integrations/librechat/agent.yaml` in one sentence
279+
on the asker's role, and for the full run also in the wording of the first step's
280+
searches. Twelve answers cite no memory, document or help page: two refusals, three
281+
abstentions, three SQL analyses (which cite their statement instead) and four counts,
282+
which come from tallies with no row to cite; every other answer cites one. The misses:
283+
284+
- `doc-cache-entries` asks for a value one of the namespace's documents holds
285+
(`config/cache.toml`); the answer searches Loom's own documentation instead and does not
286+
find it: the question and Loom's settings share their words.
287+
- Two recommendation answers cite `mentor.guide`, Loom's writing guide, as a docs page,
288+
which the harness marks invalid (no such page): the guide has no citation form.
289+
- One answer names a section the page does not have.
290+
291+
Answers vary from run to run at this model. A question about the person's own data that
292+
shares words with Loom's docs (a rate limit, webhook retries) is sometimes answered from
293+
the docs; the agent's instructions ask for the memory, document and help searches together
294+
in its first step for that reason.
295+
215296
## The deployed assistant
216297

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

@@ -302,11 +384,11 @@ python $Q revoke
302384
python $Q run --cancel-probe
303385
```
304386

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

311393
| Measured on v0.8.8, 28 cases, `claude-haiku-4-5`, fake embedder | The deployed agent, asked directly |
312394
| ----------------------------------------------------------------- | --------------------------------------------------------------- |

‎docs/features/memory/retention-and-erasure.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ wins.
103103
## Erasure
104104

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

108112
| `scope_type` | `scope_value` | Who may request it |
109113
| ---------------- | --------------------------------------------------------------------------- | -------------------------------------------- |

0 commit comments

Comments
 (0)