Skip to content

T-5140-harness-api-examples-docs

Status: closed/done · Impact: high · Complexity: medium

Give consumers a worked, runnable path: how to read the canonical model, add a capability/hook/MCP server, and export to every target. Document the model and the target matrix so the multi-harness control plane is discoverable.

LocationRole today
plugin/lib/services/harness/Model + importer + exporters exist; no consumer-facing usage examples or overview doc.

An examples/ API walkthrough (TS) exercising build → validate → export-all, plus a conventions/docs page describing the model shape and the per-target mapping matrix.

  1. Write a runnable example that builds a model and exports every target to a temp dir.
  2. Author a harness-model overview + target-matrix doc.
  3. Wire the example into tests so it can’t rot.
LocationKindChange
plugin/lib/services/harness/examples/export-all.tsnewRunnable API example.
plugin/conventions/harness-model.mdnewModel + target-matrix doc.
plugin/lib/services/harness/tests/examples.test.tsnewPins the example.
  • A runnable example builds a model and exports all targets.
  • A doc describes the model + per-target mapping.
  • tsc + tests green.

Per-host installation UX beyond what harness export already provides.


← Back to Tasks