@zhivex-ai/harness 1.6.2 → 1.7.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 (64) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +4 -2
  3. package/SECURITY.md +1 -1
  4. package/SUPPORT.md +2 -2
  5. package/benchmarks/README.md +72 -0
  6. package/contracts/engine-api.json +30 -0
  7. package/dist/acp-cli.js +8 -8
  8. package/dist/approvals/auto-approve.d.ts +1 -1
  9. package/dist/audit/index.js +3 -3
  10. package/dist/{audit-pack-fckpqfsb.js → audit-pack-y02n8zd0.js} +3 -3
  11. package/dist/{cli-entry-z1pbjrg4.js → cli-entry-j6jcb2jb.js} +2 -2
  12. package/dist/{cli-entry-4g2ewcnw.js → cli-entry-td04s0fa.js} +340 -248
  13. package/dist/{cli-entry-10th5awp.js → cli-entry-v5db3eb2.js} +12 -8
  14. package/dist/{cli-entry-6amx4mcc.js → cli-entry-ynahz9qc.js} +68 -36
  15. package/dist/{cli-84en174d.js → cli-zw18kdqx.js} +6 -6
  16. package/dist/cli.js +2 -2
  17. package/dist/compat/code-support.d.ts +1 -0
  18. package/dist/compat/code-support.js +6 -6
  19. package/dist/context/scoped-context.d.ts +17 -5
  20. package/dist/engine/acp.js +9 -9
  21. package/dist/engine/client.js +8 -8
  22. package/dist/engine/desktop-state-v1.js +5 -5
  23. package/dist/engine/index.d.ts +4 -0
  24. package/dist/engine/index.js +17 -11
  25. package/dist/engine/mcp-stdio-v1.js +4 -4
  26. package/dist/engine/service.js +9 -9
  27. package/dist/hostile-repository-demo.js +576 -469
  28. package/dist/{index-74f9yhfh.js → index-ebb5d4s3.js} +33 -12
  29. package/dist/{index-pf73y4gt.js → index-h8r80xhk.js} +233 -118
  30. package/dist/{index-rgqzdgv6.js → index-k1a1xesg.js} +3 -3
  31. package/dist/{index-fqqz1yt8.js → index-qz4fs9f9.js} +14 -3
  32. package/dist/{index-zrz4rs7p.js → index-r0q0r88h.js} +2 -2
  33. package/dist/{index-amjttjaj.js → index-t6sjhxh8.js} +2 -2
  34. package/dist/{index-paf7z8kn.js → index-tc2r2n8b.js} +5 -5
  35. package/dist/{index-1pn0ecs4.js → index-tgt8gtq7.js} +2 -2
  36. package/dist/{index-w0m1nckc.js → index-v17e1xs8.js} +22 -22
  37. package/dist/{index-4mn6m3bq.js → index-v86bh0eg.js} +2 -2
  38. package/dist/{index-rz7wmp71.js → index-x9hv1a34.js} +12 -8
  39. package/dist/{index-2r4f0p4n.js → index-yp0jtaxp.js} +1 -1
  40. package/dist/index.js +10 -10
  41. package/dist/runtime/agent-profile.d.ts +12 -0
  42. package/dist/runtime/harness.d.ts +11 -0
  43. package/dist/runtime/known-file-preload.d.ts +35 -0
  44. package/dist/service-cli.js +9 -9
  45. package/dist/{service-client-cli-pp5z4dmf.js → service-client-cli-gtk26axb.js} +3 -3
  46. package/dist/verify-historical-migrations.js +390 -283
  47. package/dist/zhx.js +2 -2
  48. package/docs/AZURE_OPENAI.md +1 -1
  49. package/docs/BEDROCK.md +1 -1
  50. package/docs/CODE_RELEASE.md +24 -7
  51. package/docs/CONTEXT_ENGINEERING.md +66 -0
  52. package/docs/DURABLE_OPERATIONS.md +1 -1
  53. package/docs/ENGINE_API.md +8 -1
  54. package/docs/EXTENSIBILITY.md +1 -1
  55. package/docs/FIRST_USE.md +6 -6
  56. package/docs/MINIMUM_TASK_AUTHORITY.md +1 -1
  57. package/docs/PROJECT_MEMORY.md +1 -1
  58. package/docs/README.md +12 -4
  59. package/docs/VERTEX.md +1 -1
  60. package/docs/WEB_LIMITS.md +1 -1
  61. package/docs/adr/0002-isolated-mcp-stdio.md +1 -1
  62. package/evaluations/representative-assembly-matrix.json +19 -1
  63. package/examples/README.md +4 -4
  64. package/package.json +12 -8
package/dist/zhx.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  HARNESS_VERSION,
4
4
  NODE_ENGINE_RANGE,
