@boyingliu01/xp-gate 0.38.59 → 0.38.61

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/adapters/cpp.sh CHANGED
@@ -30,6 +30,7 @@ run_static_analysis() {
30
30
  -not -path './.git/*' -not -path './build/*' 2>/dev/null | head -20)
31
31
  if [ -z "$files" ]; then
32
32
  echo "No C/C++ sources to analyse"
33
+ echo "XP_G1_REASON: no_cpp_sources"
33
34
  return 2
34
35
  fi
35
36
  # clang-tidy needs a compilation database to know the include paths, and it
@@ -61,6 +62,7 @@ run_static_analysis() {
61
62
  _cppcheck_run
62
63
  return $?
63
64
  fi
65
+ echo "XP_G1_REASON: clang_tidy_unusable_config"
64
66
  return 2
65
67
  fi
66
68
  return "$rc"
@@ -72,6 +74,7 @@ run_static_analysis() {
72
74
  fi
73
75
 
74
76
  echo "No C/C++ analysis tools (clang-tidy/cppcheck)"
77
+ echo "XP_G1_REASON: cpp_tools_missing"
75
78
  return 2
76
79
  }
77
80
 
@@ -137,6 +137,7 @@ run_static_analysis() {
137
137
  # non-zero return to "tools unavailable" which it reports honestly.
138
138
  echo "dotnet SDK not found"
139
139
  echo " Install: winget install Microsoft.DotNet.SDK.8 | brew install --cask dotnet-sdk | apt-get install dotnet-sdk-8.0"
140
+ echo "XP_G1_REASON: dotnet_sdk_missing"
140
141
  return 2
141
142
  }
142
143
 
@@ -185,6 +186,7 @@ run_static_analysis() {
185
186
  126|127)
186
187
  echo "dotnet format could not execute (exit ${format_rc}) — NOT a source verdict"
187
188
  echo " The 'dotnet' on PATH is missing or not executable."
189
+ echo "XP_G1_REASON: dotnet_format_could_not_execute"
188
190
  return 2
189
191
  ;;
190
192
  esac
@@ -206,7 +208,7 @@ run_static_analysis() {
206
208
  # Same reasoning for the build: 126/127 means the build never ran, so there is
207
209
  # no "compiles / does not compile" answer to report.
208
210
  case "$build_rc" in
209
- 126|127) echo "dotnet build could not execute (exit ${build_rc}) — NOT a build verdict"; return 2 ;;
211
+ 126|127) echo "dotnet build could not execute (exit ${build_rc}) — NOT a build verdict"; echo "XP_G1_REASON: dotnet_build_could_not_execute"; return 2 ;;
210
212
  esac
211
213
  return "$build_rc"
212
214
  }
