harness-everything 0.21.0 → 0.22.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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +12 -0
- package/benchmarks/results/system-one/cua-s1-forms-resident-cpu-2026-09-23/README.md +74 -0
- package/benchmarks/results/system-one/cua-s1-forms-resident-cpu-2026-09-23/report.json +856 -0
- package/ci/fixtures/system-one-resident-stub.py +28 -0
- package/ci/mechanism-packaging-bytecode.test.js +61 -0
- package/ci/mechanism-system-one-install.test.js +11 -0
- package/ci/mechanism-system-one-resident.test.js +185 -0
- package/ci/system-one-adapter-test.py +166 -0
- package/docs/platform-capabilities.md +3 -0
- package/docs/system-one-routing.md +72 -3
- package/harness-everything/SKILL.md +1 -1
- package/harness-everything/scripts/system-one/cua_adapter.py +265 -6
- package/harness-everything/scripts/system-one/install.js +17 -8
- package/harness-everything/scripts/system-one/provider.js +5 -2
- package/harness-everything/scripts/system-one/resident.js +176 -0
- package/harness-everything/scripts/system-one/router.js +1 -1
- 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/plugin.json +1 -1
- package/plugins/harness-everything/scripts/lib/packaging-noise.js +6 -0
- package/plugins/harness-everything/scripts/lib/skills.js +2 -0
- package/plugins/harness-everything/skills/harness-everything/SKILL.md +1 -1
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/cua_adapter.py +265 -6
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/install.js +17 -8
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/provider.js +5 -2
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/resident.js +176 -0
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/router.js +1 -1
- package/sbom.cdx.json +7 -7
- package/scripts/build-openai-submission.js +2 -0
- package/scripts/evaluate-system-one.js +13 -4
- package/scripts/lib/packaging-noise.js +6 -0
- package/scripts/lib/skills.js +2 -0
- package/scripts/sync-openai-plugin.js +2 -1
|
@@ -4,12 +4,19 @@ const fs = require('node:fs');
|
|
|
4
4
|
const os = require('node:os');
|
|
5
5
|
const { performance } = require('node:perf_hooks');
|
|
6
6
|
const { validateCorpus, evaluate } = require('../harness-everything/scripts/system-one/evaluate');
|
|
7
|
-
const { score, provenance } = require('../harness-everything/scripts/system-one/provider');
|
|
7
|
+
const { score, provenance, readManifest } = require('../harness-everything/scripts/system-one/provider');
|
|
8
|
+
const resident = require('../harness-everything/scripts/system-one/resident');
|
|
8
9
|
const { decide } = require('../harness-everything/scripts/system-one/contract');
|
|
9
10
|
const { run: route } = require('../harness-everything/scripts/tier-router');
|
|
10
11
|
|
|
11
12
|
function run(corpus, manifest) {
|
|
12
13
|
validateCorpus(corpus);
|
|
14
|
+
let config = null;
|
|
15
|
+
try { config = readManifest(manifest); } catch (_) { /* Missing provider remains an explicit unavailable measurement. */ }
|
|
16
|
+
// Resident runs are measured only after readiness, so every sample is warm; one-shot samples are cold.
|
|
17
|
+
const warm = config?.transport === 'resident';
|
|
18
|
+
const wasRunning = warm && resident.status(config, manifest).running;
|
|
19
|
+
const ready = warm && resident.ensureReady(config, manifest, 60000);
|
|
13
20
|
const records = [];
|
|
14
21
|
const originalMode = process.env.HARNESS_SYSTEM_ONE_MODE;
|
|
15
22
|
const originalLog = console.log;
|
|
@@ -25,11 +32,12 @@ function run(corpus, manifest) {
|
|
|
25
32
|
const decision = result.status === 'scored' ? decide(c.request, result.response) : result;
|
|
26
33
|
if (decision.selectedId === 'unclassified') Object.assign(decision, { status: 'abstain', reason: 'unclassified', selectedId: null });
|
|
27
34
|
const scores = ['accepted', 'abstain'].includes(decision.status) ? result.response.scores.map(s => s.probability) : null;
|
|
28
|
-
runs.push({ decision, scores, latencyMs: performance.now() - start, coldStart:
|
|
35
|
+
runs.push({ decision, scores, latencyMs: performance.now() - start, coldStart: !warm });
|
|
29
36
|
}
|
|
30
37
|
records.push({ id: c.id, baseline: tier === 'unclassified' ? null : tier, runs });
|
|
31
38
|
}
|
|
32
39
|
} finally {
|
|
40
|
+
if (warm && !wasRunning) resident.stop(config, manifest);
|
|
33
41
|
console.log = originalLog;
|
|
34
42
|
if (originalMode === undefined) delete process.env.HARNESS_SYSTEM_ONE_MODE;
|
|
35
43
|
else process.env.HARNESS_SYSTEM_ONE_MODE = originalMode;
|
|
@@ -40,10 +48,11 @@ function run(corpus, manifest) {
|
|
|
40
48
|
artifact = { declaredModelId: m.modelId, declaredRevision: m.revision, weightsSha256: m.weightsSha256, configSha256: m.configSha256 };
|
|
41
49
|
} catch (_) { /* Missing provider remains an explicit unavailable measurement. */ }
|
|
42
50
|
const source = provenance(manifest);
|
|
43
|
-
return { ...evaluate(corpus, records, source), evidence: { kind: 'offline-one-shot', artifact, source,
|
|
51
|
+
return { ...evaluate(corpus, records, source), evidence: { kind: warm ? 'offline-resident' : 'offline-one-shot', artifact, source,
|
|
52
|
+
residentReady: warm ? ready : null,
|
|
44
53
|
environment: { cpu: os.cpus()[0]?.model || 'unknown', os: `${os.platform()} ${os.release()} ${os.arch()}`, node: process.version,
|
|
45
54
|
python: source.status === 'recorded' ? source.provenance.python : null, threads: 1 },
|
|
46
|
-
limitations: ['No independently verified holdout review', 'No warm inference measurement', 'No live-host or policy evidence'] }, records };
|
|
55
|
+
limitations: ['No independently verified holdout review', ...(warm ? [] : ['No warm inference measurement']), 'No live-host or policy evidence'] }, records };
|
|
47
56
|
}
|
|
48
57
|
if (require.main === module) {
|
|
49
58
|
try {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// Untracked local/CI build artifacts that no distribution (installer copy, plugin mirror,
|
|
3
|
+
// public submission) may ship, even when they exist in the working tree.
|
|
4
|
+
const isPackagingNoise = name => name === '__pycache__' || /\.py[co]$/.test(name);
|
|
5
|
+
|
|
6
|
+
module.exports = { isPackagingNoise };
|
package/scripts/lib/skills.js
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
const fs = require('fs');
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const manifest = require('./manifest');
|
|
5
|
+
const { isPackagingNoise } = require('./packaging-noise');
|
|
5
6
|
|
|
6
7
|
function copyDir(src, dest) {
|
|
7
8
|
fs.mkdirSync(dest, { recursive: true });
|
|
8
9
|
const entries = fs.readdirSync(src, { withFileTypes: true });
|
|
9
10
|
for (const entry of entries) {
|
|
11
|
+
if (isPackagingNoise(entry.name)) continue;
|
|
10
12
|
const srcPath = path.join(src, entry.name);
|
|
11
13
|
const destPath = path.join(dest, entry.name);
|
|
12
14
|
if (entry.isDirectory()) copyDir(srcPath, destPath);
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
const fs = require('fs');
|
|
5
5
|
const path = require('path');
|
|
6
|
+
const { isPackagingNoise } = require('./lib/packaging-noise');
|
|
6
7
|
|
|
7
8
|
const ROOT = path.resolve(__dirname, '..');
|
|
8
9
|
const manifest = JSON.parse(fs.readFileSync(path.join(ROOT, '.claude-plugin', 'plugin.json'), 'utf8'));
|
|
@@ -32,7 +33,7 @@ function syncTree(source, destination) {
|
|
|
32
33
|
fs.rmSync(destination, { recursive: true, force: true });
|
|
33
34
|
fs.mkdirSync(path.dirname(destination), { recursive: true });
|
|
34
35
|
if (fs.statSync(source).isDirectory()) {
|
|
35
|
-
fs.cpSync(source, destination, { recursive: true });
|
|
36
|
+
fs.cpSync(source, destination, { recursive: true, filter: src => !isPackagingNoise(path.basename(src)) });
|
|
36
37
|
normalizeTree(destination);
|
|
37
38
|
} else {
|
|
38
39
|
fs.copyFileSync(source, destination);
|