5
5
  shortCliHelp
6
- } from "./cli-entry-10th5awp.js";
6
+ } from "./cli-entry-v5db3eb2.js";
7
7
  import {
8
8
  __require
9
9
  } from "./cli-entry-1bx83sw4.js";
@@ -41,6 +41,6 @@ if (argv.length === 1 && ["--version", "-v", "version"].includes(argv[0])) {
41
41
  process.stdout.write(`${shortCliHelp(HARNESS_VERSION)}
42
42
  `);
43
43
  } else {
44
- const { runCli } = await import("./cli-84en174d.js");
44
+ const { runCli } = await import("./cli-zw18kdqx.js");
45
45
  await runCli(argv);
46
46
  }
@@ -5,7 +5,7 @@ Azure OpenAI is a separate provider (`azure-openai`). It does not reuse
5
5
  run for this route. Prices are not copied from the public OpenAI catalog.
6
6
 
7
7
  Published `@zhivex-ai/azure-openai@0.8.0` is the adapter pinned by this tree.
8
- It requires Core `^1.36.0`, and this checkout pins `@zhivex-ai/core@1.36.0`.
8
+ It requires Core `^1.36.0`, and this checkout pins `@zhivex-ai/core@1.37.0`.
9
9
  Language models report Tier A. Hosted tool gates such as tool search follow
10
10
  the model id (`gpt-5.4` and `gpt-6-astra` in this adapter). An opaque
11
11
  deployment name does not receive those gates unless a deployment map names
package/docs/BEDROCK.md CHANGED
@@ -5,7 +5,7 @@ direct API route. No live Harness certification has been run for this route.
5
5
  Pricing and context limits are not inferred.
6
6
 
7
7
  Published `@zhivex-ai/bedrock@2.1.0` is the adapter pinned by this tree. It
8
- requires Core `^1.36.0`, and this checkout pins `@zhivex-ai/core@1.36.0`.
8
+ requires Core `^1.36.0`, and this checkout pins `@zhivex-ai/core@1.37.0`.
9
9
  This integration reports the installed adapter's labels and does not relabel
10
10
  them.
11
11
 
@@ -1,12 +1,29 @@
1
1
  # Code release procedure
2
2
 
3
- ## Harness 1.6.2 does not release Code
3
+ ## Prepared patch: Code 0.4.3
4
4
 
