harness-everything 1.4.0 → 1.5.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.
Files changed (53) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.github/workflows/ci.yml +16 -0
  4. package/.github/workflows/release.yml +16 -5
  5. package/CHANGELOG.md +33 -0
  6. package/benchmarks/results/error-ledger-oracle-484-pilot/README.md +57 -0
  7. package/benchmarks/results/error-ledger-oracle-484-pilot/candidates.json +22802 -0
  8. package/benchmarks/results/error-ledger-oracle-484-pilot/labels.json +131 -0
  9. package/benchmarks/results/error-ledger-oracle-484-pilot/oracle.json +362 -0
  10. package/benchmarks/results/error-ledger-oracle-484-pilot/rows.json +648 -0
  11. package/benchmarks/results/error-ledger-oracle-484-pilot/sample.json +215 -0
  12. package/benchmarks/results/error-ledger-oracle-484-pilot/select.js +127 -0
  13. package/ci/fixtures/system-one-colab-fit-layer-sitecustomize.py +72 -0
  14. package/ci/mechanism-2x-release-automation.test.js +17 -0
  15. package/ci/mechanism-349-ci-change-scope.test.js +69 -1
  16. package/ci/mechanism-548-bigint-identity.test.js +1 -1
  17. package/ci/mechanism-571-fit-guard.test.js +165 -0
  18. package/ci/mechanism-571-nll-labels.test.js +79 -0
  19. package/ci/mechanism-system-one-colab.test.js +83 -5
  20. package/ci/mechanism-system-one-contract.test.js +30 -0
  21. package/ci/mechanism-system-one-curves.test.js +91 -0
  22. package/ci/mechanism-system-one-cycle.test.js +417 -34
  23. package/ci/mechanism-system-one-install.test.js +47 -0
  24. package/ci/mechanism-system-one-provider.test.js +2 -0
  25. package/ci/mechanism-system-one-resident.test.js +69 -0
  26. package/ci/system-one-adapter-test.py +86 -0
  27. package/ci/system-one-fit-layer-test.py +371 -0
  28. package/ci/system-one-layer-test.py +122 -0
  29. package/harness-everything/SKILL.md +1 -1
  30. package/harness-everything/scripts/system-one/cua_adapter.py +36 -1
  31. package/harness-everything/scripts/system-one/install.js +10 -0
  32. package/harness-everything/scripts/system-one/layer.py +188 -0
  33. package/harness-everything/scripts/system-one/manifest.js +8 -1
  34. package/harness-everything/scripts/system-one/provider.js +12 -2
  35. package/opencode-plugin/plugin.json +1 -1
  36. package/package.json +1 -1
  37. package/plugins/harness-everything/.antigravity-plugin/plugin.json +1 -1
  38. package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
  39. package/plugins/harness-everything/plugin.json +1 -1
  40. package/plugins/harness-everything/skills/harness-everything/SKILL.md +1 -1
  41. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/cua_adapter.py +36 -1
  42. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/install.js +10 -0
  43. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/layer.py +188 -0
  44. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/manifest.js +8 -1
  45. package/plugins/harness-everything/skills/harness-everything/scripts/system-one/provider.js +12 -2
  46. package/sbom.cdx.json +7 -7
  47. package/scripts/system-one-colab.js +6 -4
  48. package/scripts/system-one-curves.js +114 -13
  49. package/scripts/system-one-cycle/evaluate.js +72 -9
  50. package/scripts/system-one-cycle/package.js +61 -3
  51. package/scripts/system-one-cycle/score.py +23 -2
  52. package/scripts/system-one-cycle/train.js +254 -20
  53. package/scripts/system-one-fit-layer.py +379 -0
@@ -10,7 +10,7 @@
10
10
  "name": "harness-everything",
11
11
  "source": "./",
12
12
  "description": "Harness OS: an orchestrated agent operating system — tier routing, circuit breaker guardrails, verification gates, WAL session memory, and self-evolving workspace rules.",
