@boyingliu01/xp-gate 0.37.1 → 0.37.3

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.
Files changed (32) hide show
  1. package/gates/common-process.ts +36 -7
  2. package/gates/gate-9.ts +17 -8
  3. package/gates/python-health.ts +177 -24
  4. package/lib/mattpocock-license-verdict.json +1 -1
  5. package/mock-policy/AGENTS.md +1 -1
  6. package/mutation/AGENTS.md +1 -1
  7. package/package.json +1 -1
  8. package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
  9. package/plugins/claude-code/skills/delphi-review/AGENTS.md +1 -1
  10. package/plugins/claude-code/skills/sprint-flow/AGENTS.md +1 -1
  11. package/plugins/claude-code/skills/sprint-flow/references/phase-5-ship.md +6 -2
  12. package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +2 -2
  13. package/plugins/dsh/package.json +1 -1
  14. package/plugins/dsh/skills/delphi-review/AGENTS.md +1 -1
  15. package/plugins/dsh/skills/sprint-flow/AGENTS.md +1 -1
  16. package/plugins/dsh/skills/sprint-flow/references/phase-5-ship.md +6 -2
  17. package/plugins/dsh/skills/test-specification-alignment/AGENTS.md +2 -2
  18. package/plugins/opencode/package.json +1 -1
  19. package/plugins/opencode/skills/delphi-review/AGENTS.md +1 -1
  20. package/plugins/opencode/skills/sprint-flow/AGENTS.md +1 -1
  21. package/plugins/opencode/skills/sprint-flow/references/phase-5-ship.md +6 -2
  22. package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +2 -2
  23. package/plugins/qoder/plugin.json +1 -1
  24. package/plugins/qoder/skills/delphi-review/AGENTS.md +1 -1
  25. package/plugins/qoder/skills/sprint-flow/AGENTS.md +1 -1
  26. package/plugins/qoder/skills/sprint-flow/references/phase-5-ship.md +6 -2
  27. package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +2 -2
  28. package/principles/AGENTS.md +1 -1
  29. package/skills/delphi-review/AGENTS.md +1 -1
  30. package/skills/sprint-flow/AGENTS.md +1 -1
  31. package/skills/sprint-flow/references/phase-5-ship.md +6 -2
  32. package/skills/test-specification-alignment/AGENTS.md +2 -2
