@zhivex-ai/harness 1.4.0-rc.8 → 1.4.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 (124) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +126 -72
  3. package/SECURITY.md +1 -1
  4. package/SUPPORT.md +2 -2
  5. package/contracts/client-protocol-v1.schema.json +593 -0
  6. package/contracts/engine-api.json +156 -0
  7. package/contracts/public-api.json +12 -0
  8. package/contracts/stable-api-signatures.json +33 -33
  9. package/dist/acp-cli.js +56 -21
  10. package/dist/audit/index.d.ts +3 -0
  11. package/dist/audit/index.js +482 -0
  12. package/dist/audit/pack.d.ts +72 -0
  13. package/dist/audit-pack-e4vaq7np.js +532 -0
  14. package/dist/cli/arguments.d.ts +3 -1
  15. package/dist/cli/audit-pack.d.ts +24 -0
  16. package/dist/cli/cli-credentials.d.ts +6 -0
  17. package/dist/cli/cli-profiles.d.ts +4 -2
  18. package/dist/cli/node-engine.d.ts +2 -0
  19. package/dist/{cli-3bzvq594.js → cli-1cf4dcnj.js} +245 -642
  20. package/dist/{cli-entry-qav71mxw.js → cli-entry-3s63zn4w.js} +40 -13
  21. package/dist/cli-entry-7f0cen32.js +9990 -0
  22. package/dist/cli-entry-a890x3kq.js +10348 -0
  23. package/dist/{cli-entry-yqwa1943.js → cli-entry-hdtfef27.js} +760 -35
  24. package/dist/cli-entry-rgs6bxmy.js +484 -0
  25. package/dist/cli.js +27 -2
  26. package/dist/client/json-contracts.d.ts +4 -0
  27. package/dist/client/protocol.d.ts +133 -0
  28. package/dist/client/task-control-host.d.ts +400 -0
  29. package/dist/client/task-projection-host.d.ts +12 -0
  30. package/dist/client/task-projection.d.ts +168 -0
  31. package/dist/compat/code-support.js +30 -23
  32. package/dist/{config-depqpsae.js → config-r9fdhce6.js} +5 -4
  33. package/dist/{config-pwbnze4g.js → config-vyajmksy.js} +1 -1
  34. package/dist/engine/acp.js +17 -12
  35. package/dist/engine/client.js +16 -11
  36. package/dist/engine/desktop-providers-v1.d.ts +2 -0
  37. package/dist/engine/desktop-providers-v1.js +24 -3
  38. package/dist/engine/desktop-state-v1.js +13 -9
  39. package/dist/engine/index.d.ts +3 -0
  40. package/dist/engine/index.js +103 -555
  41. package/dist/engine/mcp-stdio-v1.js +10 -7
  42. package/dist/engine/models.js +76 -4
  43. package/dist/engine/protocol.d.ts +2 -0
  44. package/dist/engine/protocol.js +122 -0
  45. package/dist/engine/service.js +17 -12
  46. package/dist/hostile-repository-demo.js +1416 -521
  47. package/dist/{index-txrqqd2r.js → index-02pqtbbg.js} +560 -34
  48. package/dist/{index-nqhnh1hz.js → index-0zs2dz26.js} +767 -932
  49. package/dist/{index-09zphhwt.js → index-1265j7t2.js} +74 -7
  50. package/dist/index-4fx5f3k5.js +269 -0
  51. package/dist/{index-ngg2168h.js → index-4gt045j0.js} +110 -2
  52. package/dist/{index-sbzvrpm7.js → index-6599mpmy.js} +5 -3
  53. package/dist/{index-7y6b4yjx.js → index-74kkpyqk.js} +10 -8
  54. package/dist/{index-pcn2bk8j.js → index-8sm2a1wa.js} +1 -1
  55. package/dist/{index-jdb1q8yn.js → index-bpc596v3.js} +15 -10
  56. package/dist/index-c39197wq.js +552 -0
  57. package/dist/{index-1k248k0w.js → index-crta5wzv.js} +7 -6
  58. package/dist/{index-zmx264xy.js → index-d9zkmhz3.js} +144 -825
  59. package/dist/{index-w9pjt7td.js → index-dtb2c6ds.js} +6 -260
  60. package/dist/index-f6mqa5gk.js +1535 -0
  61. package/dist/index-fm84men1.js +239 -0
  62. package/dist/index-j6zxnc8m.js +490 -0
  63. package/dist/{index-vga76vmb.js → index-mv8sb1ns.js} +5 -3
  64. package/dist/{index-xqxeypt5.js → index-mzydbzp8.js} +76 -4
  65. package/dist/{index-wg1sd3at.js → index-qfsrrnz6.js} +1 -1
  66. package/dist/{index-9v72fpya.js → index-sk3cap35.js} +889 -969
  67. package/dist/index-sstgcsr0.js +511 -0
  68. package/dist/index-wm9xeq1n.js +329 -0
  69. package/dist/index-xdbkcccf.js +719 -0
  70. package/dist/{index-fny13znr.js → index-zxg4ve4j.js} +42 -1549
  71. package/dist/index.d.ts +3 -0
  72. package/dist/index.js +95 -78
  73. package/dist/internal/desktop/providers.d.ts +2 -0
  74. package/dist/models/catalog.d.ts +2 -0
  75. package/dist/persistence/sqlite-database.d.ts +1 -0
  76. package/dist/providers/azure-openai.d.ts +14 -0
  77. package/dist/providers/bedrock.d.ts +23 -0
  78. package/dist/providers/providers.d.ts +1 -1
  79. package/dist/providers/vertex-auth.d.ts +5 -1
  80. package/dist/runtime/durable-review-group.d.ts +33 -0
  81. package/dist/runtime/error-diagnostics.d.ts +8 -0
  82. package/dist/runtime/harness.d.ts +11 -0
  83. package/dist/runtime/provider-transient.d.ts +33 -0
  84. package/dist/runtime/run-interruption.d.ts +7 -0
  85. package/dist/runtime/shared-budget.d.ts +30 -0
  86. package/dist/runtime/task-continuity.d.ts +300 -77
  87. package/dist/runtime/time-to-safe-fix.d.ts +8 -0
  88. package/dist/service-cli.js +17 -12
  89. package/dist/{service-client-cli-ra3yzvjg.js → service-client-cli-eqrdc9zq.js} +400 -305
  90. package/dist/verify-historical-migrations.js +1416 -521
  91. package/dist/zhx.js +27 -2
  92. package/docs/AUDIT_PACK.md +99 -0
  93. package/docs/AZURE_OPENAI.md +53 -0
  94. package/docs/BEDROCK.md +56 -0
  95. package/docs/CLI.md +16 -1
  96. package/docs/CLIENT_PROTOCOL.md +178 -0
  97. package/docs/CODE_RELEASE.md +68 -1
  98. package/docs/CODE_WEB_TASKS.md +116 -0
  99. package/docs/CONTEXT_ENGINEERING.md +59 -0
  100. package/docs/CREDENTIALS.md +21 -0
  101. package/docs/DURABLE_OPERATIONS.md +93 -1
  102. package/docs/ENGINE_API.md +5 -2
  103. package/docs/EXTENSIBILITY.md +2 -2
  104. package/docs/FIRST_USE.md +6 -6
  105. package/docs/MINIMUM_TASK_AUTHORITY.md +3 -3
  106. package/docs/PROJECT_MEMORY.md +1 -1
  107. package/docs/README.md +6 -1
  108. package/docs/STABILITY.md +3 -1
  109. package/docs/SUPPORT_MATRIX.md +1 -1
  110. package/docs/SUPPORT_MATRIX_1_1.md +1 -1
  111. package/docs/USAGE.md +3 -1
  112. package/docs/VERTEX.md +2 -2
  113. package/docs/WEB_LIMITS.md +4 -3
  114. package/docs/adr/0002-isolated-mcp-stdio.md +6 -3
  115. package/docs/support-matrix-1.1.json +3 -1
  116. package/docs/support-matrix.json +6 -4
  117. package/evaluations/code-task-ui.json +20 -0
  118. package/evaluations/representative-assembly-matrix.json +19 -1
  119. package/evaluations/task-projection.json +10 -0
  120. package/evaluations/task-recovery-lab.json +60 -0
  121. package/examples/README.md +5 -5
  122. package/package.json +23 -13
  123. package/dist/cli-entry-25xefnws.js +0 -19900
  124. package/dist/index-8705zxpr.js +0 -145
