@boyingliu01/xp-gate 0.38.14 → 0.38.15
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/build-integrity/gate-10.ts +2 -2
- package/hooks/gate-entries/gate-9-entry.sh +55 -3
- 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
|
@@ -836,7 +836,7 @@ export function parseGate10Args(args: string[]): Gate10Args {
|
|
|
836
836
|
// ─── CLI Result Formatting ─────────────────────────────────────────────────────
|
|
837
837
|
|
|
838
838
|
function printHelp(): void {
|
|
839
|
-
console.log(`
|
|
839
|
+
console.log(`Build Integrity Check (Gate 9)
|
|
840
840
|
|
|
841
841
|
Usage:
|
|
842
842
|
npx tsx src/build-integrity/gate-10.ts --changed-files <files> [options]
|
|
@@ -854,7 +854,7 @@ Exit codes:
|
|
|
854
854
|
|
|
855
855
|
function printGate10Result(result: Gate10Result): void {
|
|
856
856
|
console.log('');
|
|
857
|
-
console.log('
|
|
857
|
+
console.log('Build Integrity Check (Gate 9)');
|
|
858
858
|
console.log('─'.repeat(50));
|
|
859
859
|
console.log(
|
|
860
860
|
` tsc: ${formatStatus(result.checks.tsc.status)} ${result.checks.tsc.message.split('\n')[0]} (${result.checks.tsc.durationMs}ms)`
|
|
@@ -194,6 +194,11 @@ GATE_9_START=$(gate_start_ms)
|
|
|
194
194
|
GATE_9_TS_STATUS="SKIP"
|
|
195
195
|
GATE_9_JAVA_STATUS="SKIP"
|
|
196
196
|
GATE_9_STATUS="SKIP"
|
|
197
|
+
# Languages present in this change set that the gate cannot check. Empty means
|
|
198
|
+
# "everything in the change set was either verified or not applicable"; a value
|
|
199
|
+
# means "this commit contains code nobody built". Initialised empty rather than
|
|
200
|
+
# left unset so the PASS warning below is safe under `set -u`.
|
|
201
|
+
GATE_9_UNVERIFIED=""
|
|
197
202
|
|
|
198
203
|
if [ "$DOCS_ONLY_COMMIT" = true ]; then
|
|
199
204
|
# REQ-F2: tsc cannot observe a markdown edit. The commit-level docs-only
|
|
@@ -226,7 +231,22 @@ elif [ -f "package.json" ] && [ -f "tsconfig.json" ]; then
|
|
|
226
231
|
GATE_9_PROJECT_ROOT=$(to_native_path "$PROJECT_ROOT")
|
|
227
232
|
|
|
228
233
|
if [ -n "$GATE_9_SCRIPT" ]; then
|
|
229
|
-
|
|
234
|
+
# CHANGED_FILES is NEWLINE-separated (gate-0-entry.sh builds it with
|
|
235
|
+
# printf '%s\n'). This used to be `tr ' ' ','`, which did neither half of
|
|
236
|
+
# that correctly:
|
|
237
|
+
#
|
|
238
|
+
# - it never converted the actual separator, so every newline survived
|
|
239
|
+
# into the argument the checker received (splitChangedFiles only splits
|
|
240
|
+
# on ','), and
|
|
241
|
+
# - it converted any space INSIDE a path, so "src/my file.ts" arrived as
|
|
242
|
+
# the two fragments "src/my" and "file.ts" -- neither of which exists.
|
|
243
|
+
#
|
|
244
|
+
# Measured: `--changed-files "src/my file.ts"` reached the checker as
|
|
245
|
+
# "src/my,file.ts" and the import scan reported a file it had never opened.
|
|
246
|
+
# The tsc half is unaffected (it compiles from projectRoot, not from this
|
|
247
|
+
# list), which is why the defect never blocked anything -- the import check
|
|
248
|
+
# simply stopped covering the file.
|
|
249
|
+
CHANGED_FILES_CSV=$(printf '%s' "$CHANGED_FILES" | tr '\n' ',')
|
|
230
250
|
GATE_9_OUTPUT=$(mktemp)
|
|
231
251
|
if RUN_TSX_TIMEOUT=120s run_tsx "$GATE_9_SCRIPT" --changed-files "$CHANGED_FILES_CSV" --project-root "$GATE_9_PROJECT_ROOT" --timeout 115000 > "$GATE_9_OUTPUT" 2>&1; then
|
|
232
252
|
GATE_9_TS_STATUS="PASS"
|
|
@@ -280,6 +300,17 @@ if echo "$CHANGED_FILES" | grep -q '\.java$'; then
|
|
|
280
300
|
;;
|
|
281
301
|
esac
|
|
282
302
|
elif [ -f "build.gradle" ] || [ -f "build.gradle.kts" ]; then
|
|
303
|
+
# This arm printed a warning and set NOTHING. GATE_9_JAVA_STATUS kept its
|
|
304
|
+
# initial "SKIP", which the aggregation below cannot distinguish from "Java
|
|
305
|
+
# was not part of this change". Measured on a TS+Gradle fixture: tsc passed,
|
|
306
|
+
# the Java half was never built, and the gate reported PASS with no line
|
|
307
|
+
# saying that a language in the change set went unverified.
|
|
308
|
+
#
|
|
309
|
+
# Gradle support is genuinely backlog (#507 DR-003), so this must not block.
|
|
310
|
+
# But "we could not check your Java" is a different fact from "nothing to
|
|
311
|
+
# check", and it has to reach both the human and the journal.
|
|
312
|
+
GATE_9_JAVA_STATUS="SKIP"
|
|
313
|
+
GATE_9_UNVERIFIED="java:gradle_unsupported"
|
|
283
314
|
echo " ⚠️ Java changes staged but this is a Gradle project - build integrity for Gradle is not implemented yet"
|
|
284
315
|
echo " ⏭️ SKIPPED - Build integrity Java (Gradle backlog, #507 DR-003)"
|
|
285
316
|
else
|
|
@@ -301,12 +332,33 @@ fi
|
|
|
301
332
|
if [ "$GATE_9_TS_STATUS" = "BLOCK" ] || [ "$GATE_9_JAVA_STATUS" = "BLOCK" ]; then
|
|
302
333
|
GATE_9_STATUS="BLOCK"
|
|
303
334
|
fi
|
|
335
|
+
# A PASS that leaves part of the change set unverified is still a PASS -- the
|
|
336
|
+
# unverified language is backlog, not a defect in this commit -- but it must SAY
|
|
337
|
+
# so. This is the same rule as everywhere else in this hook: never let the
|
|
338
|
+
# absence of a verdict read as a positive one.
|
|
339
|
+
if [ "$GATE_9_STATUS" = "PASS" ] && [ -n "${GATE_9_UNVERIFIED:-}" ]; then
|
|
340
|
+
echo " ⚠️ Gate 9 PASSED for the languages it can check; NOT verified: ${GATE_9_UNVERIFIED}"
|
|
341
|
+
fi
|
|
304
342
|
|
|
305
343
|
GATE_9_END=$(gate_start_ms)
|
|
306
344
|
GATE_9_DURATION_MS=$((GATE_9_END - GATE_9_START))
|
|
307
345
|
GATE_9_DURATION=$((GATE_9_DURATION_MS / 1000))
|
|
308
|
-
|
|
309
|
-
|
|
346
|
+
# The tick used to be unconditional: `✅ Gate 9 completed` printed even when the
|
|
347
|
+
# gate had just announced "not a TypeScript project - skipping". Measured on a
|
|
348
|
+
# Python-only fixture:
|
|
349
|
+
# ℹ️ Not a TypeScript project - skipping build integrity check
|
|
350
|
+
# ⏭️ SKIPPED - Build integrity (not a TypeScript project)
|
|
351
|
+
# ✅ Gate 9 completed in 0s
|
|
352
|
+
# status=SKIP
|
|
353
|
+
# Two lines of "skipped" followed by a green tick is the exact shape this
|
|
354
|
+
# codebase keeps having to remove: the journal said SKIP while the last line the
|
|
355
|
+
# human reads said success. The tick now follows the verdict it summarises.
|
|
356
|
+
case "$GATE_9_STATUS" in
|
|
357
|
+
PASS) echo "✅ Gate 9 completed in ${GATE_9_DURATION}s" ;;
|
|
358
|
+
SKIP) echo "⏭️ Gate 9 skipped in ${GATE_9_DURATION}s (nothing was verified)" ;;
|
|
359
|
+
*) echo "❌ Gate 9 blocked in ${GATE_9_DURATION}s" ;;
|
|
360
|
+
esac
|
|
361
|
+
record_gate_audit "gate-9" "build-integrity" "$GATE_9_STATUS" "0" "$GATE_9_START" "${GATE_9_UNVERIFIED:-}"
|
|
310
362
|
echo ""
|
|
311
363
|
# ============================================================================
|
|
312
364
|
return 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xp-gate",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.15",
|
|
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.15.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.15.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.15.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.15",
|
|
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.15.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.15.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.15.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.15.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.15.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.15.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.15",
|
|
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.15.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.15.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.15.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.15.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.15.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.15.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|