harness-everything 0.28.0 → 0.30.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/AGENTS.md +1 -0
  4. package/CHANGELOG.md +47 -0
  5. package/PRIVACY.md +9 -0
  6. package/benchmarks/fixtures/system-one-holdout-reviews.json +18 -18
  7. package/benchmarks/fixtures/system-one-holdout.json +9 -9
  8. package/benchmarks/fixtures/system-one-intent-holdout-draft.json +2228 -0
  9. package/benchmarks/fixtures/system-one-intent-holdout.json +16509 -0
  10. package/benchmarks/fixtures/system-one-intent-reviews.json +2723 -0
  11. package/benchmarks/results/system-one/harness-routing-v1-cpu-2026-09-24/README.md +75 -0
  12. package/benchmarks/results/system-one/harness-routing-v1-cpu-2026-09-24/report.json +10832 -0
  13. package/benchmarks/results/system-one/harness-routing-v1-ngram-2026-09-24/README.md +72 -0
  14. package/benchmarks/results/system-one/harness-routing-v1-ngram-2026-09-24/report.json +10817 -0
  15. package/benchmarks/results/system-one/harness-routing-v3-ngram-2026-09-24/README.md +63 -0
  16. package/benchmarks/results/system-one/harness-routing-v3-ngram-2026-09-24/report.json +10817 -0
  17. package/benchmarks/results/system-one/intent-ngram-v1-2026-09-24/README.md +64 -0
  18. package/benchmarks/results/system-one/intent-ngram-v1-2026-09-24/report.json +15177 -0
  19. package/benchmarks/results/system-one/labeler-holdout-check-2026-09-24/report.json +1104 -0
  20. package/benchmarks/results/system-one/labeler-holdout-check-codex-2026-09-24/report.json +1104 -0
  21. package/benchmarks/results/system-one/labeler-holdout-check-codex-tier3-2026-09-24/report.json +1104 -0
  22. package/benchmarks/results/system-one/labeler-holdout-check-intent-2026-09-24/report.json +2976 -0
  23. package/benchmarks/results/system-one/labeler-holdout-check-intent-scores-haiku-2026-09-24/report-005-steps.json +6125 -0
  24. package/benchmarks/results/system-one/labeler-holdout-check-intent-scores-haiku-2026-09-24/report-haiku-sonnet-escalation.json +6344 -0
  25. package/benchmarks/results/system-one/labeler-holdout-check-intent-scores-haiku-2026-09-24/report-scaled-margin-escalation.json +6206 -0
  26. package/benchmarks/results/system-one/labeler-holdout-check-intent-scores-haiku-2026-09-24/report.json +6103 -0
  27. package/benchmarks/results/system-one/laya-ft-2026-09-25/README.md +83 -0
  28. package/benchmarks/results/system-one/laya-ft-2026-09-25/report.json +71 -0
  29. package/benchmarks/results/system-one/laya-ft-2026-09-25/shadow-report.json +44 -0
  30. package/benchmarks/results/system-one/laya-zs-2026-09-25/README.md +68 -0
  31. package/benchmarks/results/system-one/laya-zs-2026-09-25/report.json +173 -0
  32. package/ci/mechanism-34-observations.test.js +550 -0
  33. package/ci/mechanism-system-one-collect.test.js +16 -0
  34. package/ci/mechanism-system-one-evaluation.test.js +17 -0
  35. package/ci/mechanism-system-one-intent.test.js +406 -0
  36. package/ci/mechanism-system-one-label.test.js +27 -0
  37. package/ci/mechanism-system-one-laya.test.js +45 -0
  38. package/ci/mechanism-system-one-ngram.test.js +161 -0
  39. package/ci/mechanism-system-one-relevance.test.js +112 -0
  40. package/ci/mechanism-system-one-resident.test.js +16 -0
  41. package/ci/mechanism-system-one-train.test.js +12 -0
  42. package/ci/system-one-laya-calibrate-test.py +65 -0
  43. package/ci/system-one-laya-export-test.py +155 -0
  44. package/ci/system-one-laya-label-test.py +201 -0
  45. package/ci/system-one-laya-perintent-test.py +60 -0
  46. package/ci/system-one-laya-provider-test.py +115 -0
  47. package/ci/system-one-laya-train-test.py +93 -0
  48. package/ci/system-one-ngram-parity.py +19 -0
  49. package/ci/system-one-train-test.py +6 -0
  50. package/docs/routing.md +25 -0
  51. package/docs/system-one-corpus.md +31 -3
  52. package/docs/system-one-intent-gates.md +102 -0
  53. package/docs/system-one-intent.md +173 -0
  54. package/docs/system-one-laya-training.md +38 -0
  55. package/docs/system-one-observations.md +206 -0
  56. package/docs/system-one-routing.md +102 -5
  57. package/docs/system-one-suggestion-gates.md +292 -0
  58. package/docs/system-one-training.md +69 -7
  59. package/harness-everything/SKILL.md +1 -1
  60. package/harness-everything/scripts/kernel-router.js +10 -0
  61. package/harness-everything/scripts/system-one/catalogs.js +35 -0
  62. package/harness-everything/scripts/system-one/contract.js +45 -1
  63. package/harness-everything/scripts/system-one/evaluate.js +118 -21
  64. package/harness-everything/scripts/system-one/intent.js +22 -0
  65. package/harness-everything/scripts/system-one/laya_adapter.py +141 -0
  66. package/harness-everything/scripts/system-one/ngram.js +84 -0
  67. package/harness-everything/scripts/system-one/provider.js +24 -7
  68. package/harness-everything/scripts/system-one/resident.js +8 -3
  69. package/harness-everything/scripts/system-one/router.js +1 -1
  70. package/hooks/hooks.json +40 -0
  71. package/hooks/scripts/codex-user-prompt.js +39 -0
  72. package/hooks/scripts/lib/observations.js +581 -0
  73. package/hooks/scripts/observation-hook.js +25 -0
  74. package/opencode-plugin/plugin.json +1 -1
  75. package/package.json +1 -1
  76. package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
  77. package/plugins/harness-everything/hooks/hooks.json +35 -2
  78. package/plugins/harness-everything/hooks/scripts/codex-user-prompt.js +39 -0
  79. package/plugins/harness-everything/hooks/scripts/lib/observations.js +581 -0
  80. package/plugins/harness-everything/hooks/scripts/observation-hook.js +25 -0
  81. package/plugins/harness-everything/plugin.json +1 -1
  82. package/plugins/harness-everything/skills/harness-everything/SKILL.md +1 -1
  83. package/plugins/harness-everything/skills/harness-everything/scripts/kernel-router.js +10 -0
  84. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/catalogs.js +35 -0
  85. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/contract.js +45 -1
  86. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/evaluate.js +118 -21
  87. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/intent.js +22 -0
  88. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/laya_adapter.py +141 -0
  89. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/ngram.js +84 -0
  90. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/provider.js +24 -7
  91. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/resident.js +8 -3
  92. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/router.js +1 -1
  93. package/sbom.cdx.json +7 -7
  94. package/scripts/evaluate-system-one.js +32 -13
  95. package/scripts/system-one-calibrate-laya.py +165 -0
  96. package/scripts/system-one-calibrate.js +42 -13
  97. package/scripts/system-one-collect.js +7 -3
  98. package/scripts/system-one-compare-laya.py +156 -0
  99. package/scripts/system-one-corpus.js +22 -15
  100. package/scripts/system-one-eval-laya.js +112 -0
  101. package/scripts/system-one-export-laya.py +197 -0
  102. package/scripts/system-one-label-laya.py +243 -0
  103. package/scripts/system-one-label.js +192 -37
  104. package/scripts/system-one-observations-export.js +106 -0
  105. package/scripts/system-one-observations-review.js +86 -0
  106. package/scripts/system-one-perintent-laya.py +134 -0
  107. package/scripts/system-one-train-laya.py +344 -0
  108. package/scripts/system-one-train-ngram.py +181 -0
  109. package/scripts/system-one-train.py +14 -1
