harness-everything 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +36 -0
  4. package/ci/mechanism-35-verification-contract.test.js +416 -0
  5. package/ci/mutation-check.js +2 -0
  6. package/ci/mutation-loader.js +4 -0
  7. package/docs/audit.md +2 -0
  8. package/harness-everything/SKILL.md +2 -2
  9. package/harness-everything/scripts/verify-gate.js +223 -75
  10. package/hooks/scripts/lib/workflow-isolation.js +3 -4
  11. package/hooks/scripts/state-persist.js +1 -1
  12. package/opencode-plugin/plugin.json +1 -1
  13. package/package.json +1 -1
  14. package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
  15. package/plugins/harness-everything/hooks/scripts/lib/workflow-isolation.js +3 -4
  16. package/plugins/harness-everything/hooks/scripts/state-persist.js +1 -1
  17. package/plugins/harness-everything/plugin.json +1 -1
  18. package/plugins/harness-everything/scripts/lib/verification-contract.js +357 -0
  19. package/plugins/harness-everything/skills/harness-everything/SKILL.md +2 -2
  20. package/plugins/harness-everything/skills/harness-everything/scripts/verify-gate.js +223 -75
  21. package/plugins/harness-everything/skills/using-git-worktrees/SKILL.md +14 -13
  22. package/plugins/harness-everything/skills/using-git-worktrees/references/submodules-in-worktrees.md +135 -0
  23. package/plugins/harness-everything/skills/verification-loop/SKILL.md +15 -23
  24. package/plugins/harness-everything/skills/verification-loop/references/project-verification-contract.md +112 -0
  25. package/plugins/harness-everything/skills/verification-loop/references/verification-phases.md +4 -3
  26. package/plugins/harness-everything/skills/verification-loop/references/verify-contract.schema.json +32 -0
  27. package/plugins/harness-everything/skills/verification-loop/references/verify-result.schema.json +65 -0
  28. package/sbom.cdx.json +7 -7
  29. package/scripts/lib/verification-contract.js +357 -0
  30. package/using-git-worktrees/SKILL.md +14 -13
  31. package/using-git-worktrees/references/submodules-in-worktrees.md +135 -0
  32. package/verification-loop/SKILL.md +15 -23
  33. package/verification-loop/references/project-verification-contract.md +112 -0
  34. package/verification-loop/references/verification-phases.md +4 -3
  35. package/verification-loop/references/verify-contract.schema.json +32 -0
  36. package/verification-loop/references/verify-result.schema.json +65 -0
@@ -4,44 +4,45 @@ description: Use when work needs isolation or before major implementation plans
4
4
  license: Apache-2.0
5
5
  metadata:
6
6
  author: Miya Daniel
7
- version: 0.19.1
7
+ version: 0.25.1
8
8
  ---
9
9
 
10
10
  # Using Git Worktrees
11
11
 
12
- Use native worktree support first; raw Git is the fallback.
12
+ Use native worktree support first; raw Git is fallback.
13
13
 
14
14
  ## Contract
15
15
 
16
- - **Tier 3 / Fable (MUST resolve)** — before broad source/artifact mutation, reuse/create a verified linked worktree. If isolation is unavailable or the user explicitly chooses to stay in place, MUST report an explicit degraded fallback/risk before continuing.
17
- - **Ordinary mode (SHOULD)** — use isolation when it materially reduces collision/risk; explicit user preference may keep work in place.
18
- - **MUST NOT** nest a worktree inside an already isolated worktree.
16
+ - **Tier 3 / Fable (MUST resolve)** — isolate before broad mutation. If unavailable or explicitly declined, MUST report an explicit degraded fallback/risk.
17
+ - **Ordinary mode SHOULD** isolate when it materially reduces collision/risk.
18
+ - **MUST NOT** nest a worktree inside an isolated worktree.
19
19
 
20
20
  ## Workflow
21
21
 
22
- **Step 0 — Detect isolation** (adapt per `environment-detection`):
22
+ **Step 0 — Detect**:
23
23
  ```bash
24
24
  git rev-parse --git-dir
25
25
  git rev-parse --git-common-dir
26
26
  git branch --show-current
27
27
  git rev-parse --show-superproject-working-tree
28
+ git submodule status --recursive
28
29
  ```
