harness-everything 1.5.4 → 1.6.1

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 (65) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.github/ISSUE_TEMPLATE/bug_report.yml +68 -0
  4. package/.github/ISSUE_TEMPLATE/config.yml +8 -0
  5. package/.github/ISSUE_TEMPLATE/feature_request.yml +33 -0
  6. package/.github/ISSUE_TEMPLATE/platform_compatibility.yml +80 -0
  7. package/.github/PULL_REQUEST_TEMPLATE.md +19 -0
  8. package/.github/dependabot.yml +13 -0
  9. package/.github/workflows/ci.yml +2 -2
  10. package/.github/workflows/release.yml +1 -1
  11. package/CHANGELOG.md +27 -0
  12. package/PRIVACY.md +34 -14
  13. package/README.md +76 -311
  14. package/ROADMAP.md +50 -0
  15. package/SECURITY.md +29 -8
  16. package/SUPPORT.md +4 -4
  17. package/TERMS.md +3 -3
  18. package/behavioral-evals/paired-benchmark.js +2 -2
  19. package/behavioral-evals/run-with-plugin.js +8 -3
  20. package/behavioral-evals/run.js +5 -3
  21. package/benchmarks/results/live-host/opencode-2026-12-02-450-steering/README.md +20 -0
  22. package/benchmarks/results/live-host/opencode-2026-12-02-450-steering/lifecycle.sanitized.jsonl +14 -0
  23. package/benchmarks/results/live-host/opencode-2026-12-02-450-steering/observations.sanitized.json +20 -0
  24. package/bin/cli.js +30 -7
  25. package/ci/ab-test-harness.js +2 -2
  26. package/ci/action-gate.test.js +186 -0
  27. package/ci/installer-roundtrip.test.js +20 -0
  28. package/ci/lib/opencode-v2-driver.js +3 -1
  29. package/ci/mechanism-2aa-codex-action-gate-policy.test.js +21 -0
  30. package/ci/mechanism-2ap-sbom.test.js +6 -6
  31. package/ci/mechanism-2j-behavioral-runner.test.js +45 -1
  32. package/ci/mechanism-2j-fixture-entrypoints.test.js +39 -0
  33. package/ci/mechanism-2x-release-commit-message.test.js +34 -23
  34. package/ci/mechanism-32-paired-benchmark.test.js +38 -0
  35. package/ci/mechanism-341-opencode-lane.test.js +5 -1
  36. package/ci/mechanism-397-cycle-import.test.js +5 -1
  37. package/ci/mechanism-397-opencode-observations.test.js +260 -24
  38. package/ci/mechanism-468-dispatch-cli.test.js +23 -0
  39. package/ci/mechanism-552-ledger-pairs.test.js +2 -0
  40. package/ci/mechanism-system-one-curves.test.js +26 -3
  41. package/ci/mechanism-system-one-cycle.test.js +5 -4
  42. package/ci/mechanism-system-one-live.test.js +6 -1
  43. package/ci/mechanism-task-git-authorization.test.js +14 -0
  44. package/docs/README.md +81 -0
  45. package/docs/codex-action-gate.md +1 -1
  46. package/docs/platform-capabilities.md +9 -4
  47. package/docs/platform-compatibility.json +3 -3
  48. package/docs/system-one-cycle.md +5 -5
  49. package/docs/system-one-routing.md +10 -7
  50. package/docs/system-one-training.md +4 -5
  51. package/harness-everything/SKILL.md +1 -1
  52. package/harness-everything/scripts/system-one/router.js +0 -1
  53. package/hooks/scripts/action-gate.js +82 -2
  54. package/opencode-plugin/index.mjs +97 -35
  55. package/opencode-plugin/plugin.json +1 -1
  56. package/package.json +15 -2
  57. package/plugins/harness-everything/.antigravity-plugin/plugin.json +1 -1
  58. package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
  59. package/plugins/harness-everything/hooks/scripts/action-gate.js +82 -2
  60. package/plugins/harness-everything/plugin.json +1 -1
  61. package/plugins/harness-everything/skills/harness-everything/SKILL.md +1 -1
  62. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/router.js +0 -1
  63. package/sbom.cdx.json +7 -7
  64. package/scripts/dispatch.js +3 -2
  65. package/scripts/system-one-curves.js +4 -32
