@boyingliu01/xp-gate 0.38.48 → 0.38.50

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.
@@ -29,13 +29,13 @@ run_static_analysis() {
29
29
  local build_failed=0
30
30
  if [ "$build_system" = "maven" ]; then
31
31
  mvn compile -q 2>&1 | grep -i "error\|fail" | sed -n '1,5p; 5q'
32
- if [ ${PIPESTATUS[0]} -ne 0 ]; then
32
+ if [ "${PIPESTATUS[0]}" -ne 0 ]; then
33
33
  echo "❌ Maven compilation failed"
34
34
  build_failed=1
35
35
  fi
36
36
  elif [ "$build_system" = "gradle" ]; then
37
37
  gradle compileKotlin --quiet 2>&1 | grep -i "error\|fail" | sed -n '1,5p; 5q'
38
- if [ ${PIPESTATUS[0]} -ne 0 ]; then
38
+ if [ "${PIPESTATUS[0]}" -ne 0 ]; then
39
39
  echo "❌ Gradle compilation failed"
40
40
  build_failed=1
41
41
  fi
@@ -119,10 +119,10 @@ run_tests() {
119
119
 
120
120
  if [ "$build_system" = "maven" ]; then
121
121
  mvn test -q 2>&1 | tail -15
122
- return ${PIPESTATUS[0]}
122
+ return "${PIPESTATUS[0]}"
123
123
  elif [ "$build_system" = "gradle" ]; then
124
124
  gradle test --quiet 2>&1 | tail -15
125
- return ${PIPESTATUS[0]}
125
+ return "${PIPESTATUS[0]}"
126
126
  else
127
127
  echo "No build system detected"
128
128
  return 1
@@ -141,12 +141,40 @@ run_coverage() {
141
141
 
142
142
  if [ "$build_system" = "maven" ]; then
143
143
  mvn test jacoco:report -q 2>&1 | tail -10
144
- return ${PIPESTATUS[0]}
144
+ return "${PIPESTATUS[0]}"
145
145
  elif [ "$build_system" = "gradle" ]; then
146
146
  gradle jacocoTestReport --quiet 2>&1 | tail -10
147
- return ${PIPESTATUS[0]}
147
+ return "${PIPESTATUS[0]}"
148
148
  else
149
149
  echo "No build system detected"
150
150
  return 1
151
151
  fi
152
152
  }
153
+
154
+ # Gate 13 capability: type-check Kotlin sources with kotlinc.
155
+ #
156
+ # Added 2026-11-19 after the language matrix showed kotlin's dirty row as
157
+ # G1=PASS G13=SKIP: nothing in this chain looked for a Kotlin type error.
158
+ #
159
+ # a.kt : fun intOf(v: Int): Int = v
160
+ # fun main() { println(intOf("not an int")) }
161
+ # kotlinc: error: argument type mismatch: actual type is 'String', but 'Int'
162
+ # was expected.
163
+ # gate 1 : PASSED (ktlint and detekt LINT; neither type-checks)
164
+ # gate 13: SKIPPED (no compiler declared) -> commit ALLOWED
165
+ #
166
+ # Linting and type-checking are different questions, and for Kotlin only the
167
+ # first was being asked anywhere. Measured: 4.4s for a two-file project.
168
+ #
169
+ # kotlinc does NOT accept a directory ("error: no source files; source file or
170
+ # directory not found: ."), so the file list is expanded here. bash globstar is
171
+ # enabled in the command so the expansion works in the subshell the gate uses;
172
+ # nullglob keeps an empty tree from passing a literal `**/*.kt` to the compiler.
173
+ #
174
+ # Output directory is discarded (-d into a temp dir removed afterwards): this is a
175
+ # check, not a build, and leaving .class files in the tree would make the next
176
+ # commit's change set depend on whether the gate ran.
177
+ # shellcheck disable=SC2016 # the single-quoted body is a command to be eval'd elsewhere, not here
178
+ compiler_check_command() {
179
+ printf '%s' 'shopt -s globstar nullglob; _kt_srcs=(**/*.kt); if [ "${#_kt_srcs[@]}" -eq 0 ]; then echo "no .kt sources found" >&2; exit 2; fi; _kt_out=$(mktemp -d); kotlinc "${_kt_srcs[@]}" -d "$_kt_out"; _kt_rc=$?; rm -rf "$_kt_out"; exit "$_kt_rc"'
180
+ }
@@ -39,7 +39,8 @@ if ! gate_enabled 12; then
39
39
  # does record, so the two skip paths disagreed with each other.
40
40
  echo "⏭️ SKIPPED - Gate 12: File hygiene (not selected by XP_GATE_ONLY_GATE)"
41
41
  GATE_12_STATUS="SKIP"
42
- record_gate_audit "gate-12" "file-hygiene" "$GATE_12_STATUS" "0" "$(gate_start_ms)"
42
+ GATE_12_DETAIL="not_selected"
43
+ record_gate_audit "gate-12" "file-hygiene" "$GATE_12_STATUS" "0" "$(gate_start_ms)" "$GATE_12_DETAIL"
43
44
  return 0
44
45
  fi
45
46
 
@@ -63,8 +64,9 @@ else
63
64
  # --skip-version-check arm): the words said SKIP, the state said PASS.
64
65
  echo "⏭️ SKIPPED - Gate 12: File Hygiene (gate-12-file-hygiene.sh not found)"
65
66
  GATE_12_STATUS="SKIP"
67
+ GATE_12_DETAIL="script_not_found"
66
68
  GATE_12_START=$(gate_start_ms)
67
- record_gate_audit "gate-12" "file-hygiene" "$GATE_12_STATUS" "0" "$GATE_12_START"
69
+ record_gate_audit "gate-12" "file-hygiene" "$GATE_12_STATUS" "0" "$GATE_12_START" "$GATE_12_DETAIL"
68
70
  fi
69
71
  # ============================================================================
70
72
  return 0
@@ -46,7 +46,7 @@ if ! gate_enabled 12b; then
46
46
  echo "⏭️ SKIPPED - Gate 12b: Vendor exclusion (not selected by XP_GATE_ONLY_GATE)"
47
47
  GATE_12B_STATUS="SKIP"
48
48
  GATE_12B_DETAIL="not_selected"
49
- record_gate_audit "gate-12b" "mirror-parity" "$GATE_12B_STATUS" "0" "$GATE_12B_START"
49
+ record_gate_audit "gate-12b" "mirror-parity" "$GATE_12B_STATUS" "0" "$GATE_12B_START" "$GATE_12B_DETAIL"
50
50
  return 0
51
51
  fi
52
52
 
@@ -190,7 +190,7 @@ fi
190
190
  # that into the hook's exit status, and an audit line written after an exit
191
191
  # would never run (the same dead-assignment trap the block above documents).
192
192
  GATE_12B_STATUS="PASS"
193
- record_gate_audit "gate-12b" "mirror-parity" "$GATE_12B_STATUS" "0" "$GATE_12B_START"
193
+ record_gate_audit "gate-12b" "mirror-parity" "$GATE_12B_STATUS" "0" "$GATE_12B_START" "$GATE_12B_DETAIL"
194
194
  return 0
195
195
  }
196
196
 
@@ -44,7 +44,7 @@ if ! gate_enabled 12c; then
44
44
  echo "⏭️ SKIPPED - Gate 12c: Worktree hygiene (not selected by XP_GATE_ONLY_GATE)"
45
45
  GATE_12C_STATUS="SKIP"
46
46
  GATE_12C_DETAIL="not_selected"
47
- record_gate_audit "gate-12c" "probe-discipline" "$GATE_12C_STATUS" "0" "$GATE_12C_START"
47
+ record_gate_audit "gate-12c" "probe-discipline" "$GATE_12C_STATUS" "0" "$GATE_12C_START" "$GATE_12C_DETAIL"
48
48
  return 0
49
49
  fi
50
50
 
@@ -68,7 +68,7 @@ fi
68
68
  # Nothing blocked, so this is the PASS record (see the note in 12b's body for
69
69
  # why blocking paths return before reaching here).
70
70
  GATE_12C_STATUS="PASS"
71
- record_gate_audit "gate-12c" "probe-discipline" "$GATE_12C_STATUS" "0" "$GATE_12C_START"
71
+ record_gate_audit "gate-12c" "probe-discipline" "$GATE_12C_STATUS" "0" "$GATE_12C_START" "$GATE_12C_DETAIL"
72
72
  return 0
73
73
  }