@@ -61,7 +61,9 @@
61
61
  "v1.4.0-rc.5",
62
62
  "v1.4.0-rc.6",
63
63
  "v1.4.0-rc.7",
64
- "v1.4.0-rc.8"
64
+ "v1.4.0-rc.8",
65
+ "v1.4.0",
66
+ "v1.4.1"
65
67
  ],
66
68
  "expectedModels": [
67
69
  {
@@ -543,6 +545,22 @@
543
545
  "qwen": "qwen3.8-flash",
544
546
  "openai": "gpt-6-luna"
545
547
  }
548
+ },
549
+ {
550
+ "releaseTag": "v1.4.0",
551
+ "models": {
552
+ "meta": "muse-spark-1.3-contributor",
553
+ "qwen": "qwen3.8-flash",
554
+ "openai": "gpt-6-luna"
555
+ }
556
+ },
557
+ {
558
+ "releaseTag": "v1.4.1",
559
+ "models": {
560
+ "meta": "muse-spark-1.3-contributor",
561
+ "qwen": "qwen3.8-flash",
562
+ "openai": "gpt-6-luna"
563
+ }
546
564
  }
547
565
  ],
548
566
  "expectedCases": [
@@ -0,0 +1,10 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "story": "HAR-HU-73",
4
+ "lineage": "Restacked onto current main. Fixture identity is fixtureSha256, not a closed stack commit.",
5
+ "fixtureSha256": "473a9e2144b0042b1b46ef54f915de693045df89d6175bde42a3393d2b083263",
6
+ "installedScenarios": ["negotiation-version", "snapshot-read-only", "host-redaction", "duplicate-out-of-order", "artifact-scope", "cursor-expiry-replay", "paused-host-read", "restart-new-epoch", "artifact-drift", "legacy-budget"],
7
+ "excluded": ["CODE-05 UI", "live providers", "external pilot", "concurrent host takeover", "non-native execution", "semantic acceptance", "release"],
8
+ "fixtureSource": "HAR75 phase-one greeting oracle; unchanged bytes",
9
+ "runner": "scripts/task-recovery-lab-installed.mjs, optional sixth argument projection"
10
+ }
@@ -0,0 +1,60 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "HAR-HU-75-base-lab",
4
+ "scopeDecision": "HAR-HU-61",
5
+ "measurementConsumer": "HAR-HU-74 (not executed)",
6
+ "lineage": "Restacked onto current main with the task evidence read. Fixture identity is fixtureSha256, not a closed stack commit.",
7
+ "fixtureSha256": "473a9e2144b0042b1b46ef54f915de693045df89d6175bde42a3393d2b083263",
8
+ "installedScenarios": [
9
+ "failed-start",
10
+ "exhaustion-after-work",
11
+ "native-path-boundary",
12
+ "normal-control",
13
+ "contract-artifact-drift",
14
+ "obsolete-approval",
15
+ "concurrent-cancel-unknown-usage",
16
+ "concurrent-cancel-late-usage",
17
+ "disk-full-final-save",
18
+ "compaction-untrusted-evidence",
19
+ "crash-before-receipt",
20
+ "crash-after-receipt",
21
+ "service-disconnect"
22
+ ],
23
+ "limits": {
24
+ "singleWriter": true,
25
+ "backend": "native",
26
+ "store": "sqlite",
27
+ "maxSteps": 16,
28
+ "maxToolCalls": 40,
29
+ "timeoutMs": 150000,
30
+ "inputTokens": 60000,
31
+ "outputTokens": 8192,
32
+ "totalTokens": 68192,
33
+ "liveProvider": false,
34
+ "humanMeasurement": false
35
+ },
36
+ "sourceRegressions": [
37
+ "tests/task-continuity.test.ts",
38
+ "tests/task-cancellation-host.test.ts",
39
+ "tests/task-cancellation-transport.test.ts",
40
+ "tests/task-budget-accounting.test.ts",
41
+ "tests/task-budget-compatibility.test.ts",
42
+ "tests/local-service.test.ts",
43
+ "tests/local-service-recovery.test.ts",
44
+ "tests/governance-report.test.ts",
45
+ "tests/governance-context.test.ts",
46
+ "tests/tool-policy-paths.test.ts",
47
+ "tests/security.test.ts"
48
+ ],
49
+ "pending": [
50
+ "HAR73 versioned task service projection",
51
+ "CODE05 task review UI and rendering of active text/citations",
52
+ "HAR74 ratified human rubric, time, cost and pilot"
53
+ ],
54
+ "notSupported": [
55
+ "Concurrent writers or host takeover",
56
+ "Remote provider stop confirmation",
57
+ "Arbitrary disk hardware failure",
58
+ "New SSRF/document/web adapters"
59
+ ]
60
+ }
@@ -1,22 +1,22 @@
1
- # Examples for Zhivex Harness 1.3
1
+ # Examples for Zhivex Harness 1.4
2
2
 
