Repository navigation
Commit 2abfae3
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
- memory
- integrations/librechat/qualification
- server/operations
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
139 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
140 | 147 | | |
141 | 148 | | |
142 | 149 | | |
| |||
153 | 160 | | |
154 | 161 | | |
155 | 162 | | |
156 | | - | |
157 | | - | |
158 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
159 | 167 | | |
160 | 168 | | |
161 | 169 | | |
| |||
212 | 220 | | |
213 | 221 | | |
214 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
215 | 296 | | |
216 | 297 | | |
217 | 298 | | |
| |||
289 | 370 | | |
290 | 371 | | |
291 | 372 | | |
292 | | - | |
293 | | - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
294 | 376 | | |
295 | 377 | | |
296 | 378 | | |
| |||
302 | 384 | | |
303 | 385 | | |
304 | 386 | | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
310 | 392 | | |
311 | 393 | | |
312 | 394 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| |||
0 commit comments