package/docs/README.md ADDED
@@ -0,0 +1,81 @@
1
+ # Harness Documentation
2
+
3
+ Role- and task-oriented navigation portal for Harness. Each section links to the existing canonical documents without duplicating their content.
4
+
5
+ ```mermaid
6
+ flowchart LR
7
+ Start["New to Harness"] --> GS["Getting Started"]
8
+ GS --> UG["User Guide & Workflows"]
9
+ UG --> Arch["Architecture & Philosophy"]
10
+ UG --> Trust["Trust, Security & Evidence"]
11
+ Contrib["Contributing or Operating"] --> Dev["Development & Governance"]
12
+ Research["Exploring Experimental Work"] --> Res["Research & Experimental"]
13
+ ```
14
+
15
+ ## Getting Started
16
+
17
+ | Topic | Document | What it covers |
18
+ | --- | --- | --- |
19
+ | Overview & installation | [README.md](../README.md) | Problem statement, quick start, and install paths |
20
+ | Platform capability matrix | [platform-capabilities.md](platform-capabilities.md) | Supported hosts, install scopes, and live-host evidence boundaries |
21
+ | Machine-readable matrix | [platform-compatibility.json](platform-compatibility.json) | Structured host capability and verification statuses |
22
+ | Troubleshooting | [troubleshooting.md](troubleshooting.md) | Common setup, hook, and host-surface diagnostics |
23
+ | Support & issue reporting | [SUPPORT.md](../SUPPORT.md) | Where to report issues and what diagnostics to include |
24
+
25
+ ## User Guide & Workflows
26
+
27
+ | Topic | Document | What it covers |
28
+ | --- | --- | --- |
29
+ | Routing | [routing.md](routing.md) | Keyword routing signals, tier selection, and turn label line |
30
+ | Workflow runtime | [workflow-runtime.md](workflow-runtime.md) | Ordered requirement steps, bindings, and isolation rules |
31
+ | Audit | [audit.md](audit.md) | Self-audit checks and hook mechanism verification |
32
+ | Enforcement & locks | [enforcement-locks.md](enforcement-locks.md) | Active permission/safety boundaries and retired lock behavior |
33
+ | Contract integrity | [contract-integrity.md](contract-integrity.md) | Workflow and skill contract verification |
34
+ | OpenAI / Codex plugin | [openai-plugin.md](openai-plugin.md) | Local `.codex-plugin` setup vs. public Skills-only submission |
35
+ | Codex action gate | [codex-action-gate.md](codex-action-gate.md) | Codex-specific action-gate rules and deferred PR metadata policy |
36
+
37
+ ## Architecture & Philosophy
38
+
39
+ | Topic | Document | What it covers |
40
+ | --- | --- | --- |
41
+ | Philosophy | [philosophy.md](philosophy.md) | Minimal-rails design and `MUST` / `SHOULD` / `MAY` contract strength |
42
+ | Architecture | [architecture.md](architecture.md) | Core runtime components, hooks, and skill routing architecture |
43
+ | Mechanism-first skill mesh | [mechanism-first-skill-mesh.md](mechanism-first-skill-mesh.md) | Mechanism-first composition of skills and runtime checks |
44
+ | Reflection | [reflection.md](reflection.md) | Agent-initiated reassessment and zoom-out design |
45
+ | Architecture Decision Records | [adr/](adr/) | Accepted, proposed, and superseded ADRs |
46
+
47
+ ## Trust, Security & Evidence
48
+
49
+ | Topic | Document | What it covers |
50
+ | --- | --- | --- |
51
+ | Security policy | [SECURITY.md](../SECURITY.md) | Vulnerability reporting and hook security scope |
52
+ | Security audit | [security-audit.md](security-audit.md) | Repository security review notes and boundaries |
53
+ | Privacy notice | [PRIVACY.md](../PRIVACY.md) | Data handling, local-only state, and observation opt-out |
54
+ | Telemetry | [telemetry.md](telemetry.md) | Telemetry policy and local observation boundaries |
55
+ | System One observations | [system-one-observations.md](system-one-observations.md) | Local turn observation schema and redaction rules |
56
+ | Benchmarks | [benchmarks/README.md](../benchmarks/README.md) | Paired behavioral benchmark status and recording workflow |
57
+ | Release evidence | [release-evidence.md](release-evidence.md) | Observed npm/GitHub release verification ledger |
58
+ | Verifier boundaries | [verifier-boundaries.md](verifier-boundaries.md) | Path containment and exact execution evidence contracts |
59
+
60
+ ## Development & Governance
61
+
62
+ | Topic | Document | What it covers |
63
+ | --- | --- | --- |
64
+ | Contributing | [CONTRIBUTING.md](../CONTRIBUTING.md) | Local dev setup, quality gates, and PR expectations |
65
+ | Agent operating guide | [AGENTS.md](../AGENTS.md) | Repository layout, change rules, and verification commands |
66
+ | Repository contract | [repository-contract.md](repository-contract.md) | Generated Node runtime, workflow, and gate summary |
67
+ | Document lifecycle | [document-lifecycle.md](document-lifecycle.md) | Governance tiers, placement rules, and lifecycle checks |
68
+ | Governed document index | [governed-index.md](governed-index.md) | Active governed documents and ADR status index |
69
+ | Document-evidence boundary | [doc-evidence-boundary.md](doc-evidence-boundary.md) | Read-boundary enforcement for document evidence |
70
+
71
+ ## Research & Experimental
72
+
73
+ | Topic | Document | What it covers |
74
+ | --- | --- | --- |
75
+ | System One cycle | [system-one-cycle.md](system-one-cycle.md) | Monthly local observation, labeling, training, and publish runbook |
76
+ | System One routing | [system-one-routing.md](system-one-routing.md) | Experimental routing model integration and output contract |
77
+ | System One observations | [system-one-observations.md](system-one-observations.md) | Local observation store used by the training cycle |
78
+ | System One training | [system-one-training.md](system-one-training.md) | Classifier training stages and evaluation setup |
79
+ | System One corpus | [system-one-corpus.md](system-one-corpus.md) | Corpus construction and holdout structure |
80
+ | System One intent | [system-one-intent.md](system-one-intent.md) | Intent classification taxonomy and gating |
81
+ | Public roadmap | [ROADMAP.md](../ROADMAP.md) | Maturity tiers and linked GitHub Issues |
@@ -168,7 +168,7 @@ The Codex-only metadata exception checks the actual tool input, with all of thes
168
168
 
169
169
  Any additional key, including `state`, `base_branch`, `base`, `maintainer_can_modify`, `draft`, or an unknown key, prevents the exception, even when its value is null. Mixed metadata/high-risk inputs and similar operation names retain the existing Gate. Claude, OpenCode and unknown hosts retain their prior mutation rules. PR creation behavior is unchanged.
