harness-everything 0.55.4 → 0.56.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.
@@ -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": "0.55.4",
13
+ "version": "0.56.0",
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": "0.55.4",
4
+ "version": "0.56.0",
5
5
  "author": {
6
6
  "name": "Miya Daniel"
7
7
  },
package/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [0.56.0](https://github.com/dyphn1/Harness-everything/compare/v0.55.4...v0.56.0) (2026-11-21)
6
+
7
+ ### Features
8
+
9
+ * **dispatch:** add single-run dispatch cli entry and first full path ([7268d46](https://github.com/dyphn1/Harness-everything/commit/7268d46bff18eec11736d1079bded367d1dfc288)), closes [#468](https://github.com/dyphn1/Harness-everything/issues/468)
10
+ * **dispatch:** cover single-run outcomes and document c8 ([99083cb](https://github.com/dyphn1/Harness-everything/commit/99083cb254703ce0af0135798ff2bb4e202e6c46)), closes [#468](https://github.com/dyphn1/Harness-everything/issues/468)
11
+
12
+ ### Bug Fixes
13
+
14
+ * **dispatch:** classify quota from provider diagnostics and report the resolved model ([e6cf6ab](https://github.com/dyphn1/Harness-everything/commit/e6cf6abfa79d7fb8e162be6dff47cd665108555f)), closes [#468](https://github.com/dyphn1/Harness-everything/issues/468)
15
+ * **dispatch:** return not_ready when readiness diagnostics are ambiguous ([7c10235](https://github.com/dyphn1/Harness-everything/commit/7c1023594452cf3fa36b3b1e8e5ab7711cc6224a)), closes [#493](https://github.com/dyphn1/Harness-everything/issues/493) [#468](https://github.com/dyphn1/Harness-everything/issues/468)
16
+ * **dispatch:** separate provider rate limits from quota and canonicalize windows paths in tests ([3fbff51](https://github.com/dyphn1/Harness-everything/commit/3fbff51fac0d646598c94d5842c89695e12b7fbc)), closes [#493](https://github.com/dyphn1/Harness-everything/issues/493) [#468](https://github.com/dyphn1/Harness-everything/issues/468)
17
+
5
18
  ## [0.55.4](https://github.com/dyphn1/Harness-everything/compare/v0.55.3...v0.55.4) (2026-11-21)
6
19
 
7
20
  ### Bug Fixes
@@ -0,0 +1,144 @@
1
+ 'use strict';
2
+
3
+ const fs = require('node:fs');
4
+ const path = require('node:path');
5
+
6
+ const scriptName = path.basename(process.argv[1]);
7
+ const runner = scriptName === 'exec' ? 'codex' : 'opencode';
8
+ const args = [scriptName, ...process.argv.slice(2)];
9
+ const outputFlag = args.indexOf('-o');
10
+ const outputPath = outputFlag >= 0 ? args[outputFlag + 1] : null;
11
+ const prompt = args.at(-1) || '';
12
+ const phase = prompt === 'Reply exactly with READY.' ? 'readiness' : 'execution';
13
+ const scenario = process.env[`DISPATCH_FIXTURE_${phase.toUpperCase()}`] || 'ready';
14
+ const input = fs.readFileSync(0, 'utf8');
15
+ const providerRateLimit = 'Provider request failed with HTTP 429: {"status":429,"title":"Too Many Requests"}';
16
+ const providerQuota = 'Free usage limit reached. Free models work in OpenCode (https://opencode.ai); subscribe to OpenCode Go to keep going: https://opencode.ai/go';
17
+ const providerTimeout = 'Timed out waiting for response headers';
18
+
19
+ fs.appendFileSync(process.env.DISPATCH_FIXTURE_LOG, `${JSON.stringify({
20
+ runner,
21
+ phase,
22
+ scenario,
23
+ args,
24
+ cwd: process.cwd(),
25
+ tmpdir: process.env.TMPDIR,
26
+ stdin: input,
27
+ stdinIsCharacterDevice: fs.fstatSync(0).isCharacterDevice(),
28
+ pid: process.pid,
29
+ })}\n`);
30
+
31
+ function hang() {
32
+ setInterval(() => {}, 1000);
33
+ }
34
+
35
+ function readyOutput() {
36
+ if (['no-ready', 'rate-limited', 'quota-exhausted', 'rate-limit-and-quota', 'quota-and-rate-limit', 'stdout-provider-rate', 'wrong-envelope', 'quoted-provider-rate', 'local-http-429', 'invalid-quota', 'bare-429', 'provider-rate-with-extra-text', 'provider-timeout', 'timeout', 'signal-provider-rate'].includes(scenario)) return;
37
+ if (runner === 'codex') {
38
+ if (outputPath) fs.writeFileSync(outputPath, 'READY\n');
39
+ } else process.stdout.write('READY\n');
40
+ }
41
+
42
+ function diagnosticLine(message) {
43
+ const prefix = runner === 'codex' ? 'ERROR: ' : 'Error: ';
44
+ return `\u001b[91m\u001b[1m${prefix}\u001b[0m${message}\n`;
45
+ }
46
+
47
+ function codexOutput() {
48
+ if (scenario === 'missing-raw') return null;
49
+ if (scenario === 'no-status') return 'Fixture output without a terminal status.\n';
50
+ if (scenario === 'multiple-status') return 'Fixture output.\nSTATUS: DONE\nSTATUS: BLOCKED: missing evidence\n';
51
+ if (scenario === 'bad-label') return 'Fixture completed the packet.\nSTATUS: DONE\n<!-- harness-label {"bad":true} -->\n';
52
+ if (scenario === 'blocked') return 'Fixture could not verify the packet.\nSTATUS: BLOCKED: missing evidence\n';
53
+ if (scenario === 'raw-label') {
54
+ return 'Fixture completed the packet.\nSTATUS: DONE\n<!-- harness-label {"v":1,"validity":"actionable","tier":"tier2","intents":["test"],"workflow":"iterative-single","skills":["test-driven-development"]} -->\n';
55
+ }
56
+ return 'Fixture completed the packet.\nSTATUS: DONE\n';
57
+ }
58
+
59
+ function openCodeReport() {
60
+ if (scenario === 'missing-report' || scenario === 'timeout') return null;
61
+ if (scenario === 'malformed-report' || scenario === 'no-status') return 'Fixture report with no terminal status.\n';
62
+ if (scenario === 'multiple-status') return 'Fixture report.\nSTATUS: DONE\nSTATUS: BLOCKED: missing evidence\n';
63
+ if (scenario === 'blocked') return 'Fixture could not verify the packet.\nSTATUS: BLOCKED: missing evidence\n';
64
+ return 'Fixture completed the packet.\nSTATUS: DONE\n';
65
+ }
66
+
67
+ function executionOutput() {
68
+ if (runner === 'codex') {
69
+ const raw = codexOutput();
70
+ if (raw !== null && outputPath) fs.writeFileSync(outputPath, raw);
71
+ } else {
72
+ const report = openCodeReport();
73
+ if (report !== null) fs.writeFileSync(process.env.DISPATCH_FIXTURE_REPORT_PATH, report);
74
+ }
75
+ process.stdout.write('fixture child output\n');
76
+ }
77
+
78
+ if (phase === 'readiness') {
79
+ if (scenario === 'timeout') {
80
+ process.stderr.write(diagnosticLine(providerRateLimit));
81
+ hang();
82
+ }
83
+ readyOutput();
84
+ if (scenario === 'rate-limited') {
85
+ process.stderr.write(diagnosticLine(providerRateLimit));
86
+ process.exitCode = 7;
87
+ } else if (scenario === 'quota-exhausted') {
88
+ process.stderr.write(diagnosticLine(providerQuota));
89
+ process.exitCode = 7;
90
+ } else if (scenario === 'rate-limit-and-quota' || scenario === 'quota-and-rate-limit') {
91
+ const diagnostics = [providerRateLimit, providerQuota];
92
+ if (scenario === 'quota-and-rate-limit') diagnostics.reverse();
93
+ process.stderr.write(diagnostics.map(diagnosticLine).join(''));
94
+ process.exitCode = 7;
95
+ } else if (scenario === 'stdout-provider-rate') {
96
+ process.stdout.write(diagnosticLine(providerRateLimit));
97
+ process.exitCode = 7;
98
+ } else if (scenario === 'wrong-envelope') {
99
+ process.stderr.write(`Warning: ${diagnosticLine(providerRateLimit)}`);
100
+ process.exitCode = 7;
101
+ } else if (scenario === 'quoted-provider-rate') {
102
+ process.stderr.write(`Quoted text: ${diagnosticLine(providerRateLimit)}`);
103
+ process.exitCode = 7;
104
+ } else if (scenario === 'local-http-429') {
105
+ process.stderr.write(diagnosticLine('local cache lookup failed with HTTP 429'));
106
+ process.exitCode = 7;
107
+ } else if (scenario === 'invalid-quota') {
108
+ process.stderr.write(diagnosticLine('invalid --quota value; expected a positive integer'));
109
+ process.exitCode = 7;
110
+ } else if (scenario === 'bare-429') {
111
+ process.stderr.write('429 Too Many Requests\n');
112
+ process.exitCode = 7;
113
+ } else if (scenario === 'provider-rate-with-extra-text') {
114
+ process.stderr.write(diagnosticLine(`${providerRateLimit} retry later`));
115
+ process.exitCode = 7;
116
+ } else if (scenario === 'provider-timeout') {
117
+ process.stderr.write(diagnosticLine(providerTimeout));
118
+ process.exitCode = 7;
119
+ } else if (scenario === 'signal-provider-rate') {
120
+ process.stderr.write(diagnosticLine(providerRateLimit));
121
+ process.kill(process.pid, 'SIGTERM');
122
+ } else if (scenario === 'ready-with-provider-rate') {
123
+ process.stderr.write(diagnosticLine(providerRateLimit));
124
+ } else if (scenario === 'ready-failed') {
125
+ process.exitCode = 7;
126
+ } else if (scenario === 'ready-with-quota-prose') {
127
+ process.stderr.write(runner === 'codex'
128
+ ? 'Quoted policy: ERROR: HTTP 429 quota is not a readiness failure on exit zero.\n'
129
+ : 'Quoted policy: Error: HTTP 429 quota is not a readiness failure on exit zero.\n');
130
+ } else if (scenario === 'create-stale-report') {
131
+ fs.writeFileSync(process.env.DISPATCH_FIXTURE_REPORT_PATH, 'Stale report.\nSTATUS: DONE\n');
132
+ } else if (scenario === 'remove-scratch') {
133
+ fs.rmSync(process.env.TMPDIR, { recursive: true, force: true });
134
+ }
135
+ } else {
136
+ if (scenario === 'timeout') hang();
137
+ executionOutput();
138
+ if (scenario === 'exit-failure') process.exitCode = 7;
139
+ if (scenario === 'done-with-quota-prose') {
140
+ process.stderr.write(runner === 'codex'
141
+ ? 'Quoted worker text: ERROR: HTTP 429 quota is not a runner failure.\n'
142
+ : 'Quoted worker text: Error: HTTP 429 quota is not a runner failure.\n');
143
+ }
144
+ }