@dzhechkov/harness-cli 0.8.24 → 0.8.25

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/.dz-manifest.json CHANGED
@@ -9,7 +9,7 @@
9
9
  },
10
10
  {
11
11
  "path": "README.md",
12
- "sha256": "55e833687e744ffc8f067d1fe9264d1987f32a61dc35236985234f7652b066da"
12
+ "sha256": "5ee90e7eda7d0d95f4ea8ed8df5ac2e487409d9c9805c7fbd22d91f69faae388"
13
13
  },
14
14
  {
15
15
  "path": "dist/bin.d.ts",
@@ -45,19 +45,19 @@
45
45
  },
46
46
  {
47
47
  "path": "dist/cli.d.ts",
48
- "sha256": "d68251a8d5bf76c6a91e37bb72ba10169738f9be70aa879992247387845881ce"
48
+ "sha256": "072300158117033a92fb1ca377e50a748e878bbd0ad29b1bca351a13f2fc8238"
49
49
  },
50
50
  {
51
51
  "path": "dist/cli.d.ts.map",
52
- "sha256": "55791604a1965a25dff3c3e8563b72a3dc0acc0cb3df8939d398da55221b17e3"
52
+ "sha256": "c6b19ec38d68a13c15fcd49cdc7214871b862fe6ad8479bbf008c2725c814aa5"
53
53
  },
54
54
  {
55
55
  "path": "dist/cli.js",
56
- "sha256": "4ca1bf4b207b13bf6bc679db969a9aede9220a81874440c55715c5f0ad7a552c"
56
+ "sha256": "b35532d4be6887c70f8abb2954c49e1b15198f8065055a0d9db8846041436520"
57
57
  },
58
58
  {
59
59
  "path": "dist/cli.js.map",
60
- "sha256": "8cf4559933a2db86c202b9283b04041b8425ea50f600e12c4f738c0d73498707"
60
+ "sha256": "060b9b8d10025d5b55e40b2d91c2ed95fdd4593703f52b1521ab3d9c43c6e2b0"
61
61
  },
62
62
  {
63
63
  "path": "dist/command-inventory.d.ts",
@@ -149,7 +149,7 @@
149
149
  },
150
150
  {
151
151
  "path": "package.json",
152
- "sha256": "fb1f3f04f6937cb01e64ab6c6433fe5871d8609216dc9a176a78e70f23e782a2"
152
+ "sha256": "e37b3688f2bd91ae1ab797399274350a57eed10a1c43d69c94efb747c3fb7dd8"
153
153
  },
154
154
  {
155
155
  "path": "src/bin.ts",
@@ -161,7 +161,7 @@
161
161
  },
162
162
  {
163
163
  "path": "src/cli.ts",
164
- "sha256": "7bf10efa88be8a65d835ed7a65a135022339b75078f8596da3135bfc00a59044"
164
+ "sha256": "8c831e3c524d6e38da9ea2360cdfb5ab5dfa939e8c4bf0eafe57724db472ec4d"
165
165
  },
166
166
  {
167
167
  "path": "src/command-inventory.ts",
@@ -185,5 +185,5 @@
185
185
  }
186
186
  ]
187
187
  },
188
- "signature": "YHA8q4XSLQRlxsnF6+57nf1hkwwfckNrrV73TEs+XQjU6TdSIAEPa9YWx3prd44hACdXgo748KjJlwieg+xDBw=="
188
+ "signature": "OGv5/A3HMsZs+oYSwfend7+sOZpFoSc7xjFaz1MG0Gw7z6raYgNxJhbp2iypLLKPtpUw2wO+Zi5lXOYYjicIDQ=="
189
189
  }
package/README.md CHANGED
@@ -1455,7 +1455,25 @@ is not a false gate; `--audit-dev` widens; an audit that *cannot run* also block
1455
1455
  `STALE_DIST`, never checked as-is; a package that declares a `build` script but has **no** dist JS is
1456
1456
  `MISSING_DIST` — an unbuilt package cannot ship), (4) smoke-boot every bin via `node <bin> --help` in a
1457
1457
  throwaway cwd with a timeout. Packages without a `test` script are **named skips** in the report — never