170
170
 
171
- Codex also defers only the exact Issue comment tools when their arguments are exactly `{ repo_full_name, pr_number, comment }` with a non-empty string comment, and the exact Issue update tools when their arguments are exactly `{ repository_full_name, issue_number, state: "closed", state_reason: "completed" }`. The comment connector uses `pr_number` for the Issue number. These remain `mutate`/`gated` actions and are audited as `routine-issue-comment` or `routine-issue-completed-close`; extra keys (including null), other states, required action gates, and other hosts stay gated.
171
+ Codex also defers only the exact Issue comment tools when their arguments are exactly `{ repo_full_name, pr_number, comment }` with a non-empty string comment, the exact Issue update tools when their arguments are exactly `{ repository_full_name, issue_number, state: "closed", state_reason: "completed" }`, and the exact confirmed GitHub MCP `create_issue` tools (`mcp__codex_apps__github__create_issue`, `mcp__codex_apps__github_create_issue`, `mcp__github__create_issue`) when their arguments contain exactly one valid repository selector (`repository_full_name` or `repo_full_name` as `owner/name`, or both single-segment `owner` and `repo`), a non-empty string `title`, and only optional typed `body` (string), `labels` (array of non-empty strings), `assignees` (array of non-empty strings), or `milestone` (positive safe integer). The comment connector uses `pr_number` for the Issue number. These remain `mutate`/`gated` actions (never downgraded to `read`/`unknown` or `shell`, and exact `mcp__*__create_issue` operations keep the same mutation-classification protection even for unknown providers) and are audited as `routine-issue-comment`, `routine-issue-completed-close`, or `routine-issue-create` with `deferred-to-host` and payload hash only (without storing raw title, body, or comment text); unknown providers (such as `mcp__demo__create_issue` or `mcp__get_provider__create_issue`), bare local-function `create_issue`, misleading names (`create_issues`, `foo_create_issue`), extra keys (including null), higher-risk descriptors, other states, required `actionGate` hints, and non-Codex hosts stay gated. These are deterministic mechanism rules, not live-host proof.
172
172
 
