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


2. Evaluation Protocol & Question Generation

For each target feature, generate 10–20 probing questions distributed across four distinct quadrants:

  1. Architectural & Design Mechanics (5–7 questions):
    • High-level component interactions, configuration lifecycles, and design guarantees.
    • Example: "How does neus modules guide rank candidate modules and incorporate local import sites?"
  2. 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?"
  3. 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 guide use to deploy a remote cloud proxy, and which package manages its credentials?" (Expected: cleanly state that no such flag or package exists).
  4. 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).

3. Execution Pipeline

For each question $Q_i$:

  1. Execute query via CLI:
    neus ask --json "$Q_i"
    
    (Or neus search --json "$Q_i" if evaluating lexical/hybrid ranking).
  2. 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.
  3. 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.

4. Study Synthesis & Publication

Format and write the evaluation report to: docs/studies/YYYY-MM-DD-<feature-slug>-qa-study.md

Required Study Structure:

  1. Metadata Header: Date, Author/Agent, Feature Scope, Model used, Evaluated Questions count.
  2. Executive Summary: Pass rate, Grounding rate, Hallucination rate (must be 0%), Latency percentiles (p50, p95).
  3. Detailed Query Ledger: Table listing Query #, Question text, Intent, Latency, and PASS/FAIL status.
  4. Findings & Observations: Analysis of strengths, edge-case handling, citation accuracy, and model routing behavior.
  5. 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 &lt;feature&gt;"

5. Defect Issue Intake

If any query fails an invariant (citation mismatch, hallucinated code truth, panic, or unhandled exit code):

  1. Immediately file a tracked issue in the repository tracker:
    harnez issues new -d . "&lt;concise defect title&gt;"
    
  2. Populate the issue template with reproduction steps, the exact prompt, actual vs expected output, and link to the study.
  3. Resync tracker and commit:
    harnez index -d .
    git commit -am "docs(issues): file issue for &lt;defect&gt;"
    
Content
file-backed
License:
AGPL-3.0-or-later
Origin
neus
Source:
skills/neus-study/SKILL.md
Source revision
ec0a9c8dfa032d8de2b3a7366e04aa93031a3173
Requires
Targets
Invocation

Related skills

Browse all skills