74
74
 
@@ -2,6 +2,6 @@
2
2
  "verdict": "PASS",
3
3
  "license_type": "MIT",
4
4
  "sha256": "0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5",
5
- "checked_at": "2026-11-19T19:24:36.868Z",
5
+ "checked_at": "2026-11-19T19:37:28.656Z",
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.48",
3
+ "version": "0.38.50",
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.48",
3
+ "version": "0.38.50",
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.48.0
6
+ **Version:** 0.38.50.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.48.0
6
+ **Version:** 0.38.50.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.48.0
6
+ **Version:** 0.38.50.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.48",
3
+ "version": "0.38.50",
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.48.0
6
+ **Version:** 0.38.50.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.48.0
6
+ **Version:** 0.38.50.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.48.0
6
+ **Version:** 0.38.50.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.48",
3
+ "version": "0.38.50",
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.48.0
6
+ **Version:** 0.38.50.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.48.0
6
+ **Version:** 0.38.50.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.48.0
6
+ **Version:** 0.38.50.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.48.0
6
+ **Version:** 0.38.50.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.48.0
6
+ **Version:** 0.38.50.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.48.0
6
+ **Version:** 0.38.50.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.48.0
6
+ **Version:** 0.38.50.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.48.0
6
+ **Version:** 0.38.50.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.48.0
6
+ **Version:** 0.38.50.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.