1458
- silent passes; a template-only pack (no build, no artifacts, no bin) is a named `SKIP_NO_ARTIFACTS`.
1458
+ silent passes; a template-only pack (no build, no artifacts, no bin) is a named `SKIP_NO_ARTIFACTS`. The
1459
+ packed-install smoke's `pack` steps run against a **staged** `package.json` — `workspace:*` sibling
1460
+ deps rewritten to the exact sibling version, `scripts.prepublishOnly` dropped, written and restored
1461
+ atomically (temp file + rename), one package at a time — the same staging `dz publish`'s preview
1462
+ applies, so `npm install` on the resulting tarballs does not fail on a literal `workspace:*` spec. A
1463
+ restore that fails is reported as a FAILED step (the tree is left staged and says so), never as a pass.
1464
+ A red `tests`/`syntax`/`smoke` step names the failing test(s) when the output is a runner shape it
1465
+ recognises (vitest summary/FAIL/×/❯ lines, or node:test/TAP `not ok N …` + `# fail N`) — colour
1466
+ codes are stripped first, so a coloured runner is recognised too; otherwise it falls back to the
1467
+ first output line, marked `(no test-runner summary recognised)` so the difference from a parsed
1468
+ summary is visible. Beneath the reason it prints the tail **per stream**, labelled `stdout:` /
1469
+ `stderr:` — the two streams are captured independently, so their relative order (as the process
1470
+ actually interleaved them) is **not** reconstructed, only each stream's own tail order. Both
1471
+ streams appear the same way in the report, the `--json` output (a `tails: {stdout, stderr}` object
1472
+ on every executed tests/syntax/smoke/timeout failure — present with empty strings when a stream
1473
+ produced nothing), and the best-effort `gh issue`, where every tail is additionally **redacted**
1474
+ (`token`/`secret`/`password` values, `Bearer …`, `npm_…`/`ghp_…`/`sk-…`/`AKIA…` tokens, and long
1475
+ opaque base64/hex-ish blobs all become `[redacted]`) and the whole issue body is capped at 60KB,
1476
+ shrinking every tail evenly rather than dropping some whole while leaving others untouched.
1459
1477
 
