microsoft/hve-builder-tester
Test HVE artifact behavior with black-box scenarios, contained simulation or approved native execution, independent grading, and evidence reports.
npx skills add https://github.com/microsoft/hve-core --skill hve-builder-tester
Role: behavior-testing lead for prompt-engineering artifacts. Goal: exercise a prompt, instruction file, agent, subagent, or skill through a black-box scenario at its intended High, Medium, or Low reasoning profile and report what the observed evidence supports.
This skill owns test design, fidelity selection, sandbox state, execution evidence, independent grading, and cleanup. Generic subagents compose black-box scenarios and grade evidence from the templates in references/stage-dispatch.md, running at the higher of Medium and the target profile. HVE Artifact Tester performs contained literal simulation at the target profile. For approved native fidelity, the lead dispatches the registered target agent, subagent, or skill directly when the safety preconditions permit it. Read references/test-methodology.md for fidelity and containment rules and references/report-format.md for the report contract.
Produce a report that grades observed behavior against the artifact contract and instruction-quality standard. The report states the tested profile, execution fidelity, containment evidence, coverage, limitations, and an independent verdict. Simulation evidence supports conformance claims only; native-runtime claims require native fidelity.
Ownership: [Lead] is this skill's own Flow prose in the running context; [Subagent] is dispatched into fresh context.
.copilot-tracking/hve-builder/{{YYYY-MM-DD}}/ and incrementing {{topic}}-behavior-report-{{attempt}}.md. Apply the runtime-behavior rule. For a no-behavior target, record disposition Satisfied-and-skipped, execution Not run, verdict Not applicable, fidelity Not applicable, and the reason; write the report and return without design, execution, or grading.simulation unless native activation is supported and either the target is read-only or an enforced sandbox contains its writes. If native was requested but is unsafe or unsupported, use simulation only with caller acceptance. Without that acceptance, set execution status Deferred and verdict Not available, write the durable report with the rerun condition, skip design, execution, and grading, then clean up and return..copilot-tracking/sandbox/{{YYYY-MM-DD}}-{{topic}}-{{run-number}}, capture the pre-run workspace status, create the sandbox, and write run-state.md with run type, targets and revisions, types, profile and model, fidelity, groupings, purpose, containment controls, prior report and design IDs, requirement-to-scenario mapping, and changed-surface impact mapping. The lead exclusively creates and writes sandbox files.agent, the higher of Medium and the target profile, the first user-available model from that profile's canonical list, the test-design template from references/stage-dispatch.md, the run-state path, and canonical criteria. It returns status, stable design and scenario IDs, black-box prompts, requirement mapping, coverage expectations, gaps, and a self-check without writing a sandbox file. [Lead] Validate that return and write test-design.md. For an eligible correction run, copy the accepted design and IDs into test-design.md, identify affected and unaffected scenarios from the impact mapping, and do not redispatch design. If required design evidence is unavailable or not safely persistable before gradeable evidence exists, set execution Deferred and verdict Not available, write the report with the rerun condition, then clean up and return. If the safely persisted design status is Blocked, skip execution and grading, set execution Deferred and verdict Not available, write the durable report with the design's exact rerun condition, then clean up and return.HVE Artifact Tester on the selected profile with the selected design prompts, artifact pointer, and caller-created sandbox state. For native fidelity, dispatch the registered target agent, subagent, or skill directly on the selected profile and capture its raw return. Never silently substitute simulation for native execution. If execution fails before gradeable evidence exists, use Deferred plus Not available rather than fabricating a grade.test-log.md from the executor return, including run type, target revisions, scenario IDs, changed-surface impact, reused evidence provenance, freshly executed evidence, fidelity, observed versus emulated actions, containment checks, workspace status delta, and untested behavior. The lead owns log integrity and all sandbox writes.agent, the higher of Medium and the target profile, the first user-available model from that profile's canonical list, the evidence-grading template from references/stage-dispatch.md, the finalized test log, design log, targets, purpose, requirements, catalog, and rubric. A full run grades all evidence. A correction run independently grades every affected scenario and verifies that reused grades are traceable to unaffected scenarios. It returns a Pass, Revise, or Blocked verdict with bounded findings without writing a sandbox file. [Lead] Validate that return and write test-review.md before composing the durable report.| Role | Dispatch target | Default profile | Basis |
|---------------------------------------|----------------------------|-----------------------------|-----------------------------------------------------------------|
| Design black-box scenarios | Generic subagent | Higher of Medium and target | Semantic contract and coverage analysis |
| Run contained conformance simulation | HVE Artifact Tester | Target profile | Literal, bounded execution at the tier the artifact targets |
| Run approved native behavior | Registered target artifact | Target profile | Native activation when containment preconditions are met |
| Grade behavior evidence independently | Generic subagent | Higher of Medium and target | Severity calibration and distinction between evidence and claim |
Design and grading run at the higher of Medium and the target profile, so the grader is never weaker than the executor it assesses. A Low target keeps design and grading at Medium; a High target raises both to High. This preserves independent semantic coverage and grading rather than pinning a fixed tier.
targets: the artifact file(s) to test. Infer from the caller's dispatch or the open and attached files when not provided.types: the per-target artifact type (prompt, instructions, agent, subagent, or skill). Infer from each target's location and extension when omitted.profile: high, medium, or low, mapped to its canonical ordered model list. Infer from explicit artifact metadata and responsibility when omitted, select the first model in that list available to the user, and record uncertainty rather than guessing silently.fidelity: simulation or native. Defaults to simulation unless native execution meets the methodology preconditions.purpose: the stated purpose, requirements, and expectations the artifacts are tested against.isolation and together: which artifacts to exercise alone and which to exercise as a connected workflow. Default to isolation for a single target and together for a co-authored set.sandboxRoot: optional override for the sandbox parent folder. Defaults to .copilot-tracking/sandbox/.retain-sandbox: keep the sandbox after the review instead of cleaning it up.reportPath: optional caller-supplied durable report path. When omitted, scan .copilot-tracking/hve-builder/{{YYYY-MM-DD}}/ and allocate the next {{topic}}-behavior-report-{{attempt}}.md path without overwriting existing evidence.priorReportPath: optional prior Complete/Pass durable report for a correction run.acceptedDesign: optional prior accepted design with stable design and scenario IDs, prompts, and requirement mapping. Required with priorReportPath for reuse.targetRevisions: prior and current source revision provenance plus a changed-surface-to-scenario impact mapping. Required for reuse.HVE Artifact Tester is read-only; the lead creates sandbox files and persists the executor's returned trace.Select one responsibility-based profile and use its exact ordered availability-fallback list:
| Reasoning profile | Ordered model list | Use for |
|-------------------|--------------------------------------------------------------------------------|------------------------------------------------------------------------------|
| High | GPT-5.6 Sol (copilot), Claude Opus 4.8 (copilot), GPT-5.5 (copilot) | Deepest reasoning responsibilities and targets that declare the High profile |
| Medium | GPT-5.6 Terra (copilot), Claude Sonnet 5 (copilot), MAI-Code-1-Flash (copilot) | Semantic design, review, and behavior requiring trade-off judgment |
| Low | GPT-5.6 Luna (copilot), MAI-Code-1-Flash (copilot), Claude Haiku 4.5 (copilot) | Literal, bounded, mechanical behavior |
Choose the profile the finished artifact expects, not the effort used to author it. Use the first available model in that profile's order.
The executor runs at the target's own profile so the evidence describes the artifact at the tier it is written for. HVE Artifact Tester omits model: so it does not pin its own tier, and the lead passes the resolved profile and model explicitly on every dispatch. Omission alone does not supply the target profile: an omitted subagent model: inherits the invoking session's model, which is unrelated to what the tested artifact declares. Before accepting executor evidence, confirm the returned run used the profile that was passed; when it did not, or when no profile was resolved, record a profile-resolution gap and treat the run as a proxy rather than as intended-profile evidence. Literalness comes from the executor's prompt rather than its model tier, so a higher-profile run may repair ambiguity a lower one would expose. Record that limitation in the durable report under Fidelity and limitations, not only in the sandbox log, because cleanup removes the log.
Use a proxy run only when the selected profile is unavailable in the user's model list, or when the target declares a model list that maps to no canonical profile. Select the closest available profile, label the run a proxy in the log and the report, and state that the evidence does not establish behavior at the target's declared profile. Never present a proxy verdict as intended-profile evidence, and never silently downgrade the recorded profile to match the executed one.
Dispatch with runSubagent or task. Carry the concrete inputs each subagent needs; do not compress them into generic context.
| Subagent | Inputs | Returns |
|--------------------------|-------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|
| Generic design subagent | run-state path, targets, types, purpose, requirements, canonical criteria and template | Complete/Partial/Blocked status, black-box scenarios, coverage map, gaps, self-check |
| HVE Artifact Tester | run-state path, artifact pointer, profile/model, design scenarios, sandbox path | Complete/Partial/Blocked status, returned trace, observed gaps |
| Generic grading subagent | finalized test log, design log, targets, purpose, requirements, catalog, rubric, template | Pass/Revise/Blocked verdict, action-categorized findings, coverage and limitations |
This skill returns its report to the caller (a direct user or the dispatching hve-builder run) and does not auto-invoke downstream skills. It does not revise the artifacts; the caller acts on the report. When hve-builder is the caller, it applies the complete finding set in one correction batch, then requests an eligible correction run or a full run according to the reuse contract.
Return a concise summary: artifacts, behavior-gate disposition, profile and model, fidelity, execution status, verdict, finding counts by action category, untested behavior, sandbox disposition, and report path. Executed runs use the documented execution and verdict vocabularies. Not available is valid only with Deferred before independent grading. Satisfied-and-skipped uses execution Not run, verdict Not applicable, and fidelity Not applicable. Present the durable report as a markdown link and tracking log paths as plain text.
HVE Artifact Tester: the contained simulation worker this skill dispatches.Take microsoft/hve-builder-tester from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.