@@ -237,13 +239,14 @@ _has_test_project() {
237
239
  run_tests() {
238
240
  local dotnet_root dotnet out rc
239
241
  dotnet_root=$(_detect_dotnet_root) || { echo "No .NET project marker found"; return 0; }
240
- dotnet=$(_detect_dotnet) || { echo "dotnet SDK not found"; return 2; }
242
+ dotnet=$(_detect_dotnet) || { echo "dotnet SDK not found"; echo "XP_G1_REASON: dotnet_sdk_missing"; return 2; }
241
243
 
242
244
  local test_proj
243
245
  test_proj=$(_has_test_project "$dotnet_root")
244
246
  if [ -z "$test_proj" ]; then
245
247
  echo "No test project found in ${dotnet_root}"
246
248
  echo " A .csproj must reference Microsoft.NET.Test.Sdk / xunit / NUnit / MSTest to run under dotnet test"
249
+ echo "XP_G1_REASON: no_dotnet_test_project"
247
250
  return 2
248
251
  fi
249
252
  echo "Test project: ${test_proj}"
@@ -259,6 +262,7 @@ run_tests() {
259
262
  # the adapters already use (java.sh's G1 contract).
260
263
  echo "dotnet test could not start the test host (environment fault, not a test verdict)"
261
264
  echo " Known on this host: VSTest testhost aborts with Win32Exception (5) even when invoked outside git-bash"
265
+ echo "XP_G1_REASON: dotnet_test_host_fault"
262
266
  return 2
263
267
  fi
264
268
  return "$rc"
@@ -305,6 +309,7 @@ run_coverage() {
305
309
  test_proj=$(_has_test_project "$dotnet_root")
306
310
  if [ -z "$test_proj" ]; then
307
311
  echo "No test project found in ${dotnet_root} — coverage not measurable"
312
+ echo "XP_G1_REASON: no_dotnet_test_project_for_coverage"
308
313
  return 2
309
314
  fi
310
315
 
@@ -364,6 +369,7 @@ run_coverage() {
364
369
  if [ -z "$report" ]; then
365
370
  echo "coverage.cobertura.xml not produced — coverage NOT measured"
366
371
  echo " Requires coverlet.collector in the test project"
372
+ echo "XP_G1_REASON: cobertura_not_produced"
367
373
  return 2
368
374
  fi
369
375
  echo "Coverage report: ${report}"
package/adapters/iac.sh CHANGED
@@ -391,6 +391,7 @@ TFEOF
391
391
  echo "⚠️ XP_GATE_IAC_SOFT=1: unusable scanner downgraded to WARN"
392
392
  return 3
393
393
  fi
394
+ echo "XP_G1_REASON: checkov_could_not_run"
394
395
  return 2
395
396
  fi
396
397
 
package/adapters/php.sh CHANGED
@@ -134,12 +134,14 @@ run_static_analysis() {
134
134
  root=$(_php_detect_root) || { echo "No composer.json / phpunit.xml found -- not a PHP project"; return 0; }
135
135
  php=$(_php_bin) || {
136
136
  echo "php is not installed -- static analysis not measurable"
137
+ echo "XP_G1_REASON: php_missing"
137
138
  echo " Install: scoop install php (or winget install PHP.PHP.8.4)"
138
139
  return 2
139
140
  }
140
141
 
141
142
  if ! phpstan=$(_php_vendor_bin "$root" phpstan); then
142
143
  echo "phpstan is not installed -- static analysis not measurable"
144
+ echo "XP_G1_REASON: phpstan_missing"
143
145
  echo " Install: composer require --dev phpstan/phpstan"
144
146
  return 2
145
147
  fi
@@ -181,6 +183,7 @@ run_static_analysis() {
181
183
  # Non-zero, no diagnostics: the tool could not do its job.
182
184
  printf '%s\n' "$out" | sed -n '1,15p'
183
185
  echo "phpstan could not run (no diagnostic rows produced) -- refusing to report this as clean"
186
+ echo "XP_G1_REASON: phpstan_no_diagnostics"
184
187
  return 2
185
188
  }
186
189
 
@@ -195,11 +198,13 @@ run_lint() {
195
198
  root=$(_php_detect_root) || { echo "No composer.json / phpunit.xml found -- not a PHP project"; return 0; }
196
199
  php=$(_php_bin) || {
197
200
  echo "php is not installed -- lint not measurable"
201
+ echo "XP_G1_REASON: php_missing"
198
202
  return 2
199
203
  }
200
204
 
201
205
  if ! phpcs=$(_php_vendor_bin "$root" phpcs); then
202
206
  echo "phpcs is not installed -- lint not measurable"
207
+ echo "XP_G1_REASON: phpcs_missing"
203
208
  echo " Install: composer require --dev squizlabs/php_codesniffer"
204
209
  return 2
205
210
  fi
@@ -247,6 +252,7 @@ run_lint() {
247
252
  # Measured: unknown --standard or a path phpcs cannot open.
248
253
  printf '%s\n' "$out" | sed -n '1,15p'
249
254
  echo "phpcs could not run (exit 3: bad standard or unusable path), not a violation"
255
+ echo "XP_G1_REASON: phpcs_unusable_standard"
250
256
  return 2
251
257
  ;;
252
258
  *)
@@ -265,6 +271,7 @@ run_tests() {
265
271
  root=$(_php_detect_root) || { echo "No composer.json / phpunit.xml found -- not a PHP project"; return 0; }
266
272
  php=$(_php_bin) || {
267
273
  echo "php is not installed -- tests not measurable"
274
+ echo "XP_G1_REASON: php_missing"
268
275
  return 2
269
276
  }
270
277
 
@@ -276,6 +283,7 @@ run_tests() {
276
283
 
277
284
  if ! phpunit=$(_php_vendor_bin "$root" phpunit); then
278
285
  echo "phpunit is not installed -- tests not measurable"
286
+ echo "XP_G1_REASON: phpunit_missing"
279
287
  echo " Install: composer require --dev phpunit/phpunit"
280
288
  return 2
281
289
  fi
@@ -309,6 +317,7 @@ run_coverage() {
309
317
  root=$(_php_detect_root) || { echo "No composer.json / phpunit.xml found -- not a PHP project"; return 0; }
310
318
  php=$(_php_bin) || {
311
319
  echo "php is not installed -- coverage not measurable"
320
+ echo "XP_G1_REASON: php_missing"
312
321
  return 2
313
322
  }
314
323
 
@@ -775,9 +775,21 @@ else
775
775
  echo "✅ PASSED - PowerShell code quality (PSScriptAnalyzer)."
776
776
  ;;
777
777
  1)
778
+ # Name the rules, not just the fact. Measured 2026-11-20 on a fixture
779
+ # with an unused variable: the table printed the rule name
780
+ # (PSUseDeclaredVarsMoreThanAssignments) but the verdict line and
781
+ # GATE_1_DETAIL both said only "violations". Anyone reading the journal,
782
+ # the report, or the one-line summary learned that something was wrong
783
+ # and not what -- the same shape as the mypy arm that reported
784
+ # "PASSED - mypy" for a check it never ran.
785
+ PS_RULES=$(printf '%s
786
+ ' "$PS_G1_OUTPUT" | awk 'NF>3 && $1 ~ /^PS[A-Z]/ {print $1}' | sort -u | paste -sd, - 2>/dev/null)
778
787
  echo "❌ BLOCKED - PSScriptAnalyzer violations (fix or add suppressions)"
788
+ if [ -n "$PS_RULES" ]; then
789
+ echo " Rules: $PS_RULES"
790
+ fi
779
791
  GATE_1_STATUS="BLOCK"
780
- GATE_1_DETAIL="powershell: PSScriptAnalyzer findings"
792
+ GATE_1_DETAIL="powershell: PSScriptAnalyzer findings${PS_RULES:+ ($PS_RULES)}"
781
793
  return 1
782
794
  ;;
783
795
  2)
@@ -2,6 +2,6 @@
2
2
  "verdict": "PASS",
3
3
  "license_type": "MIT",
4
4
  "sha256": "0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5",
5
- "checked_at": "2026-11-19T23:03:58.429Z",
5
+ "checked_at": "2026-11-19T23:41:16.528Z",
6
6
  "source": "network"
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boyingliu01/xp-gate",
3
- "version": "0.38.59",
3
+ "version": "0.38.61",
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.59",
3
+ "version": "0.38.61",
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.59.0
6
+ **Version:** 0.38.61.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.59.0
6
+ **Version:** 0.38.61.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; each REQ starts from a clean context instead of accumulating one across REQs). 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.59.0
6
+ **Version:** 0.38.61.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.59",
3
+ "version": "0.38.61",
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.59.0
6
+ **Version:** 0.38.61.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.59.0
6
+ **Version:** 0.38.61.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; each REQ starts from a clean context instead of accumulating one across REQs). 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.59.0
6
+ **Version:** 0.38.61.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.59",
3
+ "version": "0.38.61",
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.59.0
6
+ **Version:** 0.38.61.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.59.0
6
+ **Version:** 0.38.61.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; each REQ starts from a clean context instead of accumulating one across REQs). 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.59.0
6
+ **Version:** 0.38.61.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.59.0
6
+ **Version:** 0.38.61.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.59.0
6
+ **Version:** 0.38.61.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; each REQ starts from a clean context instead of accumulating one across REQs). 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.59.0
6
+ **Version:** 0.38.61.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.59.0
6
+ **Version:** 0.38.61.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.59.0
6
+ **Version:** 0.38.61.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; each REQ starts from a clean context instead of accumulating one across REQs). 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.59.0
6
+ **Version:** 0.38.61.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.