/sdlc-documentation:06-ai-agent-eval-specfrom sdlc-documentation
Produces or updates AI evaluation specifications for multi-step agents, covering task success, tool selection, budgets, intervention, recovery, and side-effect evidence. Use when preparing reviewable handoffs for AI engineering and release teams.
Ships in sdlc-documentation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Artefact | Source/provider | Required? | Behaviour when absent |
|---|---|---|---|
| Project _context/, approved requirements, and relevant architecture | Project owner and upstream phase skills | Required | Stop at a gap register; do not invent scope, thresholds, integrations, or owners. |
| Existing artefact, implementation, configuration, and evidence named below | Repository, delivery team, or service owner | Required when updating or assessing | Mark inaccessible items not assessed; do not treat them as passed. |
| Target audience, environment, risk tolerance, and authority | Requester and accountable owner | Required | Produce a read-only outline with explicit assumptions; do not mutate project or production state. |
| Artefact | Consumer | Observable acceptance condition |
|---|---|---|
| AI Evaluation Specification | AI engineering and release teams | Each evaluated behaviour has a representative dataset, deterministic scoring rule, threshold rationale, and retained run evidence. |
| Decision and gap register | Reviewer and downstream phase owner | Every assumption, rejected option, unresolved dependency, waiver, and owner is explicit. |
| Validation evidence | Release or governance reviewer | Checks identify command or method, date, result, evidence location, and all unassessed items. |
| Evidence | Minimum content | Acceptance |
|---|---|---|
| Traceability record | Source artefact, decision, output section, owner | No mandatory decision is source-free. |
| Quality-gate result | Check, expected result, observed result, evidence path | Failures and unavailable checks cannot appear as passes. |
| Review record | Reviewer, date, disposition, open actions | The consumer can reproduce the acceptance decision. |
If files, execution, network, rendering, environment access, fonts, or current evidence are unavailable, return the narrowest useful draft plus a gap register. Label affected checks not assessed, retain the intended acceptance oracle, and state who must supply or verify the missing evidence. Never convert an unavailable check into a pass.
| Choice | Action | Failure or risk avoided |
|---|---|---|
| Evidence is complete and authority is explicit | Choose evaluators and thresholds from the stated product risk and produce the full artefact. | A benchmark score without a release oracle. |
| A required source or approval is missing | Stop the affected branch; record the gap, owner, and unblock condition. | Fabricated requirements or unauthorised action. |
| Evidence conflicts across sources | Preserve both claims, identify the controlling owner, and request a recorded decision. | Silent selection of a convenient but wrong source. |
| A check cannot run in the available environment | Keep its oracle and mark it not assessed; require later execution evidence. | False assurance from capability limits. |
not assessed, preserve the oracle, and name the verifier.Given an approved project source and a conflicting implementation detail, record both with provenance, stop the affected branch, and obtain the accountable owner's decision. Then update the relevant contract, define a reproducible acceptance check, and retain its observed result. The artefact is accepted only when each evaluated behaviour has a representative dataset, deterministic scoring rule, threshold rationale, and retained run evidence.
The agent-specific complement to ai-eval-harness-spec. Agents are evaluated on outcomes and trajectories, not single-shot generations. Eval requires (a) golden-task sets that capture the goal state, (b) replay environments that make every tool call deterministic, and (c) agent-specific metrics.
For each agent FR declare a GOLDEN-AGT-<FEATURE>-NNN set. Each task carries:
id: AGT-TRG-001
feature: inbox-triage
initial_state: <world state before the run>
user_goal: <natural-language goal>
gold_trajectory: <ordered list of (tool, args, observation) tuples that a competent operator would execute>
goal_state: <world state the agent should reach>
acceptance_rubric: <how a judge decides whether goal_state was reached>
tags: [tier:pro, locale:en-US, sensitivity:low]
For each feature, declare a deterministic synthetic environment that responds to tool calls with canned outputs:
replay-env/<feature>/<task_id>.yaml.(tool_name, input_args_canonical) to a fixed output.| Metric | Definition | Default threshold |
|---|---|---|
| Task success rate | judge marks goal_state reached | >= 0.90 |
| Step efficiency | mean(actual_steps / gold_steps) on successful runs | <= 1.5 |
| Tool-choice quality | % of tool calls that match the gold tool at the gold step | >= 0.92 |
| Hallucinated-argument rate | % of tool calls with at least one fabricated argument | <= 0.01 |
| Irreversible-action-incident rate | irreversible actions that the judge marks as incorrect | 0 (zero-tolerance) |
| Intervention rate | % of runs where mid-run human intervention was required | feature-specific; declared in PRD |
goal_state claimed by agent vs the YAML goal_state; rubric 3 binary criteria.tool_name; semantic-match for args via judge-LLM.Calibration set per feature scored monthly by humans; recalibrate if drift > 5 pp.
CI gate runs on every PR touching planner/, tools/, prompts/agent/, or action-catalogue/:
| Cadence | Suite | Action on drop |
|---|---|---|
| Nightly | Golden + adversarial smoke per feature | SEV3 to AI lead if any metric down > 3 pp |
| Weekly | Full agent red-team replay | SEV2 if any new HIGH finding |
| Monthly | Calibration recheck | recalibrate judge if drift > 5 pp |
| Quarterly | Full sweep | update agent model card; review with security |
The agent eval rig is owned by the AI lead with a named back-up. Replay-env updates require PR with a reviewer from the back-end owner of every called system. Golden-task additions require sign-off from the AI lead and the product owner of the feature.
AI_Agent_Eval_Spec.md sections: 1) Per-feature Golden-Task Inventory, 2) Replay Environments, 3) Metrics & Thresholds, 4) Judge-LLM Rubrics, 5) CI Gate, 6) Scheduled Regression, 7) Operational Ownership, 8) Traceability.
Eval coverage is primary evidence for:
The CI gate results, weekly regression report, and monthly calibration recheck are collected per 09-governance-compliance/25-ai-agent-evidence-pack-spec (frequency-table rows 23, 24). Sampling: 25 PR eval results stratified across features and tiers per audit window.
logic.prompt, README.md, references/ai-agent-eval-spec-template.md.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/chwezi-sdlc-documentation --plugin sdlc-documentation160 skills in this plugin
/01-deployment-guideUse when producing or updating deployment guide for release prerequisites, migration choreography, verification, rollback, and ownership. Use runbook for the neighbouring concern; this skill owns the named document contract and its acceptance evidence./01-high-level-designUse when approved requirements need a system-level architecture with boundaries, components, critical flows, deployment topology and ADRs, or an as-built design must be recovered from existing code; use system-overview for orientation, low-level-design for module internals, and infrastructure-design for infrastructure depth./01-initialize-srsUse when writing a new SRS (software requirements specification) for a business system or module: create the Waterfall SRS workspace, IEEE structure, identifiers and source context; use context-engineering next for boundaries and actors./01-prd-generationUse when converting approved discovery evidence into a traceable PRD with objectives, prioritised features, success measures, constraints, and release scope; use vision-statement for the strategic north star and lean-canvas while assumptions still need testing./01-sprint-planningUse when preparing a sprint goal, evidence-based team capacity, selected backlog, task breakdown, and delivery risks. Use definition-of-ready to admit individual items and definition-of-done to judge completed increments./01-stakeholder-analysisUse when identifying and classifying stakeholders, influence, interests, decision rights, and communication needs before elicitation; use elicitation-toolkit to gather requirements from them.Other plugins' skills for the same job