29
- Different git/common dirs and no superproject => already isolated; continue to Step 2. A submodule is a normal repo for this check.
30
+ Different git/common dirs and no superproject => already isolated. If submodules exist, **MUST** read `<this-skill-dir>/references/submodules-in-worktrees.md` before committing inside them.
30
31
 
31
- **Step 1 — Create/enter**: use native `EnterWorktree`, `/worktree`, or `--worktree` first; otherwise use `git worktree add "$path" -b "$BRANCH_NAME"`. Use an already-ignored or external/sibling path when possible. If creation/entry fails, MUST surface the degraded isolation disposition before continuing.
32
+ **Step 1 — Create/enter**: use native `EnterWorktree`, `/worktree`, or `--worktree`; otherwise `git worktree add "$path" -b "$BRANCH_NAME"`. On failure, MUST surface the degraded disposition.
32
33
 
33
- **Step 2 — Setup**: install project dependencies as needed.
34
+ **Step 2 — Setup**: install dependencies as needed.
34
35
 
35
- **Step 3 — Baseline**: run relevant tests/build before implementation when useful; surface existing failures before relying on the baseline.
36
+ **Step 3 — Baseline**: run relevant tests/build when useful; surface existing failures.
36
37
 
37
38
  Deep dive: <this-skill-dir>/references/workflow-details.md
38
39
 
39
40
  ## USE FOR:
40
- - Tier 3 / Fable-class mutable engineering
41
+ - Tier 3 / Fable mutable engineering
41
42
  - feature work needing isolation
42
43
  - pre-implementation-plan setup
43
44
 
44
45
  ## DO NOT USE FOR:
45
46
  - nesting inside an existing worktree
