harness-everything 1.3.1 → 1.4.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 (109) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.github/workflows/release.yml +7 -1
  4. package/AGENTS.md +1 -1
  5. package/CHANGELOG.md +25 -0
  6. package/RELEASING.md +2 -0
  7. package/behavioral-evals/ledger-pairs/README.md +53 -0
  8. package/behavioral-evals/ledger-pairs/arm.js +359 -0
  9. package/behavioral-evals/ledger-pairs/fixture.js +138 -0
  10. package/behavioral-evals/ledger-pairs/preflight.js +96 -0
  11. package/behavioral-evals/ledger-pairs/score.js +155 -0
  12. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/README.md +108 -0
  13. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-1-baseline/arm-plan.json +14 -0
  14. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-1-baseline/arm-result.json +35 -0
  15. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-1-treatment/arm-plan.json +14 -0
  16. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-1-treatment/arm-result.json +35 -0
  17. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-2-baseline/arm-plan.json +14 -0
  18. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-2-baseline/arm-result.json +35 -0
  19. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-2-treatment/arm-plan.json +14 -0
  20. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-2-treatment/arm-result.json +35 -0
  21. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-3-baseline/arm-plan.json +14 -0
  22. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-3-baseline/arm-result.json +35 -0
  23. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-3-treatment/arm-plan.json +14 -0
  24. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-3-treatment/arm-result.json +35 -0
  25. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-4-baseline/arm-plan.json +14 -0
  26. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-4-baseline/arm-result.json +28 -0
  27. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-4-treatment/arm-plan.json +14 -0
  28. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-4-treatment/arm-result.json +35 -0
  29. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-1-baseline/arm-plan.json +13 -0
  30. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-1-baseline/arm-result.json +56 -0
  31. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-1-treatment/arm-plan.json +13 -0
  32. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-1-treatment/arm-result.json +56 -0
  33. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-2-baseline/arm-plan.json +13 -0
  34. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-2-baseline/arm-result.json +56 -0
  35. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-2-treatment/arm-plan.json +13 -0
  36. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-2-treatment/arm-result.json +56 -0
  37. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-3-baseline/arm-plan.json +13 -0
  38. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-3-baseline/arm-result.json +49 -0
  39. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-3-treatment/arm-plan.json +13 -0
  40. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-3-treatment/arm-result.json +49 -0
  41. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-4-baseline/arm-plan.json +13 -0
  42. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-4-baseline/arm-result.json +49 -0
  43. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-4-treatment/arm-plan.json +13 -0
  44. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-4-treatment/arm-result.json +56 -0
  45. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-baseline/arm-plan.json +14 -0
  46. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-baseline/arm-result.json +44 -0
  47. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-baseline/receipt.jsonl +17 -0
  48. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-treatment/arm-plan.json +14 -0
  49. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-treatment/arm-result.json +41 -0
  50. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-treatment/receipt.jsonl +58 -0
  51. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-baseline/arm-plan.json +14 -0
  52. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-baseline/arm-result.json +50 -0
  53. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-baseline/receipt.jsonl +101 -0
  54. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-treatment/arm-plan.json +14 -0
  55. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-treatment/arm-result.json +44 -0
  56. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-treatment/receipt.jsonl +29 -0
  57. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-baseline/arm-plan.json +14 -0
  58. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-baseline/arm-result.json +44 -0
  59. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-baseline/receipt.jsonl +23 -0
  60. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-treatment/arm-plan.json +14 -0
  61. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-treatment/arm-result.json +34 -0
  62. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-treatment/receipt.jsonl +24 -0
  63. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-baseline/arm-plan.json +14 -0
  64. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-baseline/arm-result.json +47 -0
  65. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-baseline/receipt.jsonl +69 -0
  66. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-treatment/arm-plan.json +14 -0
  67. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-treatment/arm-result.json +44 -0
  68. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-treatment/receipt.jsonl +65 -0
  69. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/run-order.sh +18 -0
  70. package/benchmarks/results/live-host/ledger-pairs-2026-11-28/score.json +1032 -0
  71. package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/README.md +50 -0
  72. package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/collect-rerun.txt +3 -0
  73. package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/export-report.json +22 -0
  74. package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/host-version.txt +1 -0
  75. package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/import-report-1.json +18 -0
  76. package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/import-report-2.json +18 -0
  77. package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/labels-observed-excerpt.jsonl +2 -0
  78. package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/observations-index-excerpt.json +26 -0
  79. package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/plugin-load-lines.txt +1 -0
  80. package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/README.md +46 -0
  81. package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/observations-index-excerpt.json +16 -0
  82. package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/plugin-load-lines.txt +2 -0
  83. package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/run-marks.txt +6 -0
  84. package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/steering-probe.js +16 -0
  85. package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/steering-trace.jsonl +167 -0
  86. package/ci/mechanism-332-fable-directive.test.js +180 -0
  87. package/ci/mechanism-552-ledger-pairs.test.js +159 -0
  88. package/ci/mechanism-system-one-colab.test.js +450 -0
  89. package/ci/router-workflow-plan.test.js +61 -21
  90. package/ci/system-one-train-test.py +26 -0
  91. package/docs/platform-capabilities.md +28 -11
  92. package/docs/platform-compatibility.json +5 -5
  93. package/docs/system-one-cycle.md +10 -0
  94. package/docs/system-one-training.md +3 -1
  95. package/harness-everything/SKILL.md +1 -1
  96. package/harness-everything/scripts/routing-keywords.json +0 -2
  97. package/harness-everything/scripts/tier-router.js +105 -11
  98. package/opencode-plugin/plugin.json +1 -1
  99. package/package.json +1 -1
  100. package/plugins/harness-everything/.antigravity-plugin/plugin.json +1 -1
  101. package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
  102. package/plugins/harness-everything/plugin.json +1 -1
  103. package/plugins/harness-everything/rules/AGENTS.md +1 -1
  104. package/plugins/harness-everything/skills/harness-everything/SKILL.md +1 -1
  105. package/plugins/harness-everything/skills/harness-everything/scripts/routing-keywords.json +0 -2
  106. package/plugins/harness-everything/skills/harness-everything/scripts/tier-router.js +105 -11
  107. package/sbom.cdx.json +7 -7
  108. package/scripts/system-one-colab.js +238 -0
  109. package/scripts/system-one-train.py +36 -9
