context-intelligence-evaluation-methodology

$npx mdskill add microsoft/amplifier-bundle-context-intelligence/context-intelligence-evaluation-methodology

Mode-only skill for *how to measure*. It complements — and never restates — `context-intelligence-eval-design` (which owns scenario mechanics and the two-layer structural/behavioral structure) and `digital-twin-universe` (which owns the DTU machinery).

SKILL.md

.github/skills/context-intelligence-evaluation-methodologyView on GitHub ↗
---
name: context-intelligence-evaluation-methodology
version: 1.0.0
description: Use when deciding how to measure a context-intelligence tool signal. Covers metric design across quality/efficiency/efficacy axes, artifact-metric avoidance via precursor measurement, A/B and statistical-N discipline, and test-data fidelity.
user-invocable: false
allowed-tools: read_file, glob, grep, delegate, load_skill, todo
model_role: reasoning
license: MIT
---

# Context Intelligence Evaluation Methodology

Mode-only skill for *how to measure*. It complements — and never restates —
`context-intelligence-eval-design` (which owns scenario mechanics and the two-layer
structural/behavioral structure) and `digital-twin-universe` (which owns the DTU machinery).

## Scope

### In scope

- **Metric design.** Choose metrics across three axes: **quality** (did it detect what the user
  means?), **efficiency** (token/tool cost to detect), **efficacy** (does detection drive the
  right outcome?).
- **Measure the precursor, not only the failure.** Prefer leading indicators (e.g. bounded vs
  climbing context growth) over lagging ones (e.g. a final timeout). The precursor is testable
  in a short window; the full failure often is not.
- **A/B + statistical-N discipline.** A single green run is not proof of a behavioral change.
  Compare a control arm against a treatment arm; require N independent trials and report the
  pass rate, not a single anecdote.
- **Test data fidelity.** Validate on **real sessions** where available, or on **faithfully
  modeled synthetic** corpora that preserve the distribution that matters (e.g. heavy-tail file
  sizes), never on data hand-shaped to pass.

### Out of scope (point elsewhere — do not restate)

- **Scenario mechanics, the two-layer structure, DTU profile templates / Gitea URL rewrite** →
  `context-intelligence-eval-design`.
- **DTU lifecycle, launch/exec/profiles** → the `digital-twin-universe` skill.
- **"DTU-as-default" rationale and the "artifact-as-success" anti-pattern** → already authoritative
  in `context-intelligence-eval-design` and
  `context-intelligence:context/context-intelligence-primitives-reference.md`. Reference them;
  do not repeat them.

## Method

1. **Name the user-meaningful outcome** the metric must reflect (from `domain-concepts.md`),
   not what a detector happens to emit.
2. **Pick the cheapest axis that discriminates.** If a deterministic efficiency signal (token
   growth, tool-call count) separates good from bad behavior, prefer it over an LLM-judged
   quality rubric.
3. **Identify the precursor.** Ask: what climbs *before* the failure? Measure that in a bounded
   window.
4. **Design the A/B.** Control = current behavior; treatment = the change. Hold everything else
   identical. Decide N and the pass threshold *before* running.
5. **Choose the corpus.** Real sessions if available; otherwise synthetic that preserves the
   load-bearing distribution. State the fidelity assumption explicitly.

> **Apply (do not restate) the event-semantics principle:** when a metric depends on what an
> event *means*, consult the authoritative ecosystem expert agents for that event's semantics —
> the principle is named once in
> `context-intelligence:context/context-intelligence-strategy.md`. Do not restate it here.

More from microsoft/amplifier-bundle-context-intelligence

SkillDescription
context-intelligence-derived-metrics>
context-intelligence-eval-designUse when designing evaluation scenarios for a context-intelligence tool signal. Derives success criteria from domain-concepts.md and produces evaluation-scenarios.md entries plus DTU profile templates.
context-intelligence-gds>
context-intelligence-graph-query>
context-intelligence-hill-climbingUse when an investigation needs more than one step — track it in todo as a hill climb so progress and dead leads leave an audit trail. Governs HOW you track the climb, not how you query or extract — that stays in graph-query / session-navigation.
context-intelligence-server-data-opsExact step order, wording, and the "session details" block format for the delete flows the server-data-ops agent drives — delete the current session, clean up every session from the current working directory, find-then-delete a session by description, and delete a session someone else created.
context-intelligence-session-navigationUse when extracting session data directly from JSONL files — the fallback when the graph server is unavailable or outside graph-analyst.
context-intelligence-session-reconstructionUse when local Amplifier session files are missing, broken, or incomplete — rebuilds events.jsonl, transcript.jsonl, and metadata.json from the context-intelligence graph server.
context-intelligence-tool-designUse when selecting a detection strategy and implementation primitive for a context-intelligence signal. Classifies signals as deterministic, probabilistic, llm-evaluated, or hybrid, and applies the cheapest-sufficient-capability principle.
transcriptRetrieve the prior user and assistant conversation verbatim from the current Context Intelligence capture, or named sessions. Use when a user asks to replay, quote, review, or act on a transcript.