13
- "version": "1.4.0",
13
+ "version": "1.5.1",
14
14
  "author": {
15
15
  "name": "Miya Daniel"
16
16
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "harness-everything",
3
3
  "description": "Harness OS: an orchestrated agent operating system — tier routing, circuit breaker guardrails, verification gates, WAL session memory, and self-evolving workspace rules.",
4
- "version": "1.4.0",
4
+ "version": "1.5.1",
5
5
  "author": {
6
6
  "name": "Miya Daniel"
7
7
  },
@@ -66,6 +66,22 @@ jobs:
66
66
  - name: Run focused mutation checks
67
67
  run: npm run test:mutations
68
68
 
69
+ self-regression-gate:
70
+ needs: [ci-change-scope, self-regression]
71
+ if: ${{ always() }}
72
+ runs-on: ubuntu-latest
73
+ steps:
74
+ - name: Aggregate self-regression result
75
+ env:
76
+ SELF_REGRESSION_RESULT: ${{ needs.self-regression.result }}
77
+ CI_CHANGE_SCOPE_RESULT: ${{ needs.ci-change-scope.result }}
78
+ CI_CHANGE_SCOPE: ${{ needs.ci-change-scope.outputs.scope }}
79
+ run: |
80
+ printf 'self-regression=%s\nci-change-scope=%s scope=%s\n' "$SELF_REGRESSION_RESULT" "$CI_CHANGE_SCOPE_RESULT" "$CI_CHANGE_SCOPE"
81
+ if [ "$SELF_REGRESSION_RESULT" = 'success' ]; then exit 0; fi
82
+ if [ "$SELF_REGRESSION_RESULT" = 'skipped' ] && [ "$CI_CHANGE_SCOPE_RESULT" = 'success' ] && [ "$CI_CHANGE_SCOPE" = 'docs-only' ]; then exit 0; fi
83
+ exit 1
84
+
69
85
  # Pin the patched version: floating Node 24 already passed before #284.
70
86
  system-one-windows-node24-patched:
71
87
  runs-on: windows-latest
@@ -16,7 +16,7 @@ permissions:
16
16
  contents: write
17
17
  issues: write
18
18
  pull-requests: write
19
- id-token: write
19
+ id-token: none
20
20
 
21
21
  jobs:
22
22
  # Release publication waits for the full CI matrix and document governance.
@@ -29,6 +29,12 @@ jobs:
29
29
  release:
30
30
  needs: [gate, doc-governance]
31
31
  runs-on: ubuntu-latest
32
+ # Only the release job may request npm's publishing identity.
33
+ permissions:
34
+ contents: write
35
+ issues: write
36
+ pull-requests: write
37
+ id-token: write
32
38
  steps:
33
39
  - name: Checkout full release history
34
40
  uses: actions/checkout@v7
@@ -44,8 +50,14 @@ jobs:
44
50
  uses: actions/setup-node@v7
45
51
  with:
46
52
  node-version: 24
47
- cache: npm
48
- registry-url: https://registry.npmjs.org
53
+ # Avoid a token-based .npmrc and dependency caching in the release job.
54
+ package-manager-cache: false
55
+
56
+ - name: Verify npm trusted publishing CLI
57
+ run: |
58
+ node --version
59
+ npm --version
60
+ node -e 'const [major, minor, patch] = process.argv[1].split(".").map(Number); if (major < 11 || (major === 11 && (minor < 5 || (minor === 5 && patch < 1)))) { console.error("npm >= 11.5.1 is required for trusted publishing"); process.exit(1); }' "$(npm --version)"
49
61
 
50
62
  - name: Install project dependencies
51
63
  run: npm ci
@@ -71,8 +83,7 @@ jobs:
71
83
  - name: Calculate, prepare, and publish release
72
84
  env:
73
85
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
75
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
86
+ # npm authentication is provided by trusted publishing (OIDC).
76
87
  NPM_CONFIG_PROVENANCE: "true"
77
88
  # An SSH repository URL makes semantic-release push with the deploy key
78
89
  # (its SSH auth check runs before any token fallback).
package/CHANGELOG.md CHANGED
@@ -2,6 +2,35 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [1.5.1](https://github.com/dyphn1/Harness-everything/compare/v1.5.0...v1.5.1) (2026-12-01)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **system-one:** bind resume evidence for every new-cycle candidate ([fb39d9b](https://github.com/dyphn1/Harness-everything/commit/fb39d9bdbdbc2a68ebf92ee7064c878ae4d0a2ab)), closes [#572](https://github.com/dyphn1/Harness-everything/issues/572)
10
+ * **system-one:** label fit, oof and holdout nll by source ([46f7c5f](https://github.com/dyphn1/Harness-everything/commit/46f7c5faa0bff64e7c28ba9e45c18571b3547350)), closes [#571](https://github.com/dyphn1/Harness-everything/issues/571)
11
+ * **system-one:** run the layer fitter under the rss guard ([e4c2a2c](https://github.com/dyphn1/Harness-everything/commit/e4c2a2c48a4db028781e8b8219485042933f794e)), closes [#571](https://github.com/dyphn1/Harness-everything/issues/571)
12
+
13
+ ## [1.5.0](https://github.com/dyphn1/Harness-everything/compare/v1.4.0...v1.5.0) (2026-12-01)
14
+
15
+ ### Features
16
+
17
+ * **system-one:** [#567](https://github.com/dyphn1/Harness-everything/issues/567) pipeline fits the h layer with out-of-fold calibration and packages it ([35903ee](https://github.com/dyphn1/Harness-everything/commit/35903ee566630f412d2258dc62ca3a1b93acb305))
18
+ * **system-one:** [#567](https://github.com/dyphn1/Harness-everything/issues/567) runtime verifies and applies the per-stage echl h layer ([2294159](https://github.com/dyphn1/Harness-everything/commit/2294159499810471794b46a28eea9352c60b2d79))
19
+
20
+ ### Bug Fixes
21
+
22
+ * **system-one:** a new-cycle stage completes only with a validated fit outcome ([ac802b7](https://github.com/dyphn1/Harness-everything/commit/ac802b7fc70a5d740608b1f4af91fdd80c56ed44))
23
+ * **system-one:** bind the checkpoint config bytes to the fit evidence ([9cd2b4d](https://github.com/dyphn1/Harness-everything/commit/9cd2b4de762ccdf3827575cadcfbb9308a962257))
24
+ * **system-one:** fitter reads labels through the trainer and guards base nll parity ([46a1fce](https://github.com/dyphn1/Harness-everything/commit/46a1fce5964bb40d962f41b9b715c2cb28170eca))
25
+ * **system-one:** keep the unlayered curves contract while checking layered provenance ([2a4a9ee](https://github.com/dyphn1/Harness-everything/commit/2a4a9eedec2d188e42d6155f82f8c18173c643a1))
26
+ * **system-one:** layered oof calibration uses one h score space ([50b6360](https://github.com/dyphn1/Harness-everything/commit/50b63600200157d0c646bc8b2f636a8b077aff2b))
27
+ * **system-one:** load the layer module by path so file-loaded adapters import it ([457c60a](https://github.com/dyphn1/Harness-everything/commit/457c60a2174d716a59add1ebc765996815604949))
28
+ * **system-one:** load the layer module without writing bytecode into the shipped tree ([476542e](https://github.com/dyphn1/Harness-everything/commit/476542e799207f73d36df513502cd584ec9126fc))
29
+
30
+ ### Performance Improvements
31
+
32
+ * **system-one:** build the layer knn index once at load, not per request ([73f54db](https://github.com/dyphn1/Harness-everything/commit/73f54dbf78816d3a2e63c958675c5eb567a8b291))
33
+
5
34
  ## [1.4.0](https://github.com/dyphn1/Harness-everything/compare/v1.3.2...v1.4.0) (2026-11-29)
6
35
 
7
36
  ### Features
@@ -317,6 +346,10 @@ Claude-Session: https://claude.ai/code/session_01RPz4xUrN12wGoL19istZUE
317
346
 
318
347
  ## [Unreleased]
319
348
 
349
+ ### System One external layer (ECHL arm H)
350
+
351
+ * **system-one:** a version may now carry a per-stage `<stage>.layer.json` (temperature, per-option bias and a char-gram kNN blend over the train split) recorded in the manifest as `layer` + `layerSha256`. Install, activation, the provider and the resident verify it like the weights and include it in the active identity; versions without a layer score exactly as before. The cycle fits the layer on the trainer's validation split with two-fold out-of-fold selection, calibrates thresholds on the out-of-fold scores, and packages it (`scripts/system-one-fit-layer.py`). Training data and the kNN index stay private (#567).
352
+
320
353
  ### System One training on Colab
321
354
 
322
355
  * **system-one:** `scripts/system-one-train.py` accepts `--device cpu|cuda|auto` (default `cpu`, CPU outputs unchanged) and records `device` and `torch` in the checkpoint metadata and `train-report.json`. The new `scripts/system-one-colab.js` runs the cycle `train` stage on a Google Colab VM through `google-colab-cli`: it uploads only the built `training/v1*` files plus the public trainer and catalog fixtures under a sha256 manifest, accepts each stage only from a downloaded `remote-status.json` with per-file hashes, always stops the VM, and leaves a run dir that the unchanged local `evaluate` → `package` path accepts (#563).
@@ -0,0 +1,57 @@
1
+ # Error Ledger Oracle #484 labelled pilot baseline
2
+
3
+ ## Scope and provenance
4
+
5
+ This is the owner-approved, seeded 30-candidate pilot for issue #484. The repository scan was run at revision `d0fba682ad062ca294e10a3d1c6b6392e39f52ce` with ledger and memory hidden. Scan options: `--root . --hide-ledger --no-memory --home <external-temp-home> --json`. An attempted `--out` inside the target repository was rejected by the scanner, so scan output was directed to an external temporary directory. The published `candidates.json` is the exact scan report byte stream; SHA-256: `b70289fa09c00402b7ce211a18f2e338fba078ac545d75ced98f8142e527a6c0`.
6
+
7
+ The sample uses seed `484`, proportional largest-remainder allocation per link group (15 path-linked and 15 unmatched), then deterministic SHA-256 ranking of `seed:stratum:candidateId` within each stratum.
8
+
9
+ | Stratum | Population | Sampled |
10
+ | --- | ---: | ---: |
11
+ | path-linked × git | 33 | 13 |
12
+ | path-linked × doc | 4 | 2 |
13
+ | unmatched × git | 357 | 12 |
14
+ | unmatched × doc | 97 | 3 |
15
+ | **Total** | **491** | **30** |
16
+
17
+ ## Row labels and adjudication
18
+
19
+ `rows.json` includes each sampled candidate's stratum, summary, path-linked records, source commit SHAs, draft and final outcomes, adjudication, and reason. The six mixed-class hub-file candidates use Option A: they count as false positives for specific, classifiable-error identification while retaining their original uncertainty reasons. Q7 (`58867ac2fb868297d2ee`) and Q8 (`6f7c48d023be8ad0c2a1`) remain marked provisional in their adjudication fields and count as false positives under the approved dispositions. Their source commit SHAs are listed per row.
20
+
21
+ A false positive here means the scan did not identify a specific, classifiable error. It does not mean the file contains no useful lesson; a mixed-class file can remain a discovery lead. The uncertainty reasons remain recorded so a later reviewer can see why the row was ambiguous.
22
+
23
+ ## Metrics
24
+
25
+ Metrics were recomputed by the oracle using the final labels:
26
+
27
+ | Measure | Result | Denominator |
28
+ | --- | ---: | --- |
29
+ | Label coverage | 30 / 491 (6.1%) | all scan candidates |
30
+ | True positive, existing | 4 | decided sampled candidates |
31
+ | True positive, new | 3 | decided sampled candidates |
32
+ | False positive | 23 | decided sampled candidates |
33
+ | Uncertain / unlabelled | 0 / 461 | sample / full scan |
34
+ | Precision | 7 / 30 = 23.3% | decided sampled candidates |
35
+ | False-positive share among decided candidates | 23 / 30 = 76.7% | decided sampled candidates |
36
+ | Audited path pairs | 18 (2 true, 16 false) | decided path-linked candidate-record pairs |
37
+ | False-link share | 16 / 18 = 88.9% | audited path pairs |
38
+
39
+ The precision matches the owner-approved expected `7/30` (23.3%). This is a **pilot sample, not a population estimate**; the stratified sample is not weighted to estimate population precision.
40
+
41
+ ## Reproduce
42
+
43
+ Run from the repository root with Node.js 24 and the repository dependencies installed. The commands below use a generated temporary directory and keep scratch artifacts outside the repository.
44
+
45
+ ```sh
46
+ TMP=$(mktemp -d)
47
+ mkdir -p "$TMP/home" "$TMP/scan" "$TMP/ledger"
48
+ cp benchmarks/results/error-ledger-oracle-484-pilot/candidates.json "$TMP/candidates.json"
49
+ git archive d0fba682ad062ca294e10a3d1c6b6392e39f52ce .agents/harness-everything/errors | tar -x -C "$TMP/ledger"
50
+ node scripts/error-ledger-oracle.js --report "$TMP/candidates.json" --ledger "$TMP/ledger/.agents/harness-everything/errors" --json --out "$TMP/oracle-nolabels.json"
51
+ cp benchmarks/results/error-ledger-oracle-484-pilot/select.js "$TMP/select.js"
52
+ (cd "$TMP" && node select.js)
53
+ node scripts/error-ledger-oracle.js --report benchmarks/results/error-ledger-oracle-484-pilot/candidates.json --ledger "$TMP/ledger/.agents/harness-everything/errors" --labels benchmarks/results/error-ledger-oracle-484-pilot/labels.json --json --out "$TMP/oracle.json"
54
+ shasum -a 256 benchmarks/results/error-ledger-oracle-484-pilot/candidates.json
55
+ ```
56
+
57
+ `sample.json` records the published report digest and stratum allocation. `oracle.json` is the full output of the final labelled oracle run. `select.js` uses the adjacent `candidates.json` and an `oracle-nolabels.json` generated in its working directory.