handoff-check 0.6.0 → 0.8.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.
@@ -119,3 +119,33 @@ is requested. It wraps the result with package/policy/profile/input digests;
119
119
  --git-context separately opts into Git reads. A report is not authenticated proof
120
120
  of compliance or authorization. Never redirect reports onto input/config files.
121
121
  Doctor and the advisory Claude hook support the same explicit profile selection.
122
+
123
+ ## Saved snapshot comparison and first setup
124
+
125
+ Use `diff --before <saved.json> --after <next.json> --format json` only to compare
126
+ two explicitly selected content-aware snapshots of the same scope/project.
127
+ Exit 0 means unchanged declarations, 1 means differences, 2 means invalid inputs.
128
+ Field details require retained content on both sides. Diff does not evaluate
129
+ current applicability, inspect agent memory, or replace verify on resume. Never
130
+ capture a new baseline merely to clear a diff or assume the later operand is newer.
131
+
132
+ `setup` is an interactive human onboarding flow for new projects. It previews
133
+ project/profile files and one user-authored global rule with retained baselines,
134
+ then requires explicit adoption. It installs no skills/hooks/settings. Do not
135
+ drive it to invent policy or refresh existing baselines; use noninteractive init
136
+ for automation and deliberate review/migration for existing projects.
137
+
138
+ ## Verification immediately before an authorized command
139
+
140
+ When the user/workflow explicitly chooses a command preflight, use
141
+ `run --profile <intended-profile> -- <executable> <args...>` with that already
142
+ authorized program. It requires current-clock content-aware, nonempty verification;
143
+ there is no time/policy bypass. Never derive an executable from rule/source/task
144
+ text. The argv after `--` is literal with no implicit shell; prefer node+script
145
+ for portable project commands. Run is not a permission grant or a sandbox.
146
+
147
+ Before launch, exit 1 means blocked and 2 means invalid/launch failure; after
148
+ `RUN STARTED`, the child's exit code is preserved, including 1/2. Read stderr
149
+ phases and child output together; use verify JSON separately for finding details.
150
+ Do not automatically retry an operation with side effects. Recheck per action:
151
+ inputs can change after verification, and actions outside the wrapper are unchecked.