1460
1478
  ```bash
1461
1479
  dz release --dry-run # full gate plan, zero commands executed
@@ -3234,16 +3252,33 @@ earlier one failed):
3234
3252
 
3235
3253
  1. **Sibling drift.** For every workspace `S` a batch package depends on (`dependencies`,
3236
3254
  `peerDependencies` AND `optionalDependencies` — all three pin and ship identically) that is NOT
3237
- itself part of the batch, the gate hashes `S`'s published inventory `dist/**`, every path
3238
- named in `package.json#files`, and every `bin` target (not `dist/**` alone: a changed bin script
3239
- or template outside `dist/` is drift too) plus a normalized `package.json` (version/gitHead/
3240
- `_*`/`imports`/`browser`/`sideEffects`/`man` compared, not just entry points) against the
3241
- workspace copy. A mismatch blocks; anything this gate cannot build a fetch that fails
3242
- (offline, 404), an unreadable/invalid `package.json` on either side, or a `workspace:`-spec'd
3243
- name it does not recognize is `unavailable` and blocks too; `unavailable` is never silently
3244
- treated as a pass. `--include-drifted` auto-extends the batch and RE-CHECKS the expanded batch's
3245
- own new edges until nothing new drifts (a fixed point over transitive drift, capped at the
3246
- package count) a folded-in sibling that itself depends on a drifted sibling is not missed.
3255
+ itself part of the batch, the gate compares `S`'s WORKSPACE copy against its published inventory,
3256
+ naming which mechanism produced BOTH sides on every result (`inventorySource: 'pnpm-pack' |
3257
+ 'npm-pack' | 'readdir-approximation'`, never left implicit). In production the CLI packs `S`'s
3258
+ workspace dir with `pnpm pack` the SAME transport the live publish uses — into a per-run scratch
3259
+ dir, unpacks it, and hands the unpacked tree to core, which hashes it with the same full recursive
3260
+ walk it applies to the already-unpacked registry tarball: symmetric by construction, so a file the
3261
+ transport synthesises into the tarball (pnpm copies the workspace-root LICENSE into a package whose
3262
+ own tree has none) is on BOTH sides. MEASURED 2026-09-14 on the hub: with an `npm pack --dry-run
3263
+ --json` path listing instead, two siblings unchanged since publication (harness-presets, scout)
3264
+ read as "LICENSE only in the published copy" a false drift, because npm's dry-run never lists
3265
+ the file pnpm adds. That npm listing survives only behind a test seam (`publishNpmPackRunner`,
3266
+ parsed by core's pure `parseNpmPackInventory`, source `'npm-pack'`) — the seam path and the
3267
+ production path are NOT the same code, and that is named here rather than implied. Packed ONCE
3268
+ per package directory per `dz publish` RUN (not re-run per dependent package that happens to
3269
+ share the sibling); the scratch dir is removed after the drift loop. With no provider injected
3270
+ (an unusual, degraded mode), both sides fall back to the same `dist`/`files`/`bin` approximation
3271
+ — cruder, but still symmetric by construction. Both
3272
+ inventories are hashed together with a normalized `package.json`
3273
+ (version/gitHead/`_*`/`imports`/`browser`/`sideEffects`/`man` compared, not just entry points). A
3274
+ mismatch blocks; anything this gate cannot build — a fetch that fails (offline, 404), a
3275
+ failed `pnpm pack` (or a shapeless seam listing) on the workspace side, an unreadable/invalid
3276
+ `package.json` on either side, or a `workspace:`-spec'd name it does not recognize — is
3277
+ `unavailable` and blocks too; `unavailable` is never silently treated as a pass, and NEVER goes
3278
+ unlogged (an `unavailable` outcome writes an audit record whether or not `--allow-sibling-drift`
3279
+ was used). `--include-drifted` auto-extends the batch and RE-CHECKS the expanded batch's own new
3280
+ edges until nothing new drifts (a fixed point over transitive drift, capped at the package count)
3281
+ — a folded-in sibling that itself depends on a drifted sibling is not missed.
3247
3282
  2. **Packed-install smoke.** The batch's `.tgz` files are installed TOGETHER into a clean directory
3248
3283
  (siblings outside the batch resolve from the registry — exactly like a fresh user), then every
3249
3284
  declared `bin` — including one whose target file turns out NOT to exist after the install,
@@ -3251,11 +3286,31 @@ earlier one failed):
3251
3286
  n/a — runs `--version` and must exit 0 with non-empty stdout. On a **live** publish this gate
3252
3287
  packs each package's tarball exactly ONCE, right after its own version bump — the SAME bytes are
3253
3288
  then smoke-tested and handed to `npm publish <tgz>`; their sha256 is printed
3254
- (`tarball <pkg>@<ver> sha256:<hex>`) and written to `.dz/guard-audit.jsonl` alongside every
3255
- pass/block/override/n-a verdict, so "the smoke tested what shipped" is a checkable claim rather
3256
- than an architectural one. `dz release --dry-run` plans the same steps inside its `smoke` gate
3257
- (`smoke:packed-install:*`) and `dz release`'s own execution judges the `--version` step through
3258
- the identical rule the two doors apply one rule, for real, not only on paper.
3289
+ (`tarball <pkg>@<ver> sha256:<hex>`). `dz release --dry-run` plans the same steps inside its
3290
+ `smoke` gate (`smoke:packed-install:*`) and `dz release`'s own execution judges the `--version`
3291
+ step through the identical rule the two doors apply one rule, for real, not only on paper.
3292
+
3293
+ Both gates write to the SAME append-only, hash-chained `.dz/guard-audit.jsonl` `dz guard` reads
3294
+ **exactly ONE JSONL record per package per rule per run**, never one record per SIBLING a package
3295
+ happens to depend on: every sibling's outcome for a package (same/drift/unavailable, overridden or
3296
+ not) is aggregated first, then written once, with a detail that names every sibling and its status
3297
+ and a verdict of `block` if any sibling stands blocked, else `warn` if the only issues were resolved
3298
+ via `--allow-sibling-drift`, else `pass` (a package with no external sibling to check still gets a
3299
+ `pass — no external siblings` record, so the rule is never silently absent for a package). Each
3300
+ note/violation names `<rule>: <pkg>@<ver> sha256:<hex> — <detail>`, with `sha256:n/a` stated
3301
+ explicitly whenever the verdict is a preview that ran before anything was packed. The write itself is
3302
+ durable: `openSync` append → a LOOP of `writeSync` calls until every byte of the record is confirmed
3303
+ written (checking the returned length on every call — a short write is resumed, not silently
3304
+ accepted) → `fsyncSync(fd)` → `closeSync`. Two FURTHER fsyncs are each REQUIRED, not best-effort, and
3305
+ each failure alone is enough to report the whole write as not logged: an `fsyncSync` of `.dz` itself
3306
+ when THIS call is the one that created the audit file (so its new directory entry survives a crash),
3307
+ and an `fsyncSync` of `.dz`'s PARENT when THIS call is the one that created `.dz` (so `.dz`'s own
3308
+ directory entry survives a crash). Every printed verdict line says so: `(logged)` appears only after
3309
+ every required fsync actually succeeded, and a failed write — the file's own fsync, either directory
3310
+ fsync, or a writer that makes no progress — prints `(audit NOT logged: <reason>)` instead, never a
3311
+ false `(logged)`. The signature gate got the matching honesty fix: a `.dz-manifest.json` that PARSES
3312
+ but is not a JSON object (`null`, an array, a bare string) is reported `unavailable` — "the manifest is
3313
+ malformed", not "the pack carries no signature", because the fix for each is different.
3259
3314
 
3260
3315
  ```bash
3261
3316
  dz publish --filter harness-cli # ✓ sibling drift: none / ✓ packed install smoke, or BLOCKED with a fix-it command
@@ -3272,7 +3327,7 @@ dz publish: BLOCKED harness-cli — sibling drift: @dzhechkov/memory@0.2.20 on t
3272
3327
  dz publish: refusing to publish (1 sibling-drift violation(s))
3273
3328
 
3274
3329
  $ dz publish --filter harness-cli --yes
3275
- dz publish: tarball @dzhechkov/harness-cli@0.8.24 sha256:9f2c…e10a
3330
+ dz publish: tarball @dzhechkov/harness-cli@0.8.25 sha256:9f2c…e10a
3276
3331
  dz publish: ✓ packed install smoke
3277
3332
  ✓ @dzhechkov/harness-cli 1.0.0 → 1.0.1 published (confirmed by registry after 1 probes)
3278
3333
  sha256:9f2c…e10a
@@ -3582,7 +3637,12 @@ Every run also prints where the backend came from, e.g. `memory backend: agentdb
3582
3637
  `dz doctor` cross-checks the two truths too: a new `memory hooks match config` row goes red when
3583
3638
  `.dz/config.json`'s `memory.backend` and the ACTUAL `SessionStart`/`SessionEnd`/`PreCompact` hooks in
3584
3639
  `.claude/settings.json` disagree in either direction, naming the exact fix (`run: dz setup --target
3585
- claude-code --memory agentdb`, or the jsonl equivalent).
3640
+ claude-code --memory agentdb`, or the jsonl equivalent). When the two truths agree, the row prints an
3641
+ explicit `[OK]` naming the backend and the three events (e.g. `memory.backend=agentdb —
3642
+ SessionStart/SessionEnd/PreCompact all invoke .dz/agentdb-writer.mjs`) — it stays silent only when
3643
+ there is no `.dz/config.json` at all (never ran `dz setup`); a `.claude/settings.json` that exists
3644
+ but cannot be parsed or inspected (invalid JSON, or a malformed `hooks` shape) is reported red as
3645
+ "cannot be compared", never as a green receipt.
3586
3646
 
3587
3647
  ### The apply leg — `dz setup --memory agentdb` installs the whole loop, not two of three
3588
3648
 
@@ -3592,7 +3652,7 @@ Self-learning is a three-leg loop: **collect** (session hooks write into the sto
3592
3652
  Before this feature `dz setup` shipped the first two legs only — the apply leg's files existed
3593
3653
  solely in this repo's own `.claude/helpers/`, so every OTHER project that ran `dz setup --memory
3594
3654
  agentdb` got collection and ranking, but never automatic recall (MEASURED: a clean install wrote no
3595
- `UserPromptSubmit` entry at all, on 0.8.10 and 0.8.24 alike, with or without `--memory agentdb`).
3655
+ `UserPromptSubmit` entry at all, on 0.8.10 and 0.8.25 alike, with or without `--memory agentdb`).
3596
3656
 
3597
3657
  `dz setup --target claude-code --memory agentdb` now installs all three, additively (a repeat run
3598
3658
  changes nothing; a foreign hook you wrote yourself is left exactly where it is):
@@ -3689,6 +3749,65 @@ dz doctor # → "apply-leg alive (embed daemon): embed socket present at <path
3689
3749
  Every step above is a REPRODUCER, not a claim: run it on a scratch project before trusting a `dz
3690
3750
  setup --memory agentdb` install on a new machine.
3691
3751
 
3752
+ #### One recall engine for the hook and the CLI (`hook-recall-hybrid-parity`, ADR-001)
3753
+
3754
+ Before this feature the per-prompt hook and `dz recall` used TWO DIFFERENT engines: the hook's embed
3755
+ daemon ran its own brute-force cosine loop over the mirror; `dz recall` called core's `recallHybrid`
3756
+ (FTS5 lexical + semantic + reciprocal-rank-fusion). MEASURED (record 097ca040): 41.8% of taught
3757
+ lessons went unretrieved by either path over 48 days, and an exact lexical match with cosine 0.39 was
3758
+ silently dropped by the hook's cosine floor — a lexical hit `dz recall` would have surfaced.
3759
+
3760
+ The daemon's `op: recall` now calls `recallHybrid` itself — the SAME engine, SAME store, SAME
3761
+ ranking `dz recall` uses — under a time budget (`HOOK_RECALL_BUDGET_MS`, default 500 ms, below the
3762
+ hook's own 800 ms socket timeout). Every reply now carries an honest `engine` field:
3763
+
3764
+ - `engine: 'hybrid'` — `recallHybrid` answered inside the budget; `hits[].score` is an RRF rank
3765
+ normalized into `[0,1]` (`score / (2 / (RRF_K + 1))`, clamped — RRF_K=60 mirrors `vector-tier.ts`'s
3766
+ own constant).
3767
+ - `engine: 'cosine-fallback'` — the budget was exceeded, `recallHybrid`'s engine errored, or no core
3768
+ module was resolvable; the daemon falls back to TODAY'S brute-force cosine (unchanged, byte for
3769
+ byte) and reports `reason` alongside (e.g. `"budget exceeded (500 ms)"`).
3770
+
3771
+ The hook prints `engine`/`reason` to **stderr only** (`[dz-recall] engine=… reason=…`) — it never
3772
+ rides into `additionalContext`, so the model reading the prompt never sees it. The relevance floor
3773
+ the hook applies also depends on `engine`: a `cosine-fallback` reply keeps today's cosine-calibrated
3774
+ `DEFAULT_RECALL_FLOORS` (`recall-hook-policy.ts`) untouched; a `hybrid` reply is judged against its
3775
+ OWN placeholder floor (`DZ_RECALL_HOOK_SCORE_FLOOR`, currently `0.01`, deliberately permissive) —
3776
+ calibrating that floor on the real 281-pattern store is tracked as a follow-up measurement, named as
3777
+ a `TODO(08, FR-5)` at the constant's definition site.
3778
+
3779
+ **Recall-mode `'hook'` never moves the bandit's exposure counters.** The daemon calls
3780
+ `recallHybrid(PROJECT, prompt, { limit, mode: 'hook', deferExposures: true })` and never calls the
3781
+ returned `commitExposures(...)` — so a per-prompt recall (which would otherwise fire on every single
3782
+ turn) never counts as a bandit "exposure" the way an interactive `dz recall` does. `mode: 'hook'`
3783
+ itself ranks identically to `'hybrid'` (no weight change); it exists purely so the daemon's intent is
3784
+ visible end to end, alongside `deferExposures`, which is the field that actually withholds the write.
3785
+
3786
+ **The vector engine is now cached per process** (`getOrOpenEngine`, `vector-tier.ts`, FR-3): a
3787
+ long-lived caller like the daemon no longer re-runs the native-dependency probe
3788
+ (`isPackageInstalled`/`probeNativeDep`) on every single request — the resolved engine is kept keyed
3789
+ by `(projectRoot, mtime of .dz/agentdb.db)` and re-resolved only when that mtime changes (a `dz
3790
+ teach`/`consolidate` landed between requests). A short-lived CLI invocation is unaffected — the cache
3791
+ just gets populated once and discarded with the process, byte-identical to before this feature.
3792
+
3793
+ **`dz doctor`'s "apply-leg alive (embed daemon)" row now names the live engine** (FR-6): when the
3794
+ socket is alive it sends one `op: recall` probe (bounded at 1000 ms — comfortably above the 500 ms
3795
+ production budget default, see the honest NFR-1 discussion below) and appends `(engine: hybrid)` or
3796
+ `(engine: cosine-fallback)` to the detail line. A non-live fixture (no daemon actually listening)
3797
+ fails the probe near-instantly and the line is unchanged from before this feature.
3798
+
3799
+ **Honest NFR-1 finding (measured, not assumed).** The target was p95 daemon-answer ≤ 500 ms over 100
3800
+ real prompts from `.dz/recall-usage.jsonl`. MEASURED on this machine against the REAL 743-pattern
3801
+ production store, under the documented DEFAULT `HOOK_RECALL_BUDGET_MS=500` (script + numbers in
3802
+ `features/hook-recall-hybrid-parity/07_code_changes/change_manifest.md`): every single reply fell
3803
+ back to `engine: 'cosine-fallback'` — `resolveAgentdbEmbedder` (agentdb-index.ts, `EmbeddingService`)
3804
+ re-initializes the transformers pipeline on EVERY call with no cross-call caching (MEASURED
3805
+ standalone: 2–3.6 s per call, no warm-up across 3 repeated calls in one process), so a cold semantic
3806
+ leg routinely costs well over the 500 ms budget — NFR-1 is **not met** by the current architecture on
3807
+ this machine. Caching that embedder lives one layer below this feature's touched files
3808
+ (`agentdb-index.ts`, out of `hook-recall-hybrid-parity`'s scope) and is named as follow-up work in the
3809
+ manifest, not silently left unmeasured.
3810
+
3692
3811
  ### AgentDB self-learning algorithms
3693
3812
 
3694
3813
  When using `--memory agentdb`, the following algorithms automatically tune search quality:
@@ -5124,8 +5243,17 @@ refusal as the honest answer.
5124
5243
 
5125
5244
  ## Status
5126
5245
 
5127
- `harness-core v0.8.32` · `harness-cli v0.8.24` — **this release: `dz publish` refuses a broken pair, `dz setup`
5128
- reads the memory backend from config, and the embed daemon says "ready" only with a socket that exists.**
5246
+ `harness-core v0.8.34` · `harness-cli v0.8.25` — **this release: the recall hook and `dz recall` share ONE hybrid
5247
+ engine, the embedder is cached per process, and every publish-gate verdict is a durable per-package audit record.**
5248
+ (0) Hook/CLI recall parity (`hook-recall-hybrid-parity`): the embed daemon answers `op: recall` through core's
5249
+ `recallHybrid` under a 500 ms budget (measured p95 100–190 ms on the real 743-pattern store, 99–100 of 100
5250
+ requests hybrid) with an honest cosine fallback labelled `engine`/`reason`, a warm-up at start, an in-flight cap,
5251
+ and an engine cache used ONLY by the hook (`dz recall` itself resolves fresh); `dz doctor` prints the engine.
5252
+ The agentdb embedder is cached per process (`agentdb-embedder-cache`: cold 2117 ms → warm 1 ms). Sibling-drift
5253
+ inventories come from `pnpm pack` — the live transport — so the LICENSE pnpm synthesises from the workspace root
5254
+ no longer reads as drift; every gate verdict is one fsync'd audit record per package with `sha256:<hex|n/a>`.
5255
+ Previous release (v0.8.33 / v0.8.25): `dz publish` refuses a broken pair, `dz setup`
5256
+ reads the memory backend from config, and the embed daemon says "ready" only with a socket that exists.
5129
5257
  (1) Sibling-drift gate + packed install smoke: before any live `npm publish`, every `workspace:*` sibling on
5130
5258
  the registry is compared with the workspace (dist/files/bin + the shipping fields of package.json); a
5131
5259
  drifted sibling BLOCKS the batch (`add <sibling> to the batch or publish it first`), and each package that
package/dist/cli.d.ts CHANGED
@@ -139,6 +139,20 @@ export interface CliIo {
139
139
  timeout?: number | undefined;
140
140
  env?: NodeJS.ProcessEnv | undefined;
141
141
  }) => string;
142
+ /**
143
+ * Test seam for `dz publish`'s gate-audit writer (feature `publish-gate-audit-durable`, FR-2):
144
+ * overrides the fs primitives `appendPublishGateAudit` uses for its durable append (production
145
+ * leaves it unset → the real `node:fs` functions). Lets a test make `fsyncSync` throw to prove
146
+ * `(audit NOT logged: …)` is printed and the write is reported as failed, without touching any
147
+ * other seam's filesystem.
148
+ */
149
+ readonly publishGateAuditFsLayer?: PublishGateAuditFsLayer;
150
+ /**
151
+ * AM-5 (feature publish-gate-audit-durable): test seam for the sibling-drift gate's `npm pack
152
+ * --dry-run --json` call (production leaves it unset → real `execFileSync`). Takes the package
153
+ * dir, returns raw stdout, or throws to simulate a real `npm` failure without spawning anything.
154
+ */
155
+ readonly publishNpmPackRunner?: (dir: string) => string;
142
156
  /**
143
157
  * Test seam for `dz install`: overrides the `npm install` subprocess (production leaves
144
158
  * it unset → real `execSync`, stdio piped). A stub runner that pre-stages a fixture
@@ -246,6 +260,29 @@ export declare function codexHooksSummary(report: CodexHooksSyncReport, label?:
246
260
  export declare function deliverCodexHooks(input: CodexHooksSyncInput, sync?: (options: Parameters<typeof runSyncCodexHooks>[0]) => CodexHooksSyncReport, label?: string): CodexHooksSummary & {
247
261
  readonly report: CodexHooksSyncReport;
248
262
  };
263
+ /**
264
+ * fs primitives `appendPublishGateAudit` needs for its durable write (FR-2), injectable so a test
265
+ * can make `fsyncSync` throw without touching the real filesystem underneath every OTHER seam this
266
+ * function shares with production. Left unset in production → the real `node:fs` functions above.
267
+ */
268
+ interface PublishGateAuditFsLayer {
269
+ readonly existsSync: (path: string) => boolean;
270
+ readonly mkdirSync: (path: string, opts: {
271
+ recursive: boolean;
272
+ }) => void;
273
+ readonly openSync: (path: string, flags: number) => number;
274
+ /**
275
+ * AM-2 (Codex round-1 review, finding 2, high): `Buffer`, not `string` — a SHORT write must
276
+ * resume at the exact BYTE it stopped at, and a string-based API cannot express that safely once
277
+ * the data contains any multi-byte UTF-8 character (re-encoding a slice of an already-partial
278
+ * string can silently produce different bytes than the ones actually pending). The real
279
+ * `node:fs.writeSync` accepts a `Buffer` directly (no re-encoding), so this changes nothing about
280
+ * what production writes.
281
+ */
282
+ readonly writeSync: (fd: number, data: Buffer) => number;
283
+ readonly fsyncSync: (fd: number) => void;
284
+ readonly closeSync: (fd: number) => void;
285
+ }
249
286
  export declare function boundedMutationGateOutputTail(output: string): string | undefined;
