diag-harness

Featured

Kernel-version skew check (ADR-027). Reports manifest surface + manifest kernel + installed kernel + verdict (match/patch-diff/minor-diff/major-diff). Exits 1 on minor/major skew with a copy-pasteable `npm install @metaharness/kernel@X.Y.Z` next step. Exits 2 if no .harness/manifest.json at path.

AI & Automation 647 stars 78 forks Updated today MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
94
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# diag-harness > Codex skill: kernel-version skew check for a scaffolded harness — the ADR-027 diagnostic UX loop. ## What it does Single-question check: **does my local `@metaharness/kernel` match what this harness was scaffolded against?** That's the cross-machine compatibility question almost every "this harness doesn't work" support ticket turns out to be. Reads `.harness/manifest.json`: | Field | Source | Meaning | |---|---|---| | `meta.surface` | iter 56 | Which surface produced the harness (`cli` or `web-ui`) | | `meta.kernel_version` | iter 58 | The `@metaharness/kernel` version stamped at scaffold time | Resolves the local `@metaharness/kernel` via `createRequire` rooted at the harness's own `package.json` (real Node resolution). Computes the skew verdict and prints a copy-pasteable next step. | Verdict | Exit | Message | |---|---|---| | `match` | 0 | `PASS kernel versions match exactly` | | `patch-diff` | 0 | `WARN patch-level skew (usually safe; may include bugfixes)` | | `minor-diff` | 1 | `WARN minor-level skew (new kernel features may be missing)` + `Run: npm install @metaharness/kernel@X.Y.Z` | | `major-diff` | 1 | `FAIL MAJOR skew — APIs may have changed; expect breakage` + `Run: npm install @metaharness/kernel@X.Y.Z` | | no `.harness/manifest.json` at path | 2 | `FAIL no .harness/manifest.json found at this path` | ## Usage from Codex ``` /diag-harness # cwd /diag-harness path=./my-harness ``` ## Equivalent CLI ```bash har...

Details

Author
ruvnet
Repository
ruvnet/metaharness
Created
2 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category