harness-everything 0.22.0 → 0.23.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 (56) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +12 -0
  4. package/README.md +30 -0
  5. package/benchmarks/fixtures/system-one-holdout-draft.json +2039 -0
  6. package/benchmarks/fixtures/system-one-holdout-reviews.json +1587 -0
  7. package/benchmarks/fixtures/system-one-holdout.json +7315 -0
  8. package/benchmarks/results/system-one/cua-s1-forms-resident-async-cpu-2026-09-23/README.md +87 -0
  9. package/benchmarks/results/system-one/cua-s1-forms-resident-async-cpu-2026-09-23/paired-latency.json +107 -0
  10. package/benchmarks/results/system-one/cua-s1-forms-resident-async-cpu-2026-09-23/report.json +856 -0
  11. package/benchmarks/results/system-one/lexical-baseline-reviewed-holdout-2026-09-23/README.md +47 -0
  12. package/benchmarks/results/system-one/lexical-baseline-reviewed-holdout-2026-09-23/report.json +5222 -0
  13. package/benchmarks/results/system-one/pre-merge-review-2026-09-23/README.md +92 -0
  14. package/benchmarks/results/system-one/pre-merge-review-2026-09-23/haiku-spec-conformance.md +241 -0
  15. package/benchmarks/results/system-one/pre-merge-review-2026-09-23/luna-adversarial.md +212 -0
  16. package/benchmarks/results/system-one/pre-merge-review-2026-09-23/skill-top1-probe.js +83 -0
  17. package/benchmarks/results/system-one/pre-merge-review-2026-09-23/skill-top1-probe.json +7700 -0
  18. package/ci/fixtures/system-one-worker-probe.js +15 -0
  19. package/ci/mechanism-system-one-corpus.test.js +154 -0
  20. package/ci/mechanism-system-one-resident.test.js +114 -3
  21. package/ci/mechanism-system-one-router.test.js +25 -0
  22. package/docs/platform-capabilities.md +7 -2
  23. package/docs/system-one-corpus.md +103 -0
  24. package/docs/system-one-routing.md +25 -5
  25. package/evals/pilot-router-nonsoftware/graders/no-tier-language.md +6 -0
  26. package/evals/pilot-router-nonsoftware/graders/skill-not-fired.md +9 -0
  27. package/evals/pilot-router-nonsoftware/prompt.md +8 -0
  28. package/evals/pilot-router-tier3/graders/skill-fired.md +6 -0
  29. package/evals/pilot-router-tier3/prompt.md +8 -0
  30. package/evals/pilot-tdd-bugfix/graders/skill-fired.md +6 -0
  31. package/evals/pilot-tdd-bugfix/prompt.md +8 -0
  32. package/evals/pilot-tdd-trivia/graders/no-red-phase-claim.md +7 -0
  33. package/evals/pilot-tdd-trivia/graders/skill-not-fired.md +9 -0
  34. package/evals/pilot-tdd-trivia/prompt.md +8 -0
  35. package/evals/pilot-verify-discussion/graders/no-verification-claim.md +7 -0
  36. package/evals/pilot-verify-discussion/graders/skill-not-fired.md +9 -0
  37. package/evals/pilot-verify-discussion/prompt.md +8 -0
  38. package/evals/pilot-verify-preship/graders/skill-fired.md +6 -0
  39. package/evals/pilot-verify-preship/prompt.md +8 -0
  40. package/harness-everything/SKILL.md +1 -1
  41. package/harness-everything/scripts/system-one/provider.js +14 -2
  42. package/harness-everything/scripts/system-one/resident.js +26 -2
  43. package/harness-everything/scripts/system-one/router.js +17 -1
  44. package/harness-everything/scripts/tier-router.js +13 -4
  45. package/opencode-plugin/plugin.json +1 -1
  46. package/package.json +1 -1
  47. package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
  48. package/plugins/harness-everything/plugin.json +1 -1
  49. package/plugins/harness-everything/skills/harness-everything/SKILL.md +1 -1
  50. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/provider.js +14 -2
  51. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/resident.js +26 -2
  52. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/router.js +17 -1
  53. package/plugins/harness-everything/skills/harness-everything/scripts/tier-router.js +13 -4
  54. package/sbom.cdx.json +7 -7
  55. package/scripts/evaluate-system-one.js +6 -6
  56. package/scripts/system-one-corpus.js +99 -0
