handoff-check 0.4.0 → 0.6.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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.0
4
+
5
+ - Add opt-in manifest v3/handoff v4 portable project binding with strict matching.
6
+ - Add config v2 named environment profiles selected only by explicit --profile.
7
+ - Add optional verification report wrappers with exact parsed-input/config byte digests.
8
+ - Add separately requested, bounded read-only Git worktree/commit/branch context.
9
+ - Share profile/binding semantics with doctor and the advisory Claude adapter.
10
+ - Preserve old unbound contracts and default outputs; no automatic migration or baseline refresh.
11
+
12
+ ## 0.5.0
13
+
14
+ - Add read-only doctor diagnostics for project inputs, versions, paths and integrations.
15
+ - Add stdout-only hook-config for explicit, non-overwriting Claude SessionStart setup.
16
+ - Add a bounded local advisory lifecycle adapter using the existing verifier.
17
+ - Document host capabilities, local-package prerequisites and fresh critical-action checks.
18
+ - Preserve verify/snapshot/explain contracts; never automatically refresh baselines.
19
+
3
20
  ## 0.4.0
4
21
 
5
22
  - Add manifest-only explain in text, JSON and Markdown using verifier lifecycle decisions.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  A deterministic, local CLI that verifies active constraints before a coding agent
4
4
  resumes work.
5
5
 
6
- **Version: 0.4.0.**
6
+ **Version: 0.6.0.**
7
7
 
8
8
  A task summary may preserve the goal while losing an active rule, carrying an
9
9
  expired restriction, or moving a staging-only instruction into production.
@@ -18,8 +18,8 @@ Source references are review metadata and are never fetched.
18
18
  Run in the repository where your agent works:
19
19
 
20
20
  ```sh
21
- npx handoff-check@0.4.0 init --scope staging --agent both --dry-run
22
- npx handoff-check@0.4.0 init --scope staging --agent both
21
+ npx handoff-check@0.6.0 init --scope staging --agent both --dry-run
22
+ npx handoff-check@0.6.0 init --scope staging --agent both
23
23
  ```
24
24
 
25
25
  This creates `.handoff-check.json`, starter `constraints.json` and `handoff.json`,
@@ -33,7 +33,7 @@ on verification. Revisions and hashes detect edits under an unchanged rule ID.
33
33
  Ask a resuming agent to use the installed skill, or run:
34
34
 
35
35
  ```sh
36
- npx handoff-check@0.4.0 verify --format json --require-content
36
+ npx handoff-check@0.6.0 verify --format json --require-content
37
37
  ```
38
38
 
39
39
  The saved config supplies paths and scope. `init --ci` also creates a pinned GitHub
@@ -42,7 +42,7 @@ agent execution; CI enforces the declared-ID comparison when its workflow runs.
42
42
  Neither checks whether the agent obeys a rule's meaning.
43
43
 
44
44
  Node.js 22+ is required; end users do not need Bun. Global installation is also
45
- available: `npm install --global handoff-check@0.4.0`. For contributor builds or
45
+ available: `npm install --global handoff-check@0.6.0`. For contributor builds or
46
46
  offline package testing, see the [setup guide](docs/agent-integration.md).
47
47
 
48
48
  For a complete first-rule walkthrough, including a passing baseline and a detected
@@ -65,7 +65,7 @@ default but are explicitly marked. Unexpected reported IDs still fail.
65
65
  To require actual active rules, opt in:
66
66
 
67
67
  ```sh
68
- npx handoff-check@0.4.0 verify --require-content --require-active --format json
68
+ npx handoff-check@0.6.0 verify --require-content --require-active --format json
69
69
  ```
70
70
 
71
71
  A zero active set produces global NO_ACTIVE_CONSTRAINTS (no fake ID), mismatch
@@ -83,8 +83,8 @@ init and snapshot reject it. See the
83
83
  After reviewing rules at handoff creation, capture a new baseline:
84
84
 
85
85
  ```sh
86
- npx handoff-check@0.4.0 snapshot --task "Resume migration review" --output handoff.next.json
87
- npx handoff-check@0.4.0 verify --handoff handoff.next.json --require-content --format json
86
+ npx handoff-check@0.6.0 snapshot --task "Resume migration review" --output handoff.next.json
87
+ npx handoff-check@0.6.0 verify --handoff handoff.next.json --require-content --format json
88
88
  ```
89
89
 
90
90
  Snapshot creates a new file exclusively. Review it before deliberately replacing
@@ -106,9 +106,9 @@ hashed, but referenced documents are not fetched or checked.
106
106
  ## Explain rules and review field changes
107
107
 
108
108
  ```sh
109
- npx handoff-check@0.4.0 explain --format markdown
110
- npx handoff-check@0.4.0 snapshot --task "Review migration" --include-content --output handoff.reviewed.json
111
- npx handoff-check@0.4.0 verify --handoff handoff.reviewed.json --require-content --format markdown
109
+ npx handoff-check@0.6.0 explain --format markdown
110
+ npx handoff-check@0.6.0 snapshot --task "Review migration" --include-content --output handoff.reviewed.json
111
+ npx handoff-check@0.6.0 verify --handoff handoff.reviewed.json --require-content --format markdown
112
112
  ```
113
113
 
114
114
  `explain` shows every manifest rule's applicability for the selected scope/time,
@@ -116,9 +116,10 @@ including global, out-of-scope and inactive rules. It uses the same lifecycle
116
116
  precedence as verify, never reads the handoff, and exits 0 for a valid explanation.
