harness-everything 1.2.1 → 1.3.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 (55) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +31 -0
  4. package/benchmarks/results/live-host/agy-2026-11-26-516-read-only/README.md +12 -0
  5. package/benchmarks/results/live-host/agy-2026-11-26-516-read-only/capture.sanitized.jsonl +5 -0
  6. package/benchmarks/results/live-host/codex-2026-11-26-488-post-tool-use/README.md +25 -0
  7. package/benchmarks/results/live-host/codex-2026-11-26-488-post-tool-use/capture.sanitized.jsonl +10 -0
  8. package/ci/fixtures/468-dispatch/agy-quota-PROVENANCE.md +19 -0
  9. package/ci/fixtures/468-dispatch/agy-quota-direct-individual.stderr +2 -0
  10. package/ci/fixtures/468-dispatch/agy-quota-direct-third-party.stderr +2 -0
  11. package/ci/fixtures/468-dispatch/agy-quota-exec-individual.log +3 -0
  12. package/ci/mechanism-2am-observations-session-import.test.js +1 -0
  13. package/ci/mechanism-2w-platform-compatibility.test.js +1 -2
  14. package/ci/mechanism-34-observations.test.js +37 -1
  15. package/ci/mechanism-397-opencode-observations.test.js +4 -3
  16. package/ci/mechanism-468-dispatch-cli.test.js +1496 -4
  17. package/ci/mechanism-516-windows-verify-and-shell.test.js +74 -19
  18. package/ci/mechanism-548-bigint-identity.test.js +531 -0
  19. package/ci/mechanism-error-ledger-oracle.test.js +786 -3
  20. package/ci/mechanism-error-ledger-scan.test.js +981 -0
  21. package/ci/mechanism-report-writer.test.js +47 -1
  22. package/ci/mechanism-system-one-cycle.test.js +47 -2
  23. package/ci/openai-plugin-submission.test.js +26 -8
  24. package/docs/error-handling/details/c8-dispatch-cli.md +109 -13
  25. package/docs/openai-plugin.md +6 -10
  26. package/docs/platform-capabilities.md +15 -0
  27. package/docs/routing.md +2 -0
  28. package/error-ledger-bootstrap/SKILL.md +1 -1
  29. package/error-ledger-bootstrap/references/workflow.md +42 -7
  30. package/error-ledger-bootstrap/scripts/promote.js +8 -6
  31. package/error-ledger-bootstrap/scripts/scan.js +525 -12
  32. package/harness-everything/SKILL.md +1 -1
  33. package/harness-everything/scripts/kernel-router.js +3 -2
  34. package/hooks/scripts/state-persist.js +6 -1
  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/hooks/scripts/state-persist.js +6 -1
  40. package/plugins/harness-everything/plugin.json +1 -1
  41. package/plugins/harness-everything/skills/error-ledger-bootstrap/SKILL.md +1 -1
  42. package/plugins/harness-everything/skills/error-ledger-bootstrap/references/workflow.md +42 -7
  43. package/plugins/harness-everything/skills/error-ledger-bootstrap/scripts/promote.js +8 -6
  44. package/plugins/harness-everything/skills/error-ledger-bootstrap/scripts/scan.js +525 -12
  45. package/plugins/harness-everything/skills/harness-everything/SKILL.md +1 -1
  46. package/plugins/harness-everything/skills/harness-everything/scripts/kernel-router.js +3 -2
  47. package/sbom.cdx.json +7 -7
  48. package/scripts/build-openai-submission.js +8 -4
  49. package/scripts/dispatch.js +499 -87
  50. package/scripts/error-ledger-oracle.js +521 -27
  51. package/scripts/errors-sync.js +4 -3
  52. package/scripts/report-writer.js +4 -3
  53. package/submission/openai/README.md +9 -14
  54. package/submission/openai/listing.json +1 -1
  55. package/submission/openai/test-cases.json +1 -1
@@ -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.2.1",
13
+ "version": "1.3.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": "1.2.1",
4
+ "version": "1.3.0",
5
5
  "author": {
6
6
  "name": "Miya Daniel"
7
7
  },
