harness-everything 0.52.0 → 0.53.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 (34) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +20 -0
  4. package/benchmarks/results/live-host/opencode-2026-11-15-workspace/README.md +7 -0
  5. package/benchmarks/results/live-host/opencode-2026-11-15-workspace/live-workspace-probe.js +16 -0
  6. package/benchmarks/results/live-host/opencode-2026-11-15-workspace/live-workspace-trace-2026-11-15.jsonl +4 -0
  7. package/ci/mechanism-2n-opencode-plugin.test.js +1 -1
  8. package/ci/mechanism-2p-opencode-v2-entrypoint.test.js +18 -3
  9. package/ci/mechanism-338-opencode-async.test.js +20 -3
  10. package/ci/mechanism-341-opencode-lane.test.js +7 -1
  11. package/ci/mechanism-397-cycle-import.test.js +399 -0
  12. package/ci/mechanism-397-host-acceptance.test.js +119 -0
  13. package/ci/mechanism-397-opencode-observations.test.js +1922 -0
  14. package/ci/mechanism-system-one-curves.test.js +17 -0
  15. package/ci/mechanism-system-one-cycle.test.js +621 -2
  16. package/docs/platform-capabilities.md +13 -6
  17. package/docs/system-one-cycle.md +12 -3
  18. package/docs/system-one-observations.md +35 -4
  19. package/hooks/scripts/lib/observations.js +5 -3
  20. package/opencode-plugin/README.md +22 -8
  21. package/opencode-plugin/index.mjs +424 -44
  22. package/opencode-plugin/plugin.json +1 -1
  23. package/package.json +1 -1
  24. package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
  25. package/plugins/harness-everything/hooks/scripts/lib/observations.js +5 -3
  26. package/plugins/harness-everything/plugin.json +1 -1
  27. package/sbom.cdx.json +7 -7
  28. package/scripts/system-one-curves.js +154 -14
  29. package/scripts/system-one-cycle/collect.js +20 -3
  30. package/scripts/system-one-cycle/common.js +39 -1
  31. package/scripts/system-one-cycle/evaluate.js +8 -5
  32. package/scripts/system-one-cycle.js +7 -2
  33. package/scripts/system-one-observations-export.js +29 -0
  34. package/scripts/system-one-observations-import-store.js +128 -0
@@ -122,6 +122,23 @@ test('one successful run appends exactly one history line', t => {
122
122
  assert.deepEqual(JSON.parse(lines[1]), second.curves);
123
123
  });
124
124
 
125
+ test('446 H2: empty, LF, and CRLF histories append readable rows without rewriting prior bytes', t => {
126
+ const f = fixture(t);
127
+ const first = f.run({ version: 'v0', val: validityRows([['invalid', 0.8], ['actionable', 0.2]]) });
128
+ const initial = fs.readFileSync(f.history, 'utf8');
129
+ assert.ok(initial.endsWith('\n'));
130
+ assert.equal(initial.split(/\r?\n/).filter(Boolean).length, 1, 'an empty history gets no leading record');
131
+
132
+ const crlfPrefix = `${JSON.stringify(first.curves)}\r\n`;
133
+ fs.writeFileSync(f.history, crlfPrefix);
134
+ const second = f.run({ version: 'v1', val: validityRows([['invalid', 0.7], ['actionable', 0.3]]) });
135
+ const combined = fs.readFileSync(f.history, 'utf8');
136
+ assert.ok(combined.startsWith(crlfPrefix), 'CRLF history bytes remain unchanged');
137
+ assert.deepEqual(combined.split(/\r?\n/).filter(Boolean).map(line => JSON.parse(line).version), ['v0', 'v1']);
138
+ assert.ok(combined.endsWith('\n'));
139
+ assert.deepEqual(JSON.parse(combined.split(/\r?\n/).filter(Boolean)[1]), second.curves);
140
+ });
141
+
125
142
  test('intent curves keep reference-only unclassified scores but never use them as the selected option', t => {
126
143
  const f = fixture(t, { stage: 'intent', options: ['fix', 'unclassified'], referenceOnly: ['unclassified'] });
127
144
  const { curves, trend } = f.run({ val: [