117
117
  It is not a handoff verification. Text, JSON and Markdown are supported.
118
118
 
119
- Snapshot still creates v2 by default. Explicit `--include-content` creates a
120
- **v3 handoff** retaining complete old rule content. For active `CHANGED` rules,
121
- v3 JSON adds ordered `changes` with typed `before` (saved) and `after` (current)
119
+ Unbound snapshots create v2 by default or v3 with explicit `--include-content`.
120
+ Bound manifests create v4 in hashes mode by default, or retained mode with that
121
+ flag. Retained handoffs store complete old rule content. For active `CHANGED` rules,
122
+ retained v3/v4 JSON adds ordered `changes` with typed `before` (saved) and `after` (current)
122
123
  values; null means an absent optional field. Text/Markdown show these field deltas,
123
124
  including revision-only changes. Lifecycle findings retain precedence. V2 reports
124
125
  say previous content is unavailable; hashes cannot reconstruct it.
@@ -152,13 +153,40 @@ or revisioned v2 manifests. Scope must match the v2 handoff's saved scope.
152
153
  Review current rules, capture a new v2 baseline, and deliberately update the saved
153
154
  handoff. Existing inputs are preserved by init, not silently upgraded. Review
154
155
  installed skills, instruction blocks and CI commands to update their pinned
155
- version to 0.4.0 and add `--require-content`. Init refuses to overwrite differing
156
+ version to 0.6.0 and add `--require-content`. Init refuses to overwrite differing
156
157
  integrations; compare them with the new packaged templates and update reviewed
157
158
  copies explicitly. Never refresh before checking resumed work or reuse capturedAt
158
159
  as the clock for real resumed work.
159
160
 
160
161
  ## Configuration and initialization
161
162
 
163
+ 0.6 adds optional portable project binding, explicit environment profiles and
164
+ reproducibility metadata. Existing unbound files/default JSON stay compatible.
165
+
166
+ ```sh
167
+ npx handoff-check@0.6.0 verify --profile stage --require-content --report --format json
168
+ npx handoff-check@0.6.0 doctor --profile stage
169
+ ```
170
+
171
+ These commands require an explicitly authored config v2 profile. Bound manifest
172
+ v3/handoff v4 must share projectId; mixed/cross-project inputs fail with exit 2.
173
+ Profiles never infer environments or authorization from paths/branches. Reports
174
+ record the exact input/config bytes parsed, package version and policies; Git is
175
+ read only with separate --git-context. They are not signed attestations or proof
176
+ of compliance. See [setup, migration and examples](docs/project-context.md).
177
+
178
+ For read-only installation diagnostics, run `npx handoff-check@0.6.0 doctor`.
179
+ `doctor --format json` reports paths, supported input versions and managed
180
+ integration pins. Its exit codes are 0 healthy, 1 attention and 2 invalid invocation;
181
+ it does not verify a handoff or prove a host ran the integration.
182
+
183
+ `npx handoff-check@0.6.0 hook-config --host claude` emits an opt-in advisory
184
+ SessionStart snippet to merge manually into existing settings. It never overwrites
185
+ settings, and requires a pinned project-local package. The local adapter uses the
186
+ same verifier without network/model calls; startup/resume/clear/compact checks
187
+ cannot authorize or block deployment. Codex/Cursor adapters are not shipped.
188
+ See [lifecycle setup, host matrix and critical-action recipes](docs/lifecycle.md).
189
+
162
190
  `verify` reads only `.handoff-check.json` in the current directory by default,
163
191
  without searching parents. Missing implicit config falls back to default input
164
192
  names, but scope is still required. Explicit `--config <path>` must exist.
@@ -278,7 +306,7 @@ handoff-check verify --scope <scope>
278
306
  [--handoff <path>] default: handoff.json
279
307
  [--as-of <UTC time>] default: current time, captured once
280
308
  [--format text|json|markdown] default: text
281
- [--require-content] require a v2/v3 content-aware handoff
309
+ [--require-content] require a v2/v3/v4 content-aware handoff
282
310
  [--require-active] fail when no active constraints apply
283
311
 
284
312
  handoff-check snapshot --task <task>
@@ -292,9 +320,22 @@ handoff-check explain
292
320
 
293
321
  handoff-check init --scope <scope>
294
322
  [--agent codex|claude|both|none] [--dry-run] [--ci] [--format text|json]
323
+
324
+ handoff-check doctor
325
+ [--config <path>] [--constraints <path>] [--handoff <path>] [--scope <scope>]
326
+ [--host claude|codex|cursor] [--format text|json]
327
+
328
+ handoff-check hook-config --host claude [--require-active]
329
+ handoff-check hook --host claude --config <absolute-path> [--require-active]
295
330
  ```
296
331
 
297
- Snapshot writes v2 JSON to stdout unless `--output` creates a new file. Its
332
+ Verify/snapshot/explain/doctor/hook/hook-config accept explicit `--profile`;
333
+ init does not. Profile selection rejects scope/input-path overrides, but permits
334
+ --config. Verify-only --report requires JSON or Markdown; --git-context additionally
335
+ requires --report and Git with an existing commit. No reports are saved automatically.
336
+
337
+ Snapshot writes JSON to stdout unless `--output` creates a new file: unbound v2/v3
338
+ or project-bound v4, with retention only when explicitly selected. Its
298
339
  `--format` option controls the saved-file acknowledgement when an output path is
299
340
  used. The two `--require-*` policies and `--handoff` are verify-only. Run
300
341
  `handoff-check --help` for the complete option list.