@boyingliu01/xp-gate 0.38.7 → 0.38.9

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.
@@ -91,10 +91,39 @@ if [ -n "$SPRINT_GATE_SCRIPT" ]; then
91
91
  GATE_11_STATUS="SKIP"
92
92
  fi
93
93
  ;;
94
+ deny)
95
+ # #806 G11b: `deny` had no arm. A sprint-gate.sh that printed
96
+ # {"decision":"deny",...} and exited 0 fell into the `*)` fallback below and
97
+ # was journaled PASS -- a gate that said "deny" in plain text was recorded as
98
+ # having passed. sprint-gate.sh's own contract (line 49) is
99
+ # "EXIT: 0 = pass/skip, 1 = block", so deny+exit 0 is a protocol violation;
100
+ # the safe reading of a violated contract is "not allowed". Measured:
101
+ # {"decision":"deny","reason":"delphi-review not APPROVED"} exit 0 -> PASS
102
+ # Every deny in the shipped sprint-gate.sh pairs with exit 1, so this arm is
103
+ # defensive -- it exists for a consumer's older/patching/failing copy, which
104
+ # is exactly the copy a gate cannot inspect.
105
+ GATE_11_STATUS="BLOCK"
106
+ echo "❌ BLOCKED - Gate 11: Sprint Flow (${SPRINT_GATE_DETAIL:-sprint gate denied})"
107
+ echo " sprint-gate.sh reported decision=deny but exited 0; blocking because a"
108
+ echo " deny that contradicts its exit status cannot be treated as consent."
109
+ printf '%s\n' "$SPRINT_GATE_OUTPUT" | sed 's/^/ /'
110
+ record_gate_audit "gate-11" "sprint-flow" "$GATE_11_STATUS" "1" "$GATE_11_START"
111
+ return 1
112
+ ;;
94
113
  *)
95
- # A run that succeeded but said nothing this gate understands. Pass on the exit
96
- # status, but keep the raw output visible rather than inventing a verdict.
97
- echo "✅ PASSED - Gate 11: Sprint Flow (no recognisable decision in the gate output)"
114
+ # #806 G11a: a run that succeeded but said nothing this gate understands.
115
+ # This arm used to print "✅ PASSED - ... (no recognisable decision)" and
116
+ # leave GATE_11_STATUS at PASS, which re-armed exactly the defect #584
117
+ # removed from the `allow` arm one case above: "not evaluated" must never
118
+ # raise PASSED_COUNT. sprint-gate-report.sh states the rule directly --
119
+ # "Only checks-passed licenses a PASS ... Defaulting the other way would
120
+ # reinstate the defect for every consumer who has not re-installed."
121
+ #
122
+ # A gate that produced no readable verdict examined nothing, so it SKIPs and
123
+ # keeps the raw output visible rather than inventing a decision. Exit 1 was
124
+ # already handled above and still BLOCKs, so this does not weaken it.
125
+ GATE_11_STATUS="SKIP"
126
+ echo "⏭️ SKIPPED - Gate 11: Sprint Flow (no recognisable decision in the gate output — not evaluated)"
98
127
  printf '%s\n' "$SPRINT_GATE_OUTPUT" | sed 's/^/ /'
99
128
  ;;
100
129
  esac
@@ -2,6 +2,6 @@
2
2
  "verdict": "PASS",
3
3
  "license_type": "MIT",
4
4
  "sha256": "0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5",
5
- "checked_at": "2026-11-16T16:05:26.675Z",
5
+ "checked_at": "2026-11-16T17:40:18.009Z",
6
6
  "source": "network"
7
7
  }
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Mock layering policy enforcement — Gate M3 of pre-push hook. Ensures integration tests use real implementations for internal dependencies, mock external dependencies, and annotate pending mocks with removal plans. Combines project scope scanning, mock decision engine, and per-file validation into a single pipeline.
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  **Gate M** (incremental mutation testing) + **Gate M2** helpers (test-layer detection used by `src/mock-policy/`). Pre-push quality gate. TypeScript-only; uses Stryker.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boyingliu01/xp-gate",
3
- "version": "0.38.7",
3
+ "version": "0.38.9",
4
4
  "description": "AI-driven development workflow: 6 quality gates + Delphi review + Sprint Flow",