46
- - read-only analysis with no mutation
47
- - branch/merge workflows unrelated to workspace isolation
47
+ - read-only analysis
48
+ - unrelated branch/merge workflows
@@ -0,0 +1,135 @@
1
+ # Submodules inside linked worktrees
2
+
3
+ A linked worktree of a superproject does **not** share the primary checkout's submodule object store. After `git submodule update --init`, each submodule normally uses a worktree-specific git dir such as:
4
+
5
+ ```text
6
+ <super>/.git/worktrees/<worktree-id>/modules/<submodule>
7
+ ```
8
+
9
+ The primary checkout uses:
10
+
11
+ ```text
12
+ <super>/.git/modules/<submodule>
13
+ ```
14
+
15
+ A superproject gitlink records only a commit SHA. It does not publish or copy that commit into the primary checkout. Therefore a submodule commit made only on detached HEAD in a linked worktree can become unreachable when that worktree is removed.
16
+
17
+ ## Required rules
18
+
19
+ 1. **MUST use a named branch before committing in the submodule.** `git submodule update` normally leaves the submodule detached.
20
+ 2. **MUST make the new submodule commit reachable outside the linked worktree before treating the superproject gitlink bump as deliverable.** Publish it to the submodule remote, or fetch it into the primary checkout's submodule repository.
21
+ 3. **MUST verify external reachability before removing the linked worktree.** A branch that exists only inside the linked worktree is not sufficient publication evidence.
22
+
23
+ ## Detect the situation
24
+
25
+ From the superproject worktree:
26
+
27
+ ```bash
28
+ git rev-parse --git-dir
29
+ git rev-parse --git-common-dir
30
+ git submodule status --recursive
31
+ git -C <submodule> rev-parse --absolute-git-dir
32
+ git -C <submodule> branch --show-current
33
+ ```
34
+
35
+ A linked superproject has different git/common dirs. A blank submodule branch means detached HEAD.
36
+
37
+ PowerShell uses the same Git commands; quote paths containing spaces:
38
+
39
+ ```powershell
40
+ git -C "<submodule>" rev-parse --absolute-git-dir
41
+ git -C "<submodule>" branch --show-current
42
+ ```
43
+
44
+ ## Prevent the problem
45
+
46
+ Before editing or committing in the submodule:
47
+
48
+ ```bash
49
+ git -C <submodule> switch -c <task-branch>
50
+ # edit + verify
51
+ git -C <submodule> add <paths>
52
+ git -C <submodule> commit -m "<message>"
53
+ SUB_SHA=$(git -C <submodule> rev-parse HEAD)
54
+ ```
55
+
56
+ PowerShell:
57
+
58
+ ```powershell
59
+ git -C "<submodule>" switch -c "<task-branch>"
60
+ # edit + verify
61
+ git -C "<submodule>" add <paths>
62
+ git -C "<submodule>" commit -m "<message>"
63
+ $SubSha = git -C "<submodule>" rev-parse HEAD
64
+ ```
65
+
66
+ ## Publish before the gitlink is considered deliverable
67
+
68
+ Preferred path when the submodule has a remote:
69
+
70
+ ```bash
71
+ git -C <submodule> push -u origin <task-branch>
72
+ git -C <submodule> branch -r --contains "$SUB_SHA"
73
+ ```
74
+
75
+ ```powershell
76
+ git -C "<submodule>" push -u origin "<task-branch>"
77
+ git -C "<submodule>" branch -r --contains $SubSha
78
+ ```
79
+
80
+ If pushing is not appropriate, copy the commit into the primary checkout's submodule repository. From the linked worktree first give a detached commit a name if necessary:
81
+
82
+ ```bash
83
+ git -C <worktree>/<submodule> branch -f <task-branch> <sha>
84
+ git -C <primary>/<submodule> fetch <worktree>/<submodule> <task-branch>:<task-branch>
85
+ git -C <primary>/<submodule> cat-file -e <sha>^{commit}
86
+ ```
87
+
88
+ ```powershell
89
+ git -C "<worktree>/<submodule>" branch -f "<task-branch>" "<sha>"
90
+ git -C "<primary>/<submodule>" fetch "<worktree>/<submodule>" "<task-branch>:<task-branch>"
91
+ git -C "<primary>/<submodule>" cat-file -e "<sha>^{commit}"
92
+ ```
93
+
94
+ After the commit is externally reachable, stage the gitlink in the superproject:
95
+
96
+ ```bash
97
+ git add <submodule>
98
+ git diff --cached --submodule=log
99
+ ```
100
+
101
+ ## Recovery after an unpublished gitlink was already committed
102
+
103
+ Do **not** remove the linked worktree. Recover the referenced SHA while its submodule object store still exists:
104
+
105
+ ```bash
106
+ git -C <worktree>/<submodule> branch -f <task-branch> <sha>
107
+ git -C <primary>/<submodule> fetch <worktree>/<submodule> <task-branch>:<task-branch>
108
+ git -C <primary>/<submodule> cat-file -e <sha>^{commit}
109
+ git -C <primary> submodule update
110
+ ```
111
+
112
+ The PowerShell form is identical except paths/refs should be quoted as shown above.
113
+
114
+ ## Pre-removal check
115
+
116
+ For every changed gitlink SHA, prove at least one external home exists:
117
+
118
+ ```bash
119
+ git -C <submodule> branch -r --contains <sha>
120
+ # OR, from the primary checkout:
121
+ git -C <primary>/<submodule> cat-file -e <sha>^{commit}
122
+ ```
123
+
124
+ If neither succeeds, **MUST NOT** remove the linked worktree yet.
125
+
126
+ ## Handoff checklist
127
+
128
+ For each changed submodule record:
129
+
130
+ - submodule path
131
+ - commit SHA
132
+ - branch name
133
+ - publication location: remote-tracking ref or primary checkout object store
134
+ - superproject gitlink staged/committed state
135
+ - reachability check result before worktree removal
@@ -4,44 +4,36 @@ description: "Run objective verification gates (build, types, lint, tests, secur
4
4
  license: Apache-2.0
5
5
  metadata:
6
6
  author: Miya Daniel
7
- version: 0.15.0
7
+ version: 0.26.0
8
8
  ---
9
9
 
10
10
  # Verification Loop
11
11
 
12
- Run objective quality gates before claiming a change is ready.
12
+ Run objective gates before claiming delivery readiness.
13
13
 
14
14
  ## Skill Contract
15
15
 
16
16
  | Component | Specification |
17
17
  | :--- | :--- |
18
- | **Trigger / Input** | Completed implementation or change awaiting delivery. |
19
- | **Expected Output** | Evidence-backed verification report and delivery decision. |
20
- | **State Mutations** | Fills a report from `<this-skill-dir>/templates/verification-report.template.md`. |
21
- | **Enforcement Gate** | Build, type, lint, test, security, and diff gates all pass. |
18
+ | **Trigger / Input** | Completed change awaiting delivery. |
19
+ | **Expected Output** | Evidence-backed verification report. |
20
+ | **State Mutations** | Fills `<this-skill-dir>/templates/verification-report.template.md`. |
21
+ | **Enforcement Gate** | Every applicable gate passes. |
22
22
 