@@ -0,0 +1,87 @@
1
+ # System One: async hook pre-score on the resident CPU provider (2026-09-23)
2
+
3
+ Evidence layer: **local real-checkpoint inference through the resident transport**,
4
+ paired against the previous synchronous client. It is not live-host evidence, not
5
+ a reviewed holdout, and not a Harness routing quality claim. Issue
6
+ [#233](https://github.com/dyphn1/Harness-everything/issues/233); previous resident
7
+ run: [cua-s1-forms-resident-cpu-2026-09-23](../cua-s1-forms-resident-cpu-2026-09-23/README.md).
8
+
9
+ ## Change under test
10
+
11
+ The hook entry (`tier-router.js` run as a script) now pre-scores over a direct
12
+ async loopback call (`scoreAsync`) and routes with that result. The synchronous
13
+ client starts a worker thread for every call. Decisions, reason mapping and the
14
+ router contract are unchanged; see [docs/system-one-routing.md](../../../../docs/system-one-routing.md).
15
+
16
+ ## Setup
17
+
18
+ Same host, venv, pinned `cua-s1` source (`pinned`) and `cua-ai/cua-s1-forms`
19
+ checkpoint as the previous runs: Intel Core Ultra 5 225H, Windows 11 (win32
20
+ 10.0.26200 x64), Node v24.18.0, CPython 3.13.6, one torch thread. "main" is
21
+ `f9d70ed`, which uses the synchronous worker bridge.
22
+
23
+ ## Evaluator
24
+
25
+ ```bash
26
+ node scripts/evaluate-system-one.js benchmarks/fixtures/system-one-routing.json \
27
+ ~/.agents/harness-everything/system-one/manifest.json \
28
+ benchmarks/results/system-one/cua-s1-forms-resident-async-cpu-2026-09-23/report.json
29
+ ```
30
+
31
+ [`report.json`](report.json) is the unmodified output of this command. The
32
+ server was not running beforehand, so the evaluator started it, waited for
33
+ readiness, and stopped it afterwards. That gives 32 warm samples with p50
34
+ 31.5 ms and p95 76.6 ms. `warmLatency` passes, repeatability is 1.0 and
35
+ `sourceProvenance` passes. Decisions are unchanged: 30 are `domain-mismatch`
36
+ and 2 are the over-limit `provider-exit`. Coverage is 0 and `rolloutReady` is false.
37
+
38
+ **A single run does not separate the two clients.** main, run once right
39
+ after this report under the same conditions, also passed (p95 75.9 ms). The
40
+ earlier 108.6 ms was also a single run. So [`paired-latency.json`](paired-latency.json) records
41
+ three alternating rounds against one already-warm server:
42
+
43
+ | Round | main p50 / p95 | branch p50 / p95 |
44
+ | --- | --- | --- |
45
+ | 1 | 50.8 / 82.3 ms | 24.6 / 47.6 ms |
46
+ | 2 | 51.4 / 75.9 ms | 26.8 / 51.1 ms |
47
+ | 3 | 58.4 / **116.8** ms | 24.3 / 62.9 ms |
48
+
49
+ main fails the ≤100 ms gate in one of three rounds and the branch in none. The
50
+ branch roughly halves p50. The branch's single worst sample (189.6 ms, round 3)
51
+ shows that outliers remain. Three rounds of 32 samples are a small sample.
52
+
53
+ ## Hook entry
54
+
55
+ **Fresh process.** This matches how the hook runs. Each of 20 fresh processes
56
+ loads the modules and scores once.
57
+
58
+ | | module load p50 | one score p50 / p95 |
59
+ | --- | --- | --- |
60
+ | sync | 9 ms | 77.8 / 105.4 ms |
61
+ | async | 9 ms | 35.9 / 67.6 ms |
62
+
63
+ **Wall time.** `kernel-router-core.js "fix a typo in README"` runs for 40
64
+ rounds against a warm server. Each round runs `off`, main `shadow` and branch
65
+ `shadow` in turn. Overhead is paired against `off` in the same round.
66
+
67
+ | | p50 | p95 |
68
+ | --- | --- | --- |
69
+ | `off` | 182 ms | 339 ms |
70
+ | main `shadow` overhead | +63 ms | +179 ms |
71
+ | branch `shadow` overhead | **+44 ms** | **+111 ms** |
72
+
73
+ The router plans were identical in all 40 rounds for all three variants, and
74
+ every shadow diagnostic was `domain-mismatch`.
75
+
76
+ ## Limitations
77
+
78
+ - These are single-host Windows numbers with high run-to-run variance.
79
+ macOS/Linux and other CPUs are not measured.
80
+ - Most of the remaining ~44 ms hook overhead is first-call cost in a fresh
81
+ process (connect plus a cold client path) on top of server scoring (≈7–12 ms).
82
+ It is not reduced further here.
83
+ - The seed corpus is 16 unreviewed cases, and the forms checkpoint cannot drive
84
+ Harness routing. The `reviewedHoldout`, `coverage`, `acceptedPrecision`,
85
+ `macroF1`, `policyEvidence` and `liveHostEvidence` gates remain unmet.
86
+ - The hook host was not live-tested for this change. Only the CLI entry points
87
+ above were run.
@@ -0,0 +1,107 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "note": "Summaries of unmodified evaluator reports; each round runs main (sync worker bridge, f9d70ed) then this branch (async) against one already-warm resident server.",
4
+ "evaluatorRounds": [
5
+ {
6
+ "main": {
7
+ "p50Ms": 50.8,
8
+ "p95Ms": 82.3,
9
+ "maxMs": 105.8,
10
+ "warmLatencyGate": true,
11
+ "agreement": 1
12
+ },
13
+ "branch": {
14
+ "p50Ms": 24.6,
15
+ "p95Ms": 47.6,
16
+ "maxMs": 50.8,
17
+ "warmLatencyGate": true,
18
+ "agreement": 1
19
+ }
20
+ },
21
+ {
22
+ "main": {
23
+ "p50Ms": 51.4,
24
+ "p95Ms": 75.9,
25
+ "maxMs": 90.5,
26
+ "warmLatencyGate": true,
27
+ "agreement": 1
28
+ },
29
+ "branch": {
30
+ "p50Ms": 26.8,
31
+ "p95Ms": 51.1,
32
+ "maxMs": 52.1,
33
+ "warmLatencyGate": true,
34
+ "agreement": 1
35
+ }
36
+ },
37
+ {
38
+ "main": {
39
+ "p50Ms": 58.4,
40
+ "p95Ms": 116.8,
41
+ "maxMs": 155.7,
42
+ "warmLatencyGate": false,
43
+ "agreement": 1
44
+ },
45
+ "branch": {
46
+ "p50Ms": 24.3,
47
+ "p95Ms": 62.9,
48
+ "maxMs": 189.6,
49
+ "warmLatencyGate": true,
50
+ "agreement": 1
51
+ }
52
+ }
53
+ ],
54
+ "freshProcessScore": {
55
+ "runs": 20,
56
+ "sync": {
57
+ "moduleLoadMs": {
58
+ "p50": 9,
59
+ "p95": 23.6
60
+ },
61
+ "scoreMs": {
62
+ "p50": 77.8,
63
+ "p95": 105.4
64
+ }
65
+ },
66
+ "async": {
67
+ "moduleLoadMs": {
68
+ "p50": 9,
69
+ "p95": 22.7
70
+ },
71
+ "scoreMs": {
72
+ "p50": 35.9,
73
+ "p95": 67.6
74
+ }
75
+ }
76
+ },
77
+ "hookWallTime": {
78
+ "rounds": 40,
79
+ "prompt": "fix a typo in README",
80
+ "offMs": {
81
+ "p50": 182,
82
+ "p95": 339
83
+ },
84
+ "mainShadowMs": {
85
+ "p50": 236,
86
+ "p95": 343
87
+ },
88
+ "branchShadowMs": {
89
+ "p50": 224,
90
+ "p95": 311
91
+ },
92
+ "pairedOverheadVsOffMs": {
93
+ "main": {
94
+ "p50": 63,
95
+ "p95": 179
96
+ },
97
+ "branch": {
98
+ "p50": 44,
99
+ "p95": 111
100
+ }
101
+ },
102
+ "identicalPlans": 40,
103
+ "shadowReasons": {
104
+ "domain-mismatch": 80
105
+ }
106
+ }
107
+ }