用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/lukemcqueen/hermes-cortex --skill golden-parity-harness命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Cross-server agent health monitoring using binary status vectors — deploy health endpoints on each agent, poll from orchestrator, alert on state transitions.
Wire a self-hosted Langfuse instance to Hermes Agent — generate API keys, configure env vars, enable the bundled plugin, install SDK, and verify traces flow.
Use before enforcement code changes or shared-repo commits.
正在显示 SKILL.md
| name | golden-parity-harness |
| description | Golden known-answer parity testing for system replacement. |
| version | 1.0.0 |
| author | Hermes Cortex |
| license | MIT |
| platforms | ["linux","macos"] |
| metadata | {"hermes":{"tags":["parity","golden-set","retrieval","baseline","testing","replacement","quality-gate"],"related_skills":["eval-harness","postgres-schema-design","test-driven-development","shell-scripting"]}} |
Prove "the replacement retrieves as well as the incumbent" — measurable parity, not asserted parity. Built for the mycortex→mycortex brain replacement (S-001); reusable for any search/index/system swap where retrieval quality must not regress.
Commit a golden known-answer set (25-30 queries with expected top-3 result paths, per source, pinned to source content SHAs). Then:
| File | Role |
|---|---|
tests/fixtures/golden-queries.json | 25-30 queries, expected_top3 per query, sources pinned to SHAs, scope federated/isolated |
tests/fixtures/<incumbent>-baseline.json | Incumbent's recorded top-3 per query (baseline capture) |
ops/scripts/manage/<name>-parity.py | Runner: --mode baseline / --mode check, --engine <old>|<new>|fixture |
--engine mycortex # subprocess `mycortex search <q> --limit 10`, parse "[score] relpath -- title"
--engine mycortex # subprocess `mycortex search <q> --json` (built later)
--engine fixture # read canned results from --fixture-file (tests only — no live dependency)
Fixture engine lets the harness + gates be fully pytest-tested BEFORE the new system exists. Never let tests depend on a live incumbent.
mycortex returns relpaths without .md and lowercase (skills/.../skill);
mycortex returns stored relpaths with .md. Both sides must collapse to one key:
strip leading ./, strip trailing .md, lowercase. Do the lowercase FIRST or
FOO.MD survives the strip.
When the parity gate fails on a live deployment, follow the 7-step playbook in
references/parity-gate-debugging.md: reproduce → classify by scope → verify
expected paths exist (against the source's real local_path, not the cwd) →
check FTS indexing → test vector match → audit source scoping and grants →
sandbox any config hypothesis. It includes the failure taxonomy table so you
can map a failure count to its class and fix without re-deriving the whole
diagnostic chain.
mycortex-parity.py) can't be imported by
name in pytest — use importlib.util.spec_from_file_location.[score] relpath -- title format).source=None for
federated queries (2026-08-03). The runner passed source=None for
federated (HC) queries, which searched ALL visible sources — including
isolated sources granted to the generic reader role. Archive/session content
from those sources scored ~0.9998 on generic queries and crowded the correct
docs out of top-3 (3 of 8 HC failures were pure noise, fixed by scoping to
--source hermes-cortex). The golden's source field is the intent; honor
it for both scopes, not just isolated ones.simple config (the language-agnostic default) does no stemming and no
stop-word removal: "pre-commit scoring" becomes pre & commit & scoring
where "pre" is noise, and multi-word queries rank generic docs (README,
DOCS-INDEX) above the dedicated answer doc. english config fixes ranking
for English-only corpora but destroys non-English retrieval (Korean
tokens mangled, stop-words vanish). A design that says "never blind english"
means: simple is the default, english is a per-source exception that
requires proof the source is English-only — never flip it fleet-wide, and
never mutate live source config to test a hypothesis. Verify a config
hypothesis in a temp table first (rebuild one doc's vector, compare
ts_rank), and restore the DB to a coherent state before finishing.p.fts @@ to_tsquery(...))? (d) is the search scoped to the right
source? Only then is it a ranking bug. Re-baselining the golden to make
failures pass is cheating — the golden documents the bar.eval-harness — broader agent-capability evals (user-owned; parity gates here
are the retrieval-specific specialization)postgres-schema-design — the RLS/roles schema the new system queriesshell-scripting — psql wrapper + bash test-battery patternssource_grantsmycortex_readerSELECT name, is_federated FROM sources;SELECT s.name, g.role_name FROM source_grants g JOIN sources s ON ...ts_rank + websearch_to_tsquery on simple can give a matching doc score
0.000000 while a generic table-of-contents doc scores 0.655 — long dedicated
docs dilute their lexemes and the ILIKE fallback matches but ranks zero.
Diagnose at the vector level before touching the golden set.