5
- Harness source is `1.6.2`, pending publication to `latest`. Installed
6
- acceptance requires the Code source pin to equal that candidate, so
7
- `@zhivex-ai/code` stays version `0.4.0` and pins `@zhivex-ai/harness` to
8
- `1.6.2`. Published npm Code `0.4.0` remains pinned to Harness `1.5.0`. Do not
9
- republish `0.4.0` and do not create a `code-v*` tag for this engine bump.
5
+ The source candidate is Code `0.4.3`, pinned exactly to Harness `1.7.0`. Publication remains pending and must follow verification of the new Harness registry artifact. The private Web development pin remains `1.6.2` for reproducible bootstrap installation; offline validation explicitly links the built candidate. See the [preparation report](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/RELEASE_1_7_0_CODE_0_4_3.md).
6
+
7
+ ## Published patch: Code 0.4.2
8
+
9
+ Code `0.4.2` is published and verified on npm `latest`, pinned exactly to Harness `1.6.3`. Annotated `code-v0.4.2` resolves to `7ba14a08e4a3fd60f3ea50263cb0bebdd5fc125a`, the same commit as `v1.6.3`. The [protected OIDC workflow](https://github.com/Zhivex/zhivex-harness/actions/runs/42873027805) passed actual registry resolution of the already verified Harness release, retained-artifact terminal/Web journeys and four-manager acceptance before publication. Independent verification confirmed the published bytes, `latest` and source-bound provenance. See [publication evidence](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/PUBLICATION_1_6_3_CODE_0_4_2.md).
10
+
11
+ The private Web development dependency remains pinned to Harness `1.6.2`; offline contributor setup links the built candidate explicitly. This development pin is separate from the published Code dependency on Harness `1.6.3`. Published npm `next` remains Code `0.3.0-rc.8` and Harness `1.4.0-rc.8`.
12
+
13
+ ## Published patch: Code 0.4.1
14
+
15
+ Harness `1.6.2` is published on npm `latest`. `@zhivex-ai/code` `0.4.1` is
16
+ published on `latest`, pinned exactly to Harness `1.6.2`. The engine bump is
17
+ its only change. Published npm Code `0.4.0` remains pinned to
18
+ Harness `1.5.0` and is not republished. Annotated `code-v0.4.1` on the reviewed
19
+ main SHA, `channel=latest`, ran through the protected workflow and its
20
+ environment approval.
21
+
22
+ ## Previous preparation: Harness 1.6.2 did not release Code
23
+
24
+ Harness `1.6.2` was prepared while `@zhivex-ai/code` stayed version `0.4.0`,
25
+ with its source pin on `1.6.2` for installed acceptance. No `code-v*` tag was
26
+ created for that engine bump.
10
27
 
11
28
  ## Pending patch: 2026-10-16
12
29
 
@@ -281,7 +298,7 @@ Harness `1.3.0` dependency. Code `0.1.0` was the verified npm `latest` release
281
298
  until the separately approved `0.2.0` publication. That candidate added guided
282
299
  approval diffs, reviewed checkpoints, per-run estimated budgets and the offline
283
300
  first-use tutorial. See the [candidate changelog](https://github.com/Zhivex/zhivex-harness/blob/main/packages/code/CHANGELOG.md)
284
- and [release readiness](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/CODE_0_2_0_READINESS_2026-10-03.md).
301
+ and [release readiness](https://github.com/Zhivex/zhivex-harness/blob/a87499d4cd78ae5edcf18c22f2e97f9828e8099f/docs/reports/CODE_0_2_0_READINESS_2026-10-03.md).
285
302
 
286
303
  That was a Code-only release: no Harness version change or new paid six-provider
287
304
  certification campaign is required. Engine API tiers and provisional provider
@@ -510,3 +510,69 @@ Qwen routes are excluded from this option until an output-cap route is certified
510
510
  It does not add a service/wire-protocol field or enable this token pool for
511
511
  application-owned review groups. Monetary accounting and its existing output
512
512
  clamp remain separate. No provider calls are required by the regression suite.
513
+
514
+ ## Explicit known-file preload (experimental)
515
+
516
+ Hosts that already know which local files a task needs can opt in through
517
+ `runHarnessTask` from `@zhivex-ai/harness/code-support`. Omission preserves the
518
+ ordinary model-directed read flow. There is no automatic file selection or CLI
519
+ flag, and `runHarness`'s stable options are unchanged.
520
+
521
+ ```ts
522
+ import { createHarness } from "@zhivex-ai/harness";
523
+ import { runHarnessTask } from "@zhivex-ai/harness/code-support";
524
+
525
+ const harness = await createHarness({ workspace: process.cwd(), provider: "openai" });
526
+ try {
527
+ const result = await runHarnessTask(harness, {
528
+ prompt: "Review billing logic against its documented contract."
529
+ }, {
530
+ preloadFiles: {
531
+ files: [
532
+ { path: "src/billing.ts", startLine: 1, endLine: 120 },
533
+ { path: "docs/billing.md" }
534
+ ],
535
+ maxBytes: 16_000
536
+ }
537
+ });
538
+ } finally {
539
+ await harness.close();
540
+ }
541
+ ```
542
+
543
+ `files` accepts 1–20 explicit path/range requests with inclusive positive line
544
+ numbers. The existing workspace reader enforces protected paths, regular-file
545
+ and no-symlink checks, source-size and batch-size limits, and bounded rendered
546
+ slices. `maxBytes` caps the serialized snapshot (default 32,000; maximum 64,000);
547
+ it cannot raise any workspace limit. An exceeded cap fails before model use,
548
+ rather than silently dropping requested files. Existing rendered slices can
549
+ still report truncation; select smaller ranges when full content is required.
550
+ The model input remains subject to normal token admission and compaction limits.
551
+
552
+ Preload calls the original policy-wrapped `read_files` executor through the
553
+ runtime's context, task-budget and telemetry wrappers. A successful read
554
+ triggers normal scoped `AGENTS.md` discovery before the first model request.
555
+ Tool policies can deny it; approval-required reads are refused and must use the
556
+ ordinary approval flow. The option is not consent to bypass an approval.
557
+
558
+ This first version supports **new local runs only**. Resumes with `preloadFiles`,
559
+ OCI/isolated MCP sessions, execution-environment overrides, tool catalog
560
+ overrides, explicit-review mode and custom tool guards are rejected before
561
+ preload. The original agent approval policy is evaluated; an approval override
562
+ is unsupported. No environment falls back silently to reading the host tree.
563
+
564
+ Snapshots are supplied as a separate user-context message, labelled as untrusted
565
+ file data, not as a system instruction or fabricated model/tool exchange. The
566
+ message contains bounded content and file digests. State metadata under
567
+ `zhivexKnownFilePreload` records selected ranges, serialized bytes and aggregate
568
+ SHA-256. The host read is measured as a tool operation but is not a model-issued
569
+ tool call and does not appear in `result.toolResults`. Failure before SDK run
570
+ admission need not produce a durable run state. Do not treat caller-supplied
571
+ metadata as an authorization receipt.
572
+
573
+ Files are read afresh for each explicit new invocation. On resume, omit this
574
+ option: saved snapshots are historical context, not a freshness guarantee or
575
+ permission to edit. Normal tools can reread changed files; existing edit
576
+ validation remains authoritative. Snapshot labels do not establish resistance
577
+ to prompt injection. Preloading irrelevant or large context can increase cost,
578
+ so callers should select only files needed by the task.
@@ -70,7 +70,7 @@ Loading a run reconstructs its complete state for compatibility with approvals,
70
70
 
71
71
  Logical backups contain hydrated history rather than database references, so restoration does not require the original artifact tables. Exports up to 64 MiB retain the legacy JSON format; larger exports use the versioned `ZHIVEX-STATE-SEGMENTS-1` transport with bounded frames, including split strings. RC13 reads both formats and verifies the same logical checksum before import. Older versions cannot read segmented exports. File I/O and checksum serialization are incremental; the public backup/import APIs still hydrate the complete logical bundle in memory. Segmented files have no aggregate 64 MiB ceiling. A state-limit failure records a bounded terminal diagnostic on the last durable checkpoint; the unsaved payload is not claimed as preserved. Use `/status` to inspect the failed run before `/continue`. Recovery retains tool journal receipts and never re-executes an operation itself.
72
72
 
73
- The current source pins Core 1.36.0 and Agents 1.12.0. New stores require no
73
+ The current source pins Core 1.37.0 and Agents 1.12.0. New stores require no
74
74
  conversion. Before upgrading an existing shared SDK store, stop its workers and
75
75
  upgrade them together with a complete backup. Verified legacy runs retain their
76
76
  physical keys and remain readable; new runs use canonical keys that distinguish
@@ -1,13 +1,20 @@
1
1
  # Engine API and Code integration
2
2
 
3
3
  The terminal-independent package entrypoints shipped in Harness 1.3.0 and remain
4
- in published Harness 1.4.0 (npm `latest`). This checkout is Harness 1.6.2, pending publication. They are not present in Harness 1.2.0.
4
+ in Harness 1.6.3, published on npm `latest`. They are not present in Harness 1.2.0.
5
5
  The protected workflow validated the exact stable tarball, live gates and
6
6
  registry integrity/provenance; local candidate smoke remains contributor evidence. Do not install registry 1.2.0 and
7
7
  expect the new entrypoints to exist.
8
8
 
9
9
  ## Entry points
10
10
 
11
+ The current source candidate adds experimental `createProfiledHarness`,
12
+ `CreateProfiledHarnessOptions`, `HarnessAgentProfile`, `harnessAgentProfileSchema`
13
+ and `GENERAL_ASSISTANT_PROFILE` to `/engine`. These are not in the published
14
+ 1.6.3 artifact. The existing stable constructor and coding defaults are unchanged.
15
+ See [Assistant profiles and persistent host](https://github.com/Zhivex/zhivex-harness/blob/main/docs/ASSISTANT_HOST.md) for contracts and
16
+ local-candidate setup.
17
+
11
18
  | Import | Use | Runtime |
12
19
  | --- | --- | --- |
13
20
  | `@zhivex-ai/harness/engine` | Configuration, execution, policies, approvals, tools, stores, providers and historical non-terminal library APIs | Node |
@@ -8,7 +8,7 @@ Built-in registrations are Meta, Qwen, OpenAI, Gemini, Anthropic, Vertex, Amazon
8
8
 
9
9
  Library callers can use `DEFAULT_PROVIDER_REGISTRY`, `BUILTIN_PROVIDER_REGISTRATIONS`, `createProviderRegistry`, or `DEFAULT_PROVIDER_REGISTRY.extend(...)`, then pass the registry to `resolveHarnessConfig`, `createProviderModel`, provider diagnostics, or `createHarness({ providerRegistry })`. Registration IDs, environment-variable names, defaults, diagnostics, and factories are validated before they become selectable.
10
10
 
11
- The coordinated stable SDK batch pins `@zhivex-ai/agents@1.12.0`, `@zhivex-ai/core@1.36.0`, `@zhivex-ai/meta@0.3.0`, `@zhivex-ai/qwen@0.18.0`, `@zhivex-ai/openai@0.17.0`, `@zhivex-ai/gemini@0.14.0`, `@zhivex-ai/anthropic@0.15.0`, `@zhivex-ai/vertex@1.3.0`, `@zhivex-ai/bedrock@2.1.0`, and `@zhivex-ai/azure-openai@0.8.0`. Qwen 0.16.2 types malformed Responses tool arguments and malformed SSE events; Core 1.36.0 satisfies Agents `^1.34.0` and the provider adapters' `^1.36.0` floors. Vertex 1.3.0 requires OpenAI `^0.17.0`, Anthropic `^0.15.0`, and Gemini `^0.14.0`. These exact versions are pinned in the lockfile. Stable SDK publication does not replace Harness release-bound certification. Qwen `0.11.x` normalizes missing, placeholder, and continuation tool-call identifiers inside the adapter; Harness retains its deterministic provider-boundary normalizer as defense in depth until the exact candidate passes the complete release-bound representative matrix. A Core override keeps one runtime contract identity across every adapter, while Core `1.13.0` corrects compaction usage accounting and interaction-group retention. OpenAI `0.11.2` preserves synthetic assistant history in Responses, so the harness no longer requires its compaction transport or accounting workarounds.
11
+ The coordinated stable SDK batch pins `@zhivex-ai/agents@1.12.0`, `@zhivex-ai/core@1.37.0`, `@zhivex-ai/meta@0.3.0`, `@zhivex-ai/qwen@0.18.1`, `@zhivex-ai/openai@0.17.0`, `@zhivex-ai/gemini@0.14.0`, `@zhivex-ai/anthropic@0.15.0`, `@zhivex-ai/vertex@1.3.0`, `@zhivex-ai/bedrock@2.1.0`, and `@zhivex-ai/azure-openai@0.8.0`. Qwen 0.18.1 depends on Core `^1.37.0` and rejects non-string portable-decision instructions. Qwen 0.16.2 types malformed Responses tool arguments and malformed SSE events; Core 1.37.0 satisfies Agents `^1.34.0` and the provider adapters' `^1.36.0` floors. Vertex 1.3.0 requires OpenAI `^0.17.0`, Anthropic `^0.15.0`, and Gemini `^0.14.0`. These exact versions are pinned in the lockfile. Stable SDK publication does not replace Harness release-bound certification. Qwen `0.11.x` normalizes missing, placeholder, and continuation tool-call identifiers inside the adapter; Harness retains its deterministic provider-boundary normalizer as defense in depth until the exact candidate passes the complete release-bound representative matrix. A Core override keeps one runtime contract identity across every adapter, while Core `1.13.0` corrects compaction usage accounting and interaction-group retention. OpenAI `0.11.2` preserves synthetic assistant history in Responses, so the harness no longer requires its compaction transport or accounting workarounds.
12
12
 
13
13
  OpenAI is based on the GPT-5.6 family: `gpt-5.6-luna` is the default, with `gpt-5.6-terra` and `gpt-5.6-sol` available through `--model`. Availability remains organization-dependent while the upstream family is in limited preview, and the adapter uses the Responses API by default.
14
14
 
package/docs/FIRST_USE.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # First use
2
2
 
3
- This guide targets stable `1.6.2`, pending publication to npm `latest`. The versioned install commands below become available only after protected publication. npm `latest` remains stable 1.5.0 until that publication.
3
+ This guide targets stable `1.7.0`, prepared for npm `latest`; publication is pending. Registry commands below become available after publication.
4
4
 
5
5
  ## Install and start
6
6
 
7
7
  Install Node.js 22.13.0 or newer and Git. Then:
8
8
 
9
9
  ```sh
10
- npm install -g @zhivex-ai/harness@1.6.2
10
+ npm install -g @zhivex-ai/harness@1.7.0
11
11
  cd /path/to/your/project
12
12
  zhx
13
13
  ```
@@ -82,16 +82,16 @@ For command execution, configure [OCI isolation](EXECUTION_ENVIRONMENTS.md).
82
82
  With Bun 1.4.0 or newer and a supported Node runtime:
83
83
 
84
84
  ```sh
85
- bun add --global @zhivex-ai/harness@1.6.2
85
+ bun add --global @zhivex-ai/harness@1.7.0
86
86
  zhx
87
87
  ```
88
88
 
89
89
  For a disposable version/help/environment check without a global installation:
90
90
 
91
91
  ```sh
92
- bunx @zhivex-ai/harness@1.6.2 --version
93
- bunx @zhivex-ai/harness@1.6.2 --help
94
- bunx @zhivex-ai/harness@1.6.2 doctor
92
+ bunx @zhivex-ai/harness@1.7.0 --version
93
+ bunx @zhivex-ai/harness@1.7.0 --help
94
+ bunx @zhivex-ai/harness@1.7.0 doctor
95
95
  ```
96
96
 
97
97
  For source development, use the [contributor guide](https://github.com/Zhivex/zhivex-harness/blob/main/CONTRIBUTING.md).
@@ -56,7 +56,7 @@ dispatch/cap behavior, not provider billing guarantees or model quality.
56
56
  | Built-in Anthropic API key (`@zhivex-ai/anthropic` 0.15.0) | Supported | Messages `max_tokens`; non-refreshable built-in credentials; `maxRetries=0` |
57
57
  | Built-in Gemini (`@zhivex-ai/gemini` 0.14.0) | Supported | `generationConfig.maxOutputTokens`; `maxRetries=0` |
58
58
  | Built-in Vertex (`@zhivex-ai/vertex` 1.3.0) | Supported | `generationConfig.maxOutputTokens`; real ADC callback, synthetic credential source in tests; `maxRetries=0` |
59
- | Qwen (`@zhivex-ai/qwen` 0.18.0) | Blocked as Code primary | Explicit Chat-mode middleware tested with capped `max_tokens`; Code has no explicit mode selector and Responses rejects `maxTokens` |
59
+ | Qwen (`@zhivex-ai/qwen` 0.18.1) | Blocked as Code primary | Explicit Chat-mode middleware tested with capped `max_tokens`; Code has no explicit mode selector and Responses rejects `maxTokens` |
60
60
  | Meta | Blocked | Harness continuation fetch can replay a 400 response outside SDK retry admission |
61
61
  | Injected/custom adapters, refreshable Anthropic OAuth | Blocked | No vetted transport provenance; OAuth transport can replay a 401 after refresh outside ordinary retry admission |
62
62
  | Mock | Offline tests only | Synthetic usage is never billing evidence |
@@ -7,7 +7,7 @@ generated automatically; hosts may submit a suggestion for operator review.
7
7
 
8
8
  ## CLI
9
9
 
10
- Use `zhx` with Harness 1.6.2, pending publication. `zhivex-code` stays on Code 0.4.0. Its source pin is Harness 1.6.2; published Code 0.4.0 remains pinned to Harness 1.5.0. Commands
10
+ Use `zhx` with Harness 1.6.3, published on `latest`. `zhivex-code` is Code 0.4.2, published on `latest` and pinned exactly to Harness 1.6.3. Commands
11
11
  print bounded JSON, including the selected workspace/scope hashes. Quote content
12
12
  as one argument. Memory commands do not start a model or read credentials.
13
13
 
package/docs/README.md CHANGED
@@ -13,6 +13,8 @@ Start with [First use](FIRST_USE.md). You only need `zhx` for everyday conversat
13
13
  - [Azure OpenAI](AZURE_OPENAI.md): provisional endpoint, deployment, and API-key route.
14
14
  - [Credentials](CREDENTIALS.md): system keychain, temporary keys and automation.
15
15
  - [Project instructions and context](CONTEXT_ENGINEERING.md).
16
+ - [Project memory](PROJECT_MEMORY.md): explicit notes, retrieval budgets and deletion semantics.
17
+ - [Optional Web limits](WEB_LIMITS.md): interactive defaults and observed thresholds.
16
18
  - [Execution environments](EXECUTION_ENVIRONMENTS.md): isolated command execution.
17
19
  - [Desktop](https://github.com/Zhivex/zhivex-harness/blob/main/desktop/README.md): separate macOS alpha application.
18
20
  - [Support](../SUPPORT.md), [support matrix](SUPPORT_MATRIX.md), [security policy](../SECURITY.md).
@@ -33,19 +35,25 @@ Start with [First use](FIRST_USE.md). You only need `zhx` for everyday conversat
33
35
  - [Audit pack](AUDIT_PACK.md): experimental signed export of one run or guided task.
34
36
  - [Threat model](THREAT_MODEL.md) and [public repository security](PUBLIC_SECURITY.md).
35
37
 
38
+ ## Assistant
39
+
40
+ - [MVP scope and phase status](https://github.com/Zhivex/zhivex-harness/blob/main/docs/ASSISTANT_MVP_PLAN.md) and [contracts](https://github.com/Zhivex/zhivex-harness/blob/main/docs/ASSISTANT_CONTRACTS.md).
41
+ - [Persistent host](https://github.com/Zhivex/zhivex-harness/blob/main/docs/ASSISTANT_HOST.md), [Telegram](https://github.com/Zhivex/zhivex-harness/blob/main/docs/ASSISTANT_TELEGRAM.md) and [Calendar](https://github.com/Zhivex/zhivex-harness/blob/main/docs/ASSISTANT_CALENDAR.md).
42
+ - [Automations](https://github.com/Zhivex/zhivex-harness/blob/main/docs/ASSISTANT_AUTOMATIONS.md), [extensions](https://github.com/Zhivex/zhivex-harness/blob/main/docs/ASSISTANT_EXTENSIONS.md) and [pilot acceptance](https://github.com/Zhivex/zhivex-harness/blob/main/docs/ASSISTANT_PILOT.md).
43
+ - [Web interface](https://github.com/Zhivex/zhivex-harness/blob/main/docs/ASSISTANT_WEB.md) and [first-day setup](https://github.com/Zhivex/zhivex-harness/blob/main/docs/ASSISTANT_FIRST_DAY.md).
44
+
45
+ - [Daily tools](https://github.com/Zhivex/zhivex-harness/blob/main/docs/ASSISTANT_DAILY_TOOLS.md), [Microsoft](https://github.com/Zhivex/zhivex-harness/blob/main/docs/ASSISTANT_MICROSOFT.md) and [proactive notices](https://github.com/Zhivex/zhivex-harness/blob/main/docs/ASSISTANT_PROACTIVE.md).
46
+
36
47
  ## Contribute and maintain
37
48
 
38
49
  - [Harness/Code boundary proposal (ADR 0001)](https://github.com/Zhivex/zhivex-harness/blob/main/docs/adr/0001-harness-code-public-boundary.md): ownership, public APIs and the proposed 1.x transition.
39
50
 
40
51
  [Contributor guide](https://github.com/Zhivex/zhivex-harness/blob/main/CONTRIBUTING.md) ·
41
52
  [Maintenance and release evidence](https://github.com/Zhivex/zhivex-harness/blob/main/docs/MAINTENANCE.md) ·
53
+ [Historical reports](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/README.md) ·
42
54
  [Changelog](../CHANGELOG.md)
43
55
 
44
56
  Primary guides are maintained in English. Historical reports preserve their original
45
57
  language and evidence. Maintainer procedures and reports remain in the repository
46
58
  and are excluded from the npm package. Published validation applies to the exact
47
59
  release artifact, not automatically to later source changes.
48
-
49
- - [Project memory](PROJECT_MEMORY.md): experimental explicit notes, review, retrieval budgets and deletion semantics.
50
-
51
- - [Optional Web limits and interactive defaults](WEB_LIMITS.md)
package/docs/VERTEX.md CHANGED
@@ -44,7 +44,7 @@ Errors expose bounded categories for authentication, permission, unavailable
44
44
  model/route, rate limit and server failures. Raw Google payloads, token values,
45
45
  credential paths and service-account identities are not retained in errors.
46
46
 
47
- The integration pins `@zhivex-ai/vertex@1.3.0` with Core 1.36.0 and
47
+ The integration pins `@zhivex-ai/vertex@1.3.0` with Core 1.37.0 and
48
48
  `google-auth-library@11.3.1`. Deterministic tests exercise the installed SDK's
49
49
  transport, streaming, signed continuation, approval/reopen and route mismatch.
50
50
  They are not evidence of a live project, renewable ADC or IAM authorization.
@@ -3,7 +3,7 @@
3
3
  New interactive Web/terminal tasks have no accumulated spend, token, step,
4
4
  tool-call or duration cap unless configured. This change uses the published SDK contract from
5
5
  Zhivex/zhivex-ai-sdk PR 142 (Core/SDK 1.31.0, Agents 1.11.0). Direct Harness, Code
6
- and the root Core override now pin Core 1.36.0; Agents is 1.12.0.
6
+ and the root Core override now pin Core 1.37.0; Agents is 1.12.0.
7
7
  Provider package pins are Anthropic 0.15.0, OpenAI 0.17.0 and Vertex 1.3.0.
8
8
  Headless policies and release gates remain unchanged.
9
9
 
@@ -20,7 +20,7 @@ activate stdio, change configuration schema 1, or claim isolated execution passe
20
20
  options with abort, timeout/idempotency key, and an HTTP transport; no executable
21
21
  stdio factory was found in that dependency. The control-plane transport enum is
22
22
  not an executor.
23
- - The current pin is `@zhivex-ai/core` 1.36.0, which includes an experimental
23
+ - The current pin is `@zhivex-ai/core` 1.37.0, which includes an experimental
24
24
  stdio client. Harness still does not treat that factory as the OCI boundary.
25
25
 
26
26
  MCP stdio uses UTF-8 newline-delimited JSON-RPC on stdin/stdout; stderr is a
@@ -67,7 +67,9 @@
67
67
  "v1.5.0",
68
68
  "v1.6.0",
69
69
  "v1.6.1",
70
- "v1.6.2"
70
+ "v1.6.2",
71
+ "v1.6.3",
72
+ "v1.7.0"
71
73
  ],
72
74
  "expectedModels": [
73
75
  {
@@ -597,6 +599,22 @@
597
599
  "qwen": "qwen3.8-flash",
598
600
  "openai": "gpt-6-luna"
599
601
  }
602
+ },
603
+ {
604
+ "releaseTag": "v1.6.3",
605
+ "models": {
606
+ "meta": "muse-spark-1.3-contributor",
607
+ "qwen": "qwen3.8-flash",
608
+ "openai": "gpt-6-luna"
609
+ }
610
+ },
611
+ {
612
+ "releaseTag": "v1.7.0",
613
+ "models": {
614
+ "meta": "muse-spark-1.3-contributor",
615
+ "qwen": "qwen3.8-flash",
616
+ "openai": "gpt-6-luna"
617
+ }
600
618
  }
601
619
  ],
602
620
  "expectedCases": [
@@ -1,20 +1,20 @@
1
- # Examples for Zhivex Harness 1.4
1
+ # Examples for Zhivex Harness 1.7
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 stable publication, this installs the 1.6.2 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 publication, this installs the 1.7.0 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.6.2
11
+ bun add --exact --ignore-scripts @zhivex-ai/harness@1.7.0
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.6.2`; 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.7.0`; 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
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhivex-ai/harness",
3
- "version": "1.6.2",
3
+ "version": "1.7.0",
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",
@@ -168,6 +168,7 @@
168
168
  "test": "bun test --preload ./tests/preload-bedrock-mock.ts ./tests ./desktop/tests",
169
169
  "evaluate": "bun run scripts/evaluate.ts",
170
170
  "benchmark:workspace": "bun run scripts/benchmark-workspace.ts",
171
+ "benchmark:harness": "bun run scripts/benchmark-harness-overhead.ts",
171
172
  "benchmark:workspace:ci": "bun run scripts/benchmark-workspace.ts --files 1000 --page-size 100 --repetitions 3 --warmups 0",
172
173
  "benchmark:oci": "bun run scripts/benchmark-oci.ts",
173
174
  "benchmark:safe-fix": "bun run scripts/benchmark-time-to-safe-fix.ts",
@@ -214,29 +215,32 @@
214
215
  "typecheck:code": "bun run --cwd packages/code typecheck",
215
216
  "evaluate:tasks": "bun run scripts/task-acceptance.ts",
216
217
  "prepare:desktop": "bun run build && bun pm pack --ignore-scripts --quiet --filename desktop/.harness-candidate.tgz && bun run desktop/scripts/prepare-harness.ts desktop/.harness-candidate.tgz",
217
- "smoke:mcp:installed": "bun run build && bun scripts/mcp-installed-smoke.ts"
218
+ "smoke:mcp:installed": "bun run build && bun scripts/mcp-installed-smoke.ts",
219
+ "prepare:assistant": "bun run build && bun install --cwd packages/assistant --frozen-lockfile --ignore-scripts && bun run --cwd packages/assistant prepare:local",
220
+ "check:assistant": "bun run --cwd packages/assistant typecheck && bun run --cwd packages/assistant test && bun run --cwd packages/assistant smoke && bun run --cwd packages/assistant smoke:installed",
221
+ "smoke:assistant:web": "bun run --cwd packages/assistant build && bun run --cwd packages/assistant smoke:daily-web && bun run --cwd packages/assistant smoke:microsoft-web"
218
222
  },
219
223
  "dependencies": {
220
224
  "@zhivex-ai/agents": "1.12.0",
221
225
  "@zhivex-ai/anthropic": "0.15.0",
222
226
  "@zhivex-ai/azure-openai": "0.8.0",
223
227
  "@zhivex-ai/bedrock": "2.1.0",
224
- "@zhivex-ai/core": "1.36.0",
228
+ "@zhivex-ai/core": "1.37.0",
225
229
  "@zhivex-ai/gemini": "0.14.0",
226
230
  "@zhivex-ai/meta": "0.3.0",
227
231
  "@zhivex-ai/openai": "0.17.0",
228
- "@zhivex-ai/qwen": "0.18.0",
232
+ "@zhivex-ai/qwen": "0.18.1",
229
233
  "@zhivex-ai/vertex": "1.3.0",
230
234
  "google-auth-library": "11.3.1",
231
235
  "zod": "4.6.7"
232
236
  },
233
237
  "overrides": {
234
- "@zhivex-ai/core": "1.36.0"
238
+ "@zhivex-ai/core": "1.37.0"
235
239
  },
236
240
  "devDependencies": {
237
- "@agentclientprotocol/sdk": "1.8.0",
241
+ "@agentclientprotocol/sdk": "2.1.0",
238
242
  "@modelcontextprotocol/server": "2.3.1",
239
- "@types/bun": "1.4.3",
243
+ "@types/bun": "1.4.4",
240
244
  "@types/node": "^26.6.5",
241
245
  "typescript": "7.0.2",
242
246
  "typescript-compiler-api": "npm:typescript@6.0.3"
@@ -247,6 +251,6 @@
247
251
  },
248
252
  "packageManager": "bun@1.4.0",
249
253
  "optionalDependencies": {
250
- "@napi-rs/keyring": "2.1.1"
254
+ "@napi-rs/keyring": "2.1.2"
251
255
  }
252
256
  }