@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.
- package/CHANGELOG.md +14 -0
- package/README.md +4 -2
- package/SECURITY.md +1 -1
- package/SUPPORT.md +2 -2
- package/benchmarks/README.md +72 -0
- package/contracts/engine-api.json +30 -0
- package/dist/acp-cli.js +8 -8
- package/dist/approvals/auto-approve.d.ts +1 -1
- package/dist/audit/index.js +3 -3
- package/dist/{audit-pack-fckpqfsb.js → audit-pack-y02n8zd0.js} +3 -3
- package/dist/{cli-entry-z1pbjrg4.js → cli-entry-j6jcb2jb.js} +2 -2
- package/dist/{cli-entry-4g2ewcnw.js → cli-entry-td04s0fa.js} +340 -248
- package/dist/{cli-entry-10th5awp.js → cli-entry-v5db3eb2.js} +12 -8
- package/dist/{cli-entry-6amx4mcc.js → cli-entry-ynahz9qc.js} +68 -36
- package/dist/{cli-84en174d.js → cli-zw18kdqx.js} +6 -6
- package/dist/cli.js +2 -2
- package/dist/compat/code-support.d.ts +1 -0
- package/dist/compat/code-support.js +6 -6
- package/dist/context/scoped-context.d.ts +17 -5
- package/dist/engine/acp.js +9 -9
- package/dist/engine/client.js +8 -8
- package/dist/engine/desktop-state-v1.js +5 -5
- package/dist/engine/index.d.ts +4 -0
- package/dist/engine/index.js +17 -11
- package/dist/engine/mcp-stdio-v1.js +4 -4
- package/dist/engine/service.js +9 -9
- package/dist/hostile-repository-demo.js +576 -469
- package/dist/{index-74f9yhfh.js → index-ebb5d4s3.js} +33 -12
- package/dist/{index-pf73y4gt.js → index-h8r80xhk.js} +233 -118
- package/dist/{index-rgqzdgv6.js → index-k1a1xesg.js} +3 -3
- package/dist/{index-fqqz1yt8.js → index-qz4fs9f9.js} +14 -3
- package/dist/{index-zrz4rs7p.js → index-r0q0r88h.js} +2 -2
- package/dist/{index-amjttjaj.js → index-t6sjhxh8.js} +2 -2
- package/dist/{index-paf7z8kn.js → index-tc2r2n8b.js} +5 -5
- package/dist/{index-1pn0ecs4.js → index-tgt8gtq7.js} +2 -2
- package/dist/{index-w0m1nckc.js → index-v17e1xs8.js} +22 -22
- package/dist/{index-4mn6m3bq.js → index-v86bh0eg.js} +2 -2
- package/dist/{index-rz7wmp71.js → index-x9hv1a34.js} +12 -8
- package/dist/{index-2r4f0p4n.js → index-yp0jtaxp.js} +1 -1
- package/dist/index.js +10 -10
- package/dist/runtime/agent-profile.d.ts +12 -0
- package/dist/runtime/harness.d.ts +11 -0
- package/dist/runtime/known-file-preload.d.ts +35 -0
- package/dist/service-cli.js +9 -9
- package/dist/{service-client-cli-pp5z4dmf.js → service-client-cli-gtk26axb.js} +3 -3
- package/dist/verify-historical-migrations.js +390 -283
- package/dist/zhx.js +2 -2
- package/docs/AZURE_OPENAI.md +1 -1
- package/docs/BEDROCK.md +1 -1
- package/docs/CODE_RELEASE.md +24 -7
- package/docs/CONTEXT_ENGINEERING.md +66 -0
- package/docs/DURABLE_OPERATIONS.md +1 -1
- package/docs/ENGINE_API.md +8 -1
- package/docs/EXTENSIBILITY.md +1 -1
- package/docs/FIRST_USE.md +6 -6
- package/docs/MINIMUM_TASK_AUTHORITY.md +1 -1
- package/docs/PROJECT_MEMORY.md +1 -1
- package/docs/README.md +12 -4
- package/docs/VERTEX.md +1 -1
- package/docs/WEB_LIMITS.md +1 -1
- package/docs/adr/0002-isolated-mcp-stdio.md +1 -1
- package/evaluations/representative-assembly-matrix.json +19 -1
- package/examples/README.md +4 -4
- package/package.json +12 -8
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,20 @@ The project follows Semantic Versioning. During `0.x`, minor releases may change
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## 1.7.0 - 2026-11-13
|
|
10
|
+
|
|
11
|
+
- Prepare Harness 1.7.0 for `latest`, with Code 0.4.3 pinned to this engine and the private Desktop binding updated. Publication and release-bound live certification remain pending; `release-status.json` retains the verified 1.6.3 publication.
|
|
12
|
+
- Add experimental host-owned agent profiles through `createProfiledHarness`, `GENERAL_ASSISTANT_PROFILE` and profile schemas/types on `@zhivex-ai/harness/engine`. Profiles restrict the exposed tool catalog and participate in the runtime fingerprint; they do not grant permissions. The stable coding constructor, approval authority, storage formats, default models and provider tiers remain unchanged.
|
|
13
|
+
- Add the private local Assistant integration with persistent conversations, approval-gated tools, proactive notices and offline CI coverage. Its real-account pilot and evaluation campaign remain pending; it is not a public Assistant release. Contributors must prepare the local engine because the published 1.6.3 bootstrap dependency lacks the profiled API.
|
|
14
|
+
- Include Code terminal and web presentation refinements. Make the web browser smoke handle an explicit pre-admission `BUSY` rejection during session creation with a bounded new UI attempt; uncertain outcomes are never retried.
|
|
15
|
+
|
|
16
|
+
## 1.6.3 - 2026-11-10
|
|
17
|
+
|
|
18
|
+
- Published and verified on npm `latest`, paired with Code 0.4.2 and the private Desktop engine binding. Exact-artifact, OCI, six-provider live and 42/42 representative gates passed. Existing public APIs, storage formats, model defaults and provider tiers are unchanged. See [publication evidence](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/PUBLICATION_1_6_3_CODE_0_4_2.md).
|
|
19
|
+
- Include the keyring 2.1.2 update and dependency security maintenance for the private Web/Desktop clients.
|
|
20
|
+
- Update the development dependency `@agentclientprotocol/sdk` from 1.8.0 to 2.1.0. SDK 2.1 removes `ClientSideConnection`; the Docker interoperability client now uses `client().connect(...)` and the same ACP v1 methods. `@modelcontextprotocol/server` stays at 2.3.1 because that peer is optional and this client does not import it. The Harness ACP server is unchanged.
|
|
21
|
+
- Pin `@zhivex-ai/core` 1.37.0, including the root override, the Code and web package pins, and a web override so the published Harness dependency uses that same runtime, and `@zhivex-ai/qwen` 0.18.1. Qwen 0.18.1 depends on Core `^1.37.0`. Harness and CLI defaults are unchanged. The Qwen adapter rejects non-string portable-decision instructions and adds PixVerse V6 request shaping; Harness does not expose that video surface.
|
|
22
|
+
|
|
9
23
|
## 1.6.2 - 2026-10-24
|
|
10
24
|
|
|
11
25
|
- Allow one continuity retry per provider in the release gate. Live certification of `v1.6.0` and `v1.6.1` (twice) failed only the multi-process continuity gate, each time on a different provider. A provider whose continuity run fails now gets one fresh retry of all phases and passes only if the retry passes. Every selected provider stays mandatory, and no other gate retries. The continuity evidence records which provider retried, the first attempt's sanitized cause, and the retry outcome. Runtime and CLI behavior and defaults are unchanged (#250).
|
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Zhivex Code
|
|
2
2
|
|
|
3
|
+
Version `1.7.0` is the Harness source candidate, paired with Code `0.4.3`; publication is pending. Published versions remain Harness `1.6.3` and Code `0.4.2`. See [preparation evidence](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/RELEASE_1_7_0_CODE_0_4_3.md).
|
|
4
|
+
|
|
3
5
|
[](https://www.npmjs.com/package/@zhivex-ai/code)
|
|
4
6
|
[](https://github.com/Zhivex/zhivex-harness/actions/workflows/ci.yml)
|
|
5
7
|
[](LICENSE)
|
|
@@ -159,6 +161,6 @@ Contracts, stability tiers, and the experimental ACP and MCP entry points are in
|
|
|
159
161
|
|
|
160
162
|
## Releases
|
|
161
163
|
|
|
162
|
-
Version `1.
|
|
164
|
+
Version `1.6.3` is the current public npm release. The Code package on npm `latest` is `0.4.2`, pinned exactly to Harness `1.6.3`. The quick start above follows the published `latest` tag. npm `next` is Harness `1.4.0-rc.8` and Code `0.3.0-rc.8`. Confirm dist-tags on the [Code versions](https://www.npmjs.com/package/@zhivex-ai/code?activeTab=versions) and [Harness versions](https://www.npmjs.com/package/@zhivex-ai/harness?activeTab=versions) pages before you install a prerelease.
|
|
163
165
|
|
|
164
|
-
Release channels, publication, and certification records are in the [release procedure](https://github.com/Zhivex/zhivex-harness/blob/main/docs/RELEASE.md). Releases are verified with npm provenance. Source in this checkout can be newer than the public package. See the [changelog](CHANGELOG.md) and the [repository release status](https://raw.githubusercontent.com/Zhivex/zhivex-harness/main/release-status.json).
|
|
166
|
+
Release channels, publication, and certification records are in the [release procedure](https://github.com/Zhivex/zhivex-harness/blob/main/docs/RELEASE.md). Releases are verified with npm provenance. See the [verified 1.6.3 / 0.4.2 publication evidence](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/PUBLICATION_1_6_3_CODE_0_4_2.md). Source in this checkout can be newer than the public package. See the [changelog](CHANGELOG.md) and the [repository release status](https://raw.githubusercontent.com/Zhivex/zhivex-harness/main/release-status.json).
|
package/SECURITY.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Supported versions
|
|
4
4
|
|
|
5
|
-
Security fixes are provided for the latest published `1.
|
|
5
|
+
Security fixes are provided for the latest published `1.6.x` patch of Harness and the latest stable Code `0.4.x` patch. The verified current versions are Harness `1.6.3` and Code `0.4.2`. RCs on `next` are validation candidates; older minors and private checkpoints are not supported release channels. Desktop remains a separate private alpha. Beta and experimental features retain their documented limitations. Registry integrity and provenance do not substitute for the separate provider and execution evidence recorded in [docs/LIVE_CERTIFICATION.md](https://github.com/Zhivex/zhivex-harness/blob/main/docs/LIVE_CERTIFICATION.md).
|
|
6
6
|
|
|
7
7
|
## Reporting a vulnerability
|
|
8
8
|
|
package/SUPPORT.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Support
|
|
2
2
|
|
|
3
|
-
Zhivex Harness `1.
|
|
3
|
+
Zhivex Harness `1.6.x` is the latest supported Node-first CLI and TypeScript library; Code `0.4.x` is the supported terminal product line. Current verified packages are Harness `1.6.3` and Code `0.4.2`, pinned exactly to Harness `1.6.3`. Stable 1.x contracts follow [the stability policy](./docs/STABILITY.md); incompatible changes require a major release except documented urgent security corrections. Beta and experimental surfaces retain their declared policies. The machine-readable `release-status.json` records the verified Harness publication; [publication evidence](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/PUBLICATION_1_6_3_CODE_0_4_2.md) records both packages.
|
|
4
4
|
|
|
5
5
|
The 1.1 support scope is tracked in the [machine-readable support matrix](./docs/support-matrix-1.1.json) and its [human-readable view](./docs/SUPPORT_MATRIX_1_1.md). The [1.0 matrix](./docs/SUPPORT_MATRIX.md) remains historical. Compatibility and removals follow [DEPRECATIONS.md](./docs/DEPRECATIONS.md) for the published 1.x line.
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ The 1.1 support scope is tracked in the [machine-readable support matrix](./docs
|
|
|
13
13
|
- the provider/model combinations marked certified in the package documentation; and
|
|
14
14
|
- HTTPS or explicitly allowed loopback-HTTP MCP endpoints using the documented bounded JSON-RPC subset.
|
|
15
15
|
|
|
16
|
-
Only the most recent published stable minor receives routine fixes. The exact `v1.3
|
|
16
|
+
Only the most recent published stable minor receives routine fixes. The exact `v1.6.3` artifact passed protected installation, OCI, six-provider live and 42/42 representative release gates. Code `0.4.2` passed installed acceptance with the published engine. Gemini, Anthropic, Vertex, Amazon Bedrock and Azure OpenAI remain provisional; the representative repository matrix covers only Meta, Qwen and OpenAI. Live provider evidence is account-, model-, endpoint-, artifact-, and date-dependent; see [live certification](https://github.com/Zhivex/zhivex-harness/blob/main/docs/LIVE_CERTIFICATION.md) and [publication evidence](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/PUBLICATION_1_6_3_CODE_0_4_2.md).
|
|
17
17
|
|
|
18
18
|
## Installation diagnostics
|
|
19
19
|
|
package/benchmarks/README.md
CHANGED
|
@@ -49,6 +49,38 @@ its offline contracts. Paid runs require a prepared, pinned matrix and `--live`.
|
|
|
49
49
|
|
|
50
50
|
## Bounded read and startup optimizations
|
|
51
51
|
|
|
52
|
+
The [expanded real OpenAI latency comparison](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/OPENAI_LATENCY_2026-11-13.md)
|
|
53
|
+
uses `scripts/benchmark-openai-latency.ts` for a fixed, balanced paired campaign
|
|
54
|
+
and `scripts/analyze-openai-latency.ts` for offline bootstrap intervals. It records
|
|
55
|
+
all failures and usage, enforces task/request caps, and stops on unmetered usage.
|
|
56
|
+
Its final 40 tasks show lower activity-persistence overhead but do not establish
|
|
57
|
+
lower total latency; do not promote the earlier three-run observation into an
|
|
58
|
+
end-to-end performance claim.
|
|
59
|
+
|
|
60
|
+
`bun run benchmark:harness --output /tmp/harness-overhead.json` measures activity
|
|
61
|
+
stream persistence at 0/40/80 historical runs, a 200-session list, scoped guidance
|
|
62
|
+
refresh/discovery, and 20-file patches with durable mutation audits. Fixture setup
|
|
63
|
+
is excluded; filesystem caches are not flushed. Save each candidate as a separate
|
|
64
|
+
bundle before editing and alternate baseline/candidate runs on the same machine.
|
|
65
|
+
The report retains individual samples; do not interpret these short runs as tail
|
|
66
|
+
latency guarantees.
|
|
67
|
+
|
|
68
|
+
For an explicitly authorized provider comparison, add `--live` and load credentials
|
|
69
|
+
with `bun --env-file=.env run scripts/benchmark-harness-overhead.ts --live --output
|
|
70
|
+
/tmp/harness-live.json`. This performs three independent read-only OpenAI tasks in
|
|
71
|
+
temporary workspaces, with three steps and a 1,024-output-token harness budget per
|
|
72
|
+
task. It records usage, task telemetry and activity-handler time separately, with
|
|
73
|
+
no raw prompts, model output or credentials. The model can be pinned using
|
|
74
|
+
`ZHIVEX_HARNESS_LIVE_OPENAI_MODEL`. Failed attempts preserve partial evidence and a
|
|
75
|
+
sanitized error. Provider variability and prompt-cache behavior must be considered
|
|
76
|
+
separately from local overhead; three runs do not establish an end-to-end speedup.
|
|
77
|
+
|
|
78
|
+
Activity snapshots retain their existing SQLite representation. A one-session
|
|
79
|
+
serialized-run cache is invalidated by other connections' writes and published
|
|
80
|
+
only after commit. Retention still runs transactionally on every append/replay.
|
|
81
|
+
Multi-file patches persist their complete audit batch with one sync/rename;
|
|
82
|
+
single-file mutations and the JSON audit format retain the same contract.
|
|
83
|
+
|
|
52
84
|
CLI runs, resumes and conversations now enable at most four independent trusted
|
|
53
85
|
local read tools; mutation barriers and approval requirements remain in force.
|
|
54
86
|
Workspace indexing traverses at most eight directories at once and coalesces
|
|
@@ -63,3 +95,43 @@ validation reads at most four files concurrently and preserves durable digest ch
|
|
|
63
95
|
The packaged CLI uses a separate lightweight help/version entrypoint and lazy
|
|
64
96
|
runtime chunks. Package smoke coverage must exercise the installed CLI and aliases
|
|
65
97
|
so missing chunks cannot pass as a working source checkout.
|
|
98
|
+
|
|
99
|
+
## Bounded OpenAI reasoning-effort experiment
|
|
100
|
+
|
|
101
|
+
[The November 13 report](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/REASONING_EFFORT_2026-11-13.md) compares explicit `low` with omitted/default effort without changing runtime defaults. `scripts/benchmark-reasoning-effort.ts` fixes 18 balanced pairs across three fixtures and a 90,000-token budget. It requires `--live`, credentials from the environment, a fresh `--directory` and a `--runtime` bundle exporting `createHarness`, `runHarnessTask` and `openHarnessActivityStore`. Build the driver with Bun (`--target node --packages external`) before launch because it starts Node workers. Repeating a live campaign incurs additional API consumption.
|
|
102
|
+
|
|
103
|
+
Offline reanalysis: `bun scripts/analyze-reasoning-effort.ts <campaign.json> <summary.json>`. The retained report JSON includes all observations and the original artifact hashes. Streaming measurements live in `scripts/benchmarks/openai-call-meter.ts`; fixture grading and shared statistics are entrypoint-free helpers. All stream milestones are client-observed and may include downstream backpressure.
|
|
104
|
+
|
|
105
|
+
## Known-file preload experiment
|
|
106
|
+
|
|
107
|
+
[The November 14 report](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/PRELOAD_CONTEXT_2026-11-14.md) compares ordinary tool-directed reads with an explicit host preload, keeping default reasoning and production behavior unchanged. `scripts/benchmark-preload-context.ts` fixes 18 balanced pairs and a 75,000-token budget, including preload time in the primary endpoint.
|
|
108
|
+
|
|
109
|
+
Build the driver with `bun build scripts/benchmark-preload-context.ts --target node --packages external --outfile <campaign.mjs>`. It requires explicit `--live`, credentials from the environment, a fresh `--directory`, and a `--runtime` bundle exporting `createHarness`, `runHarnessTask` and `openHarnessActivityStore`. Workers run under Node. A new live execution incurs API consumption. Offline analysis: `bun scripts/analyze-preload-context.ts <campaign.json> <summary.json>`. The report JSON retains all observations, synthetic answers and original artifact hashes. Host preload here is a benchmark fixture, not a production authorization or context API.
|
|
110
|
+
|
|
111
|
+
## Runtime preload and repository repair validation
|
|
112
|
+
|
|
113
|
+
The [implementation report](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/KNOWN_FILE_PRELOAD_2026-11-14.md) retains both the failed pilot and the separately budgeted follow-up. `scripts/benchmark-repository-preload.ts` exercises the actual experimental `runHarnessTask(..., { preloadFiles })` option. Two multi-file synthetic repositories are graded by executable contract and nonmutation cases in `scripts/benchmarks/repository-preload-fixtures.ts`. The same compiled-driver/runtime procedure as the preload experiment applies. Current driver defaults are six planned pairs, a 53,000-token ceiling and conservative per-pair reservations; it may stop short of six pairs. An explicit `--live` run incurs new consumption. Offline analysis uses `bun scripts/analyze-repository-preload.ts <campaign.json> <summary.json>`. Never pool cohorts with different prompts or token limits; an SDK completed status alone is not a successful answer.
|
|
114
|
+
|
|
115
|
+
## Preload output ceiling with cache isolation
|
|
116
|
+
|
|
117
|
+
[The output-budget report](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/PRELOAD_OUTPUT_BUDGET_2026-11-14.md) analyzes the earlier all-reasoning truncation and repeats eight balanced pairs at 4,096 tokens per response. `scripts/benchmark-preload-output-budget.ts` uses a fresh cache key per HTTP request, verifies zero reported cached input, and bounds aggregate consumption at 90,000 tokens with per-pair reservations. It uses the same compiled-runtime/compiled-driver invocation as the repository benchmark; live execution requires `--live` and credentials and incurs new consumption. Offline analysis: `bun scripts/analyze-preload-output-budget.ts <campaign.json> <summary.json>`. Production defaults are unaffected. The complete retained run did not use more than 2,048 output tokens in any response, so it does not prove a causal fix from the higher ceiling.
|
|
118
|
+
|
|
119
|
+
## Direct output-cap A/B on harder preload tasks
|
|
120
|
+
|
|
121
|
+
[The direct cap report](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/PRELOAD_CAP_AB_2026-11-14.md) compares 2,048 and 4,096 output tokens with preload in both arms. `scripts/benchmark-preload-cap-ab.ts` fixes eight balanced pairs, a 100,000-token ceiling, one request per task and unique cache keys. Fixtures and executable graders are in `scripts/benchmarks/hard-preload-fixtures.ts`. Use the same compiled-driver/runtime invocation as the other preload benchmarks; `--live` requires credentials and incurs new API consumption. Offline analysis: `bun scripts/analyze-preload-cap-ab.ts <campaign.json> <summary.json>`. Truncated and invalid answers remain in latency/consumption metrics. Exact paired tests, not tiny-sample binary bootstrap intervals, govern primary quality/truncation interpretation. Production defaults are unchanged.
|
|
122
|
+
|
|
123
|
+
## One-retry recovery replay
|
|
124
|
+
|
|
125
|
+
[The one-retry report](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/PRELOAD_RETRY_ONCE_2026-11-14.md) replays exactly the two saved 4,096-cap failures. `scripts/benchmark-preload-recovery.ts` requires `--source <original-cap-campaign.json>` as well as the existing compiled runtime, fresh output directory, credentials and explicit `--live`. It revalidates the eight original outcomes offline and issues at most one retry for each failed answer, with a 32,768-token additional ceiling and cold-cache checks. The diagnostic and six withheld checks are in `scripts/benchmarks/preload-recovery.ts`. Offline analysis: `bun scripts/analyze-preload-recovery.ts <recovery-campaign.json> <summary.json>`. This is a retrospective reconstruction, not a new end-to-end randomized trial. Original and failed retry answers remain unmodified; a diagnostic-only prefix extraction never counts as accepted recovery. No production defaults change.
|
|
126
|
+
|
|
127
|
+
## Native structured output with preload
|
|
128
|
+
|
|
129
|
+
[The structured-output report](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/PRELOAD_STRUCTURED_OUTPUT_2026-11-14.md) compares prompt-only JSON with native strict JSON Schema in eight balanced pairs, keeping runtime preload, default reasoning and 4,096 output tokens in both arms. `scripts/benchmark-preload-structured.ts` uses a 100,000-token aggregate ceiling, one request per task, fresh cache keys and pre-network format/schema-hash checks. Both arms receive identical output-contract instructions.
|
|
130
|
+
|
|
131
|
+
Build the driver with `bun build scripts/benchmark-preload-structured.ts --target node --packages external --outfile <campaign.mjs>`. Use the same frozen runtime exports as the repository preload experiments. Launch with `bun --env-file=.env <campaign.mjs> --live --runtime <runtime.mjs> --directory <fresh-directory>`; workers run under Node and live runs incur API consumption. Offline analysis: `bun scripts/analyze-preload-structured.ts <campaign.json> <summary.json>`. Schemas and validation are in `scripts/benchmarks/preload-output-schema.ts`. Preserve incomplete responses in quality, latency and usage totals; SDK task completion alone does not establish provider completion. No production defaults change.
|
|
132
|
+
|
|
133
|
+
## Reasoning effort with native JSON Schema
|
|
134
|
+
|
|
135
|
+
[The schema-effort report](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/PRELOAD_SCHEMA_EFFORT_2026-11-14.md) compares `default` and `low` with the same strict schema, runtime preload and 4,096-token output cap. `scripts/benchmark-preload-schema-effort.ts` fixes eight pairs balanced within two fixtures, one request per task, a 100,000-token ceiling and fresh cache keys. The meter validates both effort and schema before network access.
|
|
136
|
+
|
|
137
|
+
Build with `bun build scripts/benchmark-preload-schema-effort.ts --target node --packages external --outfile <campaign.mjs>` and use a frozen runtime exporting `createHarness`, `runHarnessTask` and `openHarnessActivityStore`. Launch explicitly with `bun --env-file=.env <campaign.mjs> --live --runtime <runtime.mjs> --directory <fresh-directory>`; Node workers incur new API consumption. Offline analysis: `bun scripts/analyze-preload-schema-effort.ts <campaign.json> <summary.json>`. Failed and incomplete answers remain in all-attempt comparisons. Historical cohorts are not pooled and production defaults remain unchanged.
|
|
@@ -6,6 +6,31 @@
|
|
|
6
6
|
"source": "src/engine/index.ts",
|
|
7
7
|
"environment": "node",
|
|
8
8
|
"exports": [
|
|
9
|
+
{
|
|
10
|
+
"name": "createProfiledHarness",
|
|
11
|
+
"kind": "runtime",
|
|
12
|
+
"tier": "experimental"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "CreateProfiledHarnessOptions",
|
|
16
|
+
"kind": "type",
|
|
17
|
+
"tier": "experimental"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "GENERAL_ASSISTANT_PROFILE",
|
|
21
|
+
"kind": "runtime",
|
|
22
|
+
"tier": "experimental"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "harnessAgentProfileSchema",
|
|
26
|
+
"kind": "runtime",
|
|
27
|
+
"tier": "experimental"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "HarnessAgentProfile",
|
|
31
|
+
"kind": "type",
|
|
32
|
+
"tier": "experimental"
|
|
33
|
+
},
|
|
9
34
|
{
|
|
10
35
|
"name": "HARNESS_PROJECT_MEMORY_SCHEMA_VERSION",
|
|
11
36
|
"kind": "runtime",
|
|
@@ -2840,6 +2865,11 @@
|
|
|
2840
2865
|
"name": "HarnessTaskRunOptions",
|
|
2841
2866
|
"kind": "type",
|
|
2842
2867
|
"tier": "experimental"
|
|
2868
|
+
},
|
|
2869
|
+
{
|
|
2870
|
+
"name": "KnownFilePreload",
|
|
2871
|
+
"kind": "type",
|
|
2872
|
+
"tier": "experimental"
|
|
2843
2873
|
}
|
|
2844
2874
|
]
|
|
2845
2875
|
},
|
package/dist/acp-cli.js
CHANGED
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
} from "./index-3ah1f369.js";
|
|
12
12
|
import {
|
|
13
13
|
createHarnessClientAdapter
|
|
14
|
-
} from "./index-
|
|
15
|
-
import"./index-
|
|
14
|
+
} from "./index-tc2r2n8b.js";
|
|
15
|
+
import"./index-v86bh0eg.js";
|
|
16
16
|
import {
|
|
17
17
|
createHarness
|
|
18
|
-
} from "./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
18
|
+
} from "./index-h8r80xhk.js";
|
|
19
|
+
import"./index-t6sjhxh8.js";
|
|
20
|
+
import"./index-yp0jtaxp.js";
|
|
21
|
+
import"./index-v17e1xs8.js";
|
|
22
22
|
import {
|
|
23
23
|
HARNESS_REQUIRED_CAPABILITIES,
|
|
24
24
|
HARNESS_SUBAGENT_PROFILES,
|
|
@@ -34,8 +34,8 @@ import"./index-mzydbzp8.js";
|
|
|
34
34
|
import"./index-bt2p8x7r.js";
|
|
35
35
|
import {
|
|
36
36
|
usagePricingSchema
|
|
37
|
-
} from "./index-
|
|
38
|
-
import"./index-
|
|
37
|
+
} from "./index-qz4fs9f9.js";
|
|
38
|
+
import"./index-x9hv1a34.js";
|
|
39
39
|
import {
|
|
40
40
|
FileChangedWhileReadingError,
|
|
41
41
|
FileSizeLimitError,
|
|
@@ -77,12 +77,12 @@ export declare const decideBatch: (items: readonly {
|
|
|
77
77
|
name?: string;
|
|
78
78
|
arguments?: string;
|
|
79
79
|
}[], policy: AutoApprovePolicy) => {
|
|
80
|
+
reason?: never;
|
|
80
81
|
auto: true;
|
|
81
82
|
results: {
|
|
82
83
|
decision: "auto";
|
|
83
84
|
reason: "edit-in-root" | "allowlisted-command";
|
|
84
85
|
}[];
|
|
85
|
-
reason?: never;
|
|
86
86
|
} | {
|
|
87
87
|
results?: never;
|
|
88
88
|
auto: false;
|
package/dist/audit/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exportHarnessGovernanceReport,
|
|
3
3
|
harnessGovernanceReportSchema
|
|
4
|
-
} from "../index-
|
|
4
|
+
} from "../index-r0q0r88h.js";
|
|
5
5
|
import"../index-yx52bt4a.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_HISTORY_KEY,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
USAGE_LEDGER_KEY,
|
|
15
15
|
UsageLedger,
|
|
16
16
|
inspectUsageLedger
|
|
17
|
-
} from "../index-
|
|
17
|
+
} from "../index-qz4fs9f9.js";
|
|
18
18
|
import {
|
|
19
19
|
HARNESS_VERSION
|
|
20
|
-
} from "../index-
|
|
20
|
+
} from "../index-x9hv1a34.js";
|
|
21
21
|
import {
|
|
22
22
|
readRegularFileNoFollow
|
|
23
23
|
} from "../index-6dxrbnxm.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exportHarnessGovernanceReport,
|
|
3
3
|
harnessGovernanceReportSchema
|
|
4
|
-
} from "./cli-entry-
|
|
4
|
+
} from "./cli-entry-j6jcb2jb.js";
|
|
5
5
|
import {
|
|
6
6
|
APPROVAL_HISTORY_KEY,
|
|
7
7
|
CliUsageError,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
openHarnessPersistence,
|
|
18
18
|
readRegularFileNoFollow,
|
|
19
19
|
validateStateDirectory
|
|
20
|
-
} from "./cli-entry-
|
|
20
|
+
} from "./cli-entry-ynahz9qc.js";
|
|
21
21
|
import {
|
|
22
22
|
HARNESS_VERSION
|
|
23
|
-
} from "./cli-entry-
|
|
23
|
+
} from "./cli-entry-v5db3eb2.js";
|
|
24
24
|
import {
|
|
25
25
|
resolveHarnessConfig
|
|
26
26
|
} from "./cli-entry-hdtfef27.js";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
readTaskAcceptanceLedger,
|
|
11
11
|
taskCheckReceiptSchema,
|
|
12
12
|
verifyChangeEnvelope
|
|
13
|
-
} from "./cli-entry-
|
|
13
|
+
} from "./cli-entry-ynahz9qc.js";
|
|
14
14
|
import {
|
|
15
15
|
HARNESS_VERSION
|
|
16
|
-
} from "./cli-entry-
|
|
16
|
+
} from "./cli-entry-v5db3eb2.js";
|
|
17
17
|
|
|
18
18
|
// src/persistence/governance-report.ts
|
|
19
19
|
import { createHash as createHash2 } from "node:crypto";
|