@boyingliu01/xp-gate 0.38.110 → 0.38.112
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/gate-7.sh +15 -6
- package/hooks/gate-7.sh +15 -6
- package/hooks/gate-entries/gate-13-entry.sh +27 -0
- 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/plugin.json +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/gate-7.sh
CHANGED
|
@@ -40,15 +40,24 @@ else
|
|
|
40
40
|
# shellcheck disable=SC2034
|
|
41
41
|
GATE_7_SCANNED_FILES=$(printf '%s\n' "$IAC_FILES" | sed -n '/./p' | wc -l | tr -d '[:space:]')
|
|
42
42
|
# Run IaC adapter. Resolution follows the documented 3-tier convention
|
|
43
|
-
# (adapter-common.sh)
|
|
44
|
-
# githooks/adapters ->
|
|
45
|
-
#
|
|
46
|
-
#
|
|
47
|
-
#
|
|
43
|
+
# (adapter-common.sh HOOK_ADAPTER_DIR_TIERS), which is PROJECT FIRST:
|
|
44
|
+
# project githooks/adapters -> global ~/.config/xp-gate/adapters -> script dir.
|
|
45
|
+
#
|
|
46
|
+
# This list used to be in the OPPOSITE order while the comment above it already
|
|
47
|
+
# described the correct one, so the code and its own documentation disagreed and
|
|
48
|
+
# only the code ran. Measured consequence: a repo carrying its own
|
|
49
|
+
# githooks/adapters/iac.sh was bypassed outright whenever a global install
|
|
50
|
+
# existed -- the probe printed "fake checkov ran" instead of the project
|
|
51
|
+
# adapter. That is the "stale adapter overrides fresh" trap AGENTS.md warns
|
|
52
|
+
# about, and the damage is not that a stale copy is older: it silently changes
|
|
53
|
+
# the VERDICT, so a repository cannot decide how it is checked.
|
|
54
|
+
#
|
|
55
|
+
# The global tier still exists and is still reachable -- it is the FALLBACK now
|
|
56
|
+
# (pinned by tests 1 and 3 of __tests__/gate-7-adapter-resolution.test.bats).
|
|
48
57
|
IAC_ADAPTER=""
|
|
49
58
|
for _candidate in \
|
|
50
|
-
"$HOME/.config/xp-gate/adapters/iac.sh" \
|
|
51
59
|
"githooks/adapters/iac.sh" \
|
|
60
|
+
"$HOME/.config/xp-gate/adapters/iac.sh" \
|
|
52
61
|
"${SCRIPT_DIR:-}/adapters/iac.sh"; do
|
|
53
62
|
if [ -n "$_candidate" ] && [ -f "$_candidate" ]; then
|
|
54
63
|
IAC_ADAPTER="$_candidate"
|
package/hooks/gate-7.sh
CHANGED
|
@@ -40,15 +40,24 @@ else
|
|
|
40
40
|
# shellcheck disable=SC2034
|
|
41
41
|
GATE_7_SCANNED_FILES=$(printf '%s\n' "$IAC_FILES" | sed -n '/./p' | wc -l | tr -d '[:space:]')
|
|
42
42
|
# Run IaC adapter. Resolution follows the documented 3-tier convention
|
|
43
|
-
# (adapter-common.sh)
|
|
44
|
-
# githooks/adapters ->
|
|
45
|
-
#
|
|
46
|
-
#
|
|
47
|
-
#
|
|
43
|
+
# (adapter-common.sh HOOK_ADAPTER_DIR_TIERS), which is PROJECT FIRST:
|
|
44
|
+
# project githooks/adapters -> global ~/.config/xp-gate/adapters -> script dir.
|
|
45
|
+
#
|
|
46
|
+
# This list used to be in the OPPOSITE order while the comment above it already
|
|
47
|
+
# described the correct one, so the code and its own documentation disagreed and
|
|
48
|
+
# only the code ran. Measured consequence: a repo carrying its own
|
|
49
|
+
# githooks/adapters/iac.sh was bypassed outright whenever a global install
|
|
50
|
+
# existed -- the probe printed "fake checkov ran" instead of the project
|
|
51
|
+
# adapter. That is the "stale adapter overrides fresh" trap AGENTS.md warns
|
|
52
|
+
# about, and the damage is not that a stale copy is older: it silently changes
|
|
53
|
+
# the VERDICT, so a repository cannot decide how it is checked.
|
|
54
|
+
#
|
|
55
|
+
# The global tier still exists and is still reachable -- it is the FALLBACK now
|
|
56
|
+
# (pinned by tests 1 and 3 of __tests__/gate-7-adapter-resolution.test.bats).
|
|
48
57
|
IAC_ADAPTER=""
|
|
49
58
|
for _candidate in \
|
|
50
|
-
"$HOME/.config/xp-gate/adapters/iac.sh" \
|
|
51
59
|
"githooks/adapters/iac.sh" \
|
|
60
|
+
"$HOME/.config/xp-gate/adapters/iac.sh" \
|
|
52
61
|
"${SCRIPT_DIR:-}/adapters/iac.sh"; do
|
|
53
62
|
if [ -n "$_candidate" ] && [ -f "$_candidate" ]; then
|
|
54
63
|
IAC_ADAPTER="$_candidate"
|
|
@@ -293,6 +293,21 @@ generate_quality_report() {
|
|
|
293
293
|
# never run.
|
|
294
294
|
gate_key_status() {
|
|
295
295
|
case "$1" in
|
|
296
|
+
0)
|
|
297
|
+
# Gate 0 was missing here AND from the report's "gates" object, so
|
|
298
|
+
# version-consistency ran, audited (1705 records) and BLOCKED 58 times
|
|
299
|
+
# while being completely absent from every quality report. A gate that
|
|
300
|
+
# can stop a commit but cannot appear in the record of what ran is the
|
|
301
|
+
# same defect as recording "not checked" as "passed": the reader of the
|
|
302
|
+
# report gets a confident, wrong picture of the chain.
|
|
303
|
+
if [ -n "${GATE_0_STATUS:-}" ]; then
|
|
304
|
+
printf %s "${GATE_0_STATUS}"
|
|
305
|
+
elif printf ' %s ' "${XP_GATE_NOT_REACHED:-}" | grep -q ' 0 '; then
|
|
306
|
+
printf %s "NOT_REACHED"
|
|
307
|
+
else
|
|
308
|
+
printf %s "SKIP"
|
|
309
|
+
fi
|
|
310
|
+
;;
|
|
296
311
|
1)
|
|
297
312
|
if [ -n "${GATE_1_STATUS:-}" ]; then
|
|
298
313
|
printf %s "${GATE_1_STATUS}"
|
|
@@ -460,6 +475,10 @@ generate_quality_report() {
|
|
|
460
475
|
"coverageMatrix": {${COVERAGE_MATRIX_JSON}},
|
|
461
476
|
"coverageWarnings": [${COVERAGE_WARNINGS_JSON}],
|
|
462
477
|
"gates": {
|
|
478
|
+
"gate0_version_consistency": {
|
|
479
|
+
"name": "Version Consistency",
|
|
480
|
+
"status": "$(gate_key_status 0)"
|
|
481
|
+
},
|
|
463
482
|
"gate1_static_analysis": {
|
|
464
483
|
"name": "Code Quality (Static + Lint + Shell)",
|
|
465
484
|
"status": "$(gate_key_status 1)",
|
|
@@ -537,6 +556,14 @@ generate_quality_report() {
|
|
|
537
556
|
"name": "File Hygiene Check",
|
|
538
557
|
"status": "${GATE_12_STATUS:-WARN}",
|
|
539
558
|
"tool": "gate-12-file-hygiene.sh"
|
|
559
|
+
},
|
|
560
|
+
"gate12b_mirror_parity": {
|
|
561
|
+
"name": "Mirror Parity",
|
|
562
|
+
"status": "$(gate_key_status 12b)"
|
|
563
|
+
},
|
|
564
|
+
"gate12c_probe_discipline": {
|
|
565
|
+
"name": "Probe Discipline",
|
|
566
|
+
"status": "$(gate_key_status 12c)"
|
|
540
567
|
}
|
|
541
568
|
}
|
|
542
569
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xp-gate",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.112",
|
|
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.112.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.112.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.112.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.112",
|
|
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.112.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.112.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.112.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.112.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.112.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.112.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.
|
|
3
|
+
"version": "0.38.112",
|
|
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.
|
|
6
|
+
**Version:** 0.38.112.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.112.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.112.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.112.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.112.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.112.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|