@boyingliu01/xp-gate 0.19.0 → 0.19.1
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/powershell.sh +31 -4
- package/lib/mattpocock-license-verdict.json +1 -1
- package/mock-policy/AGENTS.md +4 -4
- package/mutation/AGENTS.md +4 -4
- package/package.json +1 -1
- package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
- package/plugins/claude-code/skills/delphi-review/AGENTS.md +4 -4
- package/plugins/claude-code/skills/sprint-flow/AGENTS.md +4 -4
- package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +4 -4
- package/plugins/dsh/package.json +1 -1
- package/plugins/dsh/skills/delphi-review/AGENTS.md +4 -4
- package/plugins/dsh/skills/sprint-flow/AGENTS.md +4 -4
- package/plugins/dsh/skills/test-specification-alignment/AGENTS.md +4 -4
- package/plugins/opencode/package.json +1 -1
- package/plugins/opencode/skills/delphi-review/AGENTS.md +4 -4
- package/plugins/opencode/skills/sprint-flow/AGENTS.md +4 -4
- package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +4 -4
- package/plugins/qoder/plugin.json +1 -1
- package/plugins/qoder/skills/delphi-review/AGENTS.md +4 -4
- package/plugins/qoder/skills/sprint-flow/AGENTS.md +4 -4
- package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +4 -4
- package/principles/AGENTS.md +4 -4
- package/skills/delphi-review/AGENTS.md +4 -4
- package/skills/sprint-flow/AGENTS.md +4 -4
- package/skills/test-specification-alignment/AGENTS.md +4 -4
package/adapters/powershell.sh
CHANGED
|
@@ -99,6 +99,21 @@ run_lint() {
|
|
|
99
99
|
run_static_analysis
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
# Timeout guard for Pester runs.
|
|
103
|
+
# A hanging Pester test (e.g. a test that dot-sources a script whose body performs
|
|
104
|
+
# WMI/registry/scheduled-task scans) would otherwise block `git commit` forever.
|
|
105
|
+
# Default 300s, override via XP_GATE_POWERSHELL_TEST_TIMEOUT_S.
|
|
106
|
+
_pester_timeout() {
|
|
107
|
+
local default_s="${XP_GATE_POWERSHELL_TEST_TIMEOUT_S:-300}"
|
|
108
|
+
# Prefer GNU timeout (Git Bash / Linux). On Windows where `timeout` resolves to
|
|
109
|
+
# the native timeout.exe, fall back to running without a hard timeout.
|
|
110
|
+
if command -v timeout >/dev/null 2>&1 && timeout --version 2>/dev/null | grep -qi "coreutils"; then
|
|
111
|
+
timeout "${default_s}s" "$@"
|
|
112
|
+
else
|
|
113
|
+
"$@"
|
|
114
|
+
fi
|
|
115
|
+
}
|
|
116
|
+
|
|
102
117
|
run_tests() {
|
|
103
118
|
local PWSH
|
|
104
119
|
PWSH=$(_detect_pwsh)
|
|
@@ -123,7 +138,7 @@ run_tests() {
|
|
|
123
138
|
if [ "${#test_files[@]}" -gt 0 ]; then
|
|
124
139
|
test_paths=$(_powershell_path_array "${test_files[@]}")
|
|
125
140
|
echo "Running Pester tests..."
|
|
126
|
-
"$PWSH" "${POWERSHELL_ARGS[@]}" "
|
|
141
|
+
_pester_timeout "$PWSH" "${POWERSHELL_ARGS[@]}" "
|
|
127
142
|
\$results = Invoke-Pester -Path $test_paths -PassThru
|
|
128
143
|
if (\$results.FailedCount -gt 0) {
|
|
129
144
|
Write-Host \"FAILED: \$(\$results.FailedCount) test(s)\"
|
|
@@ -132,7 +147,14 @@ run_tests() {
|
|
|
132
147
|
Write-Host \"PASSED: \$(\$results.PassedCount) test(s)\"
|
|
133
148
|
exit 0
|
|
134
149
|
"
|
|
135
|
-
|
|
150
|
+
local run_exit=$?
|
|
151
|
+
if [ "$run_exit" = "124" ]; then
|
|
152
|
+
echo "⚠️ Pester tests TIMED OUT after ${XP_GATE_POWERSHELL_TEST_TIMEOUT_S:-300}s (may be hanging)."
|
|
153
|
+
echo " A test may be blocking on a system call (WMI/registry/scheduled-task)."
|
|
154
|
+
echo " Fix the hanging test, or set XP_GATE_POWERSHELL_TEST_TIMEOUT_S to a higher value."
|
|
155
|
+
return 1
|
|
156
|
+
fi
|
|
157
|
+
return $run_exit
|
|
136
158
|
else
|
|
137
159
|
echo "No Pester tests found"
|
|
138
160
|
return 0
|
|
@@ -171,7 +193,7 @@ run_coverage() {
|
|
|
171
193
|
test_paths=$(_powershell_path_array "${test_files[@]}")
|
|
172
194
|
coverage_paths=$(_powershell_path_array "${source_files[@]}")
|
|
173
195
|
echo "Running Pester with code coverage..."
|
|
174
|
-
"$PWSH" "${POWERSHELL_ARGS[@]}" "
|
|
196
|
+
_pester_timeout "$PWSH" "${POWERSHELL_ARGS[@]}" "
|
|
175
197
|
\$results = Invoke-Pester -Path $test_paths -CodeCoverage $coverage_paths -PassThru
|
|
176
198
|
\$pct = [math]::Round(\$results.CodeCoverage.CoveragePercent, 1)
|
|
177
199
|
Write-Host \"Coverage: \$pct%\"
|
|
@@ -181,7 +203,12 @@ run_coverage() {
|
|
|
181
203
|
}
|
|
182
204
|
exit 0
|
|
183
205
|
" 2>&1
|
|
184
|
-
|
|
206
|
+
local cov_exit=$?
|
|
207
|
+
if [ "$cov_exit" = "124" ]; then
|
|
208
|
+
echo "⚠️ Pester coverage TIMED OUT after ${XP_GATE_POWERSHELL_TEST_TIMEOUT_S:-300}s (may be hanging)."
|
|
209
|
+
return 1
|
|
210
|
+
fi
|
|
211
|
+
return $cov_exit
|
|
185
212
|
else
|
|
186
213
|
rm -f "$discovery_file"
|
|
187
214
|
echo "No Pester tests found for coverage measurement"
|
package/mock-policy/AGENTS.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SRC/MOCK-POLICY KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.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.
|
package/mutation/AGENTS.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SRC/MUTATION KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.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": "xp-gate",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"displayName": "XP-Gate",
|
|
5
5
|
"description": "Extreme Programming quality gates + AI workflow skills for Claude Code. Includes 10 quality gates (Gate 0-9), Sprint Flow (11 phases), and Delphi multi-expert review (>=90% consensus).",
|
|
6
6
|
"author": {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.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.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/SPRINT-FLOW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.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.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.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.19.
|
|
3
|
+
"version": "0.19.1",
|
|
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",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.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.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/SPRINT-FLOW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.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.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.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.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/SPRINT-FLOW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.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.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.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.19.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"displayName": "XP-Gate",
|
|
5
5
|
"description": "Extreme Programming quality gates + AI workflow skills for Qoder. Includes 10 quality gates (Gate 0-9), Sprint Flow (11 phases), and Delphi multi-expert review (>=90% consensus).",
|
|
6
6
|
"author": {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.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.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/SPRINT-FLOW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.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.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
package/principles/AGENTS.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# PRINCIPLES CHECKER MODULE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.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.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.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.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/SPRINT-FLOW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.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.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/TEST-SPECIFICATION-ALIGNMENT KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-08-
|
|
4
|
-
**Commit:**
|
|
5
|
-
**Branch:**
|
|
6
|
-
**Version:** 0.19.
|
|
3
|
+
**Generated:** 2026-08-30
|
|
4
|
+
**Commit:** 0848858
|
|
5
|
+
**Branch:** main
|
|
6
|
+
**Version:** 0.19.1.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|