@boyingliu01/xp-gate 0.18.1 → 0.18.3
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/gate-3.sh +68 -0
- package/adapters/gate-4.sh +80 -0
- package/adapters/gate-7.sh +45 -0
- package/adapters/gate-8.sh +56 -0
- package/adapters/gate-9.sh +105 -0
- package/bin/xp-gate.js +45 -0
- package/hooks/pre-commit +108 -9
- package/hooks/pre-push +63 -232
- package/lib/__tests__/install-skill.test.js +3 -3
- package/lib/__tests__/test-alignment.test.ts +761 -0
- package/lib/install-skill.js +11 -3
- package/lib/mattpocock-license-verdict.json +1 -1
- package/lib/phase-transition.js +106 -1
- package/lib/sprint-init.js +41 -0
- package/lib/test-alignment.ts +651 -0
- package/mock-policy/AGENTS.md +3 -3
- package/mutation/AGENTS.md +3 -3
- package/mutation/gate-m.ts +18 -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 +3 -3
- package/plugins/claude-code/skills/sprint-flow/AGENTS.md +3 -3
- package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +3 -3
- package/plugins/opencode/package.json +1 -1
- package/plugins/opencode/skills/delphi-review/AGENTS.md +3 -3
- package/plugins/opencode/skills/sprint-flow/AGENTS.md +3 -3
- package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +3 -3
- package/plugins/qoder/plugin.json +1 -1
- package/plugins/qoder/skills/delphi-review/AGENTS.md +3 -3
- package/plugins/qoder/skills/sprint-flow/AGENTS.md +3 -3
- package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +3 -3
- package/principles/AGENTS.md +3 -3
- package/skills/delphi-review/AGENTS.md +3 -3
- package/skills/sprint-flow/AGENTS.md +3 -3
- package/skills/test-specification-alignment/AGENTS.md +3 -3
package/mutation/gate-m.ts
CHANGED
|
@@ -53,7 +53,11 @@ function parseArgs(args: string[]): GateMOptions {
|
|
|
53
53
|
function parseChangedFiles(options: GateMOptions, args: string[], i: number): void {
|
|
54
54
|
const next = args[++i];
|
|
55
55
|
if (next) {
|
|
56
|
-
options.changedFiles = next
|
|
56
|
+
options.changedFiles = next
|
|
57
|
+
.replace(/\n/g, ',')
|
|
58
|
+
.split(',')
|
|
59
|
+
.map(f => f.trim())
|
|
60
|
+
.filter(Boolean);
|
|
57
61
|
}
|
|
58
62
|
}
|
|
59
63
|
|
|
@@ -511,13 +515,23 @@ export async function runGateM(options: GateMOptions): Promise<GateMResult> {
|
|
|
511
515
|
warnings.push(`Mutation testing timed out for: ${timeoutFiles.join(', ')}. Run locally for full report.`);
|
|
512
516
|
}
|
|
513
517
|
|
|
514
|
-
const
|
|
518
|
+
const evaluableThresholds = thresholds.filter(ft => !timeoutFiles.includes(ft.file));
|
|
519
|
+
const evalResult = evaluateScores(fileScores, evaluableThresholds, baseline);
|
|
515
520
|
for (const msg of evalResult.messages) console.log(` ${msg}`);
|
|
516
521
|
|
|
522
|
+
if (timeoutFiles.length > 0) {
|
|
523
|
+
for (const f of timeoutFiles) {
|
|
524
|
+
console.log(` SKIP ${f}: mutation testing timed out (score unavailable)`);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
517
528
|
if (evalResult.blocked) {
|
|
518
|
-
return buildResult('block',
|
|
529
|
+
return buildResult('block', evaluableThresholds.length, buildMutationScores(fileScores), warnings, errors);
|
|
530
|
+
}
|
|
531
|
+
if (evaluableThresholds.length === 0) {
|
|
532
|
+
return buildResult('skip', 0, {}, warnings, errors);
|
|
519
533
|
}
|
|
520
|
-
return buildResult('pass',
|
|
534
|
+
return buildResult('pass', evaluableThresholds.length, buildMutationScores(fileScores), warnings, errors);
|
|
521
535
|
}
|
|
522
536
|
|
|
523
537
|
interface PartitionedScores {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xp-gate",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.3",
|
|
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-07-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-07-29
|
|
4
|
+
**Commit:** 527fca8
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.18.
|
|
6
|
+
**Version:** 0.18.3.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, 3 experts from ≥2 providers, domestic models only). Supports design + code-walkthrough modes.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/SPRINT-FLOW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-07-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-07-29
|
|
4
|
+
**Commit:** 527fca8
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.18.
|
|
6
|
+
**Version:** 0.18.3.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-07-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-07-29
|
|
4
|
+
**Commit:** 527fca8
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.18.
|
|
6
|
+
**Version:** 0.18.3.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-07-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-07-29
|
|
4
|
+
**Commit:** 527fca8
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.18.
|
|
6
|
+
**Version:** 0.18.3.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, 3 experts from ≥2 providers, domestic models only). Supports design + code-walkthrough modes.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/SPRINT-FLOW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-07-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-07-29
|
|
4
|
+
**Commit:** 527fca8
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.18.
|
|
6
|
+
**Version:** 0.18.3.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-07-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-07-29
|
|
4
|
+
**Commit:** 527fca8
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.18.
|
|
6
|
+
**Version:** 0.18.3.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.18.
|
|
3
|
+
"version": "0.18.3",
|
|
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-07-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-07-29
|
|
4
|
+
**Commit:** 527fca8
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.18.
|
|
6
|
+
**Version:** 0.18.3.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, 3 experts from ≥2 providers, domestic models only). Supports design + code-walkthrough modes.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/SPRINT-FLOW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-07-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-07-29
|
|
4
|
+
**Commit:** 527fca8
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.18.
|
|
6
|
+
**Version:** 0.18.3.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-07-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-07-29
|
|
4
|
+
**Commit:** 527fca8
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.18.
|
|
6
|
+
**Version:** 0.18.3.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-07-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-07-29
|
|
4
|
+
**Commit:** 527fca8
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.18.
|
|
6
|
+
**Version:** 0.18.3.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-07-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-07-29
|
|
4
|
+
**Commit:** 527fca8
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.18.
|
|
6
|
+
**Version:** 0.18.3.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, 3 experts from ≥2 providers, domestic models only). Supports design + code-walkthrough modes.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SKILLS/SPRINT-FLOW KNOWLEDGE BASE
|
|
2
2
|
|
|
3
|
-
**Generated:** 2026-07-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-07-29
|
|
4
|
+
**Commit:** 527fca8
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.18.
|
|
6
|
+
**Version:** 0.18.3.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-07-
|
|
4
|
-
**Commit:**
|
|
3
|
+
**Generated:** 2026-07-29
|
|
4
|
+
**Commit:** 527fca8
|
|
5
5
|
**Branch:** main
|
|
6
|
-
**Version:** 0.18.
|
|
6
|
+
**Version:** 0.18.3.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|