3
3
  ## Isolated Bun installation
4
4
 
5
- Requirements: Bun 1.4.0+, Node.js 22.13.0+, and Git on macOS or Linux. After protected RC publication, this installs the 1.4.0-rc.8 candidate artifact in a temporary consumer, without building the source checkout or changing global tools:
5
+ Requirements: Bun 1.4.0+, Node.js 22.13.0+, and Git on macOS or Linux. After protected stable publication, this installs the 1.4.1 artifact in a temporary consumer, without building the source checkout or changing global tools:
6
6
 
7
7
  ```bash
8
8
  harness_demo_dir=$(mktemp -d)
9
9
  cd "$harness_demo_dir"
10
10
  printf '{"name":"harness-first-run","private":true}\n' > package.json
11
- bun add --exact --ignore-scripts @zhivex-ai/harness@1.4.0-rc.8
11
+ bun add --exact --ignore-scripts @zhivex-ai/harness@1.4.1
12
12
  ./node_modules/.bin/zhx --version
13
13
  ./node_modules/.bin/zhx --help
14
14
  ./node_modules/.bin/zhx doctor --provider openai --json
15
15
  ```
16
16
 
17
- Version must print `1.4.0-rc.8`; help lists commands. Doctor does not contact a provider. Without `OPENAI_API_KEY`, it reports the missing credential and exits with code `3`; inspect the JSON checks before proceeding. A directory without Git initialization can also produce a diagnostic warning. No paid model call is required for these checks. Both `zhx` and `zhivex-harness` are installed aliases; Bun manages installation, and their shebang runs Node.
17
+ Version must print `1.4.1`; help lists commands. Doctor does not contact a provider. Without `OPENAI_API_KEY`, it reports the missing credential and exits with code `3`; inspect the JSON checks before proceeding. A directory without Git initialization can also produce a diagnostic warning. No paid model call is required for these checks. Both `zhx` and `zhivex-harness` are installed aliases; Bun manages installation, and their shebang runs Node.
18
18
 