23
23
  ## USE FOR:
24
-
25
- - Verify a feature or change before delivery
26
- - Run quality gates before a PR
24
+ - Verify a completed change
25
+ - Run quality gates before delivery/PR
27
26
 
28
27
  ## DO NOT USE FOR:
29
-
30
- - Fixing failures without re-running the loop
31
- - Writing new features or tests (use `tdd`)
28
+ - Fixing failures without re-running verification
29
+ - New feature/test implementation (use `tdd`)
32
30
 
33
31
  ## Workflow
34
32
 
35
- Never claim completion until every applicable gate passes. On failure, fix the cause
36
- and rerun from the first affected gate.
37
-
38
- 1. Build: `npm run build`.
39
- 2. Types: `npx tsc --noEmit` or `pyright .`.
40
- 3. Lint: `npm run lint` or `ruff check .`.
41
- 4. Tests and coverage: `npm run test -- --coverage`.
42
- 5. Security scan: secrets and stray logs.
43
- 6. Diff review: `git diff --stat` and unintended-change checks.
44
- 7. Contract reconciliation when the work cites `REQ-*` / ADR/spec/ticket lineage or a contract-integrity trace exists: run the strict `<this-skill-dir>/scripts/contract-integrity-audit.js` gate with current #58 evidence and `--workspace <workspace>` so traced source/test/implementation artifacts are fingerprinted. `AUDIT`, `NOT_EVALUATED`, stale source binding, or drift is **not ready** for delivery.
45
- 8. Fill `<this-skill-dir>/templates/verification-report.template.md` with evidence.
33
+ 1. Run applicable build, type, lint, test/coverage, security, and diff gates.
34
+ 2. Reconcile cited REQ/ADR/spec lineage with `<this-skill-dir>/scripts/contract-integrity-audit.js`; stale/failed/audit-only evidence is not ready.
35
+ 3. For project-declared/discovered mechanical gates, follow `<this-skill-dir>/references/project-verification-contract.md`.
36
+ 4. On failure, fix and rerun from the first affected gate.
37
+ 5. Fill `<this-skill-dir>/templates/verification-report.template.md` with actual evidence.
46
38
 
47
39
  Deep dive: `<this-skill-dir>/references/verification-phases.md`