5
5
  "bin": {
6
6
  "xp-gate": "bin/xp-gate.js"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xp-gate",
3
- "version": "0.38.7",
3
+ "version": "0.38.9",
4
4
  "displayName": "XP-Gate",
5
5
  "description": "Extreme Programming quality gates + AI workflow skills for Claude Code. Includes 12 pre-commit gates (Gate 0-11), 8 pre-push gates, Sprint Flow (6 phases), and Delphi multi-expert review (>=90% consensus).",
6
6
  "author": {
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, exactly 3 experts with distinct executable model IDs). Supports design, requirements, and code-walkthrough modes.
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  **6-phase** development pipeline (v2.0 compact redesign, Issue #290): PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE. Phase 3/6 BUILD default build mode is **ralph-loop** (REQ-level iteration, 40-67% token savings vs parallel). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boyingliu01/dsh-plugin-xp-gate",
3
- "version": "0.38.7",
3
+ "version": "0.38.9",
4
4
  "description": "XP-Gate deterministic quality gates + AI workflow skills as a DeepSeek Harness (DSH) native plugin: gate-check / gate-principles / gate-arch tools + 12 SKILL.md skills",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, exactly 3 experts with distinct executable model IDs). Supports design, requirements, and code-walkthrough modes.
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  **6-phase** development pipeline (v2.0 compact redesign, Issue #290): PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE. Phase 3/6 BUILD default build mode is **ralph-loop** (REQ-level iteration, 40-67% token savings vs parallel). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boyingliu01/opencode-plugin",
3
- "version": "0.38.7",
3
+ "version": "0.38.9",
4
4
  "type": "module",
5
5
  "main": "index.ts",
6
6
  "description": "XP-Gate quality gates + AI workflow skills for OpenCode",
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, exactly 3 experts with distinct executable model IDs). Supports design, requirements, and code-walkthrough modes.
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  **6-phase** development pipeline (v2.0 compact redesign, Issue #290): PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE. Phase 3/6 BUILD default build mode is **ralph-loop** (REQ-level iteration, 40-67% token savings vs parallel). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xp-gate",
3
- "version": "0.38.7",
3
+ "version": "0.38.9",
4
4
  "displayName": "XP-Gate",
5
5
  "description": "Extreme Programming quality gates + AI workflow skills for Qoder. Includes 12 pre-commit gates (Gate 0-11), 8 pre-push gates, Sprint Flow (6 phases), and Delphi multi-expert review (>=90% consensus).",
6
6
  "author": {
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, exactly 3 experts with distinct executable model IDs). Supports design, requirements, and code-walkthrough modes.
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  **6-phase** development pipeline (v2.0 compact redesign, Issue #290): PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE. Phase 3/6 BUILD default build mode is **ralph-loop** (REQ-level iteration, 40-67% token savings vs parallel). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Clean Code & SOLID principles checker — **Gate 4** of pre-commit. 14 rules × 9 language adapters, SARIF 2.1.0 output. Houses the **Boy Scout Rule** enforcement engine (Gate 6) and warning-baseline storage.
@@ -117,6 +117,30 @@ function computeSummary(
117
117
  };
118
118
  }
119
119
 
120
+ /**
121
+ * Apply path-scoped severity overrides (#806) to one rule's violations.
122
+ *
123
+ * Applied centrally so no rule has to know about overrides and a new rule cannot
124
+ * forget to honour them. Only the SEVERITY is remapped -- the violation is kept,
125
+ * so "reported but advisory" stays distinguishable from "nothing found".
126
+ *
127
+ * Pulled out of runRuleOnFile to keep that function under the Gate 3 ratchet: the
128
+ * loop pushed it to CCN 8 against a recorded baseline of 6.
129
+ */
130
+ function applySeverityOverrides(
131
+ ruleId: string,
132
+ filePath: string,
133
+ ruleViolations: Violation[]
134
+ ): void {
135
+ for (const violation of ruleViolations) {
136
+ violation.severity = resolveSeverityForFile(
137
+ ruleId,
138
+ violation.file || filePath,
139
+ violation.severity
140
+ ) as Violation['severity'];
141
+ }
142
+ }
143
+
120
144
  function runRuleOnFile(ctx: RunRuleContext): void {
121
145
  const { file, rule, adapter, violations, fileResult, ruleResult, errors } = ctx;
122
146
  // Honour `enabled: false` from `.principlesrc`. Nothing read this flag before
@@ -129,17 +153,7 @@ function runRuleOnFile(ctx: RunRuleContext): void {
129
153
  try {
130
154
  const ruleViolations = rule.check(file, adapter);
131
155
  if (ruleViolations.length > 0) {
132
- // Path-scoped severity overrides (#806), applied centrally so no rule has
133
- // to know about them and a new rule cannot forget to honour them. Only the
134
- // severity is remapped -- the violation is kept, so "reported but advisory"
135
- // stays distinguishable from "nothing found".
136
- for (const violation of ruleViolations) {
137
- violation.severity = resolveSeverityForFile(
138
- rule.id,
139
- violation.file || file,
140
- violation.severity
141
- ) as Violation['severity'];
142
- }
156
+ applySeverityOverrides(rule.id, file, ruleViolations);
143
157
  violations.push(...ruleViolations);
144
158
  fileResult.violations.push(...ruleViolations);
145
159
  fileResult.ruleIds.push(rule.id);
@@ -527,26 +527,47 @@ const SEVERITY_RANK: Record<string, number> = { error: 3, warning: 2, info: 1 };
527
527
  * absolute native path), `*` becomes `[^/]*`, and regex metacharacters are
528
528
  * escaped so a literal `.` in `*.test.ts` does not match `a_test.ts`.
529
529
  */
530
+ const REGEX_METACHARS = '\\^$.|+()[]{}';
531
+
532
+ /**
533
+ * Consume a `**` run starting at `index`, returning the emitted pattern and the
534
+ * index of the last character consumed.
535
+ *
536
+ * Split out of globToRegExp to keep its cyclomatic complexity under the Gate 3
537
+ * block threshold: the double-star form has three sub-cases (bare, with a
538
+ * trailing slash, and at the end) that read as nesting when inlined, and the
539
+ * ratchet blocks new functions above CCN 10.
540
+ */
541
+ function consumeDoubleStar(glob: string, index: number): { emit: string; last: number } {
542
+ let last = index + 1;
543
+ // A trailing slash is consumed too, so the prefix may match zero segments
544
+ // (`src/__tests__/a.ts` matches a pattern ending in that prefix).
545
+ if (glob[last + 1] === '/') last++;
546
+ return { emit: '.*', last };
547
+ }
548
+
549
+ /**
550
+ * Translate a single glob character to its regex fragment, or the character
551
+ * itself when it is literal.
552
+ */
553
+ function globCharToRegExp(ch: string): string {
554
+ if (ch === '*') return '[^/]*';
555
+ if (ch === '?') return '[^/]';
556
+ if (REGEX_METACHARS.includes(ch)) return `\\${ch}`;
557
+ return ch;
558
+ }
559
+
530
560
  function globToRegExp(glob: string): RegExp {
531
561
  let out = '';
532
562
  for (let i = 0; i < glob.length; i++) {
533
563
  const ch = glob[i];
534
- if (ch === '*') {
535
- if (glob[i + 1] === '*') {
536
- out += '.*';
537
- i++;
538
- // `**/` may match zero segments (`src/__tests__/a.ts` for `/src/**`).
539
- if (glob[i + 1] === '/') i++;
540
- } else {
541
- out += '[^/]*';
542
- }
543
- } else if (ch === '?') {
544
- out += '[^/]';
545
- } else if ('\\^$.|+()[]{}'.includes(ch)) {
546
- out += `\\${ch}`;
547
- } else {
548
- out += ch;
564
+ if (ch === '*' && glob[i + 1] === '*') {
565
+ const consumed = consumeDoubleStar(glob, i);
566
+ out += consumed.emit;
567
+ i = consumed.last;
568
+ continue;
549
569
  }
570
+ out += globCharToRegExp(ch);
550
571
  }
551
572
  return new RegExp(`^${out}$`);
552
573
  }
@@ -588,6 +609,19 @@ function matchesGlob(filePath: string, glob: string): boolean {
588
609
  * severity changes, so the "passed with warnings" case stays distinguishable
589
610
  * from "nothing found".
590
611
  */
612
+ /**
613
+ * The rank an override may apply, or undefined when it must be ignored.
614
+ *
615
+ * An override may only RELAX: an unknown severity, or one ranked at least as
616
+ * severe as the declaration, is skipped rather than guessed at. Pulled out of
617
+ * resolveSeverityForFile to keep that function under the Gate 3 block threshold.
618
+ */
619
+ function usableOverrideRank(target: string | undefined, declaredRank: number): number | undefined {
620
+ const targetRank = target === undefined ? undefined : SEVERITY_RANK[target];
621
+ if (targetRank === undefined || targetRank >= declaredRank) return undefined;
622
+ return targetRank;
623
+ }
624
+
591
625
  export function resolveSeverityForFile(
592
626
  ruleId: string,
593
627
  filePath: string,
@@ -599,14 +633,11 @@ export function resolveSeverityForFile(
599
633
  let effective = declaredSeverity;
600
634
  const declaredRank = SEVERITY_RANK[declaredSeverity] ?? 0;
601
635
  for (const entry of overrides) {
602
- const target = entry?.rules?.[ruleId];
603
- if (!target) continue;
604
- const targetRank = SEVERITY_RANK[target];
605
- // Unknown severity or an upward move: ignore rather than guess.
606
- if (targetRank === undefined || targetRank >= declaredRank) continue;
636
+ const targetRank = usableOverrideRank(entry?.rules?.[ruleId], declaredRank);
637
+ if (targetRank === undefined) continue;
607
638
  if (!entry.paths.some(p => matchesGlob(filePath, p))) continue;
608
639
  // A later override may relax further, never tighten back up.
609
- if (targetRank < (SEVERITY_RANK[effective] ?? 0)) effective = target;
640
+ if (targetRank < (SEVERITY_RANK[effective] ?? 0)) effective = entry.rules[ruleId];
610
641
  }
611
642
  return effective;
612
643
  }
@@ -618,6 +649,66 @@ export function resolveSeverityForFile(
618
649
  * either -- both would be the silent-defaults defect this module removes. The
619
650
  * same reasoning as `mergeRule`, applied to a nested structure.
620
651
  */
652
+ /**
653
+ * Validate one override entry's `rules` map, dropping unusable pairs.
654
+ *
655
+ * Extracted from parseOverrides to keep that function under the Gate 3 block
656
+ * threshold: the two per-rule rejections (bad severity, missing group prefix)
657
+ * made it CCN 15.
658
+ */
659
+ function parseOverrideRules(
660
+ rules: Record<string, unknown>,
661
+ index: number,
662
+ source: string
663
+ ): Record<string, string> {
664
+ const cleanRules: Record<string, string> = {};
665
+ for (const [ruleId, severity] of Object.entries(rules)) {
666
+ if (typeof severity !== 'string' || !(SEVERITIES as readonly string[]).includes(severity)) {
667
+ warn(
668
+ `overrides[${index}].rules["${ruleId}"] in ${source} must be one of ${SEVERITIES.join('|')} — ignored`
669
+ );
670
+ continue;
671
+ }
672
+ if (!ruleId.includes('.')) {
673
+ warn(`overrides[${index}].rules["${ruleId}"] in ${source} must be "<group>.<rule>" — ignored`);
674
+ continue;
675
+ }
676
+ cleanRules[ruleId] = severity;
677
+ }
678
+ return cleanRules;
679
+ }
680
+
681
+ /**
682
+ * Validate one `overrides[]` entry, returning it or undefined when unusable.
683
+ *
684
+ * Extracted from parseOverrides so that function is just "loop and collect": the
685
+ * three structural rejections (not an object, bad paths, bad rules) kept it at
686
+ * CCN 11, over the Gate 3 block threshold.
687
+ */
688
+ function parseOverrideEntry(
689
+ entry: unknown,
690
+ index: number,
691
+ source: string
692
+ ): SeverityOverride | undefined {
693
+ if (!isPlainObject(entry)) {
694
+ warn(`overrides[${index}] in ${source} must be an object — ignored`);
695
+ return undefined;
696
+ }
697
+ const paths = entry.paths;
698
+ if (!Array.isArray(paths) || paths.length === 0 || paths.some(p => typeof p !== 'string')) {
699
+ warn(`overrides[${index}].paths in ${source} must be a non-empty string array — ignored`);
700
+ return undefined;
701
+ }
702
+ const rules = entry.rules;
703
+ if (!isPlainObject(rules) || Object.keys(rules).length === 0) {
704
+ warn(`overrides[${index}].rules in ${source} must be a non-empty object — ignored`);
705
+ return undefined;
706
+ }
707
+ const cleanRules = parseOverrideRules(rules, index, source);
708
+ if (Object.keys(cleanRules).length === 0) return undefined;
709
+ return { paths: paths as string[], rules: cleanRules };
710
+ }
711
+
621
712
  function parseOverrides(raw: unknown, source: string): SeverityOverride[] {
622
713
  if (raw === undefined) return [];
623
714
  if (!Array.isArray(raw)) {
@@ -626,36 +717,8 @@ function parseOverrides(raw: unknown, source: string): SeverityOverride[] {
626
717
  }
627
718
  const out: SeverityOverride[] = [];
628
719
  for (const [index, entry] of raw.entries()) {
629
- if (!isPlainObject(entry)) {
630
- warn(`overrides[${index}] in ${source} must be an object — ignored`);
631
- continue;
632
- }
633
- const paths = entry.paths;
634
- if (!Array.isArray(paths) || paths.length === 0 || paths.some(p => typeof p !== 'string')) {
635
- warn(`overrides[${index}].paths in ${source} must be a non-empty string array — ignored`);
636
- continue;
637
- }
638
- const rules = entry.rules;
639
- if (!isPlainObject(rules) || Object.keys(rules).length === 0) {
640
- warn(`overrides[${index}].rules in ${source} must be a non-empty object — ignored`);
641
- continue;
642
- }
643
- const cleanRules: Record<string, string> = {};
644
- for (const [ruleId, severity] of Object.entries(rules)) {
645
- if (typeof severity !== 'string' || !(SEVERITIES as readonly string[]).includes(severity)) {
646
- warn(
647
- `overrides[${index}].rules["${ruleId}"] in ${source} must be one of ${SEVERITIES.join('|')} — ignored`
648
- );
649
- continue;
650
- }
651
- if (!ruleId.includes('.')) {
652
- warn(`overrides[${index}].rules["${ruleId}"] in ${source} must be "<group>.<rule>" — ignored`);
653
- continue;
654
- }
655
- cleanRules[ruleId] = severity;
656
- }
657
- if (Object.keys(cleanRules).length === 0) continue;
658
- out.push({ paths: paths as string[], rules: cleanRules });
720
+ const parsed = parseOverrideEntry(entry, index, source);
721
+ if (parsed) out.push(parsed);
659
722
  }
660
723
  return out;
661
724
  }
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, exactly 3 experts with distinct executable model IDs). Supports design, requirements, and code-walkthrough modes.
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  **6-phase** development pipeline (v2.0 compact redesign, Issue #290): PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE. Phase 3/6 BUILD default build mode is **ralph-loop** (REQ-level iteration, 40-67% token savings vs parallel). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
@@ -3,7 +3,7 @@
3
3
  **Generated:** 2026-11-04
4
4
  **Commit:** eb2097b0
5
5
  **Branch:** sprint/2026-11-03-02
6
- **Version:** 0.38.7.0
6
+ **Version:** 0.38.9.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.