소스 정보
- 저장소
- lukemcqueen/hermes-cortex
- 최근 소스 활동
- 2026년 8월 24일 10:07
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 1
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/lukemcqueen/hermes-cortex --skill golden-parity-harness명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
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.