feat(search): facet-diverse swarm + verify lenses + eval harness + install greeting

2A perspective-diversity for ~free: the planner call now returns 2-4 query
facets (real axes of the question) alongside terms. Facets steer 0-token recon
routing, give each shard a focus axis in its prompt, and seed synthesis themes
— diversity without extra agents.

2B opt-in verify (MNEMAZINE_SEARCH_VERIFY=1): one agent per top-K finding judges
3 lenses at once (grounded/relevant/actionable) against the note's own text and
drops ungrounded findings. Bounded (K calls), default off to keep tokens tight.

Eval harness (tests/search-eval.mjs, §5): Tier A deterministic recall/anti-noise
over an inline synthetic vault (0 tokens, wired into release-check); Tier B
opt-in LLM judge scoring the deep report for groundedness/relevance/coverage
(generator != evaluator). New `npm run search:eval`.

install.sh: bilingual (RU/EN) greeting from the author on first install —
thanks, GitHub star ask, invite to suggest improvements.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Зарубин Филипп
2026-06-19 18:52:30 +03:00
co-authored by Claude Opus 4.8
parent 48af0c5b4c
commit 103efd029a
5 changed files with 269 additions and 20 deletions
+9
View File
@@ -56,6 +56,7 @@ async function checkSyntax() {
'scripts/mnemazine-semantic-shards.mjs',
'scripts/mnemazine-semantic-batches.mjs',
'scripts/mnemazine-synthesize.mjs',
'scripts/mnemazine-kb-search.mjs',
'scripts/mnemazine-llm.mjs',
'scripts/mnemazine-codex.mjs',
'scripts/mnemazine-verify.mjs',
@@ -174,6 +175,13 @@ async function reportQualityGateSmoke() {
await must('report quality gate smoke:good', process.execPath, ['scripts/mnemazine-report-quality-gate.mjs', '--report', good])
}
async function searchEvalSmoke() {
// Tier A only (0 tokens): recall/anti-noise of the KB search skill. Tier B
// (LLM judge) is opt-in via `npm run search:eval -- --deep`, not in the gate.
await must('kb-search selftest', process.execPath, ['scripts/mnemazine-kb-search.mjs', '--selftest'])
await must('kb-search eval (Tier A)', process.execPath, ['tests/search-eval.mjs'])
}
async function repoMetadataCheck() {
const pkg = await readJson(path.join(ROOT, 'package.json'))
if (!pkg.description || !/[А-Яа-яЁё]/.test(pkg.description) || !/[A-Za-z]/.test(pkg.description)) {
@@ -211,6 +219,7 @@ async function main() {
['syntax', checkSyntax],
['demo-smoke', demoSmoke],
['quality-public', qualityAndPublicChecks],
['search-eval', searchEvalSmoke],
['repo-metadata', repoMetadataCheck]
]
const passed = []