@@ -0,0 +1,112 @@
1
+ # Project Verification Contract
2
+
3
+ Harness project verification has two layers:
4
+
5
+ 1. **Declared contract** — `.harness/verify.json` is authoritative and executable.
6
+ 2. **Read-only discovery** — ecosystem signals are reported as candidates when no contract exists. Detected candidates are never auto-run except the legacy `package.json` `lint` / `test` scripts.
7
+
8
+ This keeps verification explicit without turning discovery into an accidental command runner.
9
+
10
+ ## Contract
11
+
12
+ Create `.harness/verify.json` at the enclosing Git repository root. Its documented JSON Schema is `<this-skill-dir>/references/verify-contract.schema.json`:
13
+
14
+ ```json
15
+ {
16
+ "version": 1,
17
+ "roots": [".", "sub/a", "sub/b"],
18
+ "checks": [
19
+ {
20
+ "id": "precommit",
21
+ "run": "pre-commit run --all-files",
22
+ "cwd": ".",
23
+ "timeoutSec": 600
24
+ },
25
+ {
26
+ "id": "sub-a-e2e",
27
+ "run": "bash scripts/e2e.sh",
28
+ "cwd": "sub/a",
29
+ "timeoutSec": 600
30
+ }
31
+ ]
32
+ }
33
+ ```
34
+
35
+ Rules:
36
+
37
+ - `version` MUST be `1`.
38
+ - `roots` is optional; default is `["."]`. Every root MUST stay inside the enclosing Git repository and exist.
39
+ - `checks` MUST be a non-empty array.
40
+ - Each check MUST have a unique non-empty `id`, non-empty `run`, repository-contained `cwd` (default `.`), and optional integer `timeoutSec` from 1 through 3600.
41
+ - Unknown fields, invalid JSON, duplicate IDs, escaping paths, or invalid values make verification `FAILED`.
42
+ - Contract checks run with `HARNESS_SKIP_PROJECT_CHECKS=1` so a project's checks cannot recursively invoke the same project gate.
43
+ - When a contract exists, ecosystem detection and legacy npm auto-run are not used.
44
+
45
+ A `git commit` is accepted as successful verification evidence only when:
46
+ - the declared contract contains a `pre-commit ...` check,
47
+ - a runnable pre-commit hook is configured for that repository (on POSIX, the hook file must have an executable bit), and
48
+ - the commit command does not use `--no-verify` or `-n`.
49
+
50
+ This prevents a generic commit from being mistaken for proof that the declared verification contract ran.
51
+
52
+ ## Status taxonomy
53
+
54
+ | Status | Meaning | Exit |
55
+ |---|---|---:|
56
+ | `PASSED` | Every executed authoritative check exited 0. | 0 |
57
+ | `FAILED` | A check failed/timed out, the injected failure marker exists, or declared/project metadata is invalid. | 1 |
58
+ | `UNCHECKED_NO_CHECKS` | No contract, no runnable legacy npm checks, and no verification candidates were detected. | 0 |
59
+ | `UNCHECKED_DISCOVERED` | Verification candidates exist but at least one was not executed. | 0 |
60
+ | `SKIPPED` | `HARNESS_SKIP_PROJECT_CHECKS=1` recursion guard. | 0 |
61
+
62
+ Every `UNCHECKED_*` human report MUST include:
63
+
64
+ > PROHIBITED: Do NOT cite this run as proof that tests pass.
65
+
66
+ An exit code of 0 from `UNCHECKED_*` is non-blocking control flow, not passing-test evidence.
67
+
68
+ ## Discovery when no contract exists
69
+
70
+ Discovery is read-only. Harness may report:
71
+
72
+ - `package.json`: `lint` / `test` remain legacy auto-run; `check`, `typecheck`, `verify` are candidates.
73
+ - `.pre-commit-config.yaml`: `pre-commit run --all-files`.
74
+ - `Makefile`: `test`, `check`, `lint`, `ci` targets.
75
+ - `justfile`: `test`, `check`, `ci` recipes.
76
+ - Python: pytest/ruff configuration in `pyproject.toml`, `tox.ini`, `noxfile.py`.
77
+ - `Cargo.toml`: `cargo test`.
78
+ - `go.mod`: `go test ./...`.
79
+ - `core.hooksPath`, `.husky/`, or `.git/hooks/pre-commit`: commit-time gate presence.
80
+
81
+ Detected commands are suggestions only. Their existence does not become pass evidence until they are explicitly run or declared in the contract.
82
+
83
+ ## Multi-root behavior
84
+
85
+ With a contract, `roots` defines the verification scope. Each check is attributed to the most-specific declared root containing its `cwd`.
86
+
87
+ Without a contract, Harness reports the main Git root plus initialized submodule roots from `git submodule status --recursive`.
88
+
89
+ Overall status uses the most conservative root result:
90
+
91
+ ```text
92
+ FAILED > UNCHECKED_DISCOVERED > UNCHECKED_NO_CHECKS > PASSED
93
+ ```
94
+
95
+ A submodule with no checks remains visible as its own `UNCHECKED_NO_CHECKS` root; it is never silently merged into the parent result.
96
+
97
+ ## Structured output
98
+
99
+ Run:
100
+
101
+ ```bash
102
+ node harness-everything/scripts/verify-gate.js --json
103
+ ```
104
+
105
+ The output contains:
106
+
107
+ - `status`, `reason`, and `repoRoot`
108
+ - `roots[]` with per-root status/reason
109
+ - `checks[]` with `id`, `run`, `cwd`, `source`, `exitCode`, and `durationMs`
110
+ - `candidates[]` with `source`, `run`, and `cwd`
111
+
112
+ The machine-readable result conforms to `<this-skill-dir>/references/verify-result.schema.json`. It is evidence metadata; only `PASSED` means the gate produced passing verification evidence.
@@ -25,11 +25,12 @@ flowchart TD
25
25
  RunScript --> ReportResult{All Verification Gates Passed?}
26
26
  DirectReport --> ReportResult
27
27
 
