@boyingliu01/xp-gate 0.38.94 → 0.38.96

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/java.sh CHANGED
@@ -937,6 +937,36 @@ run_whalecloud_check() {
937
937
  # GATE 1 entry (#507 S1). wc-java-lint first; legacy chain only on discovery
938
938
  # miss. The old direct mvn/gradle compile here moved to Build Integrity (S5).
939
939
  # ---------------------------------------------------------------------------
940
+ # Declare javac as the type checker, so gate 13 checks Java types.
941
+ #
942
+ # Measured 2026-11-22: a Java class returning a String from an int method was
943
+ # invisible to every gate. Gate 1 runs checkstyle/pmd/spotbugs/lizard, none of
944
+ # which do type checking (the adapter says so at line 938 -- that moved to gate 9),
945
+ # and gate 9 SKIPs a repo with no Maven/Gradle build file. So the one gate that
946
+ # does compile Java declined, and no other gate could.
947
+ #
948
+ # javac needs no build system for this: it compiles a single source file with a
949
+ # package declaration directly. Verified: javac -d <tmp> B.java exits 0 for a
950
+ # correct class and 1 with "incompatible types" for a broken one.
951
+ #
952
+ # -d "$(mktemp -d)" keeps class files out of the work tree. A gate must not leave
953
+ # build output behind; that would change the change set it is judging.
954
+ #
955
+ # Empty when javac is absent, so the gate records SKIP rather than PASS.
956
+ compiler_check_command() {
957
+ if ! command -v javac >/dev/null 2>&1; then
958
+ return 0
959
+ fi
960
+ # The contract (gate-13-compiler-strictness.sh:1226) is "eval the command in the
961
+ # project root, no arguments". So the command finds its own sources: every .java
962
+ # under the conventional source roots, compiled together (javac resolves
963
+ # cross-file references only when given all of them at once).
964
+ # -d into a temp dir keeps .class files out of the work tree -- a gate that leaves
965
+ # build output behind changes the change set it is judging.
966
+ # shellcheck disable=SC2016 # the $ is for eval at gate-13 time, not for this shell
967
+ printf "%s" 'out=$(mktemp -d); javac -nowarn -d "$out" $(find src -name "*.java" 2>/dev/null) 2>&1; rc=$?; rm -rf "$out"; [ $rc -eq 0 ] || exit $rc'
968
+ }
969
+
940
970
  run_static_analysis() {
941
971
  local rc=0
942
972
  # `|| rc=$?` (not a bare call): under a set -e consumer a non-zero verdict
@@ -62,6 +62,38 @@ _run_local_tool() {
62
62
  run_without_git_context "$bin" "$@"
63
63
  }
64
64
 
65
+ # Declare the type checker, so Gate 13 checks types instead of skipping.
66
+ #
67
+ # Without this the gate reported "no compiler/type-checker declared for this
68
+ # language -- compiler errors not checked" and SKIPPED on every TypeScript
69
+ # project, including ones that ship a tsconfig.json. Measured 2026-11-22 in a
70
+ # fixture with `"strict": true` and an implicit-any parameter: tsc reported
71
+ # TS7006, and the gate recorded SKIP without ever invoking it.
72
+ #
73
+ # EMPTY OUTPUT WHEN THERE IS NO tsconfig.json, deliberately. tsc without a
74
+ # config applies its own defaults, which are not this project's strictness
75
+ # setting -- running it would report on a configuration nobody chose. The
76
+ # contract at gate-13 line 1132 is "a command, or nothing", and nothing makes
77
+ # the gate record SKIP with a reason. Inventing a command here would be the
78
+ # exact defect this file exists to prevent: a verdict the gate did not compute.
79
+ #
80
+ # Uses tsc directly (not `npx tsc`) because a gate must never install what it
81
+ # was asked to detect.
82
+ compiler_check_command() {
83
+ [ -f tsconfig.json ] || return 0
84
+ if [ -x node_modules/.bin/tsc ]; then
85
+ printf "%s" "node_modules/.bin/tsc --noEmit"
86
+ return 0
87
+ fi
88
+ if command -v tsc >/dev/null 2>&1; then
89
+ printf "%s" "tsc --noEmit"
90
+ return 0
91
+ fi
92
+ # A tsconfig with no tsc anywhere: say nothing, so the gate reports SKIP
93
+ # rather than PASS. "Could not check" must never read as "checked".
94
+ return 0
95
+ }
96
+
65
97
  run_static_analysis() {
66
98
  # The type-check decision is shared with pre-commit's Gate 1 (#436): a project's
67
99
  # own checker (typecheck script, or GATE_TS_TYPECHECK_CMD) is used when declared,
@@ -2,6 +2,6 @@
2
2
  "verdict": "PASS",
3
3
  "license_type": "MIT",
4
4
  "sha256": "0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5",
5
- "checked_at": "2026-11-22T14:23:46.925Z",
5
+ "checked_at": "2026-11-22T15:21:38.614Z",
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.94",
3
+ "version": "0.38.96",
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.94",
3
+ "version": "0.38.96",
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.94.0
6
+ **Version:** 0.38.96.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.94.0
6
+ **Version:** 0.38.96.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.94.0
6
+ **Version:** 0.38.96.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.94",
3
+ "version": "0.38.96",
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.94.0
6
+ **Version:** 0.38.96.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.94.0
6
+ **Version:** 0.38.96.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.94.0
6
+ **Version:** 0.38.96.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.94",
3
+ "version": "0.38.96",
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.94.0
6
+ **Version:** 0.38.96.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.94.0
6
+ **Version:** 0.38.96.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.94.0
6
+ **Version:** 0.38.96.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.94",
3
+ "version": "0.38.96",
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.94.0
6
+ **Version:** 0.38.96.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.94.0
6
+ **Version:** 0.38.96.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.94.0
6
+ **Version:** 0.38.96.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.94.0
6
+ **Version:** 0.38.96.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.94.0
6
+ **Version:** 0.38.96.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.94.0
6
+ **Version:** 0.38.96.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.