harness-everything 0.27.0 → 0.29.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 (54) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +33 -0
  4. package/behavioral-evals/README.md +39 -0
  5. package/behavioral-evals/case-validator.js +34 -0
  6. package/behavioral-evals/cases/baseline-worktree-submodule-reachability.yaml +30 -0
  7. package/behavioral-evals/fixtures/setup/fail.js +3 -0
  8. package/behavioral-evals/fixtures/setup/noop.js +4 -0
  9. package/behavioral-evals/fixtures/setup/verify-worktree-submodule.js +46 -0
  10. package/behavioral-evals/fixtures/setup/worktree-submodule.js +86 -0
  11. package/behavioral-evals/paired-benchmark.js +39 -5
  12. package/behavioral-evals/run-with-plugin.js +53 -39
  13. package/behavioral-evals/run.js +88 -9
  14. package/benchmarks/fixtures/system-one-holdout-reviews.json +18 -18
  15. package/benchmarks/fixtures/system-one-holdout.json +9 -9
  16. package/benchmarks/results/system-one/harness-routing-v1-cpu-2026-09-24/README.md +75 -0
  17. package/benchmarks/results/system-one/harness-routing-v1-cpu-2026-09-24/report.json +10832 -0
  18. package/benchmarks/results/system-one/harness-routing-v1-ngram-2026-09-24/README.md +72 -0
  19. package/benchmarks/results/system-one/harness-routing-v1-ngram-2026-09-24/report.json +10817 -0
  20. package/benchmarks/results/system-one/harness-routing-v3-ngram-2026-09-24/README.md +63 -0
  21. package/benchmarks/results/system-one/harness-routing-v3-ngram-2026-09-24/report.json +10817 -0
  22. package/benchmarks/results/system-one/labeler-holdout-check-2026-09-24/report.json +1104 -0
  23. package/benchmarks/results/system-one/labeler-holdout-check-codex-2026-09-24/report.json +1104 -0
  24. package/benchmarks/results/system-one/labeler-holdout-check-codex-tier3-2026-09-24/report.json +1104 -0
  25. package/ci/mechanism-2j-behavioral-runner.test.js +121 -1
  26. package/ci/mechanism-2j-fixture-entrypoints.test.js +153 -0
  27. package/ci/mechanism-system-one-evaluation.test.js +17 -0
  28. package/ci/mechanism-system-one-label.test.js +27 -0
  29. package/ci/mechanism-system-one-ngram.test.js +161 -0
  30. package/ci/mechanism-system-one-train.test.js +12 -0
  31. package/ci/system-one-ngram-parity.py +19 -0
  32. package/ci/system-one-train-test.py +6 -0
  33. package/ci/test-behavioral-case-validation.js +26 -0
  34. package/docs/system-one-corpus.md +31 -3
  35. package/docs/system-one-routing.md +84 -2
  36. package/docs/system-one-training.md +14 -2
  37. package/harness-everything/SKILL.md +1 -1
  38. package/harness-everything/scripts/system-one/evaluate.js +3 -2
  39. package/harness-everything/scripts/system-one/ngram.js +84 -0
  40. package/harness-everything/scripts/system-one/provider.js +15 -5
  41. package/opencode-plugin/plugin.json +1 -1
  42. package/package.json +1 -1
  43. package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
  44. package/plugins/harness-everything/plugin.json +1 -1
  45. package/plugins/harness-everything/skills/harness-everything/SKILL.md +1 -1
  46. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/evaluate.js +3 -2
  47. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/ngram.js +84 -0
  48. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/provider.js +15 -5
  49. package/sbom.cdx.json +7 -7
  50. package/scripts/evaluate-system-one.js +16 -9
  51. package/scripts/system-one-calibrate.js +1 -1
  52. package/scripts/system-one-label.js +32 -3
  53. package/scripts/system-one-train-ngram.py +129 -0
  54. package/scripts/system-one-train.py +14 -1
