@oscaner-skills/cdd-engine 4.9.0 → 4.10.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.
@@ -39,7 +39,7 @@ var _a;
39
39
  /** The review-cycle soft cap — the consecutive-S1 run length at which the fix face
40
40
  * defers the next hop to user adjudication (soft by nature: a default suggestion,
41
41
  * never a hard stop — the user / the plan write authority override it). */
42
- export const REVIEW_CYCLE_CAP = 50;
42
+ export const REVIEW_CYCLE_CAP = 80;
43
43
  /** The wave-width ceiling (design spec §6) — at most this many tasks per dispatch wave.
44
44
  * Declared once on the contract plane (`contract/wave-width.ts`), so the plan-scope
45
45
  * rule reads it without importing this session plane, and re-exported here as the
@@ -51,4 +51,19 @@ export class ReviewedIdentity {
51
51
  return "branch";
52
52
  return null;
53
53
  }
54
+ /** Whether one binding phase is gated by the round's own-bytes measurement
55
+ * (`touchedDoc`) — the second half of this file's one judgment: `legOf` says WHICH
56
+ * leg a completed round writes, this says whether that leg is CONDITIONAL.
57
+ *
58
+ * The split's ground is whether the phase is EXPECTED to rewrite the document it
59
+ * judges: a `fix` is (so an untouched claim keeps the old binding and the next
60
+ * review reports drift), a `review` / `branch-review` is not (its job is to
61
+ * conclude on existing bytes, so a completed conclusion binds them — otherwise
62
+ * every review leaves no trace and the line is dispatched forever). `implement`
63
+ * binds nothing (`legOf` answers null), so its answer never applies.
64
+ *
65
+ * Pure: it reads the phase and nothing else. */
66
+ static gatedByTouchedDoc(phase) {
67
+ return phase === "fix";
68
+ }
54
69
  }
@@ -532,13 +532,19 @@ export class Lifecycle {
532
532
  // record methods keep their own defensive narrowing; an unreadable input records
533
533
  // nothing (present facts only).
534
534
  //
535
- // P31 §2.7 — the bind is conditional on the round's OWN bytes: a READABLE range
536
- // that touched the document not at all (`false`) keeps the OLD binding, so the
537
- // existing drift / reopen face pushes the line back to review instead of silently
538
- // closing it on bytes the round never delivered. `true`, `null` (unmeasurable —
539
- // its soft entry is booked above) and `undefined` (hermetic / injected dispatchers)
540
- // keep today's bind.
541
- const leg = record.verdict.targetAction && outcome.touchedDoc !== false
535
+ // P31 §2.7 — the bind is conditional on the round's OWN bytes, but ONLY where the
536
+ // phase is expected to produce those bytes (P32 §2.1): a READABLE range that
537
+ // touched the document not at all (`false`) keeps the OLD binding on a `fix` round,
538
+ // so the existing drift / reopen face pushes the line back to review instead of
539
+ // silently closing it on bytes the round never delivered. A `review` /
540
+ // `branch-review` is not gated: its job is to conclude on bytes it does not write,
541
+ // and a completed conclusion must bind them or the drift identity never closes.
542
+ // WHICH phases are gated is the judgment's own cell
543
+ // (`ReviewedIdentity.gatedByTouchedDoc`), beside the leg decision; `true`, `null`
544
+ // (unmeasurable — its soft entry is booked above) and `undefined` (hermetic /
545
+ // injected dispatchers) keep today's bind.
546
+ const leg = record.verdict.targetAction &&
547
+ (!ReviewedIdentity.gatedByTouchedDoc(frame.phase) || outcome.touchedDoc !== false)
542
548
  ? ReviewedIdentity.legOf(frame.phase, frame.target.kind)
543
549
  : null;
544
550
  if (leg !== null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscaner-skills/cdd-engine",
3
- "version": "4.9.0",
3
+ "version": "4.10.0",
4
4
  "description": "CDD engine CLIs: task runner, docs reviewer, branch reviewer, harness selector.",
5
5
  "type": "module",
6
6
  "engines": {
@@ -19,7 +19,7 @@
19
19
  "cdd": "./dist/bin.js"
20
20
  },
21
21
  "dependencies": {
22
- "commander": "^15.0.0",
22
+ "commander": "^15.1.0",
23
23
  "execa": "^10.2.1",
24
24
  "jsonc-parser": "^3.3.1",
25
25
  "mdast-util-from-markdown": "^2.1.0",
@@ -38,7 +38,7 @@
38
38
  "@types/proper-lockfile": "^4.1.4",
39
39
  "@types/write-file-atomic": "^4.0.3",
40
40
  "typescript": "^7.0.2",
41
- "vitest": "^5.0.5"
41
+ "vitest": "^5.1.0"
42
42
  },
43
43
  "repository": {
44
44
  "type": "git",