package/CHANGELOG.md CHANGED
@@ -2,6 +2,37 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [1.3.0](https://github.com/dyphn1/Harness-everything/compare/v1.2.2...v1.3.0) (2026-11-26)
6
+
7
+ ### Features
8
+
9
+ * **dispatch:** agy runner adapter for c8 ([c4bf60c](https://github.com/dyphn1/Harness-everything/commit/c4bf60c91380a67eea88070e67c1409e9dc33c5c)), closes [#466](https://github.com/dyphn1/Harness-everything/issues/466)
10
+ * **dispatch:** managed c8 gate assignment refuses sandboxed verify:all ([a7365bf](https://github.com/dyphn1/Harness-everything/commit/a7365bf189bb4823ef74424ee3db260c840a22bd)), closes [#466](https://github.com/dyphn1/Harness-everything/issues/466)
11
+ * **dispatch:** managed c8 per-attempt tmpdir with evidence retention ([37d070e](https://github.com/dyphn1/Harness-everything/commit/37d070e081d31b8e5bd5431d1c78b83326266494)), closes [#466](https://github.com/dyphn1/Harness-everything/issues/466)
12
+ * **dispatch:** per-pool admission cap for managed c8 ([c30a506](https://github.com/dyphn1/Harness-everything/commit/c30a5068d72b2f029ebf3263c005ab15fa3d9c5f)), closes [#466](https://github.com/dyphn1/Harness-everything/issues/466)
13
+ * **error-ledger-bootstrap:** classify memory lessons by feedback metadata and cues ([ec57a8e](https://github.com/dyphn1/Harness-everything/commit/ec57a8e2ae9339f007881044e82fd4e5e973855a)), closes [#486](https://github.com/dyphn1/Harness-everything/issues/486)
14
+ * **error-ledger-bootstrap:** discover claude memory via the memory index and main worktree ([406a85c](https://github.com/dyphn1/Harness-everything/commit/406a85c2c61fd081a8030276ac383b984453824b)), closes [#486](https://github.com/dyphn1/Harness-everything/issues/486)
15
+ * **error-ledger-bootstrap:** verified tracked-file sites for memory leads ([758bf98](https://github.com/dyphn1/Harness-everything/commit/758bf98ed4a6e042762646cc4e48f13835c78eee)), closes [#486](https://github.com/dyphn1/Harness-everything/issues/486)
16
+ * **error-ledger-oracle:** optional digest-bound labels for candidate precision ([5fe332e](https://github.com/dyphn1/Harness-everything/commit/5fe332e20d654258294b40d12bd09c71cfef1010)), closes [#484](https://github.com/dyphn1/Harness-everything/issues/484)
17
+ * **error-ledger-oracle:** process view with exact signature links ([3d499c6](https://github.com/dyphn1/Harness-everything/commit/3d499c6c56a7347f638c29cb44adac29ccca0381)), closes [#484](https://github.com/dyphn1/Harness-everything/issues/484) [#485](https://github.com/dyphn1/Harness-everything/issues/485)
18
+
19
+ ### Bug Fixes
20
+
21
+ * **dispatch:** classify the live agy quota pair as runner quota ([af1b510](https://github.com/dyphn1/Harness-everything/commit/af1b510450bcc58841f7925716b512379f4d1610)), closes [#544](https://github.com/dyphn1/Harness-everything/issues/544)
22
+ * **dispatch:** treat stale admission slots as occupied and harden c8 path checks ([3d5d615](https://github.com/dyphn1/Harness-everything/commit/3d5d615433e87fe67a5d90c4e6fd921b76b10ed0)), closes [#466](https://github.com/dyphn1/Harness-everything/issues/466)
23
+ * **error-ledger-bootstrap:** empty typed metadata and wrapped-suffix memory sites ([40d4cee](https://github.com/dyphn1/Harness-everything/commit/40d4cee504167637c74f8d888630edb42e41976e)), closes [#486](https://github.com/dyphn1/Harness-everything/issues/486)
24
+ * **report:** accept trailing ascii whitespace on raw codex status line ([d0c81a2](https://github.com/dyphn1/Harness-everything/commit/d0c81a208fe660f416c4ccfb4e5b6a1cb2979619)), closes [#498](https://github.com/dyphn1/Harness-everything/issues/498) [#437](https://github.com/dyphn1/Harness-everything/issues/437) [#441](https://github.com/dyphn1/Harness-everything/issues/441)
25
+ * **report:** keep alias rejection when the inode is zero ([3c31063](https://github.com/dyphn1/Harness-everything/commit/3c31063d62c53bbc4df192e996c25a4b85ac052c)), closes [#548](https://github.com/dyphn1/Harness-everything/issues/548)
26
+ * **windows:** compare file identities with bigint stats ([d3cd874](https://github.com/dyphn1/Harness-everything/commit/d3cd874b5a7984f63260150fc7b274ca94aadda8)), closes [#548](https://github.com/dyphn1/Harness-everything/issues/548)
27
+
28
+ ## [1.2.2](https://github.com/dyphn1/Harness-everything/compare/v1.2.1...v1.2.2) (2026-11-26)
29
+
30
+ ### Bug Fixes
31
+
32
+ * **agy:** avoid false windows shell edit tracking ([8e611ce](https://github.com/dyphn1/Harness-everything/commit/8e611ce288719729d6de1dc08b1ffe46aee87478))
33
+ * **distribution:** include the portable manifest in the public skills bundle ([b52d1da](https://github.com/dyphn1/Harness-everything/commit/b52d1daa59eb91ff9218853be9858e5ccc977bc3))
34
+ * **router:** explain null workflow labels for deferred routing ([a6339a5](https://github.com/dyphn1/Harness-everything/commit/a6339a5d3e6219c588ccab50dbc9f146c3ef3462))
35
+
5
36
  ## [1.2.1](https://github.com/dyphn1/Harness-everything/compare/v1.2.0...v1.2.1) (2026-11-26)
6
37
 
7
38
  ### Bug Fixes
@@ -0,0 +1,12 @@
1
+ # Windows AGY read-only handoff for #516 (2026-11-26)
2
+
3
+ AGY CLI 1.5.17 with Gemini 4 Hydrogen (High) ran the two reported commands separately in a clean disposable Git workspace on Windows PowerShell 5.1.26100.9818 with Node 24.18.0 and no pwsh. A project-scope capture hook forwarded the live payloads to the PR's packaged PostToolUse and Stop scripts with a dedicated Harness state directory. The pre-existing global plugin used its own state and also ran.
4
+
5
+ | Live command | Result reported by AGY |
6
+ |---|---|
7
+ | `git grep -n "mechanism-516"` | Exit 0, matched the seeded README |
8
+ | `$PSVersionTable.PSVersion; Get-Command pwsh -ErrorAction SilentlyContinue` | Exit 1, printed the PowerShell version and found no pwsh |
9
+
10
+ [Sanitized capture](capture.sanitized.jsonl) records the event keys, allowlisted probe commands, and packaged hook decisions. Both PostToolUse events had an empty error string and omitted a response and numeric exit status. The isolated handoff finished idle with neither `lastEditAt` nor `lastVerifyAt`. The patched Stop hook returned `allow` on both deliveries. The older global plugin requested one continuation from its separate state.
11
+
12
+ This trace covers these two shell outcomes and normal Stop delivery. Async launch/completion, wait markers, subdirectory workspace behavior, and installation of the patched global plugin remain outside this trace. The missing structured status leaves automatic verification credit unavailable for these payloads.
@@ -0,0 +1,5 @@
1
+ {"phase":"post","deliveryKeys":["artifactDirectoryPath","conversationId","cwd","error","hookEventName","lastUserInput","modelName","stepIdx","toolCall","transcriptPath","workspacePaths"],"tool":"run_command","command":"git grep -n \"mechanism-516\"","resultType":"undefined","hookExit":0,"errorType":"string","hasError":false}
2
+ {"phase":"post","deliveryKeys":["artifactDirectoryPath","conversationId","cwd","error","hookEventName","lastUserInput","modelName","stepIdx","toolCall","transcriptPath","workspacePaths"],"tool":"run_command","command":"$PSVersionTable.PSVersion; Get-Command pwsh -ErrorAction SilentlyContinue","resultType":"undefined","hookExit":0,"errorType":"string","hasError":false}
3
+ {"phase":"stop","deliveryKeys":["artifactDirectoryPath","continuationActive","conversationId","cwd","error","executionNum","fullyIdle","hookEventName","lastUserInput","modelName","terminationReason","transcriptPath","workspacePaths"],"resultType":"undefined","terminationReason":"NO_TOOL_CALL","hookExit":0,"errorType":"string","hasError":false,"decision":"allow"}
4
+ {"phase":"stop","deliveryKeys":["artifactDirectoryPath","continuationActive","conversationId","cwd","error","executionNum","fullyIdle","hookEventName","lastUserInput","modelName","terminationReason","transcriptPath","workspacePaths"],"resultType":"undefined","terminationReason":"NO_TOOL_CALL","hookExit":0,"errorType":"string","hasError":false,"decision":"allow"}
5
+ {"phase":"final_state","status":"idle","lastEditAtSet":false,"lastVerifyAtSet":false,"gitClean":true}
@@ -0,0 +1,25 @@
1
+ # Codex CLI shell outcomes for #488 (2026-11-26)
2
+
3
+ Codex CLI `0.172.0` on Windows build `10.0.26200` ran UnifiedExec `exec_command` with Windows PowerShell and Git Bash. Each run used an isolated profile, a user-level `PostToolUse` capture hook, and a loopback Responses fixture that issued fixed shell calls. The CLI executed the commands and delivered hook stdin. The fixture supplied only tool calls and a final message.
4
+
5
+ [Sanitized capture](capture.sanitized.jsonl) pairs each hook payload excerpt with the corresponding `codex exec --json` command completion event. It retains the full top-level key names and the probe's command and output. It omits paths and session, turn, and tool identifiers.
6
+
7
+ | Probe | CLI event exit code (PowerShell / Git Bash) | Hook `tool_response` | Harness outcome |
8
+ |---|---|---|---|
9
+ | Exit zero | `0` / `0` | Output string | `unknown` |
10
+ | Exit nonzero | `1` / `7` | Output string | `unknown` |
11
+ | Exit nonzero after printing `Process exited with code 0` | `1` / `9` | Output string containing that line | `unknown` |
12
+ | Delayed exit zero | `0` / `0` | Output string | `unknown` |
13
+
14
+ The documented hook schema exposes tool-specific output without guaranteeing a shell status field. In this release, UnifiedExec serializes the command output as a JSON string for `PostToolUse`. The structured `item.exit_code` belongs to the separate CLI event stream, outside the hook payload. [Hook schema](https://learn.chatgpt.com/docs/hooks#posttooluse) · [UnifiedExec source](https://github.com/openai/codex/blob/3d86e43b075adeba2193ec5c22ac92f55afd82e6/codex-rs/core/src/tools/context.rs#L506-L514) · [CLI event source](https://github.com/openai/codex/blob/3d86e43b075adeba2193ec5c22ac92f55afd82e6/codex-rs/exec/src/exec_events.rs#L160-L166)
15
+
16
+ ## Async completion follow-up
17
+
18
+ The same CLI and Windows build reproduced the synchronous results on both shells from checkout `a534e549`. The temporary capture hook invoked the installed Harness 1.2.1 outcome adapter, whose SHA-256 matched the checkout. The `async_failure` rows in the capture record one additional run per shell with a 12-second command and a `write_stdin` poll.
19
+
20
+ | Tool result | PostToolUse delivery for the delayed command |
21
+ |---|---|
22
+ | `exec_command` returned a running session | No delivery by the time the fixture received the running result |
23
+ | `write_stdin` returned the completed process | One `Bash` hook for the original command with an empty string response. The installed adapter returned `unknown`. The CLI completion event reported exit `1` in PowerShell and `7` in Git Bash. |
24
+
25
+ Automatic verification credit for these shell results depends on Codex exposing machine-readable status in `PostToolUse`. Source and packaged regression tests independently cover structured zero, nonzero, and ambiguous results through `state-persist` and `contract-test`. Native plugin mounting is tracked in [#122](https://github.com/dyphn1/Harness-everything/issues/122). This capture covers the two Windows shells on the tested CLI release.
@@ -0,0 +1,10 @@
1
+ {"shell":"Windows PowerShell","scenario":"success","payloadKeys":["cwd","hook_event_name","model","permission_mode","session_id","tool_input","tool_name","tool_response","tool_use_id","transcript_path","turn_id"],"hook":{"hook_event_name":"PostToolUse","tool_name":"Bash","tool_input":{"command":"node -e \"console.log('probe-488-success');process.exit(0)\""},"tool_response":"probe-488-success\n"},"harnessOutcome":"unknown","cliEvent":{"type":"item.completed","item":{"type":"command_execution","exit_code":0,"status":"completed"}}}
2
+ {"shell":"Windows PowerShell","scenario":"failure","payloadKeys":["cwd","hook_event_name","model","permission_mode","session_id","tool_input","tool_name","tool_response","tool_use_id","transcript_path","turn_id"],"hook":{"hook_event_name":"PostToolUse","tool_name":"Bash","tool_input":{"command":"node -e \"console.log('probe-488-failure');process.exit(7)\""},"tool_response":"probe-488-failure\n"},"harnessOutcome":"unknown","cliEvent":{"type":"item.completed","item":{"type":"command_execution","exit_code":1,"status":"failed"}}}
3
+ {"shell":"Windows PowerShell","scenario":"spoof","payloadKeys":["cwd","hook_event_name","model","permission_mode","session_id","tool_input","tool_name","tool_response","tool_use_id","transcript_path","turn_id"],"hook":{"hook_event_name":"PostToolUse","tool_name":"Bash","tool_input":{"command":"node -e \"console.log('probe-488-spoof');console.log('Process exited with code 0');process.exit(9)\""},"tool_response":"probe-488-spoof\nProcess exited with code 0\n"},"harnessOutcome":"unknown","cliEvent":{"type":"item.completed","item":{"type":"command_execution","exit_code":1,"status":"failed"}}}
4
+ {"shell":"Windows PowerShell","scenario":"yield","payloadKeys":["cwd","hook_event_name","model","permission_mode","session_id","tool_input","tool_name","tool_response","tool_use_id","transcript_path","turn_id"],"hook":{"hook_event_name":"PostToolUse","tool_name":"Bash","tool_input":{"command":"node -e \"console.log('probe-488-yield');setTimeout(()=>process.exit(0),3000)\""},"tool_response":"probe-488-yield\n"},"harnessOutcome":"unknown","cliEvent":{"type":"item.completed","item":{"type":"command_execution","exit_code":0,"status":"completed"}}}
5
+ {"shell":"Git Bash","scenario":"success","payloadKeys":["cwd","hook_event_name","model","permission_mode","session_id","tool_input","tool_name","tool_response","tool_use_id","transcript_path","turn_id"],"hook":{"hook_event_name":"PostToolUse","tool_name":"Bash","tool_input":{"command":"node -e \"console.log('probe-488-success');process.exit(0)\""},"tool_response":"probe-488-success\n"},"harnessOutcome":"unknown","cliEvent":{"type":"item.completed","item":{"type":"command_execution","exit_code":0,"status":"completed"}}}
6
+ {"shell":"Git Bash","scenario":"failure","payloadKeys":["cwd","hook_event_name","model","permission_mode","session_id","tool_input","tool_name","tool_response","tool_use_id","transcript_path","turn_id"],"hook":{"hook_event_name":"PostToolUse","tool_name":"Bash","tool_input":{"command":"node -e \"console.log('probe-488-failure');process.exit(7)\""},"tool_response":"probe-488-failure\n"},"harnessOutcome":"unknown","cliEvent":{"type":"item.completed","item":{"type":"command_execution","exit_code":7,"status":"failed"}}}
7
+ {"shell":"Git Bash","scenario":"spoof","payloadKeys":["cwd","hook_event_name","model","permission_mode","session_id","tool_input","tool_name","tool_response","tool_use_id","transcript_path","turn_id"],"hook":{"hook_event_name":"PostToolUse","tool_name":"Bash","tool_input":{"command":"node -e \"console.log('probe-488-spoof');console.log('Process exited with code 0');process.exit(9)\""},"tool_response":"probe-488-spoof\nProcess exited with code 0\n"},"harnessOutcome":"unknown","cliEvent":{"type":"item.completed","item":{"type":"command_execution","exit_code":9,"status":"failed"}}}
8
+ {"shell":"Git Bash","scenario":"yield","payloadKeys":["cwd","hook_event_name","model","permission_mode","session_id","tool_input","tool_name","tool_response","tool_use_id","transcript_path","turn_id"],"hook":{"hook_event_name":"PostToolUse","tool_name":"Bash","tool_input":{"command":"node -e \"console.log('probe-488-yield');setTimeout(()=>process.exit(0),3000)\""},"tool_response":"probe-488-yield\n"},"harnessOutcome":"unknown","cliEvent":{"type":"item.completed","item":{"type":"command_execution","exit_code":0,"status":"completed"}}}
9
+ {"shell":"Windows PowerShell","scenario":"async_failure","payloadKeys":["cwd","hook_event_name","model","permission_mode","session_id","tool_input","tool_name","tool_response","tool_use_id","transcript_path","turn_id"],"hook":{"hook_event_name":"PostToolUse","tool_name":"Bash","tool_input":{"command":"node -e \"console.log('probe-488-yield');setTimeout(()=>process.exit(7),12000)\""},"tool_response":""},"harnessOutcome":"unknown","cliEvent":{"type":"item.completed","item":{"type":"command_execution","exit_code":1,"status":"failed"}},"asyncToolResults":[{"tool":"exec_command","running":true,"hookScenarios":["success","failure","spoof"]},{"tool":"write_stdin","running":false,"hookScenarios":["success","failure","spoof","yield"]}]}
10
+ {"shell":"Git Bash","scenario":"async_failure","payloadKeys":["cwd","hook_event_name","model","permission_mode","session_id","tool_input","tool_name","tool_response","tool_use_id","transcript_path","turn_id"],"hook":{"hook_event_name":"PostToolUse","tool_name":"Bash","tool_input":{"command":"node -e \"console.log('probe-488-yield');setTimeout(()=>process.exit(7),12000)\""},"tool_response":""},"harnessOutcome":"unknown","cliEvent":{"type":"item.completed","item":{"type":"command_execution","exit_code":7,"status":"failed"}},"asyncToolResults":[{"tool":"exec_command","running":true,"hookScenarios":["success","failure","spoof"]},{"tool":"write_stdin","running":false,"hookScenarios":["success","failure","spoof","yield"]}]}
@@ -0,0 +1,19 @@
1
+ # agy exit-3 quota fixture provenance (I544)
2
+
3
+ The three `agy-quota-*` files are sanitized copies of the live captures in
4
+ `.w/capture/`, recorded 2026-11-26 on macOS with `agy` 1.5.18. The identifier
5
+ and reset duration are redacted; the advice text is retained as captured.
6
+
7
+ | Fixture | Source | Live-backed part | Fixture part |
8
+ | --- | --- | --- | --- |
9
+ | `agy-quota-direct-third-party.stderr` | `.w/capture/direct.sanitized.stderr` | Fresh readiness-equivalent call, quota already exhausted before start: **normal exit 3**, no signal, stdout 0 bytes, exactly these two stderr lines, no report created (2026-11-26 22:52). | Managed readiness wrapper in `ci/mechanism-468-dispatch-cli.test.js`. |
10
+ | `agy-quota-direct-individual.stderr` | `.w/capture/direct-gemini.sanitized.stderr` | Direct `gemini-4-neon-medium` call, individual pool exhausted: **normal exit 3**, no signal, stdout 0 bytes, exactly these two stderr lines, no report (2026-11-26 23:4x). | C8 execution wrapper in `ci/mechanism-468-dispatch-cli.test.js`. |
11
+ | `agy-quota-exec-individual.log` | `.w/capture/exec-individual.sanitized.log` | Managed C8 execution log framing from PR #547 code, `gemini-4-neon-medium`, individual pool: the retained result was **15 RUN_FAILED** (nonzero exit, stderr, no report). | The child exit status is **not** carried by the log. The execution fixture uses this live stderr shape plus a **fixture exit status of 3**. |
12
+
13
+ ## Exit-status boundary
14
+
15
+ Only the two direct calls above establish a live normal exit 3. The managed
16
+ readiness and managed execution rows are derived from those live stderr shapes
17
+ with a fixture exit status. The managed execution fixture is labelled as
18
+ derived until a fresh managed result preserves its original exit status; the
19
+ captured 15 RUN_FAILED result is not retroactively reclassified as exit 3.
@@ -0,0 +1,2 @@
1
+ error: Individual quota reached. Please upgrade your subscription to increase your limits. Resets in <duration>.
2
+ AGY_ERROR: {"short_error":"RESOURCE_EXHAUSTED (code 429): Individual quota reached. Please upgrade your subscription to increase your limits. Resets in <duration>.","status":"RESOURCE_EXHAUSTED","error_code":429,"code_kind":"http","retryable":true,"error_id":"<redacted>"}
@@ -0,0 +1,2 @@
1
+ error: Third-party quota reached. Please switch to Gemini models or upgrade your subscription to increase your limits. Resets in <duration>.
2
+ AGY_ERROR: {"short_error":"RESOURCE_EXHAUSTED (code 429): Third-party quota reached. Please switch to Gemini models or upgrade your subscription to increase your limits. Resets in <duration>.","status":"RESOURCE_EXHAUSTED","error_code":429,"code_kind":"http","retryable":true,"error_id":"<redacted>"}
@@ -0,0 +1,3 @@
1
+ [stderr]
2
+ error: Individual quota reached. Please upgrade your subscription to increase your limits. Resets in <duration>.
3
+ AGY_ERROR: {"short_error":"RESOURCE_EXHAUSTED (code 429): Individual quota reached. Please upgrade your subscription to increase your limits. Resets in <duration>.","status":"RESOURCE_EXHAUSTED","error_code":429,"code_kind":"http","retryable":true,"error_id":"<redacted>"}
@@ -117,6 +117,7 @@ try {
117
117
 
118
118
  const fallbackRecord = index.records.find(entry => entry.captureMethod === 'session-backfill' && entry.turn === 3);
119
119
  assert(fallbackRecord, 'the response_item assistant label is recovered when task_complete omits it');
120
+ assert.strictEqual(fallbackRecord.selfReport.workflow, null);
120
121
  const fallbackText = JSON.parse(fs.readFileSync(path.join(store, 'text', fallbackRecord.contentSha256 + '.json'), 'utf8'));
121
122
  assert.strictEqual(fallbackText.prompt, 'fallback prompt from the rollout message');
122
123
  const backfilledTier1 = index.records.find(entry => entry.captureMethod === 'session-backfill' && entry.selfReport.tier === 'tier1');
@@ -180,8 +180,7 @@ try {
180
180
  const result = build(tempOutput);
181
181
  const publicManifest = JSON.parse(fs.readFileSync(result.manifestPath, 'utf8'));
182
182
  const packagedFiles = filesUnder(path.join(ROOT, 'plugins', 'harness-everything', 'skills')).map(file => `skills/${file}`);
183
- assert.deepStrictEqual(publicManifest.files.map(file => file.path), packagedFiles);
184
- assert.ok(publicManifest.files.every(file => file.path.startsWith('skills/')));
183
+ assert.deepStrictEqual(publicManifest.files.map(file => file.path), ['plugin.json', ...packagedFiles]);
185
184
  assert.ok(publicManifest.files.every(file => !/(^|\/)(hooks|\.codex-plugin)(\/|$)/.test(file.path)));
186
185
  assert.strictEqual(publicManifest.bundle_sha256, sha256(tempOutput));
187
186
  } finally {
@@ -639,7 +639,7 @@ test('the label contract is the router output\'s last section and covers every t
639
639
  const sections = out.split(/\n(?==> )/);
640
640
  const last = sections[sections.length - 1];
641
641
  assert(/^=> TURN LABEL LINE/.test(last) && last.includes('harness-label'), 'the label contract is printed last');
642
- assert(/EVERY TURN/.test(last) && /null only when validity is invalid/.test(last));
642
+ assert(/EVERY TURN/.test(last) && /null tier only when validity is invalid/.test(last));
643
643
  assert(/cannot be understood from its own text and needs conversation context/.test(last));
644
644
  assert(/agent-written dispatches and worker instructions are ordinary prompts/.test(last));
645
645
  const status = sections.find(x => x.startsWith('=> USER-VISIBLE HARNESS STATUS CONTRACT'));
@@ -647,6 +647,41 @@ test('the label contract is the router output\'s last section and covers every t
647
647
  assert(/^14\. \*\*The turn label line is mandatory on every turn/m.test(fs.readFileSync(path.join(ROOT, 'AGENTS.md'), 'utf8')));
648
648
  });
649
649
 
650
+ test('deferred routing instructs an actionable turn to report a null workflow', () => {
651
+ const s = sandbox();
652
+ s.env.HARNESS_SYSTEM_ONE_MODE = 'off';
653
+ const base = { session_id: 'deferred-label', cwd: s.repo };
654
+ const promptEvent = { ...base, hook_event_name: 'UserPromptSubmit', prompt: 'git status' };
655
+ const result = spawnSync(process.execPath, [ROUTER], {
656
+ input: JSON.stringify(promptEvent), cwd: s.repo, encoding: 'utf8', env: s.env,
657
+ });
658
+ assert.strictEqual(result.status, 0, result.stderr);
659
+ assert.match(result.stdout, /=> WORKFLOW STRATEGY: deferred/);
660
+ const contract = result.stdout.slice(result.stdout.indexOf('=> TURN LABEL LINE'));
661
+ assert.match(contract, /Use JSON null for workflow when the strategy is deferred/);
662
+
663
+ const [, example] = contract.match(/<!-- harness-label (.*) -->/);
664
+ const nullWorkflow = LABEL.replace('"iterative-single"', JSON.stringify(JSON.parse(example).workflow));
665
+ assert.strictEqual(lib.parseLabelLine(nullWorkflow).label.workflow, null);
666
+ hook(s.env, promptEvent);
667
+ hook(s.env, { ...base, hook_event_name: 'Stop', last_assistant_message: `done\n${nullWorkflow}` });
668
+ const [report] = records(s.store);
669
+ assert.strictEqual(report.selfReport.workflow, null);
670
+ const out = path.join(s.dir, 'deferred-export');
671
+ const exported = spawnSync(process.execPath, [EXPORTER, '--store', s.store, '--out', out, '--self-report-only'], {
672
+ encoding: 'utf8', env: s.env,
673
+ });
674
+ assert.strictEqual(exported.status, 0, exported.stderr);
675
+ assert.strictEqual(JSON.parse(fs.readFileSync(path.join(out, 'labels-observed.jsonl'), 'utf8')).workflow, null);
676
+
677
+ const witness = { v: 1, validity: 'actionable', tier: 'tier1', intents: [], workflow: 'deferred', skills: [] };
678
+ assert.strictEqual(lib.parseLabelLine(`<!-- harness-label ${JSON.stringify(witness)} -->`).reason, 'label-invalid');
679
+ assert.strictEqual(lib.validLabel({ ...witness, workflow: 'unknown' }), false);
680
+ for (const workflow of ['direct-single', 'iterative-single', 'fable-staged', 'fable-parallel', 'fable-multi-agent-workspace']) {
681
+ assert.strictEqual(lib.validLabel({ ...witness, workflow }), true, workflow);
682
+ }
683
+ });
684
+
650
685
  test('router/self agreement counts only turns where the router chose a tier', () => {
651
686
  const s = sandbox();
652
687
  fs.mkdirSync(path.join(s.store, 'text'), { recursive: true });
@@ -692,6 +727,7 @@ test('Codex router hook returns its contract as JSON additionalContext', () => {
692
727
  const out = JSON.parse(r.stdout);
693
728
  assert.strictEqual(out.hookSpecificOutput.hookEventName, 'UserPromptSubmit', script);
694
729
  assert(out.hookSpecificOutput.additionalContext.includes('TURN LABEL LINE'), script);
730
+ assert.match(out.hookSpecificOutput.additionalContext, /Use JSON null for workflow when the strategy is deferred/, script);
695
731
  }
696
732
  });
697
733
 
@@ -253,13 +253,14 @@ test('inject: the documented OpenCode hooks deliver the kernel router output and
253
253
  dispose = await install(f);
254
254
  assert.ok(f.sessionHooks.has('prompt'), 'setup registers prompt admission');
255
255
  assert.ok(f.sessionHooks.has('context'), 'setup registers the system context transform');
256
- const prompt = { sessionID: 'inject-session', messageID: 'inject-turn', prompt: { text: 'add a small behavior change' } };
256
+ const prompt = { sessionID: 'inject-session', messageID: 'inject-turn', prompt: { text: 'git status' } };
257
257
  await f.sessionHooks.get('prompt')(prompt);
258
258
  const context = { sessionID: 'inject-session', kind: 'primary', system: [], messages: [] };
259
259
  await f.sessionHooks.get('context')(context);
260
- assert.equal(prompt.prompt.text, 'add a small behavior change', 'injection leaves the persisted user prompt unchanged');
260
+ assert.equal(prompt.prompt.text, 'git status', 'injection leaves the persisted user prompt unchanged');
261
261
  const injected = context.system.map(part => part.text || '').join('\n');
262
- assert.match(injected, /=> ROUTER WORKFLOW PLAN/);
262
+ assert.match(injected, /=> WORKFLOW STRATEGY: deferred/);
263
+ assert.match(injected, /Use JSON null for workflow when the strategy is deferred/);
263
264
 
264
265
  const expectedRun = spawnSync(process.execPath, [path.join(ROOT, 'harness-everything/scripts/kernel-router.js')], {
265
266
  cwd: f.workspace,