/moos-ivp-skills:moos-ivp-harness-builderfrom MOOS-IvP Skills
Builds or repairs multi-case MOOS-IvP test harnesses around self-evaluating stem missions: case matrices, per-case copies, rolling parallel execution, port isolation, scoped teardown.
Ships in MOOS-IvP Skills. 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; scripts run unread.
Use this skill for a harness that runs one or more self-evaluating stem missions across multiple named cases. The stem mission should own the mission grade. The harness should own case selection, patching, temp copies, port isolation, rolling parallel execution, cleanup, and direct publication of per-case result rows.
For the stem mission itself, use moos-ivp-eval-mission-builder. For ordinary
mission construction before evaluation plumbing, use moos-ivp-mission-builder.
For post-run .alog evidence, use moos-alog-analysis.
results.txt with a
grade= column.missions/, for example harnesses/<harness_name>/ paired with
missions/<stem_mission>/. In larger repositories, use optional family
grouping for both sides, such as
harnesses/<family>_harnesses/HNN-<harness_name>/ paired with
missions/<family>_missions/<stem_mission>/. Have the harness refer to stem
missions with explicit relative paths. Other layouts are acceptable when
project conventions or packaging require them.pMissionEval writes the
grade= row. Do not accept a stem where zlaunch.sh or shell code
synthesizes grade= from target files, patch markers, or harness knowledge.Cases or
Current Matrix.zlaunch.sh.case= is the harness-owned variation identity. Harnesses must not set,
derive, require, or interpret mmod; any mmod= field produced by the
mission is opaque mission-owned provenance.case block mapping case name to patch
files, fixture files, stem launch arguments, and intent is easier to audit
than filename inference.launch.sh and stem wrappers human-facing. Put loops, temp copies,
aggregation, and archives in harness code.case=<case_name> to the mission result row and preserve the mission's
grade=pass|fail as the case verdict.pMissionEval pass when the
expected negative evidence is observed. Do not encode those cases as
expected=fail actual=fail unless the harness is explicitly testing failure
machinery such as pMissionEval, uMayFinish, or CLI return semantics.grade=fail rows only for runner
failures, such as reason=launch_error, reason=missing_result,
reason=prepare_error, reason=missing_result_file, or
reason=teardown_error.reason= for ordinary pMissionEval failures.
Preserve the mission evidence columns that explain the failure. A mission may
report its own compact reason=, but the harness should not reinterpret it.case_result=success|mismatch|error result formats for ordinary
harnesses. Treat them as legacy compatibility or as a special pattern for
tests whose subject is the failure machinery itself.--case, --port_base, --keep_workdirs, --gui, --nogui, and
--max_time when the harness can support them. New generated harnesses must
expose --jobs, default it to 1, and run real backgrounded cases when it is
greater than 1. Prefer Bash 5.1+ rolling scheduling with
wait -p <pidvar> -n, so the next pending case starts as soon as any active
case finishes. Batch-barrier waves are a legacy compatibility pattern and do
not satisfy the new generated harness contract.#!/usr/bin/env bash, add an
early Bash version guard with a clear macOS/Homebrew message, and optionally
re-exec a known Homebrew/Linuxbrew Bash before failing.--max_time as a run-time ceiling override forwarded to each
stem eval mission's zlaunch.sh; do not use it as harness-side grading
logic.PORT_BASE=9000. Use higher fresh bases only
as explicit run-time overrides for automation or local sessions that may
collide with ordinary missions in the 9000 range.--gui available for an individual
case when visual inspection is useful.--keep_workdirs should preserve one auditable
run tree beneath the harness directory.assets/moos_scoped_teardown.sh into the generated project as
<project-root>/scripts/moos_scoped_teardown.sh, sourcing it from harness
launchers, and calling moos_scoped_teardown_stop_root on the harness-owned
run root or case directory. Do not use global ktm, pkill, or machine-wide
cleanup as the normal path.launch.sh accepts and forwards --shore_mport, --veh_mport,
--shore_pshare, and --veh_pshare.nsplug -x so .moosx and .bhvx sidecars are consumed.README.md.zlaunch.sh around:
run_case--keep_workdirs for debugging preserved temp copies.--jobs=1, then a small rolling run on a fresh
--port_base.references/harness-style.md for the overall architecture.references/case-matrix.md before writing README case docs.references/nspatch-workflow.md before adding patch overlays.references/ports-and-parallelism.md before implementing --jobs or
--port_base.references/generated-harness-self-tests.md before reporting a new or
heavily changed harness as trustworthy.references/validation.md before reporting a harness as done.references/timing-and-benchmarking.md before tuning --jobs, sleeps,
--max_time, or benchmarking rolling runs.references/scoped-teardown.md before writing cleanup logic.references/example-harness-zlaunch.md for a compact runner skeleton.assets/moos_scoped_teardown.sh by copying it into generated harness
projects as <project-root>/scripts/moos_scoped_teardown.sh when they do not
already provide an equivalent root-scoped helper.scripts/static_check_harness.sh <harness-dir> for a structural check../zlaunch.sh --max_time=<secs>.moos-ivp-eval-mission-builder static validation; the
harness static checker alone is not enough.Cases or Current Matrix section with exact case
tokens and prose intent../zlaunch.sh --case=<case> --max_time=<secs> works for at least one nominal
case and one expected-negative case if the suite has both../zlaunch.sh --jobs=1 --port_base=<base> works, and a rolling run with
--jobs=2 or higher uses distinct temp directories and distinct port blocks.
New generated harnesses should start the next pending case whenever an active
case finishes, not wait for an entire batch barrier.case= and the mission's original result columns,
especially grade= and useful evidence fields such as eval=,
warning_count=, expected=, observed=, or case-specific scalars.case= is the harness row key. Harness case setup should be explicit in the
case matrix, patch files, fixture files, or stem launch arguments. form=,
mhash=, and mission-owned evidence columns may be preserved as provenance.grade=pass. Any row with grade!=pass should make
the harness exit nonzero unless the harness is explicitly testing failure
machinery.case=<case> grade=fail reason=<runner_reason>
and preserve launch return codes or setup evidence when available.zlaunch.sh. For legacy
portable harnesses that intentionally target macOS system Bash 3.2, avoid
mapfile, readarray, associative arrays, wait -n, and wait -p.--keep_workdirs preserves enough files to inspect generated targets and
results.txt..moosx / .bhvx sidecars.ktm, pkill, or killall.agents/openai.yaml (opens in a new tab)assets/moos_scoped_teardown.sh (opens in a new tab)references/case-matrix.md (opens in a new tab)references/example-harness-zlaunch.md (opens in a new tab)references/generated-harness-self-tests.md (opens in a new tab)references/harness-style.md (opens in a new tab)references/nspatch-workflow.md (opens in a new tab)references/ports-and-parallelism.md (opens in a new tab)references/scoped-teardown.md (opens in a new tab)references/timing-and-benchmarking.md (opens in a new tab)references/validation.md (opens in a new tab)scripts/static_check_harness.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cbenjamin23/moos-ivp-skills --plugin moos-ivp-skills10 skills in this plugin
/ivp-behavior-builderBuild or modify user-owned IvP helm behaviors outside the core MOOS-IvP source tree: BHV_* C++ classes, IvPBehavior lifecycle methods, shared behavior libraries, IVP_BEHAVIOR_DIRS wiring, and behavior-specific configuration parameters./moos-alog-analysisAnalyze existing MOOS .alog files for post-run, log-backed questions such as mission reconstruction, variable history, helm-state context, or timestamped incident evidence./moos-app-builderBuild or modify user-owned MOOS apps outside the core MOOS-IvP source tree: C++ app generation, project build wiring, MOOS mail/config/iterate logic, app help/interface text, and app-specific ProcessConfig examples./moos-ivp-docsConsult MIT MOOS-IvP PDFs and local ivp/src for documentation-backed answers about apps, behaviors, parameters, concepts, upstream semantics, or doc-vs-source differences./moos-ivp-eval-mission-builderBuild or repair one self-evaluating MOOS-IvP mission by adding an evaluation layer to an ordinary mission: headless startup, pMissionEval grading, results.txt, uMayFinish/xlaunch completion, zlaunch automation, scoped teardown, and single-scenario validation./moos-ivp-installerInstall or validate upstream MOOS-IvP: locate or clone moos-ivp/moos-ivp, follow the platform setup README, create env.sh, and verify the checkout for MOOS-IvP development.Other plugins' skills for the same job