@@ -29,12 +29,6 @@ export interface PowerShellInfo {
29
29
 
30
30
  // ── Tool Detection ──
31
31
 
32
- /**
33
- * Cross-platform tool detection with 3-tier fallback:
34
- * 1. PATH lookup (command -v equivalent)
35
- * 2. npx fallback (for npm-installed tools)
36
- * 3. Custom path (~/.local/bin/ on Unix)
37
- */
38
32
  /** Tier 1: PATH lookup. */
39
33
  function probeToolPath(tool: string): ToolAvailability {
40
34
  const whichCmd = process.platform === 'win32' ? 'where' : 'which';
@@ -47,8 +41,34 @@ function probeToolPath(tool: string): ToolAvailability {
47
41
  return { available: false, path: '', via: 'none' };
48
42
  }
49
43
 
50
- /** Tier 2: npx fallback (check if tool is available via npx). */
44
+ /**
45
+ * Is the npx fallback probe enabled?
46
+ *
47
+ * `probeToolNpx` answers "is this tool installed?" by running
48
+ * `npx --yes <tool> --version`. `--yes` means "do not ask, just download and
49
+ * install it" — so to answer a question about the LOCAL environment, XP-Gate
50
+ * could reach the npm registry, download a whole package, and execute it. On
51
+ * this machine that costs 4-6 s per tool, hangs for the full 15 s timeout when
52
+ * offline, and installs packages on someone else's machine without asking.
53
+ *
54
+ * That is the wrong default for a quality gate, so it is OFF unless explicitly
55
+ * requested. Measured on this machine (2026-11-09): the probe is the single
56
+ * largest avoidable per-tool cost, and every tool this repo's gates use
57
+ * (semgrep, lizard, gitleaks, mypy, ruff) is normally on PATH anyway.
58
+ *
59
+ * Setting `XP_GATE_NPX_PROBE=1` restores the old behaviour for projects that
60
+ * deliberately rely on npx-provided tooling (typically CI).
61
+ */
62
+ function npxProbeEnabled(): boolean {
63
+ const raw = process.env.XP_GATE_NPX_PROBE;
64
+ if (raw === undefined) return false;
65
+ const v = raw.trim().toLowerCase();
66
+ return v === '1' || v === 'true' || v === 'yes';
67
+ }
68
+
69
+ /** Tier 2: npx fallback. No-op unless `XP_GATE_NPX_PROBE=1` (see npxProbeEnabled). */
51
70
  function probeToolNpx(tool: string, cwd?: string): ToolAvailability {
71
+ if (!npxProbeEnabled()) return { available: false, path: '', via: 'none' };
52
72
  try {
53
73
  const npxCheck = spawnSync('npx', ['--yes', tool, '--version'], {
54
74
  encoding: 'utf-8',
@@ -63,6 +83,15 @@ function probeToolNpx(tool: string, cwd?: string): ToolAvailability {
63
83
  return { available: false, path: '', via: 'none' };
64
84
  }
65
85
 
86
+ /**
87
+ * Cross-platform tool detection with 3-tier fallback:
88
+ * 1. PATH lookup (command -v equivalent)
89
+ * 2. npx fallback (for npm-installed tools) — OPT-IN, see npxProbeEnabled()
90
+ * 3. Custom path (~/.local/bin/ on Unix)
91
+ *
92
+ * Tier 2 is skipped unless `XP_GATE_NPX_PROBE=1`, because it installs packages
93
+ * to answer a question about the local environment.
94
+ */
66
95
  export function isToolAvailable(tool: string, cwd?: string): ToolAvailability {
67
96
  // Tier 1: PATH lookup
68
97
  const pathProbe = probeToolPath(tool);
package/gates/gate-9.ts CHANGED
@@ -3,6 +3,13 @@
3
3
  * Detects security vulnerabilities in staged files.
4
4
  * For PowerShell projects: uses PSScriptAnalyzer security rules as alternative.
5
5
  * TypeScript rewrite of githooks/adapters/gate-9.sh for cross-platform Node.js CLI.
6
+ *
7
+ * Ordering (#782, P0-A): the change set is filtered to semgrep-supported files
8
+ * BEFORE the tool is probed. The reverse order made a change set with nothing to
9
+ * scan pay for `isToolAvailable('semgrep')` first — and with the old npx fallback
10
+ * that probe could reach the registry and download semgrep — purely to then decide
11
+ * there was no input. Measured 2026-11-09, no-input fixture: 789 ms -> 624 ms
12
+ * (-21.0%, 12-round load-valid ABBA).
6
13
  */
7
14
  import {
8
15
  GateInput, GateOutput, isToolAvailable, runTool, recordAudit,
@@ -43,6 +50,16 @@ export function runGate9(input: GateInput): GateOutput {
43
50
  return runPowerShellSAST(input, startMs, messages);
44
51
  }
45
52
 
53
+ // Filter to semgrep-supported language files FIRST (#782, P0-A). The input
54
+ // question is free; the tool question is not, so it must be asked second.
55
+ // See the module header for the measurement behind this ordering.
56
+ const semgrepFiles = filterSemgrepFiles(input.changedFiles);
57
+ if (semgrepFiles.length === 0) {
58
+ messages.push(' ⏭️ SKIPPED - SAST (no supported language files changed)');
59
+ recordAudit('gate-9', 'sast-security', 'SKIP', 0, startMs);
60
+ return { status: 'SKIP', messages, exitCode: 0 };
61
+ }
62
+
46
63
  // Standard path: semgrep
47
64
  const tool = isToolAvailable('semgrep', input.cwd);
48
65
  if (!tool.available) {
@@ -57,14 +74,6 @@ export function runGate9(input: GateInput): GateOutput {
57
74
  const semgrepCmd = tool.via === 'npx' ? 'npx' : tool.path;
58
75
  const semgrepArgs = tool.via === 'npx' ? ['-y', 'semgrep'] : [];
59
76
 
60
- // Filter to semgrep-supported language files
61
- const semgrepFiles = filterSemgrepFiles(input.changedFiles);
62
- if (semgrepFiles.length === 0) {
63
- messages.push(' ⏭️ SKIPPED - SAST (no supported language files changed)');
64
- recordAudit('gate-9', 'sast-security', 'SKIP', 0, startMs);
65
- return { status: 'SKIP', messages, exitCode: 0 };
66
- }
67
-
68
77
  // Run semgrep with JSON output. Fixed overhead per run is the point of #640 --
69
78
  // see SEMGREP_EXTRA_ARGS.
70
79
  semgrepArgs.push('scan', `--config=${SEMGREP_RULESET}`, '--json', ...SEMGREP_EXTRA_ARGS, ...semgrepFiles);
@@ -8,6 +8,8 @@
8
8
  import {
9
9
  isToolAvailable, runTool,
10
10
  } from './common';
11
+ import fs from 'fs';
12
+ import path from 'path';
11
13
 
12
14
  // ── Types ──
13
15
 
@@ -18,6 +20,11 @@ export interface PythonHealthResult {
18
20
  environment: { type: 'system' | 'venv' | 'conda' | 'pyenv' | 'uv'; path: string | null };
19
21
  tools: Array<{ name: string; available: boolean; version: string; required: boolean }>;
20
22
  issues: string[];
23
+ /**
24
+ * Whether the project showed any Python signal. When false, `tools` entries were
25
+ * NOT probed and must not be read as "not installed" (#782 / REQ-GATE-PROBE-SHORTCUT).
26
+ */
27
+ toolProbesRan: boolean;
21
28
  }
22
29
 
23
30
  // ── Python Tool Registry (sync with language-tools.js LANGUAGE_REGISTRY.python) ──
@@ -25,6 +32,99 @@ export interface PythonHealthResult {
25
32
  const PYTHON_REQUIRED_TOOLS = ['mypy', 'pytest'];
26
33
  const PYTHON_OPTIONAL_TOOLS = ['ruff', 'flake8', 'black'];
27
34
 
35
+ // ── Python Signal Detection ──
36
+
37
+ /**
38
+ * Files whose presence declares "this is a Python project", independent of whether
39
+ * any `.py` file currently exists. A freshly-scaffolded project, or one whose
40
+ * Python sources are generated/ignored, still needs its tool diagnostics.
41
+ */
42
+ const PYTHON_MARKER_FILES = [
43
+ 'pyproject.toml',
44
+ 'requirements.txt',
45
+ 'requirements-dev.txt',
46
+ 'setup.py',
47
+ 'setup.cfg',
48
+ 'Pipfile',
49
+ 'poetry.lock',
50
+ 'uv.lock',
51
+ '.python-version',
52
+ ];
53
+
54
+ /** Directories never worth walking when looking for a `.py` file. */
55
+ const SIGNAL_SKIP_DIRS = new Set([
56
+ 'node_modules', '.git', '.venv', 'venv', '__pycache__',
57
+ '.stryker-tmp', 'dist', 'build', '.tox', '.mypy_cache', '.pytest_cache',
58
+ ]);
59
+
60
+ const SIGNAL_MAX_DEPTH = 4;
61
+ const SIGNAL_MAX_ENTRIES = 5000;
62
+
63
+ /**
64
+ * Does this project show any sign of being Python at all?
65
+ *
66
+ * This exists to answer the ONE question that must be asked BEFORE paying for
67
+ * tool probes: "is there anything here for Python tooling to check?" On a
68
+ * JavaScript/TypeScript project the answer is no, yet `checkPythonHealth` used to
69
+ * probe mypy/pytest/ruff/flake8/black anyway — measured 3.2 s on this repo, where
70
+ * those probes cannot possibly produce information about the code.
71
+ *
72
+ * The predicate is deliberately BROAD (marker file OR any `.py` file OR a Python
73
+ * venv directory), because the failure mode of a too-narrow predicate is
74
+ * "claimed to check Python, checked nothing" — the worst defect class in this
75
+ * repo. A false positive only costs the old behaviour.
76
+ *
77
+ * Note on scope: this is a signal about the PROJECT, not about the change set —
78
+ * the right question here, because python-health reports environment health rather
79
+ * than scanning specific files. A project with ANY Python anywhere (this repo has
80
+ * a real `tests/*.py` suite plus `githooks/lib/prepush-score.py`) correctly keeps
81
+ * full diagnostics. The saving lands on genuinely single-language consumer
82
+ * projects, which is the common case and the one the measurement fixture models.
83
+ * Gitignored scratch trees cannot trigger it: any dot-directory is skipped.
84
+ *
85
+ * @param cwd project root to inspect; defaults to process.cwd()
86
+ */
87
+ export function hasPythonSignal(cwd?: string): boolean {
88
+ const root = cwd || process.cwd();
89
+
90
+ for (const marker of PYTHON_MARKER_FILES) {
91
+ try {
92
+ if (fs.existsSync(path.join(root, marker))) return true;
93
+ } catch { /* unreadable root → fall through to the walk */ }
94
+ }
95
+
96
+ // Virtualenv directories are themselves a Python project signal even with no
97
+ // marker file (common for `python -m venv .venv`-only setups).
98
+ for (const venv of ['.venv', 'venv']) {
99
+ try {
100
+ if (fs.existsSync(path.join(root, venv))) return true;
101
+ } catch { /* ignore */ }
102
+ }
103
+
104
+ let seen = 0;
105
+ const walk = (dir: string, depth: number): boolean => {
106
+ if (depth > SIGNAL_MAX_DEPTH || seen > SIGNAL_MAX_ENTRIES) return false;
107
+ let entries: import('fs').Dirent[];
108
+ try {
109
+ entries = fs.readdirSync(dir, { withFileTypes: true });
110
+ } catch {
111
+ return false;
112
+ }
113
+ for (const entry of entries) {
114
+ if (seen++ > SIGNAL_MAX_ENTRIES) return false;
115
+ if (entry.isDirectory()) {
116
+ if (SIGNAL_SKIP_DIRS.has(entry.name) || entry.name.startsWith('.')) continue;
117
+ if (walk(path.join(dir, entry.name), depth + 1)) return true;
118
+ } else if (entry.name.endsWith('.py')) {
119
+ return true;
120
+ }
121
+ }
122
+ return false;
123
+ };
124
+
125
+ return walk(root, 0);
126
+ }
127
+
28
128
  // ── Python Detection ──
29
129
 
30
130
  /**
@@ -172,8 +272,65 @@ function checkPythonTool(
172
272
  return { name, available: false, version: '' };
173
273
  }
174
274
 
275
+ /**
276
+ * Build the "never probed" tool list.
277
+ *
278
+ * The report SHAPE must not change when the probes are skipped: every tool is
279
+ * still listed, just as not-probed rather than probed-and-missing. Returning an
280
+ * empty array would be a silent lie to any consumer that counts tools.
281
+ */
282
+ function unprobedTools(): PythonHealthResult['tools'] {
283
+ const entry = (name: string, required: boolean) => ({ name, available: false, version: '', required });
284
+ return [
285
+ ...PYTHON_REQUIRED_TOOLS.map(n => entry(n, true)),
286
+ ...PYTHON_OPTIONAL_TOOLS.map(n => entry(n, false)),
287
+ ];
288
+ }
289
+
290
+ /**
291
+ * Resolve the Python tool list, honouring the input short-circuit (#782, P0-A).
292
+ *
293
+ * Probing mypy/pytest/ruff/flake8/black costs ~2.6 s of subprocess starts
294
+ * (measured on this machine: 547+550+291+807+394 ms) and tells you nothing about
295
+ * a project with no Python in it. The signal question is free, so it goes first.
296
+ */
297
+ function resolvePythonTools(
298
+ pythonExe: string,
299
+ cwd: string | undefined,
300
+ pythonSignal: boolean,
301
+ ): { tools: PythonHealthResult['tools']; missingRequired: PythonHealthResult['tools'] } {
302
+ const tools = pythonSignal ? checkTools(pythonExe, cwd) : unprobedTools();
303
+ return { tools, missingRequired: tools.filter(t => t.required && !t.available) };
304
+ }
305
+
175
306
  // ── Main Health Check ──
176
307
 
308
+ /**
309
+ * Check the Python version, pip, and virtualenv, appending an issue for each
310
+ * one that is missing or below minimum.
311
+ */
312
+ function inspectEnvironment(
313
+ python: { exe: string; version: string },
314
+ cwd: string | undefined,
315
+ issues: string[],
316
+ ): { pip: PythonHealthResult['pip']; environment: PythonHealthResult['environment'] } {
317
+ if (!checkPythonVersion(python.version)) {
318
+ issues.push(`Python ${python.version} < 3.8.0 minimum. Upgrade recommended.`);
319
+ }
320
+
321
+ const pip = detectPip(python.exe);
322
+ if (!pip.available) {
323
+ issues.push(`pip not available. Install: ${python.exe} -m ensurepip`);
324
+ }
325
+
326
+ const environment = detectEnvironment(cwd);
327
+ if (environment.type === 'system') {
328
+ issues.push('No virtual environment detected. Consider using venv/conda/uv.');
329
+ }
330
+
331
+ return { pip, environment };
332
+ }
333
+
177
334
  /**
178
335
  * Run comprehensive Python environment health check.
179
336
  */
@@ -191,38 +348,32 @@ export function checkPythonHealth(cwd?: string): PythonHealthResult {
191
348
  environment: { type: 'system', path: null },
192
349
  tools: [],
193
350
  issues,
351
+ // Python itself is absent, so no tool could have been probed.
352
+ toolProbesRan: false,
194
353
  };
195
354
  }
196
355
 
197
- // 2. Check version
198
- if (!checkPythonVersion(python.version)) {
199
- issues.push(`Python ${python.version} < 3.8.0 minimum. Upgrade recommended.`);
200
- }
356
+ // 2-4. Version, pip, and virtualenv — each appends its own issue if unhappy.
357
+ const { pip, environment } = inspectEnvironment(python, cwd, issues);
201
358
 
202
- // 3. Detect pip
203
- const pip = detectPip(python.exe);
204
- if (!pip.available) {
205
- issues.push(`pip not available. Install: ${python.exe} -m ensurepip`);
206
- }
207
-
208
- // 4. Detect environment
209
- const environment = detectEnvironment(cwd);
210
- if (environment.type === 'system') {
211
- issues.push('No virtual environment detected. Consider using venv/conda/uv.');
212
- }
359
+ // 5. Check tools (input short-circuit — see resolvePythonTools)
360
+ const pythonSignal = hasPythonSignal(cwd);
361
+ const { tools, missingRequired } = resolvePythonTools(python.exe, cwd, pythonSignal);
213
362
 
214
- // 5. Check tools
215
- const tools = checkTools(python.exe, cwd);
216
- const missingRequired = tools.filter(t => t.required && !t.available);
217
- if (missingRequired.length > 0) {
363
+ // Only report missing tools when the project is actually Python — otherwise this
364
+ // is a non-signal, and telling a TS project to install mypy is noise.
365
+ if (missingRequired.length > 0 && pythonSignal) {
218
366
  const names = missingRequired.map(t => t.name).join(', ');
219
367
  issues.push(`Required tools missing: ${names}. Install: ${python.exe} -m pip install ${names}`);
220
368
  }
221
369
 
370
+ // `missingRequired` counts only when it was actually PROBED. On a non-Python
371
+ // project the tools are unknown-and-irrelevant, not missing: counting them would
372
+ // report "unhealthy" for a repo that has nothing for Python tooling to check.
222
373
  const healthy = issues.filter(i => i.includes('not found') || i.includes('minimum')).length === 0
223
- && missingRequired.length === 0;
374
+ && (!pythonSignal || missingRequired.length === 0);
224
375
 
225
- return { healthy, python, pip, environment, tools, issues };
376
+ return { healthy, python, pip, environment, tools, issues, toolProbesRan: pythonSignal };
226
377
  }
227
378
 
228
379
  // ── CLI Entry Point ──
@@ -241,11 +392,13 @@ if (process.argv.includes('--run')) {
241
392
  console.log('');
242
393
 
243
394
  if (result.tools.length > 0) {
244
- console.log(' Tools:');
395
+ const probed = result.toolProbesRan;
396
+ console.log(probed ? ' Tools:' : ' Tools: (not probed — no Python signal in this project)');
245
397
  for (const t of result.tools) {
246
- const icon = t.available ? '✅' : (t.required ? '❌' : '⚠️');
398
+ const icon = probed ? (t.available ? '✅' : (t.required ? '❌' : '⚠️')) : '·';
247
399
  const req = t.required ? '(required)' : '(optional)';
248
- console.log(` ${icon} ${t.name} ${t.available ? t.version : 'not installed'} ${req}`);
400
+ const state = probed ? (t.available ? t.version : 'not installed') : 'skipped';
401
+ console.log(` ${icon} ${t.name} ${state} ${req}`);
249
402
  }
250
403
  console.log('');
251
404
  }
@@ -2,6 +2,6 @@
2
2
  "verdict": "PASS",
3
3
  "license_type": "MIT",
4
4
  "sha256": "0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5",
5
- "checked_at": "2026-11-09T03:15:43.031Z",
5
+ "checked_at": "2026-11-09T08:46:31.604Z",
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.37.1.0
6
+ **Version:** 0.37.3.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.37.1.0
6
+ **Version:** 0.37.3.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.37.1",
3
+ "version": "0.37.3",
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.37.1",
3
+ "version": "0.37.3",
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.37.1.0
6
+ **Version:** 0.37.3.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.37.1.0
6
+ **Version:** 0.37.3.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.
@@ -45,8 +45,12 @@
45
45
  - 添加新版本条目 (## [X.Y.Z.W] - YYYY-MM-DD)
46
46
  - 按 ### Added / ### Fixed / ### Changed 分类
47
47
 
48
- 4. 运行 sync-version.sh:
49
- bash scripts/sync-version.sh
48
+ 4. 运行 sync-version:
49
+ bash scripts/sync-version.sh # 薄包装,实际执行 sync-version.cjs
50
+ # 两个入口等价——.sh 只是 exec 同一个 .cjs,目标清单只有一份。
51
+ # 2026-11-09 之前它们是两份独立实现且已经漂移:bash 版不处理
52
+ # package-lock.json 与 plugins/dsh/package.json,还会把 .stryker-tmp
53
+ # 下的副本一起改写(报 401 files 而非 41)。按本文档执行会静默漏掉两个文件。
50
54
 
51
55
  5. 验证:
52
56
  git diff VERSION # 确认版本号变更
@@ -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.37.1.0
6
+ **Version:** 0.37.3.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
@@ -53,4 +53,4 @@ skills/test-specification-alignment/
53
53
  - Runs during BUILD (Phase 2) after TDD
54
54
  - Mandatory before gstack-ship release
55
55
  - Integrates with test-driven-development skill
56
- - Uses freeze skill to lock test directories during Phase 2
56
+ - Uses freeze skill to lock test directories during Phase 2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boyingliu01/dsh-plugin-xp-gate",
3
- "version": "0.37.1",
3
+ "version": "0.37.3",
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.37.1.0
6
+ **Version:** 0.37.3.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.37.1.0
6
+ **Version:** 0.37.3.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.
@@ -45,8 +45,12 @@
45
45
  - 添加新版本条目 (## [X.Y.Z.W] - YYYY-MM-DD)
46
46
  - 按 ### Added / ### Fixed / ### Changed 分类
47
47
 
48
- 4. 运行 sync-version.sh:
49
- bash scripts/sync-version.sh
48
+ 4. 运行 sync-version:
49
+ bash scripts/sync-version.sh # 薄包装,实际执行 sync-version.cjs
50
+ # 两个入口等价——.sh 只是 exec 同一个 .cjs,目标清单只有一份。
51
+ # 2026-11-09 之前它们是两份独立实现且已经漂移:bash 版不处理
52
+ # package-lock.json 与 plugins/dsh/package.json,还会把 .stryker-tmp
53
+ # 下的副本一起改写(报 401 files 而非 41)。按本文档执行会静默漏掉两个文件。
50
54
 
51
55
  5. 验证:
52
56
  git diff VERSION # 确认版本号变更
@@ -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.37.1.0
6
+ **Version:** 0.37.3.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
@@ -53,4 +53,4 @@ skills/test-specification-alignment/
53
53
  - Runs during BUILD (Phase 2) after TDD
54
54
  - Mandatory before gstack-ship release
55
55
  - Integrates with test-driven-development skill
56
- - Uses freeze skill to lock test directories during Phase 2
56
+ - Uses freeze skill to lock test directories during Phase 2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boyingliu01/opencode-plugin",
3
- "version": "0.37.1",
3
+ "version": "0.37.3",
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.37.1.0
6
+ **Version:** 0.37.3.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.37.1.0
6
+ **Version:** 0.37.3.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.
@@ -45,8 +45,12 @@
45
45
  - 添加新版本条目 (## [X.Y.Z.W] - YYYY-MM-DD)
46
46
  - 按 ### Added / ### Fixed / ### Changed 分类
47
47
 
48
- 4. 运行 sync-version.sh:
49
- bash scripts/sync-version.sh
48
+ 4. 运行 sync-version:
49
+ bash scripts/sync-version.sh # 薄包装,实际执行 sync-version.cjs
50
+ # 两个入口等价——.sh 只是 exec 同一个 .cjs,目标清单只有一份。
51
+ # 2026-11-09 之前它们是两份独立实现且已经漂移:bash 版不处理
52
+ # package-lock.json 与 plugins/dsh/package.json,还会把 .stryker-tmp
53
+ # 下的副本一起改写(报 401 files 而非 41)。按本文档执行会静默漏掉两个文件。
50
54
 
51
55
  5. 验证:
52
56
  git diff VERSION # 确认版本号变更
@@ -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.37.1.0
6
+ **Version:** 0.37.3.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
@@ -53,4 +53,4 @@ skills/test-specification-alignment/
53
53
  - Runs during BUILD (Phase 2) after TDD
54
54
  - Mandatory before gstack-ship release
55
55
  - Integrates with test-driven-development skill
56
- - Uses freeze skill to lock test directories during Phase 2
56
+ - Uses freeze skill to lock test directories during Phase 2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xp-gate",
3
- "version": "0.37.1",
3
+ "version": "0.37.3",
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.37.1.0
6
+ **Version:** 0.37.3.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.37.1.0
6
+ **Version:** 0.37.3.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.
@@ -45,8 +45,12 @@
45
45
  - 添加新版本条目 (## [X.Y.Z.W] - YYYY-MM-DD)
46
46
  - 按 ### Added / ### Fixed / ### Changed 分类
47
47
 
48
- 4. 运行 sync-version.sh:
49
- bash scripts/sync-version.sh
48
+ 4. 运行 sync-version:
49
+ bash scripts/sync-version.sh # 薄包装,实际执行 sync-version.cjs
50
+ # 两个入口等价——.sh 只是 exec 同一个 .cjs,目标清单只有一份。
51
+ # 2026-11-09 之前它们是两份独立实现且已经漂移:bash 版不处理
52
+ # package-lock.json 与 plugins/dsh/package.json,还会把 .stryker-tmp
53
+ # 下的副本一起改写(报 401 files 而非 41)。按本文档执行会静默漏掉两个文件。
50
54
 
51
55
  5. 验证:
52
56
  git diff VERSION # 确认版本号变更
@@ -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.37.1.0
6
+ **Version:** 0.37.3.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
@@ -53,4 +53,4 @@ skills/test-specification-alignment/
53
53
  - Runs during BUILD (Phase 2) after TDD
54
54
  - Mandatory before gstack-ship release
55
55
  - Integrates with test-driven-development skill
56
- - Uses freeze skill to lock test directories during Phase 2
56
+ - Uses freeze skill to lock test directories during Phase 2
@@ -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.37.1.0
6
+ **Version:** 0.37.3.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.
@@ -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.37.1.0
6
+ **Version:** 0.37.3.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.37.1.0
6
+ **Version:** 0.37.3.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.
@@ -45,8 +45,12 @@
45
45
  - 添加新版本条目 (## [X.Y.Z.W] - YYYY-MM-DD)
46
46
  - 按 ### Added / ### Fixed / ### Changed 分类
47
47
 
48
- 4. 运行 sync-version.sh:
49
- bash scripts/sync-version.sh
48
+ 4. 运行 sync-version:
49
+ bash scripts/sync-version.sh # 薄包装,实际执行 sync-version.cjs
50
+ # 两个入口等价——.sh 只是 exec 同一个 .cjs,目标清单只有一份。
51
+ # 2026-11-09 之前它们是两份独立实现且已经漂移:bash 版不处理
52
+ # package-lock.json 与 plugins/dsh/package.json,还会把 .stryker-tmp
53
+ # 下的副本一起改写(报 401 files 而非 41)。按本文档执行会静默漏掉两个文件。
50
54
 
51
55
  5. 验证:
52
56
  git diff VERSION # 确认版本号变更
@@ -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.37.1.0
6
+ **Version:** 0.37.3.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
@@ -53,4 +53,4 @@ skills/test-specification-alignment/
53
53
  - Runs during BUILD (Phase 2) after TDD
54
54
  - Mandatory before gstack-ship release
55
55
  - Integrates with test-driven-development skill
56
- - Uses freeze skill to lock test directories during Phase 2
56
+ - Uses freeze skill to lock test directories during Phase 2