@afokapu/atdd-bun 0.10.64 → 0.10.65

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/integrity.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.10.64",
2
+ "version": "0.10.65",
3
3
  "files": {
4
4
  "HOOK_AUDIT.md": "5329d840db37671b1918f688ead26865473b87db73dbc75f7c8b2a8bbe8d6d43",
5
5
  "PLANNER_PORT.md": "fb5935bac8b7ac18994de21e43ace3a5ef8cd55f85b0e3349fca261280054f11",
@@ -1269,7 +1269,7 @@
1269
1269
  "src/planner-schema-validator.ts": "ce529c0936171075e93c7539b3655fe895a98dd2973ebda5775958e6ebc316d9",
1270
1270
  "src/planner-validators.ts": "99adeb65f579af923c11f21a8f55cfb9993b007fd8df59c5f764696b55379cfc",
1271
1271
  "src/profile-registry.ts": "5a7761d324181ae27deb51f198d63648a4c99e858b4de98b54d35e6cf8a39fe7",
1272
- "src/ratchet.ts": "801038b182615ed883197e0e29c98da9ac5f81bf4db4eb36b989065e32c99b6b",
1272
+ "src/ratchet.ts": "909b47124863287cbf6b02237b70fd50d82522d5029b2ae900c371d2ea2287a2",
1273
1273
  "src/register.ts": "6a2f1c6b8df0dc9c8f45df8ec9fac2be29044e048b08c8ffe423410e94dadedd",
1274
1274
  "src/release.ts": "7b0fe444ee81f476f53b9c21b6c347ef588ee616c60211419cf984132be768ba",
1275
1275
  "src/setup.ts": "c6804f699808c01a849ea46489b0e9feab7991da4cb62a29edd439423e0a88c0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afokapu/atdd-bun",
3
- "version": "0.10.64",
3
+ "version": "0.10.65",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/afokapu/atdd-bun.git"
package/src/ratchet.ts CHANGED
@@ -41,15 +41,17 @@ export function findingFingerprint(finding: FindingIdentity): string {
41
41
  return sha256({ format: "atdd-bun.finding-fingerprint/v1", rule_id: finding.rule_id, path, subject });
42
42
  }
43
43
 
44
- /** The selected profiles and every policy key except ratchet itself must agree across exact base and candidate. */
44
+ /** The selected profiles and every policy key except ratchet itself must agree across exact base and candidate.
45
+ * `worktrees` is finding-inert (read only by the hook worktree gate and worktree commands) and is omitted; configs
46
+ * without it keep byte-identical v1 digests. Integrity still reports its loosening. */
45
47
  export function contextDigest(config: Record<string, unknown>, profiles: string[]): string {
46
- const { ratchet: _ratchet, ...policy } = config;
48
+ const { ratchet: _ratchet, worktrees: _worktrees, ...policy } = config;
47
49
  return sha256({ format: "atdd-bun.ratchet-context/v1", profiles: [...profiles].sort(), policy });
48
50
  }
49
51
 
50
52
  /** Activation is a one-time, explicitly requested profile-list expansion; every other policy input remains identical. */
51
53
  export function activationContextDigest(config: Record<string, unknown>): string {
52
- const { ratchet: _ratchet, profiles: _profiles, ...policy } = config;
54
+ const { ratchet: _ratchet, profiles: _profiles, worktrees: _worktrees, ...policy } = config;
53
55
  return sha256({ format: "atdd-bun.ratchet-activation-context/v1", policy });
54
56
  }
55
57