250
287
  /** Test seam for the chokepoint: NEW-C4's proof needs to call it with a hostile pid. */
251
288
  export declare function __wfSignalChildTestSeam(child: unknown, signal: string, detached: boolean): boolean;
package/dist/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAUH,OAAO,EAAoC,KAAK,EAAa,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAK3G,OAAO,EAAyF,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEhJ,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,kBAAkB,EAExB,MAAM,yBAAyB,CAAC;AASjC,OAAO,QAAQ,yBAAyB,CAAC;IACvC,UAAU,UAAU;QAClB;;mFAE2E;QAC3E,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAC1B;2GACmG;QACnG,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAC9B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;KACjC;CACF;AAED,OAAO,EAiDL,iBAAiB,EAmBjB,KAAK,oBAAoB,EA2MzB,KAAK,cAAc,EAgOnB,KAAK,YAAY,EA+ElB,MAAM,yBAAyB,CAAC;AAcjC,OAAO,KAAK,EAA8C,qBAAqB,EAAE,gBAAgB,EAAc,kBAAkB,EAAwL,MAAM,yBAAyB,CAAC;AA6BzV,4FAA4F;AAC5F,eAAO,MAAM,WAAW,EAAE,SAAS,MAAM,EAexC,CAAC;AA6JF,MAAM,W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