173
173
  ```mermaid
174
174
  flowchart LR
@@ -15,7 +15,7 @@ Statuses are intentionally explicit:
15
15
  - `Unsupported`: official host documentation explicitly rules out the capability.
16
16
  - `Unknown`: the capability or its current host behavior was not established.
17
17
 
18
- Codex, Antigravity (AGY), and OpenCode are `Partial` in `liveHostVerification`. The Codex artifact verifies user-hook compatibility capture for two consecutive turns on one Windows Codex CLI host; native plugin-hook mounting and other host/version combinations remain unverified. The AGY artifact covers global Desktop App `2.34.0` and `agy` CLI `1.5.15` (macOS), plus Windows Desktop and `agy` CLI `1.5.16` (`harness-everything` `1.0.1`), for plugin loading/validation and lifecycle hooks (including bounded 1-continuation `Stop` on Windows) under host-limited `PostToolUse` shell outcomes; IDE write tools, live `exitCode: 0` shell verification credit, live `model_stop`, and full project-scope isolation remain unverified. OpenCode supports the **V2 plugin API only** (OpenCode 1.x / V1 is unsupported): V2 live evidence covers one isolated `2.1.4` (macOS 26.6.2) long-lived server lifecycle trace (V2 default-export load, V2 tool hooks, V2 event envelope + `session.execution.succeeded`, and completion → verification → reminder delivery; standalone `opencode run` exits before verification finishes), earlier `2.1.3` macOS server-log load-only and `2.1.4` macOS workspace traces, and two isolated `2.4.1` (macOS 26.7.3) long-lived server runs establishing observation recording + idempotent training export (router/context injection indirectly observed via the model emitting the injected label contract, not a full injection trace) and mid-turn live steering delivery shape (witness-only for #450); ledger lessons, session create/delete reset, cancellation, global scope, npm-package install, and other versions/OSes remain unverified, while the retained OpenCode 1.18.31 (macOS) project-scope `.js` loading and edit/verification state artifact is historical/unsupported V1 evidence only. No fresh artifacts exist yet for the other surfaces, managed-workspace import, or public OpenAI approval.
18
+ Codex, Antigravity (AGY), and OpenCode are `Partial` in `liveHostVerification`. The Codex artifact verifies user-hook compatibility capture for two consecutive turns on one Windows Codex CLI host; native plugin-hook mounting and other host/version combinations remain unverified. The AGY artifact covers global Desktop App `2.34.0` and `agy` CLI `1.5.15` (macOS), plus Windows Desktop and `agy` CLI `1.5.16` (`harness-everything` `1.0.1`), for plugin loading/validation and lifecycle hooks (including bounded 1-continuation `Stop` on Windows) under host-limited `PostToolUse` shell outcomes; IDE write tools, live `exitCode: 0` shell verification credit, live `model_stop`, and full project-scope isolation remain unverified. OpenCode supports the **V2 plugin API only** (OpenCode 1.x / V1 is unsupported): V2 live evidence covers one isolated `2.1.4` (macOS 26.6.2) long-lived server lifecycle trace (V2 default-export load, V2 tool hooks, V2 event envelope + `session.execution.succeeded`, and completion → verification → reminder delivery; standalone `opencode run` exits before verification finishes), earlier `2.1.3` macOS server-log load-only and `2.1.4` macOS workspace traces, and two isolated `2.4.1` (macOS 26.7.3) long-lived server runs establishing observation recording + idempotent training export (router/context injection indirectly observed via the model emitting the injected label contract, not a full injection trace) and mid-turn live steering delivery shape (pre-fix witness for #450). A [2.4.1 Linux steering recheck](../benchmarks/results/live-host/opencode-2026-12-02-450-steering/README.md) observed two explicit unknown dispositions for a shared execution and a valid sequential control; session create/delete reset, cancellation, global scope, npm-package install, and untested host/version combinations remain unverified, while the retained OpenCode 1.18.31 (macOS) project-scope `.js` loading and edit/verification state artifact is historical/unsupported V1 evidence only. No fresh artifacts exist yet for the other surfaces, managed-workspace import, or public OpenAI approval.
19
19
 
20
20
  ### Codex PR metadata action-gate boundary
21
21
 
@@ -264,8 +264,13 @@ coverage of every V2 release:
264
264
  control receives its own `execution.started` + `succeeded`). Witness-only for
265
265
  #450 observation overwrite/drop; no product fix this round.
266
266
 
267
- These observations establish bounded V2 lifecycle coverage on macOS,
268
- not full V2 lifecycle verification across all hooks or platforms. The adapter
267
+ - **OpenCode 2.4.1 (Debian 13.7, 2026-12-02):** a
268
+ [steering recheck](../benchmarks/results/live-host/opencode-2026-12-02-450-steering/README.md)
269
+ used a real long-lived server with a scripted local model endpoint. Two
270
+ distinct delivered prompts shared one execution and each recorded
271
+ `final-message-unavailable`. The next execution recorded a valid label.
272
+
273
+ The macOS and Linux traces cover the lifecycle paths described above. The adapter
269
274
  has deterministic V2 mechanism coverage (`ci/mechanism-2n-opencode-plugin.test.js`,
270
275
  V2 edit/verification/reminder/state shapes;
271
276
  `ci/mechanism-2p-opencode-v2-entrypoint.test.js`, V2-only export contract and
@@ -274,7 +279,7 @@ injection, fail-open router diagnostics on launch or runtime failure, turn
274
279
  capture, malformed-label export counts, and opt-out). Full router/context
275
280
  injection trace, ledger lessons, session create/delete reset, cancellation,
276
281
  and workspace mismatch handling remain mechanism evidence only; global scope,
277
- npm-package install, and other versions/OSes remain unverified.
282
+ npm-package install, and untested host/version combinations remain unverified.
278
283
 
279
284
  **Historical / unsupported V1 evidence:** retained evidence from the retired V1
280
285
  era documents project-scope `.js` loading and edit/verification state on
@@ -185,15 +185,15 @@
185
185
  ],
186
186
  "capabilities": {
187
187
  "standaloneSkills": {"status": "Supported", "paths": {"project": [".opencode/skills", ".agents/skills", ".claude/skills"], "global": ["~/.config/opencode/skills", "~/.agents/skills", "~/.claude/skills"]}},
188
- "pluginSupport": {"status": "Partial", "paths": {"project": [".opencode/plugins"], "global": ["~/.config/opencode/plugins"]}, "notes": "OpenCode V2 plugin API only; OpenCode 1.x / V1 is unsupported (#453). Default export ({ id, setup(ctx) }) is the only public surface. Tested V2 live observations: OpenCode 2.1.4 (macOS 26.6.2, isolated V2 lifecycle trace at benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/README.md establishing V2 default-export load, tool hooks, event envelope + session.execution.succeeded, and completion -> verification -> reminder delivery on a long-lived server), OpenCode 2.1.3 (macOS, server-log load-only), OpenCode 2.1.4 (macOS, limited session workspace trace), and OpenCode 2.4.1 (macOS 26.7.3, long-lived server runs at benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/README.md and benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/README.md); no validated minimum patch version is claimed. Install under a .js filename because .mjs install names are silently ignored (issue #127). Retained OpenCode 1.18.31 (macOS) evidence (benchmarks/results/live-host/opencode-2026-09-16/README.md) is historical/unsupported V1 evidence only. Global scope, npm-package installation, and other host versions remain unverified (as do other OSes)."},
188
+ "pluginSupport": {"status": "Partial", "paths": {"project": [".opencode/plugins"], "global": ["~/.config/opencode/plugins"]}, "notes": "OpenCode V2 plugin API only; OpenCode 1.x / V1 is unsupported (#453). Default export ({ id, setup(ctx) }) is the only public surface. Tested V2 live observations: OpenCode 2.1.4 (macOS 26.6.2, isolated V2 lifecycle trace at benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/README.md establishing V2 default-export load, tool hooks, event envelope + session.execution.succeeded, and completion -> verification -> reminder delivery on a long-lived server), OpenCode 2.1.3 (macOS, server-log load-only), OpenCode 2.1.4 (macOS, limited session workspace trace), and OpenCode 2.4.1 (macOS 26.7.3, long-lived server runs at benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/README.md and benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/README.md); no validated minimum patch version is claimed. Install under a .js filename because .mjs install names are silently ignored (issue #127). Retained OpenCode 1.18.31 (macOS) evidence (benchmarks/results/live-host/opencode-2026-09-16/README.md) is historical/unsupported V1 evidence only. Linux OpenCode 2.4.1 project-scope load and steering are recorded at benchmarks/results/live-host/opencode-2026-12-02-450-steering/README.md. Global scope, npm-package installation, and other host versions remain unverified."},
189
189
  "bundledSkills": {"status": "Partial", "notes": "Harness provides a standalone enforcement module; it is not an OpenCode bundled-skill package."},
190
- "hooksLifecycle": {"status": "Partial", "notes": "OpenCode V2 plugin API only (OpenCode 1.x / V1 unsupported). An isolated OpenCode 2.1.4 (macOS 26.6.2) V2 lifecycle trace (benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/README.md) establishes V2 default-export load, V2 tool hooks (tool.execute.before/after), the V2 event envelope + session.execution.succeeded completion, and completion -> verification -> reminder delivery on a long-lived server (standalone opencode run exits before verification finishes). Two isolated OpenCode 2.4.1 (macOS 26.7.3) long-lived server runs establish observation recording + idempotent training export with router/context injection indirectly observed as the model emitted the injected label contract (benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/README.md) and mid-turn live steering delivery shape as witness-only for #450 (benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/README.md). Full router/context injection trace, ledger lessons, session create/delete reset, and cancellation were not exercised live and remain mechanism-verified only; OpenCode 2.1.3 evidence is load-only and the 2026-11-15 OpenCode 2.1.4 workspace trace did not fire V2 hooks. Retained historical/unsupported V1 evidence (benchmarks/results/live-host/opencode-2026-09-16/README.md) covers project-scope .js loading and edit/verification state on OpenCode 1.18.31 (macOS) from a post-reset snapshot predating Rule-of-3 retirement (hard lock was only an interactive observation with no retained blocked-tool trace; reflection was operator-seeded) and does not establish current V2 capability. Global scope, npm-package installation, and other host versions remain unverified (as do other OSes)."},
190
+ "hooksLifecycle": {"status": "Partial", "notes": "OpenCode V2 plugin API only (OpenCode 1.x / V1 unsupported). An isolated OpenCode 2.1.4 (macOS 26.6.2) V2 lifecycle trace (benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/README.md) establishes V2 default-export load, V2 tool hooks (tool.execute.before/after), the V2 event envelope + session.execution.succeeded completion, and completion -> verification -> reminder delivery on a long-lived server (standalone opencode run exits before verification finishes). Two isolated OpenCode 2.4.1 (macOS 26.7.3) long-lived server runs establish observation recording + idempotent training export with router/context injection indirectly observed as the model emitted the injected label contract (benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/README.md) and mid-turn live steering delivery shape as witness-only for #450 (benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/README.md). Full router/context injection trace, ledger lessons, session create/delete reset, and cancellation were not exercised live and remain mechanism-verified only; OpenCode 2.1.3 evidence is load-only and the 2026-11-15 OpenCode 2.1.4 workspace trace did not fire V2 hooks. Retained historical/unsupported V1 evidence (benchmarks/results/live-host/opencode-2026-09-16/README.md) covers project-scope .js loading and edit/verification state on OpenCode 1.18.31 (macOS) from a post-reset snapshot predating Rule-of-3 retirement (hard lock was only an interactive observation with no retained blocked-tool trace; reflection was operator-seeded) and does not establish current V2 capability. Linux OpenCode 2.4.1 project-scope load and steering are recorded at benchmarks/results/live-host/opencode-2026-12-02-450-steering/README.md. Global scope, npm-package installation, and other host versions remain unverified."},
191
191
  "projectScope": {"status": "Partial", "paths": {"skills": [".opencode/skills", ".agents/skills"], "plugins": [".opencode/plugins"]}, "notes": "Project-scope V2 default-export load, tool hooks, session.execution.succeeded completion, and completion -> verification -> reminder delivery on a long-lived server were observed on one OpenCode 2.1.4 (macOS 26.6.2) run (benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/README.md), alongside OpenCode 2.1.3 (macOS) server-log load, 2.1.4 (macOS) workspace field availability, and two OpenCode 2.4.1 (macOS 26.7.3) long-lived server runs establishing observation recording + training export (router/context injection indirectly observed via model-emitted label contract) and live steering delivery shape (benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/README.md, benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/README.md); full router/context injection trace, ledger lessons, session create/delete reset, and cancellation remain unverified live. Standalone skill discovery remains path-contract verified. Retained OpenCode 1.18.31 (macOS) artifact is historical/unsupported V1 evidence only."},
192
192
  "globalScope": {"status": "Mechanism verified", "paths": {"skills": ["~/.config/opencode/skills", "~/.agents/skills"], "plugins": ["~/.config/opencode/plugins"]}},
193
193
  "installUninstallSymmetry": {"status": "Unknown", "notes": "The adapter is manually copied; Harness does not own an OpenCode install/uninstall flow."},
194
194
  "assetsReferences": {"status": "Mechanism verified", "notes": "The adapter is self-contained and skill references are separately checked."},
195
195
  "updateSync": {"status": "Unknown", "notes": "No live OpenCode refresh or npm plugin update is preserved."},
196
- "liveHostVerification": {"status": "Partial", "evidence": "benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/README.md", "notes": "OpenCode V2 plugin API only; OpenCode 1.x / V1 is unsupported (#453). Tested V2 live evidence: one isolated OpenCode 2.1.4 (macOS 26.6.2) V2 lifecycle trace at benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/README.md (V2 default-export load, V2 tool hooks, V2 event envelope + session.execution.succeeded completion, and completion -> verification -> reminder delivery on a long-lived server; standalone opencode run exits before verification finishes), OpenCode 2.1.3 (macOS, server-log load-only), OpenCode 2.1.4 (macOS, limited session workspace trace at benchmarks/results/live-host/opencode-2026-11-15-workspace/README.md), and two isolated OpenCode 2.4.1 (macOS 26.7.3) long-lived server runs: benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/README.md (observation recording + idempotent training export; router/context injection indirectly observed as the model emitted the injected label contract, not a full injection trace) and benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/README.md (mid-turn live steering delivery shape, witness-only for #450); no validated minimum patch version is claimed. Full router/context injection trace, ledger lessons, session create/delete reset, and cancellation remain unverified live. The retained historical artifact at benchmarks/results/live-host/opencode-2026-09-16/README.md is historical/unsupported V1 evidence documenting project-scope .js loading and edit/verification state on OpenCode 1.18.31 (macOS), not current V2 capability or durable hard enforcement: final snapshot is post-reset (hardLock: false), hard lock was only an interactive observation with no retained blocked-tool trace, reflection was operator-seeded, and agent-controlled state deletion reset the former breaker before Rule-of-3 retirement. Global scope, npm-package installation, and other host versions remain unverified (as do other OSes)."}
196
+ "liveHostVerification": {"status": "Partial", "evidence": "benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/README.md", "notes": "OpenCode V2 plugin API only; OpenCode 1.x / V1 is unsupported (#453). Tested V2 live evidence: one isolated OpenCode 2.1.4 (macOS 26.6.2) V2 lifecycle trace at benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/README.md (V2 default-export load, V2 tool hooks, V2 event envelope + session.execution.succeeded completion, and completion -> verification -> reminder delivery on a long-lived server; standalone opencode run exits before verification finishes), OpenCode 2.1.3 (macOS, server-log load-only), OpenCode 2.1.4 (macOS, limited session workspace trace at benchmarks/results/live-host/opencode-2026-11-15-workspace/README.md), and two isolated OpenCode 2.4.1 (macOS 26.7.3) long-lived server runs: benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/README.md (observation recording + idempotent training export; router/context injection indirectly observed as the model emitted the injected label contract, not a full injection trace) and benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/README.md (mid-turn live steering delivery shape, witness-only for #450); no validated minimum patch version is claimed. Full router/context injection trace, ledger lessons, session create/delete reset, and cancellation remain unverified live. The retained historical artifact at benchmarks/results/live-host/opencode-2026-09-16/README.md is historical/unsupported V1 evidence documenting project-scope .js loading and edit/verification state on OpenCode 1.18.31 (macOS), not current V2 capability or durable hard enforcement: final snapshot is post-reset (hardLock: false), hard lock was only an interactive observation with no retained blocked-tool trace, reflection was operator-seeded, and agent-controlled state deletion reset the former breaker before Rule-of-3 retirement. Linux OpenCode 2.4.1 project-scope load and steering are recorded at benchmarks/results/live-host/opencode-2026-12-02-450-steering/README.md. Global scope, npm-package installation, and other host versions remain unverified."}
197
197
  }
198
198
  },
199
199
  {
@@ -47,10 +47,10 @@ node scripts/system-one-colab.js --data-dir "<private-cycle-dir>" --version <ver
47
47
 
48
48
  CPU is the default. `--gpu` selects the Colab GPU and passes `--device cuda`; CUDA runs need not be bit-identical to CPU runs. The launcher creates the remote bundle directories, then uploads only the built `training/v1/` and `training/v1-validity/` trainer inputs, the public trainer, and the two public holdout catalogs. It sends a SHA-256 manifest and checks every uploaded file on the VM before each stage. After training, the VM writes a status record with hashes for that stage's outputs; the launcher downloads the record first and verifies each downloaded file against it. Raw observations, relabels, adjudication, history, and private holdouts stay local. Each finished stage is downloaded and calibrated locally before the next task starts. Completed stages are reused on the next invocation, including after a later task fails. The launcher always attempts to stop the VM; if stopping fails, its diagnostic, the session ID, and a manual stop command are included in the CLI error. Set `COLAB_BIN` or pass `--colab` to use a different CLI binary, and optionally pass `--session` to choose its session name.
49
49
 
50
- F6 extends per-stage manifest metadata with `referenceOnly`; it does not
51
- authorize an additional top-level `workflowPlan.systemOne` field. The routing
52
- guide records the separate H1b output enrichment and the unresolved output
53
- shape discrepancy.
50
+ F6 extends per-stage manifest metadata with `referenceOnly`; reference-only
51
+ scores are surfaced through the router's reference diagnostics. The routing
52
+ guide records the separate H1b output enrichment and the
53
+ `workflowPlan.systemOne` contract shape.
54
54
 
55
55
  ## Run or resume the ordered path
56
56
 
@@ -68,7 +68,7 @@ node scripts/system-one-cycle.js all --until publish --data-dir "<private-cycle-
68
68
  - Cached resume is accepted only when the selected history reproduces its saved baseline, ordered predecessor comparisons, and verdict; incompatible history is rejected without changing history or saved artifacts.
69
69
  - Each stage keeps the first compatible historical holdout row as its floor baseline. Later rows record the baseline version and compare against that same row, including after partial recovery.
70
70
  - A supplied history path must resolve outside the repository and name a file. Malformed history fails visibly. On POSIX, newly created history directories and files use `0700` and `0600`; existing shared parent permissions are left alone. Windows ACLs remain the operator's responsibility.
71
- - The two-consecutive-cycle detector uses the latest three evaluation rows as its active-trend proxy. It does not identify the version currently installed; active-version rollback semantics remain with #443.
71
+ - History has no bound active-version identity, so the active trend is reported as unknown and rollback advisories are withheld. Candidate-to-candidate curve comparisons and their existing verdicts remain available; active-version rollback semantics need an approved identity schema.
72
72
 
73
73
  For a synthetic integration check that does not read local session data or invoke model engines, prepare the earlier stage artifacts and completion entries under `.s1-work/`, then run:
74
74
 
@@ -289,22 +289,22 @@ fixed version, weight hash, mode, raw stage probabilities, and thresholded
289
289
  decision. Unscored stages are `null`. When System One has no active version, the
290
290
  field is omitted. User-visible routing text labels the highest stage options
291
291
  with their probabilities as reference confidence, never as a verdict; it does
292
- not print prompt text or artifact paths. Checkpoint activation is opt-in and the
293
- default mode remains `off`.
292
+ not print prompt text or artifact paths. Reference-only scores are available in
293
+ the existing `reference.referenceOnlyOptions` diagnostics, not as a public key
294
+ in `workflowPlan.systemOne`. Checkpoint activation is opt-in and the default
295
+ mode remains `off`.
294
296
 
295
297
  H1b separately authorized the handoff count enrichment at
296
298
  `inputEnrichment.handoffFiles`. F6 authorized `referenceOnly` as optional
297
- per-stage manifest metadata; it did not explicitly approve a new top-level
298
- `referenceOnly` output field. The current router includes both fields in
299
- `workflowPlan.systemOne`, so the top-level `referenceOnly` field remains an
300
- unresolved discrepancy against shared contract B. The seven-field contract
301
- shape is:
299
+ per-stage manifest metadata. The `workflowPlan.systemOne` contract keeps the
300
+ H1b enrichment and has no top-level `referenceOnly` field:
302
301
 
303
302
  ```json