19
- To continue in your actual project, use the [global installation and credential setup](../README.md#installation), then `zhx init --profile daily --provider openai` and `zhx doctor --profile daily`. Real tasks require the selected provider credential in the process environment. Profiles store provider/model choices, never credentials. See [CLI](../docs/CLI.md) and [support](../SUPPORT.md).
19
+ To continue in your actual project, use the [global installation and credential setup](../README.md#quick-start), then `zhx init --profile daily --provider openai` and `zhx doctor --profile daily`. Real tasks require the selected provider credential in the process environment. Profiles store provider/model choices, never credentials. See [CLI](../docs/CLI.md) and [support](../SUPPORT.md).
20
20
 
21
21
  ## Configuration and change examples
22
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhivex-ai/harness",
3
- "version": "1.4.0-rc.8",
3
+ "version": "1.4.1",
4
4
  "description": "Governed, provider-portable runtime for coding agents with durable approvals and isolated repository execution.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -85,6 +85,10 @@
85
85
  "./mcp/stdio/v1": {
86
86
  "types": "./dist/engine/mcp-stdio-v1.d.ts",
87
87
  "import": "./dist/engine/mcp-stdio-v1.js"
88
+ },
89
+ "./audit": {
90
+ "types": "./dist/audit/index.d.ts",
91
+ "import": "./dist/audit/index.js"
88
92
  }
89
93
  },
90
94
  "files": [
@@ -98,6 +102,7 @@
98
102
  "docs/CLI.md",
99
103
  "docs/WEB_LIMITS.md",
100
104
  "docs/CODE_RELEASE.md",
105
+ "docs/CODE_WEB_TASKS.md",
101
106
  "docs/images/cli-conversation.png",
102
107
  "docs/CLIENT_PROTOCOL.md",
103
108
  "docs/CONTEXT_ENGINEERING.md",
@@ -135,18 +140,21 @@
135
140
  "docs/MCP_STDIO.md",
136
141
  "docs/adr/0002-isolated-mcp-stdio.md",
137
142
  "docs/VERTEX.md",
143
+ "docs/BEDROCK.md",
144
+ "docs/AZURE_OPENAI.md",
138
145
  "docs/TOOL_POLICY.md",
139
146
  "docs/fixtures/mcp-stdio-contract-v1.json",
140
147
  "docs/PROJECT_MEMORY.md",
141
148
  "docs/MINIMUM_TASK_AUTHORITY.md",
142
- "docs/MINIMUM_OFFLINE_EVALS.md"
149
+ "docs/MINIMUM_OFFLINE_EVALS.md",
150
+ "docs/AUDIT_PACK.md"
143
151
  ],
144
152
  "scripts": {
145
153
  "models:check": "bun run scripts/validate-model-catalog.ts",
146
154
  "models:import": "bun run scripts/generate-console-models.ts",
147
155
  "dev": "bun run build && node --env-file-if-exists=.env dist/cli.js",
148
156
  "start": "node dist/cli.js",
149
- "build": "bun run scripts/clean-dist.ts && bun build ./src/index.ts ./src/service-cli.ts ./src/acp-cli.ts ./src/engine/index.ts ./src/engine/protocol.ts ./src/engine/client.ts ./src/engine/service.ts ./src/engine/acp.ts ./src/engine/models.ts ./src/engine/desktop-state-v1.ts ./src/engine/desktop-providers-v1.ts ./src/compat/code-support.ts ./src/engine/mcp-stdio-v1.ts --root ./src --outdir ./dist --target node --packages external --splitting && bun build ./src/engine/protocol.ts ./src/engine/models.ts --outdir ./dist/engine --target browser --packages external && bun build ./src/cli-entry.ts --outdir ./dist --target node --packages external --splitting && mv ./dist/cli-entry.js ./dist/cli.js && cp ./dist/cli.js ./dist/zhx.js && bun build ./scripts/verify-historical-migrations.ts --outfile ./dist/verify-historical-migrations.js --target node --packages external && bun build ./scripts/hostile-repository-demo.ts --outfile ./dist/hostile-repository-demo.js --target node --packages external && tsc --emitDeclarationOnly",
157
+ "build": "bun run scripts/clean-dist.ts && bun build ./src/index.ts ./src/service-cli.ts ./src/acp-cli.ts ./src/audit/index.ts ./src/engine/index.ts ./src/engine/protocol.ts ./src/engine/client.ts ./src/engine/service.ts ./src/engine/acp.ts ./src/engine/models.ts ./src/engine/desktop-state-v1.ts ./src/engine/desktop-providers-v1.ts ./src/compat/code-support.ts ./src/engine/mcp-stdio-v1.ts --root ./src --outdir ./dist --target node --packages external --splitting && bun build ./src/engine/protocol.ts ./src/engine/models.ts --outdir ./dist/engine --target browser --packages external && bun build ./src/cli-entry.ts --outdir ./dist --target node --packages external --splitting && mv ./dist/cli-entry.js ./dist/cli.js && cp ./dist/cli.js ./dist/zhx.js && bun build ./scripts/verify-historical-migrations.ts --outfile ./dist/verify-historical-migrations.js --target node --packages external && bun build ./scripts/hostile-repository-demo.ts --outfile ./dist/hostile-repository-demo.js --target node --packages external && tsc --emitDeclarationOnly",
150
158
  "prepack": "bun run build",
151
159
  "architecture:check": "bun run scripts/check-architecture.ts",
152
160
  "docs:check": "bun run scripts/check-docs.ts",
@@ -156,7 +164,7 @@
156
164
  "readiness:1.0": "bun run scripts/check-1-0-readiness.ts",
157
165
  "readiness:1.0:release": "bun run scripts/check-1-0-readiness.ts --release",
158
166
  "typecheck": "tsc --noEmit",
159
- "test": "bun test ./tests ./desktop/tests",
167
+ "test": "bun test --preload ./tests/preload-bedrock-mock.ts ./tests ./desktop/tests",
160
168
  "evaluate": "bun run scripts/evaluate.ts",
161
169
  "benchmark:workspace": "bun run scripts/benchmark-workspace.ts",
162
170
  "benchmark:workspace:ci": "bun run scripts/benchmark-workspace.ts --files 1000 --page-size 100 --repetitions 3 --warmups 0",
@@ -209,24 +217,26 @@
209
217
  },
210
218
  "dependencies": {
211
219
  "@zhivex-ai/agents": "1.11.0",
212
- "@zhivex-ai/anthropic": "0.13.2",
213
- "@zhivex-ai/core": "1.31.0",
220
+ "@zhivex-ai/anthropic": "0.14.0",
221
+ "@zhivex-ai/azure-openai": "0.7.8",
222
+ "@zhivex-ai/bedrock": "2.0.7",
223
+ "@zhivex-ai/core": "1.34.0",
214
224
  "@zhivex-ai/gemini": "0.13.0",
215
225
  "@zhivex-ai/meta": "0.2.9",
216
- "@zhivex-ai/openai": "0.14.1",
226
+ "@zhivex-ai/openai": "0.16.0",
217
227
  "@zhivex-ai/qwen": "0.16.4",
218
- "@zhivex-ai/vertex": "1.2.4",
228
+ "@zhivex-ai/vertex": "1.2.7",
219
229
  "google-auth-library": "11.1.0",
220
230
  "zod": "4.6.5"
221
231
  },
222
232
  "overrides": {
223
- "@zhivex-ai/core": "1.31.0"
233
+ "@zhivex-ai/core": "1.34.0"
224
234
  },
225
235
  "devDependencies": {
226
- "@agentclientprotocol/sdk": "1.7.0",
227
- "@modelcontextprotocol/server": "2.2.0",
236
+ "@agentclientprotocol/sdk": "1.8.0",
237
+ "@modelcontextprotocol/server": "2.3.1",
228
238
  "@types/bun": "1.4.2",
229
- "@types/node": "^26.6.3",
239
+ "@types/node": "^26.6.5",
230
240
  "typescript": "7.0.2",
231
241
  "typescript-compiler-api": "npm:typescript@6.0.3"
232
242
  },
@@ -236,6 +246,6 @@
236
246
  },
237
247
  "packageManager": "bun@1.4.0",
238
248
  "optionalDependencies": {
239
- "@napi-rs/keyring": "2.1.0"
249
+ "@napi-rs/keyring": "2.1.1"
240
250
  }
241
251
  }