handoff-check 0.4.0 → 0.5.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 +8 -0
- package/README.md +31 -12
- package/dist/cli.js +560 -198
- package/docs/agent-integration.md +7 -6
- package/docs/architecture.md +6 -0
- package/docs/decisions/0005-local-diagnostics-and-lifecycle.md +73 -0
- package/docs/development-plan.md +9 -2
- package/docs/explainability.md +5 -5
- package/docs/first-check.md +6 -6
- package/docs/lifecycle.md +99 -0
- package/docs/releasing.md +4 -4
- package/docs/roadmap.md +4 -0
- package/package.json +1 -1
- package/skills/handoff-check/SKILL.md +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
- Add read-only doctor diagnostics for project inputs, versions, paths and integrations.
|
|
6
|
+
- Add stdout-only hook-config for explicit, non-overwriting Claude SessionStart setup.
|
|
7
|
+
- Add a bounded local advisory lifecycle adapter using the existing verifier.
|
|
8
|
+
- Document host capabilities, local-package prerequisites and fresh critical-action checks.
|
|
9
|
+
- Preserve verify/snapshot/explain contracts; never automatically refresh baselines.
|
|
10
|
+
|
|
3
11
|
## 0.4.0
|
|
4
12
|
|
|
5
13
|
- 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.
|
|
6
|
+
**Version: 0.5.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.
|
|
22
|
-
npx handoff-check@0.
|
|
21
|
+
npx handoff-check@0.5.0 init --scope staging --agent both --dry-run
|
|
22
|
+
npx handoff-check@0.5.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.
|
|
36
|
+
npx handoff-check@0.5.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.
|
|
45
|
+
available: `npm install --global handoff-check@0.5.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.
|
|
68
|
+
npx handoff-check@0.5.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.
|
|
87
|
-
npx handoff-check@0.
|
|
86
|
+
npx handoff-check@0.5.0 snapshot --task "Resume migration review" --output handoff.next.json
|
|
87
|
+
npx handoff-check@0.5.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.
|
|
110
|
-
npx handoff-check@0.
|
|
111
|
-
npx handoff-check@0.
|
|
109
|
+
npx handoff-check@0.5.0 explain --format markdown
|
|
110
|
+
npx handoff-check@0.5.0 snapshot --task "Review migration" --include-content --output handoff.reviewed.json
|
|
111
|
+
npx handoff-check@0.5.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,
|
|
@@ -152,13 +152,25 @@ or revisioned v2 manifests. Scope must match the v2 handoff's saved scope.
|
|
|
152
152
|
Review current rules, capture a new v2 baseline, and deliberately update the saved
|
|
153
153
|
handoff. Existing inputs are preserved by init, not silently upgraded. Review
|
|
154
154
|
installed skills, instruction blocks and CI commands to update their pinned
|
|
155
|
-
version to 0.
|
|
155
|
+
version to 0.5.0 and add `--require-content`. Init refuses to overwrite differing
|
|
156
156
|
integrations; compare them with the new packaged templates and update reviewed
|
|
157
157
|
copies explicitly. Never refresh before checking resumed work or reuse capturedAt
|
|
158
158
|
as the clock for real resumed work.
|
|
159
159
|
|
|
160
160
|
## Configuration and initialization
|
|
161
161
|
|
|
162
|
+
For read-only installation diagnostics, run `npx handoff-check@0.5.0 doctor`.
|
|
163
|
+
`doctor --format json` reports paths, supported input versions and managed
|
|
164
|
+
integration pins. Its exit codes are 0 healthy, 1 attention and 2 invalid invocation;
|
|
165
|
+
it does not verify a handoff or prove a host ran the integration.
|
|
166
|
+
|
|
167
|
+
`npx handoff-check@0.5.0 hook-config --host claude` emits an opt-in advisory
|
|
168
|
+
SessionStart snippet to merge manually into existing settings. It never overwrites
|
|
169
|
+
settings, and requires a pinned project-local package. The local adapter uses the
|
|
170
|
+
same verifier without network/model calls; startup/resume/clear/compact checks
|
|
171
|
+
cannot authorize or block deployment. Codex/Cursor adapters are not shipped.
|
|
172
|
+
See [lifecycle setup, host matrix and critical-action recipes](docs/lifecycle.md).
|
|
173
|
+
|
|
162
174
|
`verify` reads only `.handoff-check.json` in the current directory by default,
|
|
163
175
|
without searching parents. Missing implicit config falls back to default input
|
|
164
176
|
names, but scope is still required. Explicit `--config <path>` must exist.
|
|
@@ -292,6 +304,13 @@ handoff-check explain
|
|
|
292
304
|
|
|
293
305
|
handoff-check init --scope <scope>
|
|
294
306
|
[--agent codex|claude|both|none] [--dry-run] [--ci] [--format text|json]
|
|
307
|
+
|
|
308
|
+
handoff-check doctor
|
|
309
|
+
[--config <path>] [--constraints <path>] [--handoff <path>] [--scope <scope>]
|
|
310
|
+
[--host claude|codex|cursor] [--format text|json]
|
|
311
|
+
|
|
312
|
+
handoff-check hook-config --host claude [--require-active]
|
|
313
|
+
handoff-check hook --host claude --config <absolute-path> [--require-active]
|
|
295
314
|
```
|
|
296
315
|
|
|
297
316
|
Snapshot writes v2 JSON to stdout unless `--output` creates a new file. Its
|