@@ -0,0 +1,72 @@
1
+ # System One: in-process ngram tier model (2026-09-24)
2
+
3
+ This is local real-model evidence for the `ngram` transport, evaluated once on the reviewed
4
+ holdout. It is not live-host evidence. Issue
5
+ [#233](https://github.com/dyphn1/Harness-everything/issues/233); the provider is defined in
6
+ [system-one-routing.md](../../../../docs/system-one-routing.md#n-gram-provider-phase-4).
7
+ **Result: this is better than the transformer and the lexical baseline, but the 85% gate is not met, so the model is not released.**
8
+
9
+ ## Model
10
+
11
+ - **Training:** `scripts/system-one-train-ngram.py` with defaults `dim` 65,536, `nmax` 3,
12
+ square-root inverse-frequency class weights, weight decay 1e-4, 60 Adam steps and
13
+ seed 7.
14
+ - **Labels:** 5,625 local owner prompts (4,896 train / 727 validation) with Codex labels
15
+ under the owner's tier2/tier3 boundary. The labeler agreed with the holdout 80.5%
16
+ ([check](../labeler-holdout-check-codex-tier3-2026-09-24/report.json)). 48 of the
17
+ labels are owner spot-check overrides made with session context, and 2 prompts were
18
+ excluded. The training data stays local.
19
+ - **Artifact:** `harness-routing-v1.bin` (1,048,576 bytes, SHA-256 `f43e08938dc0…`) plus a
20
+ 676-byte `.json` sidecar. There is no Python or torch at inference.
21
+
22
+ ## Calibration (validation, 727)
23
+
24
+ The 85% precision target is reached at `minConfidence` 0.5 and `minMargin` 0.25, with 29.0%
25
+ coverage (211 accepted, precision 85.3%). These thresholds went into the manifest
26
+ `acceptance`.
27
+
28
+ ## Holdout (215 owner-reviewed cases, one run)
29
+
30
+ [`report.json`](report.json) is the unmodified output of `scripts/evaluate-system-one.js`.
31
+
32
+ | Metric | ngram | First transformer (v1) | Lexical baseline |
33
+ | --- | --- | --- | --- |
34
+ | Raw top-1 | **47.4%** | 35.3% | 28.8% |
35
+ | Raw macro-F1 | **0.411** | 0.255 | 0.254 |
36
+ | Accepted | 43 (20.0%) | 0 | — |
37
+ | Accepted precision | **72.1%** (validation 85.3%) | — | 49.4% |
38
+ | Gated macro-F1, abstentions counted as null | 0.204 | — | 0.254 |
39
+ | Scoring p95 | **0.44 ms** in process | 59.8 ms resident | — |
40
+
41
+ Decisions broke down as 43 accepted, 163 `low-confidence`, 3 `low-margin` and 6
42
+ `unclassified` abstentions. Repeatability was 1.0.
43
+
44
+ **Gates.** Four gates pass:
45
+
46
+ - `reviewedHoldout`.
47
+ - `repeatability`.
48
+ - `warmLatency`: warm p95 is 0.49 ms over 430 samples.
49
+ - `sourceProvenance`: the artifact is SHA-256 verified.
50
+
51
+ `acceptedPrecision` (72.1% against a gate of 85%), `coverage` (20% against 80%) and gated
52
+ `macroF1` fail.
53
+
54
+ [`report.json`](report.json) comes from the transport-aware evaluator, which records
55
+ ngram samples as warm and uses artifact verification as provenance. The first run,
56
+ before that evaluator fix, reported both of those gates as failing, but its model metrics
57
+ were identical. The model and holdout are unchanged, so the rerun only measures the same
58
+ checkpoint again.
59
+
60
+ ## Reading
61
+
62
+ - **Content, not priors.** The linear model learns from the prompt text itself, unlike the
63
+ byte-level transformer, which fell back on class priors. Raw macro-F1 rises by 0.16 over
64
+ both the transformer and the lexical baseline.
65
+ - **Holdout precision gap.** Accepted precision drops from 85% on validation to 72% on the
66
+ holdout. The holdout's authored and rewritten prompts are distributed differently from
67
+ the owner's real sessions.
68
+ - **Label noise.** The labeler agrees with the owner only about 80% of the time, which caps
69
+ what any model trained on these labels can reach.
70
+ - **Next levers.** More owner-reviewed labels would help, especially tier1 and tier3, as
71
+ would the staged intent and skill classifiers. Both are small and cheap to iterate with
72
+ this transport.