@@ -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), alongside earlier `2.1.3` macOS server-log load-only and `2.1.4` macOS workspace traces; router/context injection, observation recording, 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 (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.
19
19
 
20
20
  ### Codex PR metadata action-gate boundary
21
21
 
@@ -81,7 +81,7 @@ Source and packaged plugin self-evolve entrypoints use installation-relative can
81
81
 
82
82
  ### Error-ledger lesson injection (mechanism only, #394)
83
83
 
84
- A shared matcher (`hooks/scripts/lib/ledger-match.js`) selects workspace ledger lessons whose `match` rules fit a direct `git commit` action (optionally after `-C`, `-c`, `--git-dir=`, `--work-tree=`, `--no-pager` or `-P`; compound and wrapped commands stay silent, #502) or its commitlint failure; rules are read from the generated index row and checked against the record's frontmatter binding, and the host carriers add the record's Cue and Lesson as model context: Claude Code `PreToolUse` and `PostToolUseFailure` (`hooks/scripts/ledger-lesson.js`), Codex `PreToolUse` and `PostToolUse` with outcome classification (`hooks/scripts/codex-ledger-lesson.js`, packaged and user-hook compatibility paths), and OpenCode V2 tool `execute.before/after` selection delivered through the next `context` hook, i.e. after the action. OpenCode 1.x / V1 is unsupported; lesson delivery targets the OpenCode V2 plugin API only. Delivery is bounded, deduplicated per session and phase, fail-open, and never changes a tool result or permission. Deterministic mechanism tests cover all three carriers. [Claude Code live evidence](../benchmarks/results/live-host/claude-2026-11-21-ledger-lesson/README.md) (2.1.330, one run) shows both contexts in the model request that follows the commit, so the action lesson arrives after the first attempt. Codex and OpenCode live receipt remain `UNCHECKED`.
84
+ A shared matcher (`hooks/scripts/lib/ledger-match.js`) selects workspace ledger lessons whose `match` rules fit a direct `git commit` action (optionally after `-C`, `-c`, `--git-dir=`, `--work-tree=`, `--no-pager` or `-P`; compound and wrapped commands stay silent, #502) or its commitlint failure; rules are read from the generated index row and checked against the record's frontmatter binding, and the host carriers add the record's Cue and Lesson as model context: Claude Code `PreToolUse` and `PostToolUseFailure` (`hooks/scripts/ledger-lesson.js`), Codex `PreToolUse` and `PostToolUse` with outcome classification (`hooks/scripts/codex-ledger-lesson.js`, packaged and user-hook compatibility paths), and OpenCode V2 tool `execute.before/after` selection delivered through the next `context` hook, i.e. after the action. OpenCode 1.x / V1 is unsupported; lesson delivery targets the OpenCode V2 plugin API only. Delivery is bounded, deduplicated per session and phase, fail-open, and never changes a tool result or permission. Deterministic mechanism tests cover all three carriers. [Claude Code live evidence](../benchmarks/results/live-host/claude-2026-11-21-ledger-lesson/README.md) (2.1.330, one run) shows both contexts in the model request that follows the commit, so the action lesson arrives after the first attempt. [OpenCode 2.4.1 (macOS, long-lived server) live evidence](../benchmarks/results/live-host/ledger-pairs-2026-11-28/README.md) shows the E-0003 Cue/Lesson reaching the next `context` hook after a matched `git commit` (6/8 arms, after the action); Codex live receipt on a real `git commit` remains `UNCHECKED` (the F run used a prepared-commit protocol, so the carrier was not triggered).
85
85
 
86
86
  ## Current capability summary
87
87
 
@@ -91,7 +91,7 @@ A shared matcher (`hooks/scripts/lib/ledger-match.js`) selects workspace ledger
91
91
  | Antigravity (AGY) | `Supported` | `Partial` (`Mechanism verified`; global Desktop App `2.34.0` load and `agy` CLI `1.5.15` `validate`/`list --json` live-verified on macOS, plus `agy` CLI `1.5.16` `validate`/`list --json` on Windows; `validate --strict` fails on 2 multi-host warnings; temp `.agents/plugins/` hook discovery observed via `agy --print`) | `Partial`: `Mechanism verified` for all adapters; Desktop App `2.34.0` + CLI `1.5.15` (macOS) live-verified `SessionStart`, `PreInvocation` dedup, `PreToolUse` (`write_file`/`run_command`), `PostToolUse` edit tracking, and `Stop` (`NO_TOOL_CALL`); Windows Desktop + CLI `1.5.16` (`harness-everything` `1.0.1`) live-verified `SessionStart`, `PreInvocation`, and bounded 1-continuation `Stop`; `PostToolUse` omits `exitCode`/`error` on shell outcomes on macOS `2.34.0`/CLI `1.5.15` and Windows Desktop, so unknown shell outcomes grant no verification credit (`exitCode === 0` required); IDE write tools (`write_to_file`/`replace_file_content`/`multi_replace_file_content`) and live `model_stop` remain mechanism-only | `.agents/plugins/harness-everything/`, `.agents/rules/AGENTS.md` | `~/.gemini/config/plugins/harness-everything/` | [Mechanism evidence](../benchmarks/results/live-host/agy-2026-11-22/README.md) + [macOS partial live-host evidence](../benchmarks/results/live-host/agy-2026-11-23/README.md) + [Windows partial live-host evidence](../benchmarks/results/live-host/agy-2026-11-25/README.md); `/hooks` TUI view, full project-scope `harness-everything` isolation, IDE write tools, live shell `exitCode: 0` verification credit, and live `Stop` `model_stop` remain open in issue #514. |
92
92
  | ChatGPT / OpenAI Plugin | `Unknown` for a repository-local standalone path | `Mechanism verified` | `Partial`: local Work/Codex hooks are separate from ordinary Chat | Managed workspace marketplace | Not established | The public Skills-only bundle is mechanically reproducible; import, approval, and live behavior remain `Unknown`. |
93
93
  | Claude Code | `Supported` | `Supported` | `Mechanism verified` for Harness configuration | `.claude/skills/` | `~/.claude/skills/` | Native Claude surfaces and the state-specific plugin sync command are mechanically checked; fresh-host execution is not preserved here. |
94
- | OpenCode | `Supported` | `Partial` (V2 plugin API only; OpenCode 1.x / V1 unsupported; V2 default-export load verified live on OpenCode 2.1.3 macOS via server-log only and in the 2.1.4 macOS 26.6.2 V2 lifecycle trace, plus a 2.1.4 macOS workspace trace; router injection and observation capture are mechanism-tested on V2) | `Partial` (V2 default-export load, V2 tool hooks, V2 event envelope + `session.execution.succeeded`, and completion → verification → reminder delivery on a long-lived server are live-observed on one OpenCode 2.1.4 macOS 26.6.2 run; router/context injection, observations, ledger lessons, session create/delete reset, and cancellation remain mechanism-verified only; retained 1.18.31 project-scope `.js` loading and edit/verification state artifact is historical/unsupported V1 evidence) | `.opencode/skills/`, `.agents/skills/`, `.opencode/plugins/` | `~/.config/opencode/skills/`, `~/.agents/skills/`, `~/.config/opencode/plugins/` | **V2-only support boundary (#453):** OpenCode V2 plugin API family only (OpenCode 1.x / V1 unsupported; no validated minimum patch version claimed). Tested V2 live observations: 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) (one host/version/run establishing V2 default-export load, V2 tool hooks, V2 event envelope + `session.execution.succeeded` completion, and completion → verification → reminder delivery on a long-lived server; `opencode run --standalone` exits before verification finishes), V2 default-export load on OpenCode 2.1.3 (macOS, 2026-10-23, server-log evidence only), and a separate [OpenCode 2.1.4/macOS session workspace trace](../benchmarks/results/live-host/opencode-2026-11-15-workspace/README.md) observing `ctx.session.get({sessionID})` returning `location.directory` for two sessions matching setup (no mismatch test or V2 hook fire). Router/context injection, observation recording, ledger lessons, session create/delete reset, cancellation, and workspace mismatch handling remain mechanism evidence only. [Retained historical/unsupported V1 evidence](../benchmarks/results/live-host/opencode-2026-09-16/README.md) (OpenCode 1.18.31, macOS) documents project-scope `.js` loading and edit/verification state in one V1 host session, with a post-reset final snapshot, hard lock only an interactive observation with no retained blocked-tool trace, and operator-seeded then agent-rewritten reflection; it is preserved as historical/unsupported evidence only and does not establish current V2 support. `.mjs` auto-discovery is silently ignored (issue #127); global scope, npm-package installation, and other host versions remain unverified. |
94
+ | OpenCode | `Supported` | `Partial` (V2 plugin API only; OpenCode 1.x / V1 unsupported; V2 default-export load verified live on OpenCode 2.1.3 macOS via server-log only, in the 2.1.4 macOS 26.6.2 V2 lifecycle trace and 2.1.4 macOS workspace trace, and in the 2.4.1 macOS 26.7.3 long-lived server runs; full router injection trace remains mechanism-tested on V2) | `Partial` (V2 default-export load, V2 tool hooks, V2 event envelope + `session.execution.succeeded`, and completion → verification → reminder delivery on a long-lived server are live-observed on OpenCode 2.1.4 macOS 26.6.2; observation recording + training export — with router/context injection indirectly observed as the model emitted the injected label contract — and mid-turn live steering delivery shape are live-observed on OpenCode 2.4.1 macOS 26.7.3 on a long-lived server; E-0003 ledger-lesson context delivery after a matched `git commit` is live-observed on OpenCode 2.4.1 macOS (paired run, after the action); full router/context injection trace, lesson delivery before the action, session create/delete reset, and cancellation remain mechanism-verified only; retained 1.18.31 project-scope `.js` loading and edit/verification state artifact is historical/unsupported V1 evidence) | `.opencode/skills/`, `.agents/skills/`, `.opencode/plugins/` | `~/.config/opencode/skills/`, `~/.agents/skills/`, `~/.config/opencode/plugins/` | **V2-only support boundary (#453):** OpenCode V2 plugin API family only (OpenCode 1.x / V1 unsupported; no validated minimum patch version claimed). Tested V2 live observations: 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) (one host/version/run establishing V2 default-export load, V2 tool hooks, V2 event envelope + `session.execution.succeeded` completion, and completion → verification → reminder delivery on a long-lived server; `opencode run --standalone` exits before verification finishes), V2 default-export load on OpenCode 2.1.3 (macOS, 2026-10-23, server-log evidence only), a separate [OpenCode 2.1.4/macOS session workspace trace](../benchmarks/results/live-host/opencode-2026-11-15-workspace/README.md) observing `ctx.session.get({sessionID})` returning `location.directory` for two sessions matching setup (no mismatch test or V2 hook fire), and two isolated OpenCode 2.4.1/macOS 26.7.3 long-lived server runs (`OPENCODE_PASSWORD` required): [turn → export trace](../benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/README.md) (observation recording for two turns + idempotent training export; router/context injection indirectly observed as the model emitted the injected label contract, not a full injection trace) and [steering trace](../benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/README.md) (mid-turn live steering delivery shape, witness-only for #450). Full router/context injection trace, ledger lessons, session create/delete reset, cancellation, and workspace mismatch handling remain mechanism evidence only. [Retained historical/unsupported V1 evidence](../benchmarks/results/live-host/opencode-2026-09-16/README.md) (OpenCode 1.18.31, macOS) documents project-scope `.js` loading and edit/verification state in one V1 host session, with a post-reset final snapshot, hard lock only an interactive observation with no retained blocked-tool trace, and operator-seeded then agent-rewritten reflection; it is preserved as historical/unsupported evidence only and does not establish current V2 support. `.mjs` auto-discovery is silently ignored (issue #127); global scope, npm-package installation, and other host versions remain unverified (as do other OSes). |
95
95
  | GitHub Copilot agent surfaces | `Supported` | `Unknown` for a Harness-specific plugin install | `Unknown` | `.github/skills/`, `.agents/skills/`, repository instructions | `~/.copilot/skills/`, `~/.agents/skills/` | GitHub Agent Skills paths and installer behavior are checked; no live Copilot session or plugin install is preserved. |
96
96
  | Cursor | `Supported` | `Mechanism verified` for the portable package shape | `Unknown` for Harness | `.cursor/skills/`, `.agents/skills/` | `~/.cursor/skills/`, `~/.agents/skills/` | Official paths and package shape are checked; Cursor plugin loading and hooks remain unverified. |
97
97
  | Continue.dev | `Unknown` for standalone `SKILL.md` discovery | `Unknown` | `Unknown` | `.continue/rules/` is documented; `.continue/skills/` is only an installer candidate | `~/.continue/skills/` is only an installer candidate | The reviewed official docs establish rules, not an Agent Skills host contract. |
@@ -237,20 +237,37 @@ coverage of every V2 release:
237
237
  the V2 event envelope (`{id, created, type, durable, data}`) and
238
238
  `session.execution.succeeded` completion type, and completion → verification →
239
239
  reminder delivery. Standalone `opencode run --standalone` shuts down before
240
- verification finishes. Not exercised: router/context injection, observation
241
- recording, ledger lessons, session create/delete reset, cancellation, global
242
- scope, npm-package install, other OpenCode versions, and Windows/Linux.
243
-
244
- These observations establish bounded V2 lifecycle coverage on one macOS host,
240
+ verification finishes. Not exercised in this run: router/context injection,
241
+ observation recording, ledger lessons, session create/delete reset, cancellation,
242
+ global scope, npm-package install, other OpenCode versions, and Windows/Linux.
243
+ - **OpenCode 2.4.1 (macOS 26.7.3, 2026-11-28):** two isolated long-lived server
244
+ runs (`opencode serve --hostname 127.0.0.1` + `opencode run --server`; 2.4.1
245
+ requires `OPENCODE_PASSWORD`):
246
+ - [Turn → export trace (#397)](../benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/README.md):
247
+ establishes live observation recording for two consecutive turns in one
248
+ session and idempotent `system-one-cycle` training import/export
249
+ (`persisted: 2` → `persisted: 0, duplicate: 2`, identical export IDs,
250
+ `acceptanceRate: 1`). Router/context injection was indirectly observed
251
+ (model emitted the injected label contract), not a full injection trace.
252
+ - [Steering trace (#450)](../benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/README.md):
253
+ establishes mid-turn live steering delivery shape (`prompt` +
254
+ `session.inbox.enqueued` + `session.inbox.delivered`, steered message in the
255
+ next `context` of the same execution, no new `session.execution.started`, one
256
+ `session.execution.succeeded` covering both prompts; sequential post-settle
257
+ control receives its own `execution.started` + `succeeded`). Witness-only for
258
+ #450 observation overwrite/drop; no product fix this round.
259
+
260
+ These observations establish bounded V2 lifecycle coverage on macOS,
245
261
  not full V2 lifecycle verification across all hooks or platforms. The adapter
246
262
  has deterministic V2 mechanism coverage (`ci/mechanism-2n-opencode-plugin.test.js`,
247
263
  V2 edit/verification/reminder/state shapes;
248
264
  `ci/mechanism-2p-opencode-v2-entrypoint.test.js`, V2-only export contract and
249
265
  lifecycle shapes; `ci/mechanism-397-opencode-observations.test.js`, router
250
266
  injection, fail-open router diagnostics on launch or runtime failure, turn
251
- capture, malformed-label export counts, and opt-out). Prompt/context injection,
252
- observation capture, ledger lessons, session create/delete reset, cancellation,
253
- and workspace mismatch handling remain mechanism evidence only.
267
+ capture, malformed-label export counts, and opt-out). Full router/context
268
+ injection trace, ledger lessons, session create/delete reset, cancellation,
269
+ and workspace mismatch handling remain mechanism evidence only; global scope,
270
+ npm-package install, and other versions/OSes remain unverified.
254
271
 
255
272
  **Historical / unsupported V1 evidence:** retained evidence from the retired V1
256
273
  era documents project-scope `.js` loading and edit/verification state on
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "format": "harness-platform-compatibility-v1",
3
- "last_reviewed": "2026-11-24",
3
+ "last_reviewed": "2026-11-28",
4
4
  "status_vocabulary": {
5
5
  "Supported": "An official or native mechanism exists and the Harness behavior is verified.",
6
6
  "Mechanism verified": "Harness package, adapter, or installer checks pass, but a real host run is not confirmed.",
@@ -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), and OpenCode 2.1.4 (macOS, limited session workspace trace); 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."},
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)."},
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). Router/context injection, observation recording, 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."},
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 and 2.1.4 (macOS) workspace field availability; router/context injection, observations, 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."},
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)."},
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; router/context injection, observation recording, ledger lessons, session create/delete reset, and cancellation not exercised), OpenCode 2.1.3 (macOS, server-log load-only), and OpenCode 2.1.4 (macOS, limited session workspace trace at benchmarks/results/live-host/opencode-2026-11-15-workspace/README.md); no validated minimum patch version is claimed. 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."}
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)."}
197
197
  }
198
198
  },
199
199
  {
@@ -36,6 +36,16 @@ flowchart LR
36
36
 
37
37
  ¹ Durations are planning estimates, not measurements from this checkout. Model latency and dataset size vary.
38
38
 
39
+ ## Train on Colab
40
+
41
+ The owner can start the same ordered training stages on a Colab VM from the local private cycle directory:
42
+
43
+ ```sh
44
+ node scripts/system-one-colab.js --data-dir "<private-cycle-dir>" --version <version-id> [--gpu T4|L4|A100]
45
+ ```
46
+
47
+ 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.
48
+
39
49
  F6 extends per-stage manifest metadata with `referenceOnly`; it does not
40
50
  authorize an additional top-level `workflowPlan.systemOne` field. The routing
41
51
  guide records the separate H1b output enrichment and the unresolved output
@@ -176,10 +176,12 @@ prompts written by an agent, not by the owner. VS Code terminal notifications
176
176
  `labels-intent.jsonl` rows and the fixed intent catalog; its hard target is multi-hot for
177
177
  `gold` plus `secondary`. With `--target scores`, each intent's value from
178
178
  `labels-intent-scores.jsonl` is its soft target.
179
- - **Optimization**: per-option binary cross-entropy with logits, AdamW, a fixed seed and CPU.
179
+ - **Optimization**: per-option binary cross-entropy with logits, AdamW, a fixed seed and `--device {cpu,cuda,auto}` (default `cpu`).
180
180
  Validation applies sigmoid independently to each option; `val-scores.jsonl` stores rows as
181
181
  `{id, gold, scores: {option: probability}}`; option probabilities are independent and do
182
182
  not have to sum to one.
183
+ - `auto` selects CUDA when available; requesting unavailable CUDA exits with an error. The
184
+ resolved device and PyTorch version are recorded in checkpoint metadata and `train-report.json`.
183
185
  - The epoch with the lowest validation negative log-likelihood is kept.
184
186
  - The checkpoint metadata records the dataset hashes, the config and the validation metrics.
185
187
  - **Calibration**: `minConfidence` and `minMargin` are chosen on validation to maximize
@@ -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.2.2
7
+ version: 1.3.2
8
8
  ---
9
9
 
10
10
  # Harness Everything
@@ -28,8 +28,6 @@
28
28
  "subagent",
29
29
  "sub-agent",
30
30
  "multi-agent",
31
- "fable",
32
- "fable-mode",
33
31
  "stage discipline",
34
32
  "multi-stage",
35
33
  "named workers",
@@ -141,26 +141,120 @@ function isFableProfileLookup(prompt, hasMacroSignal) {
141
141
  return true;
142
142
  }
143
143
 
144
- function detectExplicitStrategy(prompt, requestedFableModel) {
144
+ const FABLE_STRATEGIES = [
145
+ ['fable-multi-agent-workspace', /\bfable[- ]multi[- ]agent[- ]workspace\b|\bmulti[- ]agent workspace\b/i],
146
+ ['fable-parallel', /\bfable[- ]parallel\b|\bparallel fable\b/i],
147
+ ['fable-staged', /\bfable[- ]staged\b|\bstaged fable\b/i],
148
+ ];
149
+ const FABLE_PROHIBITION = /\b(?:no|without|do\s+not|don't|never|cannot|can't|not)\s+(?:use\s+)?fable(?:[- ]mode)?\b|(?:不要|不需要|無需|無須|不必|毋須|不用|別|勿|請勿|避免|停止|不)\s*(?:使用|用|啟用|進入|執行)?\s*fable(?:[- ]mode)?/i;
150
+ const FABLE_REQUEST_PREFIX = /^(?:(?:please|let's|now|could\s+you(?:\s+please)?|would\s+you(?:\s+please)?)\s+|(?:請|幫我|麻煩)\s*)*/i;
151
+ const FABLE_REQUEST_VERB = /^(?:use|run|enter)\s+fable(?:[- ]mode)?\b|^(?:使用|用|啟用|進入|執行|改用)\s*fable(?:[- ]mode)?/i;
152
+ const FABLE_NAMED_REQUEST = /^(?:use|run|enter|改用)\s+(fable[- ](?:multi[- ]agent[- ]workspace|parallel|staged))\b/i;
153
+ const FABLE_PROFILE_REQUEST = /^(?:use|run|enter|改用)\s+fable(?:[- ]mode)?\s+(?:on|with)\s+(haiku|sonnet|sonnect|opus)\b/i;
154
+
155
+ function splitFableDirectiveClauses(prompt) {
156
+ const text = String(prompt || '');
157
+ const parts = [];
158
+ let part = '';
159
+ let quote = null;
160
+ const push = () => {
161
+ if (part.trim()) parts.push(part.trim());
162
+ part = '';
163
+ };
164
+ const wordSeparators = /^(?:and\s+then|and|then|also|plus|afterwards|additionally|but|並且|並|以及|接著|然後|另外)/iu;
165
+
166
+ for (let i = 0; i < text.length; i += 1) {
167
+ const char = text[i];
168
+ if (quote) {
169
+ if (char === quote) quote = null;
170
+ part += char;
171
+ continue;
172
+ }
173
+ if (char === '"' || char === '`' || char === '“' || char === '‘' ||
174
+ (char === "'" && !/[\p{L}\p{N}]/u.test(text[i - 1] || '') && /[\p{L}\p{N}]/u.test(text[i + 1] || ''))) {
175
+ quote = char === '“' ? '”' : char === '‘' ? '’' : char;
176
+ part += char;
177
+ continue;
178
+ }
179
+ if (/[;!??!,,;。、…]/u.test(char) || (char === '.' && (i + 1 === text.length || /\s/u.test(text[i + 1])))) {
180
+ push();
181
+ continue;
182
+ }
183
+ const word = text.slice(i).match(wordSeparators);
184
+ if (word && (i === 0 || /\s/u.test(text[i - 1])) &&
185
+ (i + word[0].length === text.length || /\s/u.test(text[i + word[0].length]))) {
186
+ push();
187
+ i += word[0].length - 1;
188
+ continue;
189
+ }
190
+ part += char;
191
+ }
192
+ push();
193
+ return parts;
194
+ }
195
+
196
+ function detectFableRequest(clause) {
197
+ const directive = String(clause || '').trim().replace(FABLE_REQUEST_PREFIX, '').trim();
198
+ const named = FABLE_STRATEGIES.find(([, pattern]) => new RegExp(`^(?:${pattern.source})`, 'i').test(directive));
199
+ if (named) return { strategy: named[0], profile: null };
200
+ const namedRequest = directive.match(FABLE_NAMED_REQUEST);
201
+ if (namedRequest) {
202
+ const requested = FABLE_STRATEGIES.find(([strategy]) => strategy === namedRequest[1].toLowerCase().replace(/ /g, '-'));
203
+ if (requested) return { strategy: requested[0], profile: null };
204
+ }
205
+ const profile = directive.match(new RegExp(`^(?:${FABLE_PROFILE_INVOCATION.source})`, 'i'));
206
+ if (profile) return { strategy: 'fable-staged', profile: (profile[1] || profile[2]).toLowerCase() };
207
+ const requestedProfile = directive.match(FABLE_PROFILE_REQUEST);
208
+ if (requestedProfile) return { strategy: 'fable-staged', profile: requestedProfile[1].toLowerCase() };
209
+ if (FABLE_REQUEST_VERB.test(directive)) return { strategy: 'fable-staged', profile: null };
210
+ return { strategy: null, profile: null };
211
+ }
212
+
213
+ function detectFableDirective(prompt) {
214
+ const clauses = splitFableDirectiveClauses(prompt);
215
+ let strategy = null;
216
+ let profile = null;
217
+ let prohibited = false;
218
+ for (const clause of clauses) {
219
+ const negated = FABLE_PROHIBITION.test(clause);
220
+ if (negated) prohibited = true;
221
+ if (negated || strategy) continue;
222
+ const request = detectFableRequest(clause);
223
+ if (request.strategy) {
224
+ strategy = request.strategy;
225
+ profile = request.profile;
226
+ }
227
+ }
228
+ if (!strategy) {
229
+ const linkedContinuations = clauses.slice(0, -1).flatMap((clause, index) => {
230
+ if (!isFableProfileLookup(clause, false) || !/^run\s+it\b/i.test(clauses[index + 1])) return [];
231
+ const matches = clause.match(new RegExp(FABLE_PROFILE_INVOCATION.source, 'gi')) || [];
232
+ return matches.length === 1 ? [detectFableModel(clause)] : [];
233
+ });
234
+ if (linkedContinuations.length === 1) {
235
+ strategy = 'fable-staged';
236
+ profile = linkedContinuations[0];
237
+ }
238
+ }
239
+ return { strategy, prohibited, profile };
240
+ }
241
+
242
+ function detectExplicitStrategy(prompt) {
145
243
  if (/\bdirect[- ]single\b/i.test(prompt)) return 'direct-single';
146
244
  if (/\biterative[- ]single\b/i.test(prompt)) return 'iterative-single';
147
- if (/\bfable[- ]multi[- ]agent[- ]workspace\b|\bmulti[- ]agent workspace\b/i.test(prompt)) return 'fable-multi-agent-workspace';
148
- if (/\bfable[- ]parallel\b|\bparallel fable\b/i.test(prompt)) return 'fable-parallel';
149
- if (/\bfable[- ]staged\b|\bstaged fable\b/i.test(prompt)) return 'fable-staged';
150
- if (requestedFableModel || /\b(?:use|run|enter)\s+fable(?:[- ]mode)?\b/i.test(prompt)) return 'fable-staged';
151
- return null;
245
+ return detectFableDirective(prompt).strategy;
152
246
  }
153
247
 
154
248
  function detectProhibitions(prompt) {
249
+ const fableDirective = detectFableDirective(prompt);
155
250
  const rules = [
156
- ['fable', /\b(?:no|without|do not|don't)\s+(?:use\s+)?fable\b/i],
157
251
  ['subagents', /\b(?:no|without|do not|don't)\s+(?:use\s+)?subagents?\b|\bsingle[- ]agent only\b/i],
158
252
  ['parallel', /\b(?:no|without|do not|don't)\s+(?:use\s+)?parallel(?:ism| execution)?\b|\bdo not parallelize\b|\bserial only\b/i],
159
253
  ['workspace', /\b(?:no|without|do not|don't)\s+(?:use\s+)?(?:multi[- ]agent )?workspace\b/i],
160
254
  ['memory', /\b(?:no|without|do not|don't)\s+(?:use\s+)?memory\b/i],
161
255
  ['ensemble', /\b(?:no|without|do not|don't)\s+(?:use\s+)?ensemble\b/i],
162
256
  ];
163
- return rules.filter(([, regex]) => regex.test(prompt)).map(([name]) => name);
257
+ return [...(fableDirective.prohibited ? ['fable'] : []), ...rules.filter(([, regex]) => regex.test(prompt)).map(([name]) => name)];
164
258
  }
165
259
 
166
260
  function detectMemoryPersistenceRequest(prompt) {
@@ -348,7 +442,7 @@ function run(userPrompt, context, options = {}) {
348
442
  const structuralFloor = hasMacroSignal ? 'tier3'
349
443
  : !isTrivialDocsEdit && hasMultipleTasks && hasMultipleSentences ? 'tier2' : null;
350
444
  const routeInput = { prompt: userPrompt, tier: recommendedTier, floor: structuralFloor,
351
- explicit: profileLookup || Boolean(detectExplicitStrategy(userPrompt, detectFableModel(userPrompt))) };
445
+ explicit: profileLookup || Boolean(detectExplicitStrategy(userPrompt)) };
352
446
  const liveMode = process.env.HARNESS_SYSTEM_ONE_MODE === 'live';
353
447
  const semantic = liveMode ? routeLive(routeInput, options.systemOneResult)
354
448
  : selectTier(routeInput, process.env, options.systemOneScorer || undefined);
@@ -369,7 +463,7 @@ function run(userPrompt, context, options = {}) {
369
463
  console.log(`\n=> RECOMMENDED TIER: ${recommendedTier}`);
370
464
  console.log(`=> RATIONALE: ${rationale}`);
371
465
 
372
- const requestedFableModel = detectFableModel(promptLower);
466
+ const requestedFableModel = profileLookup ? detectFableModel(promptLower) : detectFableDirective(userPrompt).profile;
373
467
  if (requestedFableModel) {
374
468
  console.log(`\n=> REQUESTED FABLE PROFILE: ${requestedFableModel}`);
375
469
  console.log(`=> ROUTE: fable-mode/SKILL.md`);
@@ -431,7 +525,7 @@ function run(userPrompt, context, options = {}) {
431
525
  const actionGateReasonCodes = detectActionGateReasons(userPrompt);
432
526
  const irreversibleAction = actionGateReasonCodes.includes('irreversible-action');
433
527
  const externalSideEffect = actionGateReasonCodes.includes('external-side-effect');
434
- const requestedStrategy = profileLookup ? null : detectExplicitStrategy(userPrompt, requestedFableModel);
528
+ const requestedStrategy = profileLookup ? null : detectExplicitStrategy(userPrompt);
435
529
  const prohibitions = detectProhibitions(userPrompt);
436
530
  const plannerInputs = plannerInputsFromContext(context, promptLower);
437
531
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "harness-enforcement",
3
3
  "description": "Repository inventory for the opencode enforcement plugin and its standalone helper",
4
- "version": "1.3.1",
4
+ "version": "1.4.0",
5
5
  "runtime": "index.mjs",
6
6
  "hooks": {
7
7
  "verify": "hooks/verify.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harness-everything",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "Harness OS: An Orchestrated Agent Operating System for AI-driven Development",
5
5
  "main": "harness-everything/scripts/bootstrap.js",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harness-everything",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "Invariant-first engineering harness for routing, verification, and failure recovery while preserving agent autonomy.",
5
5
  "author": {
6
6
  "name": "Miya Daniel",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harness-everything",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "Invariant-first engineering harness for routing, verification, and failure recovery while preserving agent autonomy.",
5
5
  "author": {
6
6
  "name": "Miya Daniel",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "harness-everything",
4
- "version": "1.3.1",
4
+ "version": "1.4.0",
5
5
  "description": "Invariant-first engineering harness for routing, verification, and failure recovery while preserving agent autonomy.",
6
6
  "author": {
7
7
  "name": "Miya Daniel",
@@ -55,7 +55,7 @@ flowchart LR
55
55
  - New features, fixes, tests, and host compatibility work target V2 only. No V1 public entrypoint, V1-only event fallback, V1 hook registration, or compatibility mode may be added.
56
56
  - Retain historical V1 artifacts, but never promote them to current V2 capability evidence.
57
57
  - Reintroducing V1 support requires an explicit owner-approved support-contract change; it is not a routine compatibility fix.
58
- - State the V2 API family as the supported boundary. Tested V2 versions are recorded separately (`2.1.3` server-log load-only; `2.1.4` limited session workspace trace; and one isolated `2.1.4` macOS 26.6.2 [V2 lifecycle trace](benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/README.md) establishing V2 default-export load, V2 tool hooks, V2 event envelope + `session.execution.succeeded`, and completion → verification → reminder delivery on a long-lived server — standalone `opencode run` exits before verification finishes; router/context injection, observations, ledger lessons, session create/delete reset, cancellation, global scope, npm install, and other versions/OSes were not exercised); none establishes a validated minimum patch version or coverage of every V2 release.
58
+ - State the V2 API family as the supported boundary. Tested V2 versions are recorded separately (`2.1.3` server-log load-only; `2.1.4` limited session workspace trace; one isolated `2.1.4` macOS 26.6.2 [V2 lifecycle trace](benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/README.md) establishing V2 default-export load, V2 tool hooks, V2 event envelope + `session.execution.succeeded`, and completion → verification → reminder delivery on a long-lived server — standalone `opencode run` exits before verification finishes; and two isolated `2.4.1` macOS 26.7.3 long-lived server runs: [turn → export trace](benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/README.md) establishing observation recording + idempotent training export, with router/context injection indirectly observed (model emitted the injected label contract) rather than a full injection trace, and [steering trace](benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/README.md) establishing mid-turn live steering delivery shape as witness-only for #450; ledger lessons, session create/delete reset, cancellation, global scope, npm install, and other versions/OSes remain unverified); none establishes a validated minimum patch version or coverage of every V2 release.
59
59
 
60
60
  **Historical / unsupported V1 evidence:** the retained [OpenCode evidence](benchmarks/results/live-host/opencode-2026-09-16/README.md) documents project-scope `.js` loading and edit/verification state on OpenCode 1.18.31 (macOS). It is preserved as historical/unsupported evidence only and does not establish current V2 capability:
61
61
 
@@ -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.2.2
7
+ version: 1.3.2
8
8
  ---
9
9
 
10
10
  # Harness Everything
@@ -28,8 +28,6 @@
28
28
  "subagent",
29
29
  "sub-agent",
30
30
  "multi-agent",
31
- "fable",
32
- "fable-mode",
33
31
  "stage discipline",
34
32
  "multi-stage",
35
33
  "named workers",
@@ -141,26 +141,120 @@ function isFableProfileLookup(prompt, hasMacroSignal) {
141
141
  return true;
142
142
  }
143
143
 
144
- function detectExplicitStrategy(prompt, requestedFableModel) {
144
+ const FABLE_STRATEGIES = [
145
+ ['fable-multi-agent-workspace', /\bfable[- ]multi[- ]agent[- ]workspace\b|\bmulti[- ]agent workspace\b/i],
146
+ ['fable-parallel', /\bfable[- ]parallel\b|\bparallel fable\b/i],
147
+ ['fable-staged', /\bfable[- ]staged\b|\bstaged fable\b/i],
148
+ ];
149
+ const FABLE_PROHIBITION = /\b(?:no|without|do\s+not|don't|never|cannot|can't|not)\s+(?:use\s+)?fable(?:[- ]mode)?\b|(?:不要|不需要|無需|無須|不必|毋須|不用|別|勿|請勿|避免|停止|不)\s*(?:使用|用|啟用|進入|執行)?\s*fable(?:[- ]mode)?/i;
150
+ const FABLE_REQUEST_PREFIX = /^(?:(?:please|let's|now|could\s+you(?:\s+please)?|would\s+you(?:\s+please)?)\s+|(?:請|幫我|麻煩)\s*)*/i;
151
+ const FABLE_REQUEST_VERB = /^(?:use|run|enter)\s+fable(?:[- ]mode)?\b|^(?:使用|用|啟用|進入|執行|改用)\s*fable(?:[- ]mode)?/i;
152
+ const FABLE_NAMED_REQUEST = /^(?:use|run|enter|改用)\s+(fable[- ](?:multi[- ]agent[- ]workspace|parallel|staged))\b/i;
153
+ const FABLE_PROFILE_REQUEST = /^(?:use|run|enter|改用)\s+fable(?:[- ]mode)?\s+(?:on|with)\s+(haiku|sonnet|sonnect|opus)\b/i;
154
+
155
+ function splitFableDirectiveClauses(prompt) {
156
+ const text = String(prompt || '');
157
+ const parts = [];
158
+ let part = '';
159
+ let quote = null;
160
+ const push = () => {
161
+ if (part.trim()) parts.push(part.trim());
162
+ part = '';
163
+ };
164
+ const wordSeparators = /^(?:and\s+then|and|then|also|plus|afterwards|additionally|but|並且|並|以及|接著|然後|另外)/iu;
165
+
166
+ for (let i = 0; i < text.length; i += 1) {
167
+ const char = text[i];
168
+ if (quote) {
169
+ if (char === quote) quote = null;
170
+ part += char;
171
+ continue;
172
+ }
173
+ if (char === '"' || char === '`' || char === '“' || char === '‘' ||
174
+ (char === "'" && !/[\p{L}\p{N}]/u.test(text[i - 1] || '') && /[\p{L}\p{N}]/u.test(text[i + 1] || ''))) {
175
+ quote = char === '“' ? '”' : char === '‘' ? '’' : char;
176
+ part += char;
177
+ continue;
178
+ }
179
+ if (/[;!??!,,;。、…]/u.test(char) || (char === '.' && (i + 1 === text.length || /\s/u.test(text[i + 1])))) {
180
+ push();
181
+ continue;
182
+ }
183
+ const word = text.slice(i).match(wordSeparators);
184
+ if (word && (i === 0 || /\s/u.test(text[i - 1])) &&
185
+ (i + word[0].length === text.length || /\s/u.test(text[i + word[0].length]))) {
186
+ push();
187
+ i += word[0].length - 1;
188
+ continue;
189
+ }
190
+ part += char;
191
+ }
192
+ push();
193
+ return parts;
194
+ }
195
+
196
+ function detectFableRequest(clause) {
197
+ const directive = String(clause || '').trim().replace(FABLE_REQUEST_PREFIX, '').trim();
198
+ const named = FABLE_STRATEGIES.find(([, pattern]) => new RegExp(`^(?:${pattern.source})`, 'i').test(directive));
199
+ if (named) return { strategy: named[0], profile: null };
200
+ const namedRequest = directive.match(FABLE_NAMED_REQUEST);
201
+ if (namedRequest) {
202
+ const requested = FABLE_STRATEGIES.find(([strategy]) => strategy === namedRequest[1].toLowerCase().replace(/ /g, '-'));
203
+ if (requested) return { strategy: requested[0], profile: null };
204
+ }
205
+ const profile = directive.match(new RegExp(`^(?:${FABLE_PROFILE_INVOCATION.source})`, 'i'));
206
+ if (profile) return { strategy: 'fable-staged', profile: (profile[1] || profile[2]).toLowerCase() };
207
+ const requestedProfile = directive.match(FABLE_PROFILE_REQUEST);
208
+ if (requestedProfile) return { strategy: 'fable-staged', profile: requestedProfile[1].toLowerCase() };
209
+ if (FABLE_REQUEST_VERB.test(directive)) return { strategy: 'fable-staged', profile: null };
210
+ return { strategy: null, profile: null };
211
+ }
212
+
213
+ function detectFableDirective(prompt) {
214
+ const clauses = splitFableDirectiveClauses(prompt);
215
+ let strategy = null;
216
+ let profile = null;
217
+ let prohibited = false;
218
+ for (const clause of clauses) {
219
+ const negated = FABLE_PROHIBITION.test(clause);
220
+ if (negated) prohibited = true;
221
+ if (negated || strategy) continue;
222
+ const request = detectFableRequest(clause);
223
+ if (request.strategy) {
224
+ strategy = request.strategy;
225
+ profile = request.profile;
226
+ }
227
+ }
228
+ if (!strategy) {
229
+ const linkedContinuations = clauses.slice(0, -1).flatMap((clause, index) => {
230
+ if (!isFableProfileLookup(clause, false) || !/^run\s+it\b/i.test(clauses[index + 1])) return [];
231
+ const matches = clause.match(new RegExp(FABLE_PROFILE_INVOCATION.source, 'gi')) || [];
232
+ return matches.length === 1 ? [detectFableModel(clause)] : [];
233
+ });
234
+ if (linkedContinuations.length === 1) {
235
+ strategy = 'fable-staged';
236
+ profile = linkedContinuations[0];
237
+ }
238
+ }
239
+ return { strategy, prohibited, profile };
240
+ }
241
+
242
+ function detectExplicitStrategy(prompt) {
145
243
  if (/\bdirect[- ]single\b/i.test(prompt)) return 'direct-single';
146
244
  if (/\biterative[- ]single\b/i.test(prompt)) return 'iterative-single';
147
- if (/\bfable[- ]multi[- ]agent[- ]workspace\b|\bmulti[- ]agent workspace\b/i.test(prompt)) return 'fable-multi-agent-workspace';
148
- if (/\bfable[- ]parallel\b|\bparallel fable\b/i.test(prompt)) return 'fable-parallel';
149
- if (/\bfable[- ]staged\b|\bstaged fable\b/i.test(prompt)) return 'fable-staged';
150
- if (requestedFableModel || /\b(?:use|run|enter)\s+fable(?:[- ]mode)?\b/i.test(prompt)) return 'fable-staged';
151
- return null;
245
+ return detectFableDirective(prompt).strategy;
152
246
  }
153
247
 
154
248
  function detectProhibitions(prompt) {
249
+ const fableDirective = detectFableDirective(prompt);
155
250
  const rules = [
156
- ['fable', /\b(?:no|without|do not|don't)\s+(?:use\s+)?fable\b/i],
157
251
  ['subagents', /\b(?:no|without|do not|don't)\s+(?:use\s+)?subagents?\b|\bsingle[- ]agent only\b/i],
158
252
  ['parallel', /\b(?:no|without|do not|don't)\s+(?:use\s+)?parallel(?:ism| execution)?\b|\bdo not parallelize\b|\bserial only\b/i],
159
253
  ['workspace', /\b(?:no|without|do not|don't)\s+(?:use\s+)?(?:multi[- ]agent )?workspace\b/i],
160
254
  ['memory', /\b(?:no|without|do not|don't)\s+(?:use\s+)?memory\b/i],
161
255
  ['ensemble', /\b(?:no|without|do not|don't)\s+(?:use\s+)?ensemble\b/i],
162
256
  ];
163
- return rules.filter(([, regex]) => regex.test(prompt)).map(([name]) => name);
257
+ return [...(fableDirective.prohibited ? ['fable'] : []), ...rules.filter(([, regex]) => regex.test(prompt)).map(([name]) => name)];
164
258
  }
165
259
 
166
260
  function detectMemoryPersistenceRequest(prompt) {
@@ -348,7 +442,7 @@ function run(userPrompt, context, options = {}) {
348
442
  const structuralFloor = hasMacroSignal ? 'tier3'
349
443
  : !isTrivialDocsEdit && hasMultipleTasks && hasMultipleSentences ? 'tier2' : null;
350
444
  const routeInput = { prompt: userPrompt, tier: recommendedTier, floor: structuralFloor,
351
- explicit: profileLookup || Boolean(detectExplicitStrategy(userPrompt, detectFableModel(userPrompt))) };
445
+ explicit: profileLookup || Boolean(detectExplicitStrategy(userPrompt)) };
352
446
  const liveMode = process.env.HARNESS_SYSTEM_ONE_MODE === 'live';
353
447
  const semantic = liveMode ? routeLive(routeInput, options.systemOneResult)
354
448
  : selectTier(routeInput, process.env, options.systemOneScorer || undefined);
@@ -369,7 +463,7 @@ function run(userPrompt, context, options = {}) {
369
463
  console.log(`\n=> RECOMMENDED TIER: ${recommendedTier}`);
370
464
  console.log(`=> RATIONALE: ${rationale}`);
371
465
 
372
- const requestedFableModel = detectFableModel(promptLower);
466
+ const requestedFableModel = profileLookup ? detectFableModel(promptLower) : detectFableDirective(userPrompt).profile;
373
467
  if (requestedFableModel) {
374
468
  console.log(`\n=> REQUESTED FABLE PROFILE: ${requestedFableModel}`);
375
469
  console.log(`=> ROUTE: fable-mode/SKILL.md`);
@@ -431,7 +525,7 @@ function run(userPrompt, context, options = {}) {
431
525
  const actionGateReasonCodes = detectActionGateReasons(userPrompt);
432
526
  const irreversibleAction = actionGateReasonCodes.includes('irreversible-action');
433
527
  const externalSideEffect = actionGateReasonCodes.includes('external-side-effect');
434
- const requestedStrategy = profileLookup ? null : detectExplicitStrategy(userPrompt, requestedFableModel);
528
+ const requestedStrategy = profileLookup ? null : detectExplicitStrategy(userPrompt);
435
529
  const prohibitions = detectProhibitions(userPrompt);
436
530
  const plannerInputs = plannerInputsFromContext(context, promptLower);
437
531