harness-everything 0.29.0 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/AGENTS.md +1 -0
- package/CHANGELOG.md +42 -0
- package/PRIVACY.md +9 -0
- package/benchmarks/fixtures/system-one-intent-holdout-draft.json +2228 -0
- package/benchmarks/fixtures/system-one-intent-holdout.json +16509 -0
- package/benchmarks/fixtures/system-one-intent-reviews.json +2723 -0
- package/benchmarks/results/system-one/intent-ngram-v1-2026-09-24/README.md +64 -0
- package/benchmarks/results/system-one/intent-ngram-v1-2026-09-24/report.json +15177 -0
- package/benchmarks/results/system-one/labeler-holdout-check-intent-2026-09-24/report.json +2976 -0
- package/benchmarks/results/system-one/labeler-holdout-check-intent-scores-haiku-2026-09-24/report-005-steps.json +6125 -0
- package/benchmarks/results/system-one/labeler-holdout-check-intent-scores-haiku-2026-09-24/report-haiku-sonnet-escalation.json +6344 -0
- package/benchmarks/results/system-one/labeler-holdout-check-intent-scores-haiku-2026-09-24/report-scaled-margin-escalation.json +6206 -0
- package/benchmarks/results/system-one/labeler-holdout-check-intent-scores-haiku-2026-09-24/report.json +6103 -0
- package/benchmarks/results/system-one/laya-ft-2026-09-25/README.md +83 -0
- package/benchmarks/results/system-one/laya-ft-2026-09-25/report.json +71 -0
- package/benchmarks/results/system-one/laya-ft-2026-09-25/shadow-report.json +44 -0
- package/benchmarks/results/system-one/laya-zs-2026-09-25/README.md +68 -0
- package/benchmarks/results/system-one/laya-zs-2026-09-25/report.json +173 -0
- package/ci/fable-mode-test.js +16 -0
- package/ci/mechanism-34-observations.test.js +550 -0
- package/ci/mechanism-system-one-collect.test.js +16 -0
- package/ci/mechanism-system-one-intent.test.js +406 -0
- package/ci/mechanism-system-one-laya.test.js +45 -0
- package/ci/mechanism-system-one-relevance.test.js +112 -0
- package/ci/mechanism-system-one-resident.test.js +16 -0
- package/ci/system-one-laya-calibrate-test.py +65 -0
- package/ci/system-one-laya-export-test.py +155 -0
- package/ci/system-one-laya-label-test.py +201 -0
- package/ci/system-one-laya-perintent-test.py +60 -0
- package/ci/system-one-laya-provider-test.py +115 -0
- package/ci/system-one-laya-train-test.py +93 -0
- package/docs/routing.md +25 -0
- package/docs/system-one-intent-gates.md +102 -0
- package/docs/system-one-intent.md +173 -0
- package/docs/system-one-laya-training.md +38 -0
- package/docs/system-one-observations.md +206 -0
- package/docs/system-one-routing.md +25 -10
- package/docs/system-one-suggestion-gates.md +292 -0
- package/docs/system-one-training.md +56 -6
- package/docs/workflows/fable-mode.md +7 -0
- package/fable-mode/SKILL.md +1 -1
- package/fable-mode/agents/fable-orchestrator.md +4 -4
- package/fable-mode/agents/fable-worker-haiku.md +4 -4
- package/fable-mode/agents/fable-worker-sonnet.md +4 -4
- package/fable-mode/execution-guardrails/SKILL.md +5 -3
- package/fable-mode/execution-guardrails/references/guardrail-rules.md +12 -8
- package/fable-mode/fable-haiku/SKILL.md +1 -1
- package/fable-mode/fable-opus/SKILL.md +1 -1
- package/fable-mode/fable-sonnet/SKILL.md +1 -1
- package/harness-everything/SKILL.md +1 -1
- package/harness-everything/scripts/kernel-router.js +10 -0
- package/harness-everything/scripts/system-one/catalogs.js +35 -0
- package/harness-everything/scripts/system-one/contract.js +45 -1
- package/harness-everything/scripts/system-one/evaluate.js +115 -19
- package/harness-everything/scripts/system-one/intent.js +22 -0
- package/harness-everything/scripts/system-one/laya_adapter.py +141 -0
- package/harness-everything/scripts/system-one/provider.js +10 -3
- package/harness-everything/scripts/system-one/resident.js +8 -3
- package/harness-everything/scripts/system-one/router.js +1 -1
- package/hooks/hooks.json +40 -0
- package/hooks/scripts/codex-user-prompt.js +39 -0
- package/hooks/scripts/lib/observations.js +581 -0
- package/hooks/scripts/observation-hook.js +25 -0
- package/opencode-plugin/plugin.json +1 -1
- package/package.json +1 -1
- package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
- package/plugins/harness-everything/hooks/hooks.json +35 -2
- package/plugins/harness-everything/hooks/scripts/codex-user-prompt.js +39 -0
- package/plugins/harness-everything/hooks/scripts/lib/observations.js +581 -0
- package/plugins/harness-everything/hooks/scripts/observation-hook.js +25 -0
- package/plugins/harness-everything/plugin.json +1 -1
- package/plugins/harness-everything/skills/fable-mode/SKILL.md +1 -1
- package/plugins/harness-everything/skills/fable-mode/agents/fable-orchestrator.md +4 -4
- package/plugins/harness-everything/skills/fable-mode/agents/fable-worker-haiku.md +4 -4
- package/plugins/harness-everything/skills/fable-mode/agents/fable-worker-sonnet.md +4 -4
- package/plugins/harness-everything/skills/fable-mode/execution-guardrails/SKILL.md +5 -3
- package/plugins/harness-everything/skills/fable-mode/execution-guardrails/references/guardrail-rules.md +12 -8
- package/plugins/harness-everything/skills/fable-mode/fable-haiku/SKILL.md +1 -1
- package/plugins/harness-everything/skills/fable-mode/fable-opus/SKILL.md +1 -1
- package/plugins/harness-everything/skills/fable-mode/fable-sonnet/SKILL.md +1 -1
- package/plugins/harness-everything/skills/harness-everything/SKILL.md +1 -1
- package/plugins/harness-everything/skills/harness-everything/scripts/kernel-router.js +10 -0
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/catalogs.js +35 -0
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/contract.js +45 -1
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/evaluate.js +115 -19
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/intent.js +22 -0
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/laya_adapter.py +141 -0
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/provider.js +10 -3
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/resident.js +8 -3
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/router.js +1 -1
- package/sbom.cdx.json +7 -7
- package/scripts/evaluate-system-one.js +17 -5
- package/scripts/system-one-calibrate-laya.py +165 -0
- package/scripts/system-one-calibrate.js +42 -13
- package/scripts/system-one-collect.js +7 -3
- package/scripts/system-one-compare-laya.py +156 -0
- package/scripts/system-one-corpus.js +22 -15
- package/scripts/system-one-eval-laya.js +112 -0
- package/scripts/system-one-export-laya.py +197 -0
- package/scripts/system-one-label-laya.py +243 -0
- package/scripts/system-one-label.js +163 -37
- package/scripts/system-one-observations-export.js +106 -0
- package/scripts/system-one-observations-review.js +86 -0
- package/scripts/system-one-perintent-laya.py +134 -0
- package/scripts/system-one-train-laya.py +344 -0
- package/scripts/system-one-train-ngram.py +66 -14
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# System One: first ngram intent model (2026-09-24)
|
|
2
|
+
|
|
3
|
+
This is local real-model evidence for the intent stage
|
|
4
|
+
([system-one-intent.md](../../../../docs/system-one-intent.md)) on the `ngram` transport. It
|
|
5
|
+
is not live-host evidence. Issue
|
|
6
|
+
[#233](https://github.com/dyphn1/Harness-everything/issues/233).
|
|
7
|
+
**Result: accepted intents are almost always right (95.6% graded), but the model accepts
|
|
8
|
+
only 7% of the holdout, so the coverage gate fails and the model is not released.**
|
|
9
|
+
|
|
10
|
+
## Model
|
|
11
|
+
|
|
12
|
+
- **Labels.** Codex labeled 5,625 local owner prompts for intent, each with a primary and
|
|
13
|
+
secondary intents. The labeler reached a graded agreement of 84.9% on the holdout
|
|
14
|
+
([check](../labeler-holdout-check-intent-2026-09-24/report.json)). No owner overrides
|
|
15
|
+
exist yet. The training data stays local.
|
|
16
|
+
- **Training.** `scripts/system-one-train-ngram.py --task intent` with soft targets. The
|
|
17
|
+
primary gets 0.6 and the secondaries share 0.4.
|
|
18
|
+
- **Configuration.** Four configurations were compared on validation only. The one chosen
|
|
19
|
+
uses 200 epochs, weight decay 1e-5, `nmax` 3 and square-root class weights. Its
|
|
20
|
+
validation accuracy is 48.7%.
|
|
21
|
+
- **Artifact.** A 13-option catalog in 3.4 MB of float32 weights, revision `c25eabee9b54`.
|
|
22
|
+
|
|
23
|
+
## Calibration (validation, 727)
|
|
24
|
+
|
|
25
|
+
- **Secondary threshold.** 0.15, chosen by secondary micro-F1.
|
|
26
|
+
- **Acceptance.** `minConfidence` 0.64 and `minMargin` 0 give a graded precision of 85%
|
|
27
|
+
or more at 14.3% coverage.
|
|
28
|
+
|
|
29
|
+
## Holdout (222 owner-reviewed cases, one run)
|
|
30
|
+
|
|
31
|
+
[`report.json`](report.json) is the unmodified evaluator output.
|
|
32
|
+
|
|
33
|
+
| Metric | Value |
|
|
34
|
+
| --- | --- |
|
|
35
|
+
| Accepted | 16 (7.2%) |
|
|
36
|
+
| Accepted precision, graded (gate) | **95.6%** |
|
|
37
|
+
| Accepted precision, exact primary | 93.8% |
|
|
38
|
+
| Top-1 without abstention, exact / graded | 33.8% / 40.5% |
|
|
39
|
+
| Macro-F1 (abstentions as null) vs majority baseline | 0.113 vs 0.020 |
|
|
40
|
+
| Family consistency, model vs owner gold | 86.7% vs 79.5% |
|
|
41
|
+
| Warm p95 | 0.58 ms |
|
|
42
|
+
|
|
43
|
+
These gates pass:
|
|
44
|
+
|
|
45
|
+
- `reviewedHoldout`.
|
|
46
|
+
- `acceptedPrecision`.
|
|
47
|
+
- `macroF1`.
|
|
48
|
+
- `repeatability`.
|
|
49
|
+
- `warmLatency`.
|
|
50
|
+
- `sourceProvenance`.
|
|
51
|
+
|
|
52
|
+
The `coverage` gate fails at 7% against a target of 80%.
|
|
53
|
+
|
|
54
|
+
## Reading
|
|
55
|
+
|
|
56
|
+
- **Precise but rarely confident.** A linear model over character n-grams separates 13
|
|
57
|
+
intents poorly: without abstention it matches only a third of the owner's primaries.
|
|
58
|
+
The few answers it is confident about are nearly always right.
|
|
59
|
+
- **Secondary intents are thin.** The labeler gives about 0.5 secondary intents per prompt;
|
|
60
|
+
the owner gives about 2.5. The soft targets therefore teach little about secondaries.
|
|
61
|
+
- **Next levers.**
|
|
62
|
+
- Owner spot-checks of intent labels, especially secondaries.
|
|
63
|
+
- Word-level features next to the character n-grams.
|
|
64
|
+
- A small encoder, if a few MB allows one.
|