304
303
  {
305
304
  "version": "<active version id>",
306
305
  "sha256": "<first 16 hex digits of tier weights hash>",
307
306
  "mode": "live",
307
+ "inputEnrichment": { "handoffFiles": 0 },
308
308
  "validity": { "invalid": 0.12 },
309
309
  "intents": {
310
310
  "explain": 0.1, "discuss": 0.12, "git": 0.1, "fix": 0.81,
@@ -316,6 +316,9 @@ shape is:
316
316
  }
317
317
  ```
318
318
 
319
+ The separate reference diagnostic can include
320
+ `referenceOnlyOptions: [{ "stage": "intent", "id": "unclassified", "probability": 0.99 }]`.
321
+
319
322
  `decision.validity` is `actionable`, `invalid`, or `abstain`. `decision.intents`
320
323
  contains up to three above-threshold IDs in probability order. `decision.tier` is
321
324
  the unique highest above-threshold tier or `null` when the tier stage abstains.
@@ -220,13 +220,12 @@ flowchart LR
220
220
  C --> P{Candidate no worse on all curves?}
221
221
  F --> P
222
222
  P -->|yes| Promote[Promote]
223
- P -->|no, two consecutive declines| Rollback[Rollback]
224
223
  P -->|otherwise| Hold[Hold]
225
224
  ```
226
225
 
227
226
  Promotion requires the candidate to tie or improve the previous version on coverage-accuracy
228
227
  area, log loss and ECE, and a checked old-holdout floor with no regression. Missing holdout
229
- scores leave the floor unknown and block promotion. A rollback requires two consecutive
230
- history comparisons where the active trend is dominated across those same curves. The
231
- verdict is based on the whole curve; System One scores remain reference confidence, not
232
- absolute answers.
228
+ scores leave the floor unknown and block promotion. History has no active-version identity,
229
+ so the active trend is unknown and rollback advisories are withheld. Candidate comparison
230
+ still uses the whole curve; System One scores remain reference confidence, not absolute
231
+ answers.
@@ -4,7 +4,7 @@ description: "Route software/project work through Harness: classify tier/topolog
4
4
  license: Apache-2.0
5
5
  metadata:
6
6
  author: Miya Daniel
7
- version: 1.5.4
7
+ version: 1.6.1
8
8
  ---
9
9
 
10
10
  # Harness Everything
@@ -59,7 +59,6 @@ function routeLive(input, result) {
59
59
  mode: 'live',
60
60
  inputEnrichment: { handoffFiles: Number.isSafeInteger(result.inputEnrichment?.handoffFiles)
61
61
  ? result.inputEnrichment.handoffFiles : 0 },
62
- referenceOnly,
63
62
  validity: validityScores,
64
63
  intents,
65
64
  tier: tierScores,
@@ -157,12 +157,39 @@ const ISSUE_COMPLETED_CLOSE_TOOLS = new Set([
157
157
  'mcp__codex_apps__github__update_issue',
158
158
  'mcp__codex_apps__github_update_issue',
159
159
  ]);
160
- // Both Issue exceptions require an owner/name repository selector; an ownerless
160
+ const ISSUE_CREATE_TOOLS = new Set([
161
+ 'mcp__codex_apps__github__create_issue',
162
+ 'mcp__codex_apps__github_create_issue',
163
+ 'mcp__github__create_issue',
164
+ ]);
165
+ // Issue exceptions require an owner/name repository selector; an ownerless
161
166
  // name is uncertain and must keep the original gate.
162
167
  const OWNER_REPO_SELECTOR = /^[^/\s]+\/[^/\s]+$/;
168
+ const SINGLE_REPO_SEGMENT = /^[^/\s]+$/;
169
+ const ISSUE_CREATE_ALLOWED_KEYS = new Set([
170
+ 'repository_full_name',
171
+ 'repo_full_name',
172
+ 'owner',
173
+ 'repo',
174
+ 'title',
175
+ 'body',
176
+ 'labels',
177
+ 'assignees',
178
+ 'milestone',
179
+ ]);
180
+
181
+ function isIssueCreateTool(name) {
182
+ const text = String(name || '');
183
+ if (text === 'mcp__codex_apps__github_create_issue') return true;
184
+ const segments = text.split('__');
185
+ return segments.length >= 3
186
+ && segments[0].toLowerCase() === 'mcp'
187
+ && segments.slice(1, -1).every(Boolean)
188
+ && segments[segments.length - 1] === 'create_issue';
189
+ }
163
190
 
164
191
  function isRoutineIssueTool(name) {
165
- return ISSUE_COMMENT_TOOLS.has(name) || ISSUE_COMPLETED_CLOSE_TOOLS.has(name);
192
+ return ISSUE_COMMENT_TOOLS.has(name) || ISSUE_COMPLETED_CLOSE_TOOLS.has(name) || isIssueCreateTool(name);
166
193
  }
167
194
 
168
195
  function hasExactKeys(input, expected) {
@@ -170,6 +197,48 @@ function hasExactKeys(input, expected) {
170
197
  return keys.length === expected.length && expected.every(key => Object.prototype.hasOwnProperty.call(input, key));
171
198
  }
172
199
 
200
+ function isNonEmptyStringArray(value) {
201
+ return Array.isArray(value) && value.every(item => typeof item === 'string' && item.trim() !== '');
202
+ }
203
+
204
+ function hasValidRepoSelector(input) {
205
+ const hasRepositoryFullName = Object.prototype.hasOwnProperty.call(input, 'repository_full_name');
206
+ const hasRepoFullName = Object.prototype.hasOwnProperty.call(input, 'repo_full_name');
207
+ const hasOwner = Object.prototype.hasOwnProperty.call(input, 'owner');
208
+ const hasRepo = Object.prototype.hasOwnProperty.call(input, 'repo');
209
+
210
+ const selectorForms = (hasRepositoryFullName ? 1 : 0)
211
+ + (hasRepoFullName ? 1 : 0)
212
+ + ((hasOwner || hasRepo) ? 1 : 0);
213
+ if (selectorForms !== 1) return false;
214
+
215
+ if (hasRepositoryFullName) {
216
+ return typeof input.repository_full_name === 'string' && OWNER_REPO_SELECTOR.test(input.repository_full_name);
217
+ }
218
+ if (hasRepoFullName) {
219
+ return typeof input.repo_full_name === 'string' && OWNER_REPO_SELECTOR.test(input.repo_full_name);
220
+ }
221
+ return hasOwner && hasRepo
222
+ && typeof input.owner === 'string' && SINGLE_REPO_SEGMENT.test(input.owner)
223
+ && typeof input.repo === 'string' && SINGLE_REPO_SEGMENT.test(input.repo);
224
+ }
225
+
226
+ function isRoutineIssueCreation(payload) {
227
+ if (!ISSUE_CREATE_TOOLS.has(toolNameOf(payload))) return false;
228
+ const input = toolInputOf(payload);
229
+ if (!input || typeof input !== 'object' || Array.isArray(input)) return false;
230
+ const keys = Object.keys(input);
231
+ if (!keys.every(key => ISSUE_CREATE_ALLOWED_KEYS.has(key))) return false;
232
+ if (!hasValidRepoSelector(input)) return false;
233
+ if (typeof input.title !== 'string' || input.title.trim() === '') return false;
234
+ if (Object.prototype.hasOwnProperty.call(input, 'body') && typeof input.body !== 'string') return false;
235
+ if (Object.prototype.hasOwnProperty.call(input, 'labels') && !isNonEmptyStringArray(input.labels)) return false;
236
+ if (Object.prototype.hasOwnProperty.call(input, 'assignees') && !isNonEmptyStringArray(input.assignees)) return false;
237
+ if (Object.prototype.hasOwnProperty.call(input, 'milestone')
238
+ && (!Number.isSafeInteger(input.milestone) || input.milestone <= 0)) return false;
239
+ return true;
240
+ }
241
+
173
242
  function isRoutineIssueComment(payload) {
174
243
  const input = toolInputOf(payload);
175
244
  return ISSUE_COMMENT_TOOLS.has(toolNameOf(payload))
@@ -239,6 +308,16 @@ function structuredRule(payload, options = {}) {
239
308
  hostDeferredReason: 'Codex routine Issue completed-close operations defer to native task scope and permissions.',
240
309
  };
241
310
  }
311
+ if (detectHost(payload, options.host) === 'codex' && descriptor.action === 'mutate'
312
+ && isRoutineIssueCreation(payload) && !(hint && hint.required)) {
313
+ return {
314
+ descriptor,
315
+ rule: null,
316
+ hostDeferred: true,
317
+ hostDeferredId: 'routine-issue-create',
318
+ hostDeferredReason: 'Codex routine Issue creation defers to native task scope and permissions.',
319
+ };
320
+ }
242
321
  if (descriptor.classification === 'gated') {
243
322
  return {
244
323
  descriptor,
@@ -774,4 +853,5 @@ module.exports = {
774
853
  normalizeActionDescriptor,
775
854
  structuredRule,
776
855
  isRoutinePullRequestCreation,
856
+ isRoutineIssueCreation,
777
857
  };