28
- ReportResult -- Exit 0 / All Green --> Deliver[Task Ready for Delivery / PR]
29
- ReportResult -- Failures Detected --> Fix[Fix Issues in Code & Re-verify] --> Build
28
+ ReportResult -- PASSED --> Deliver[Task Ready for Delivery / PR]
29
+ ReportResult -- FAILED --> Fix[Fix Issues in Code & Re-verify] --> Build
30
+ ReportResult -- UNCHECKED_* --> Manual[Run declared/listed verification; exit 0 alone is not evidence] --> Build
30
31
  ```
31
32
 
32
- Adapt commands according to the project's ecosystem and active environment (`environment-detection`). Run commands directly without non-portable POSIX pipe assumptions (avoid raw `head`, `tail`, `grep`, `2>/dev/null` piping on Windows).
33
+ Adapt commands according to the project's ecosystem and active environment (`environment-detection`). Run commands directly without non-portable POSIX pipe assumptions (avoid raw `head`, `tail`, `grep`, `2>/dev/null` piping on Windows). For repository-specific mechanical gates and structured `PASSED` / `FAILED` / `UNCHECKED_*` semantics, follow `<this-skill-dir>/references/project-verification-contract.md`.
33
34
 
34
35
  ## Phase 1: Build Verification
35
36
 
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/dyphn1/Harness-everything/verification-loop/references/verify-contract.schema.json",
4
+ "title": "Harness project verification contract",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["version", "checks"],
8
+ "properties": {
9
+ "version": { "const": 1 },
10
+ "roots": {
11
+ "type": "array",
12
+ "minItems": 1,
13
+ "uniqueItems": true,
14
+ "items": { "type": "string", "minLength": 1 }
15
+ },
16
+ "checks": {
17
+ "type": "array",
18
+ "minItems": 1,
19
+ "items": {
20
+ "type": "object",
21
+ "additionalProperties": false,
22
+ "required": ["id", "run"],
23
+ "properties": {
24
+ "id": { "type": "string", "minLength": 1 },
25
+ "run": { "type": "string", "minLength": 1 },
26
+ "cwd": { "type": "string", "minLength": 1, "default": "." },
27
+ "timeoutSec": { "type": "integer", "minimum": 1, "maximum": 3600, "default": 600 }
28
+ }
29
+ }
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/dyphn1/Harness-everything/verification-loop/references/verify-result.schema.json",
4
+ "title": "Harness verification result",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["status", "reason", "repoRoot", "roots", "checks", "candidates"],
8
+ "properties": {
9
+ "status": {
10
+ "enum": ["PASSED", "FAILED", "UNCHECKED_NO_CHECKS", "UNCHECKED_DISCOVERED", "SKIPPED"]
11
+ },
12
+ "reason": { "type": "string" },
13
+ "repoRoot": { "type": "string" },
14
+ "roots": {
15
+ "type": "array",
16
+ "items": {
17
+ "type": "object",
18
+ "additionalProperties": false,
19
+ "required": ["path", "status", "reason", "checks", "candidates"],
20
+ "properties": {
21
+ "path": { "type": "string" },
22
+ "status": {
23
+ "enum": ["PASSED", "FAILED", "UNCHECKED_NO_CHECKS", "UNCHECKED_DISCOVERED"]
24
+ },
25
+ "reason": { "type": "string" },
26
+ "checks": { "$ref": "#/$defs/checkArray" },
27
+ "candidates": { "$ref": "#/$defs/candidateArray" }
28
+ }
29
+ }
30
+ },
31
+ "checks": { "$ref": "#/$defs/checkArray" },
32
+ "candidates": { "$ref": "#/$defs/candidateArray" }
33
+ },
34
+ "$defs": {
35
+ "checkArray": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "object",
39
+ "additionalProperties": true,
40
+ "required": ["id", "run", "cwd", "source", "exitCode", "durationMs"],
41
+ "properties": {
42
+ "id": { "type": "string" },
43
+ "run": { "type": "string" },
44
+ "cwd": { "type": "string" },
45
+ "source": { "type": "string" },
46
+ "exitCode": { "type": ["integer", "null"] },
47
+ "durationMs": { "type": "integer", "minimum": 0 }
48
+ }
49
+ }
50
+ },
51
+ "candidateArray": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "object",
55
+ "additionalProperties": false,
56
+ "required": ["source", "run", "cwd"],
57
+ "properties": {
58
+ "source": { "type": "string" },
59
+ "run": { "type": "string" },
60
+ "cwd": { "type": "string" }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }