neus-study
Run an empirical neus ask / neus search feature study on new or named features across 10-20 probe questions, document findings in docs/studies/, and file defect issues.
Neus Feature QA & Empirical Study Protocol
Execute a structured empirical evaluation of neus ask, neus search, neus modules guide, or background auto-indexing against named features or recently shipped roadmap items. Run 10–20 targeted probe questions per feature, verify factual grounding and latency SLAs, document the findings in docs/studies/, and file tracked issues for any discovered defects.
Reference Practices: @docs/AgenticLoop.md, @docs/IssueTracking.md
1. Invocation
/neus-study— evaluates recently shipped features fromdocs/Roadmap.md(e.g. WAL checkpointing, fast-model-first ask, modules guide)./neus-study "<feature-name>"— evaluates a specific feature (e.g./neus-study "modules guide",/neus-study "daemon wal policy",/neus-study "fast model proxy routing")./neus-study "<feature-name>" --questions <n>— overrides probe count (default: 10–15 questions per feature).
2. Evaluation Protocol & Question Generation
For each target feature, generate 10–20 probing questions distributed across four distinct quadrants:
- Architectural & Design Mechanics (5–7 questions):
- High-level component interactions, configuration lifecycles, and design guarantees.
- Example: "How does
neus modules guiderank candidate modules and incorporate local import sites?"
- Exact Symbol, Code & Spec Grounding (3–5 questions):
- Symbol definitions, struct fields, JSON schemas, and spec accessors.
- Example: "Which struct in spec/spec.go holds the tunables for modules guide and what schema file governs it?"
- Negative, Absence & Boundary Recognition (3–5 questions):
- Inquires about non-existent flags, missing subcommands, or unindexed packages.
- Crucial Invariant: Engine must truthfully state evidence limits with exit code 0; must NEVER invent hallucinated flags or symbols.
- Example: "What flag does
neus modules guideuse to deploy a remote cloud proxy, and which package manages its credentials?" (Expected: cleanly state that no such flag or package exists).
- CLI Contract, Schema & Latency SLA (2–3 questions):
- Probe CLI output via
--json, assert JSON schema conformity, and record segmented latency telemetry (retrieval_ms,ttft_ms,generation_ms,wall_ms).
- Probe CLI output via
3. Execution Pipeline
For each question $Q_i$:
- Execute query via CLI:
(Orneus ask --json "$Q_i"neus search --json "$Q_i"if evaluating lexical/hybrid ranking). - Record:
- Execution exit code.
- Intent classification (
code,spec,docs,temporal). - Answer text and cited source list.
- Segmented latencies:
retrieval_ms,ttft_ms,generation_ms,wall_time_ms.
- Assert Core Quality Invariants:
- Grounding Gate: Every positive claim must have a citation bracket
[n]preceding its period. - Zero Hallucination Gate: Verify that cited files and line numbers actually exist and contain the stated evidence.
- Truthful Abstention Gate: For negative queries, assert absence recognition without false affirmations.
- Latency Gate: Assert retrieval completed within acceptable SLA bounds.
- Grounding Gate: Every positive claim must have a citation bracket
4. Study Synthesis & Publication
Format and write the evaluation report to:
docs/studies/YYYY-MM-DD-<feature-slug>-qa-study.md
Required Study Structure:
- Metadata Header: Date, Author/Agent, Feature Scope, Model used, Evaluated Questions count.
- Executive Summary: Pass rate, Grounding rate, Hallucination rate (must be 0%), Latency percentiles (p50, p95).
- Detailed Query Ledger: Table listing Query #, Question text, Intent, Latency, and PASS/FAIL status.
- Findings & Observations: Analysis of strengths, edge-case handling, citation accuracy, and model routing behavior.
- Defects & Anomalies: Explicit section highlighting any failed assertions or unexpected outputs.
Commit the study immediately:
git add docs/studies/
git commit -m "docs(studies): add empirical qa study for <feature>"
5. Defect Issue Intake
If any query fails an invariant (citation mismatch, hallucinated code truth, panic, or unhandled exit code):
- Immediately file a tracked issue in the repository tracker:
harnez issues new -d . "<concise defect title>" - Populate the issue template with reproduction steps, the exact prompt, actual vs expected output, and link to the study.
- Resync tracker and commit:
harnez index -d . git commit -am "docs(issues): file issue for <defect>"
- Content
- file-backed
- License:
- AGPL-3.0-or-later
- Origin
- neus
- Source:
- skills/neus-study/SKILL.md
- Source revision
ec0a9c8dfa032d8de2b3a7366e04aa93031a3173- Requires
- Targets
- Invocation