Repository navigation
test(search): verify discovery in published CLI binaries - #12
Merged
Merged
Conversation
This was referenced Oct 10, 2026
leemour
added a commit
that referenced
this pull request
Dec 3, 2026
…gent query (#482) ## Task Results page for [cli-core #3667](WireCatLabs/cli-core#3667): the ranking faults found in the wcat-vs-Mem0 analysis of the unseen questions. ## Why The PR must show that its two fixes (a month in the question as a weak hint, mail found by its recipient's name) do not lower the totals, the date questions included. The page also records why the third fault (a short message, Mem0 #1, wcat #12) is left unfixed. ## What - `performance/search/ranking-faults/`: README, plus the scripts that produced the numbers (`queries.py`, `replay.py`, `score.py`, `probe.py`, `ww`). - Links from `performance/search/README.md` (table and summary) and `PROCESS.md`. Headline: every agent query of the 31 questions (593 at 1x, 482 at 10x). The key record in the top 5: 415 → 422 and 263 → 270. At #1: 245 → 259 and 181 → 190. No question got worse. Synthetic stores only. ## Testing `markdownlint-cli2` and `pnpm docs:check` pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
leemour
added a commit
that referenced
this pull request
Dec 4, 2026
…ed (#485) ## Why Dev question u01 at 10x: the answer message ranks #12 on Mem0's query with the person's surname and #1 without it. Each message is embedded under its sender, so a full name in the query pulls up that person's own messages. The last page did not test a fix because it could hurt questions about what that person said. ## What New page performance/search/full-name-query with the merge rule written before the replay (GATE.md), the experiment hook diff, the sandbox and the gate script. Two variants, replayed on every agent query (31 questions and the dev set, 1x and 10x, wcat 3.10.18 with cli-core main): | Set | Baseline top 5 / #1 | V1 surname out | V2 name out | |---|---:|---:|---:| | 31 questions 1x (593) | 435 / 273 | 433 / 270 | 425 / 261 | | 31 questions 10x (482) | 268 / 196 | 266 / 194 | 261 / 191 | | dev 1x (69) | 28 / 13 | 27 / 13 | 23 / 12 | | dev 10x (60) | 29 / 22 | 31 / 24 | 31 / 22 | u01 gains, but questions whose answer is the named person's own messages lose (k07, k30, u04). Both variants fail the rule. No cli-core change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
leemour
added a commit
that referenced
this pull request
Dec 4, 2026
## Task Test one more fix for dev question u01: a full name in the query pulls up that person's own messages, so a message that only mentions them ranks #12. ## Why The last round ([full-name-query](https://github.com/WireCatLabs/cli-testing/blob/main/performance/search/full-name-query/README.md)) took the name out of the meaning query. It fixed u01 but lost questions whose answer is the person's own messages. The idea left: score each hit against both texts, with the name and without it, and keep the better score. ## What - `performance/search/full-name-dual-score/GATE.md`: the merge rule, committed before any replay (86024c3). Clauses 1 to 4 are the last round's word for word, plus clause 5: the named-sender subset does not fall. - `README.md`: setup, results, decision. Plus the variant diff, `ww`, `run-all.sh` and `gate.py`. - Index lines in `performance/search/README.md` and `PROCESS.md`. Headline: almost nothing moves. 1x 435 / 273 / 0.479 → 435 / 273 / 0.478, 10x 268 / 196 / 0.390 → 268 / 197 / 0.393, dev 29 and 31 in the top 5 unchanged. u01 stays #12: with the name the top cosines are 0.653, 0.641, 0.617 and the key is #8 at 0.557, without it the key is #1 at 0.539. The variant fails clauses 1, 2 and 5. No cli-core change. ## Testing Baseline reproduces the last round exactly on the 31 questions. Synthetic stores only, held-out set not opened. Docs lint and link check run locally. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Published CLI discovery previously had only a temporary verification script tied to the documentation build. Add an on-demand cli-testing harness that seeds an isolated synthetic archive using the published store API and judges both strict and discovery search through the actual installed tg/max binaries.
The fixture verifies eligible reply retrieval, parent provenance, author filtering and unchanged strict defaults. The preloader rejects network/DNS/keyring sockets; inherited account configuration is discarded. Exact package versions, runtime and verifier hashes are recorded. This is a small contract check, not a ranking or live-provider benchmark; it stays outside the published runner suite.
Validation: tg 0.44.0 and max 0.43.0 freshly installed with scripts disabled both passed; lint, typecheck, 59 runner tests with coverage and docs checks passed. Synthetic reports and installation lock remain in /tmp.