@boyingliu01/xp-gate 0.38.47 → 0.38.49
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/kotlin.sh +34 -6
- package/hooks/lib/python-incremental-typecheck.sh +29 -1
- package/lib/mattpocock-license-verdict.json +1 -1
- package/package.json +1 -1
- package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
- package/plugins/claude-code/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/claude-code/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +1 -1
- package/plugins/dsh/package.json +1 -1
- package/plugins/dsh/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/dsh/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/dsh/skills/test-specification-alignment/AGENTS.md +1 -1
- package/plugins/opencode/package.json +1 -1
- package/plugins/opencode/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/opencode/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +1 -1
- package/plugins/qoder/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/qoder/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +1 -1
- package/skills/delphi-review/AGENTS.md +1 -1
- package/skills/sprint-flow/AGENTS.md +1 -1
- package/skills/test-specification-alignment/AGENTS.md +1 -1
package/adapters/kotlin.sh
CHANGED
|
@@ -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
|
+
}
|
|
@@ -65,10 +65,38 @@ python_typecheck_incremental() {
|
|
|
65
65
|
|
|
66
66
|
# If a scope file is declared but yields nothing, every staged .py is out of
|
|
67
67
|
# scope -> SKIP (exit 0), mirroring the full pass.
|
|
68
|
+
#
|
|
69
|
+
# AN EMPTY SCOPE IS NOT A PASS. Measured 2026-11-19 with the language matrix: a
|
|
70
|
+
# Python project with no src/, no scripts/ and no .xp-gate-mypy-scope, editing a
|
|
71
|
+
# file that does not type-check:
|
|
72
|
+
#
|
|
73
|
+
# a.py : def f() -> int: return "not an int"
|
|
74
|
+
# mypy : error: Incompatible return value type (got "str", expected "int")
|
|
75
|
+
# gate : "PASSED - mypy type checking."
|
|
76
|
+
# commit ALLOWED
|
|
77
|
+
#
|
|
78
|
+
# The loop below runs only when SCOPE_DIRS is non-empty, so with no declared type
|
|
79
|
+
# surface TYPECHECK_FILES stayed empty, mypy was never invoked, and the final
|
|
80
|
+
# `return 0` was read by Gate 1 as a clean type check. Nothing said "I did not
|
|
81
|
+
# look", which is what made it invisible.
|
|
82
|
+
#
|
|
83
|
+
# Gate 1 prints "PASSED - mypy type checking" on exit 0 and cannot see the
|
|
84
|
+
# difference, so the distinction has to be stated here, loudly, in the log.
|
|
68
85
|
local _in_scope=false
|
|
69
86
|
local -a TYPECHECK_FILES=()
|
|
70
87
|
local f
|
|
71
|
-
if [ "${#SCOPE_DIRS[@]}" -
|
|
88
|
+
if [ "${#SCOPE_DIRS[@]}" -eq 0 ]; then
|
|
89
|
+
# No declared surface: check the staged files themselves.
|
|
90
|
+
#
|
|
91
|
+
# Skipping was the old behaviour and is indefensible here -- these are the
|
|
92
|
+
# exact files the author is asking to commit. Narrowing the scope exists to
|
|
93
|
+
# keep a LARGE repo's pre-commit fast and free of unrelated noise (tests/,
|
|
94
|
+
# vendored code); it was never meant to mean "a small project gets no type
|
|
95
|
+
# checking at all", which is what it did.
|
|
96
|
+
echo " ⚠ mypy incremental: no type surface declared (no .xp-gate-mypy-scope, no src/ or scripts/)" >&2
|
|
97
|
+
echo " checking the staged .py files directly; declare .xp-gate-mypy-scope to narrow this" >&2
|
|
98
|
+
TYPECHECK_FILES=("$@")
|
|
99
|
+
else
|
|
72
100
|
for f in "$@"; do
|
|
73
101
|
_in_scope=false
|
|
74
102
|
for target in "${SCOPE_DIRS[@]}"; do
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xp-gate",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.49",
|
|
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.
|
|
6
|
+
**Version:** 0.38.49.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.
|
|
6
|
+
**Version:** 0.38.49.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.
|
|
6
|
+
**Version:** 0.38.49.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
package/plugins/dsh/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boyingliu01/dsh-plugin-xp-gate",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.49",
|
|
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.
|
|
6
|
+
**Version:** 0.38.49.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.
|
|
6
|
+
**Version:** 0.38.49.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.
|
|
6
|
+
**Version:** 0.38.49.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.
|
|
6
|
+
**Version:** 0.38.49.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.
|
|
6
|
+
**Version:** 0.38.49.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.
|
|
6
|
+
**Version:** 0.38.49.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.
|
|
6
|
+
**Version:** 0.38.49.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.
|
|
6
|
+
**Version:** 0.38.49.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.
|
|
6
|
+
**Version:** 0.38.49.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.
|
|
6
|
+
**Version:** 0.38.49.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.
|
|
6
|
+
**Version:** 0.38.49.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.
|
|
6
|
+
**Version:** 0.38.49.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|