@@ -0,0 +1,75 @@
1
+ # System One: first harness-routing-v1 checkpoint (2026-09-24)
2
+
3
+ This is local real-checkpoint evidence for a candidate tier checkpoint trained on the owner's
4
+ own prompts, evaluated once on the owner-reviewed holdout. It is not live-host evidence.
5
+ Issue [#233](https://github.com/dyphn1/Harness-everything/issues/233); the pipeline is in
6
+ [system-one-training.md](../../../../docs/system-one-training.md). **Result: the checkpoint is
7
+ not released.**
8
+
9
+ ## Data and labels
10
+
11
+ The training data stays local and is not committed.
12
+
13
+ - **Prompts:** 5,625 from the owner's Claude Code, Codex (interactive only), Copilot CLI and
14
+ VS Code Copilot Chat histories. That is 1,401 session families, split 4,898 train / 727
15
+ validation, and 93% of the prompts are zh-TW.
16
+ - **Labels:** assigned under the refined rules (rules SHA-256 prefix `e153bd5ff747d6c9`).
17
+ - 3,300 by Claude Sonnet, which agreed with the holdout at 83.7%
18
+ ([check](../labeler-holdout-check-2026-09-24/report.json)). This run stopped when the
19
+ Claude session limit was reached.
20
+ - 2,325 by Codex `gpt-5.6-luna` in stateless per-batch calls, which agreed at 81.9%
21
+ ([check](../labeler-holdout-check-codex-2026-09-24/report.json)).
22
+ - **Rejected labeling run:** two long-running Codex lane sessions were rejected. One labeled
23
+ with a keyword regex, and the long sessions consumed most of the Codex budget.
24
+
25
+ ## Training (CPU, Intel Core Ultra 5 225H, 4 torch threads)
26
+
27
+ The model is a fresh `cua_s1` `tinyx` with width 128, 2 layers, 4 heads and `context_tokens` 1024. It was trained for 12 epochs at about 6 minutes each. The best validation NLL came at epoch 7:
28
+
29
+ | Validation | Value |
30
+ | --- | --- |
31
+ | NLL | 0.911 |
32
+ | Top-1 accuracy | 65.1% |
33
+
34
+ Checkpoint SHA-256 values: weights `d0744d894eb3…`, config `c9833f3791eb…`.
35
+
36
+ ## Calibration on validation (727)
37
+
38
+ | Min confidence | Coverage | Accepted precision |
39
+ | --- | --- | --- |
40
+ | 0.5 | 85.1% | 67.9% |
41
+ | 0.7 | 55.8% | 71.7% |
42
+ | 0.8 | 29.4% | 75.7% |
43
+ | 0.9 | 3.7% | 81.5% |
44
+ | 0.95 (chosen for ≥98%) | 0.1% | 100% (1 case) |
45
+
46
+ Precision never approaches 98% at useful coverage.
47
+
48
+ ## Holdout (215 owner-reviewed cases, one run)
49
+
50
+ [`report.json`](report.json) is the unmodified evaluator output. It was produced with the resident transport and the calibrated `acceptance` (0.95 / 0).
51
+
52
+ | Metric | Value |
53
+ | --- | --- |
54
+ | Accepted | 0 of 215; every decision is `low-confidence` |
55
+ | Raw top-1, ignoring thresholds | 35.3% |
56
+ | Raw macro-F1 | 0.255 (the lexical baseline is 0.254) |
57
+ | tier3 predicted correctly | 0 of 51 |
58
+ | Warm p95 | 59.8 ms (the `warmLatency` gate passes) |
59
+ | Repeatability | 1.0 |
60
+
61
+ **Gates.** The `reviewedHoldout`, `repeatability`, `warmLatency` and `sourceProvenance` gates pass. The `acceptedPrecision`, `coverage`, `macroF1`, `policyEvidence` and `liveHostEvidence` gates fail. `rolloutReady` is false.
62
+
63
+ ## Reading
64
+
65
+ - **Generalization gap.** Validation top-1 is 65%, which is in-distribution with the owner's
66
+ real session prompts. On the holdout it falls to 35%. The holdout consists of authored
67
+ prompts and de-identified rewrites with balanced classes.
68
+ - **Label skew.** The training labels are about 61% tier2. The model mostly predicts tier2 or
69
+ unclassified and never tier3.
70
+ - **Label noise.** The labels disagree with the owner's gold roughly 16–18% of the time, which
71
+ also caps accuracy.
72
+ - **Model capacity.** A 4-way byte-level scorer trained from scratch on about 5k noisy
73
+ examples does not reach the rollout gates. Better class balance, more tier3 and tier1
74
+ examples, or a pretrained multilingual encoder are the likely next levers. None of them is
75
+ measured yet.