@boyingliu01/xp-gate 0.38.38 → 0.38.41

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.
@@ -210,6 +210,29 @@ gate10_resolve_ruleset() {
210
210
  }
211
211
  # @@RULES-RESOLVER-END@@
212
212
 
213
+
214
+ # --- Telemetry: never let an upload be the gate's runtime -------------------
215
+ #
216
+ # This file's own header already named telemetry as part of the import chain
217
+ # behind semgrep's ~9s startup -- and then never disabled it. Measured
218
+ # 2026-11-19, one trivial file, ABBA-alternated so a time trend cannot explain it:
219
+ #
220
+ # semgrep scan --config=auto ... 8095ms / 98595ms
221
+ # SEMGREP_SEND_METRICS=off (same command) 402ms / 481ms
222
+ #
223
+ # A 20x difference that moves with the network. That is exactly the bimodal shape
224
+ # the audit journal had recorded all along and nobody read: of 445 credible
225
+ # sast-security rows, 184 finished under 2s (the metrics POST failed fast) and 225
226
+ # took over 10s (it hung), with the fastest at 191ms and the slowest at 247s.
227
+ # Gate 10 was the single largest p90 share in the chain -- 35.6% -- because its
228
+ # runtime was network wait, which is the one thing a commit gate may not spend
229
+ # time on.
230
+ #
231
+ # Default OFF. The override exists because a team may legitimately want its own
232
+ # semgrep metrics for central rule tuning; what must not be true is that
233
+ # contacting semgrep.dev is the DEFAULT for every commit on every checkout.
234
+ SEMGREP_SEND_METRICS="${XP_GATE_SEMGREP_METRICS:-off}"
235
+ export SEMGREP_SEND_METRICS
213
236
  # Semgrep availability check
214
237
  SEMGREP_CMD=""
215
238
  if command -v semgrep >/dev/null 2>&1; then
@@ -34,6 +34,9 @@ if [ -z "$STAGED_FILES" ]; then
34
34
  echo " ✅ PASSED - File Hygiene (no files to check)"
35
35
  GATE_12_STATUS="SKIP"
36
36
  record_gate_audit "gate-12" "file-hygiene" "$GATE_12_STATUS" "0" "$GATE_12_START"
37
+ # shellcheck disable=SC2317 # the gate body is SOURCED, never run to completion here:
38
+ # the driver calls gate_12_run and treats a returned rc as the verdict, so the
39
+ # lines after this return ARE reachable in production (see pre-commit).
37
40
  return 0 2>/dev/null || true
38
41
  fi
39
42
 
@@ -63,31 +66,115 @@ HYGIENE_FILES=""
63
66
  # NUL), and `grep -I` only suppresses output on a binary input -- it does not make
64
67
  # `grep -q` fail, which is why that shortcut still reported text.
65
68
  is_binary_staged_file() {
66
- local _file="$1"
67
- case "$(git diff --cached --numstat -- "$_file" 2>/dev/null)" in
68
- -[[:space:]]-*) return 0 ;; # binary: git could not count lines
69
- *) return 1 ;; # text (or empty -- nothing for the line checks)
69
+ case " $GATE_12_BINARY_SET " in
70
+ *" $1 "*) return 0 ;; # binary: git could not count lines
71
+ *) return 1 ;; # text (or empty -- nothing for the line checks)
70
72
  esac
71
73
  }
72
74
 
73
- # --- Check 1: Trailing whitespace ---
74
- TRAILING_WS_FILES=""
75
- if [ "${GATE_12_DOCS_ONLY:-false}" != true ]; then
76
- while IFS= read -r file; do
77
- [ -z "$file" ] && continue
78
- # Skip binary files : they have no lines to check
79
- if is_binary_staged_file "$file"; then
80
- continue
81
- fi
82
- # Check staged content for trailing whitespace (spaces/tabs at end of lines)
83
- if git show ":$file" 2>/dev/null | grep -qE '[[:space:]]$'; then
84
- TRAILING_WS_FILES="$TRAILING_WS_FILES $file"
85
- fi
75
+ # Classify the WHOLE change set in one git call.
76
+ #
77
+ # This used to be `git diff --cached --numstat -- "$file"` inside
78
+ # is_binary_staged_file, i.e. one process per file PER CHECK that asked. Three
79
+ # checks ask, so every staged text file cost three git spawns just to learn
80
+ # "text", before any check looked at a byte:
81
+ #
82
+ # measured 2026-11-19, plain-text fixture, this machine:
83
+ # 300 staged files 4m22s (~0.87 s/file)
84
+ # 100 staged files 2m36s
85
+ # 0 staged files 0.5s (the loop never runs)
86
+ #
87
+ # and the audit journal agrees -- 1208 credible file-hygiene rows, median 4.2s,
88
+ # p90 41.7s, 244 over 20s. The cost is process creation, not bytes examined, so
89
+ # it scales with the change set; a text check should not be the second most
90
+ # expensive gate in the chain.
91
+ #
92
+ # `--numstat` already reports the whole index in one shot and marks a binary
93
+ # entry as `-\t-\t<path>`. Same predicate, computed once. If git fails the set
94
+ # stays empty and every file is treated as text -- identical to the old per-file
95
+ # fallback (a failed `git diff` produced no finding).
96
+ GATE_12_BINARY_SET=" "
97
+ while IFS=$'\t' read -r _g12_adds _g12_dels _g12_path; do
98
+ [ -z "$_g12_path" ] && continue
99
+ case "$_g12_adds" in
100
+ -) GATE_12_BINARY_SET="${GATE_12_BINARY_SET}${_g12_path} " ;;
101
+ esac
86
102
  done <<EOF
87
- $STAGED_FILES
103
+ $(git diff --cached --numstat --diff-filter=d 2>/dev/null | grep -vE '(^|/)(node_modules|\.stryker-tmp|vendor)/')
88
104
  EOF
105
+
106
+ # --- Checks 1 and 2 share ONE process per file, not two --------------------
107
+ #
108
+ # Both checks read the same blob. They used to read it separately:
109
+ #
110
+ # git show ":$file" | grep -qE '[[:space:]]$' # trailing whitespace
111
+ # git show ":$file" | tail -c 1 # missing EOF newline
112
+ #
113
+ # so the content was produced twice per file. `git cat-file --batch` streams both
114
+ # answers from a single process for the whole change set.
115
+ #
116
+ # The two predicates are unchanged, which is the point of the rewrite:
117
+ # trailing whitespace -> a line ending in space/tab exists in the blob
118
+ # missing EOF newline -> the blob is non-empty and its last byte is not \n
119
+ #
120
+ # The last byte is taken with `od`, not command substitution: `$(...)` strips
121
+ # every trailing newline, which is the original defect this check documents --
122
+ # a correctly terminated file reported its last visible character and was flagged
123
+ # every time.
124
+ # The AWK scanner that answers all three content checks in one process. Resolved
125
+ # next to this script's own directory chain, like every other shared library, so
126
+ # a global install (~/.config/xp-gate/) and the tracked tree both work.
127
+ if [ -z "${GATE_12_SCANNER:-}" ]; then
128
+ for _g12_dir in "${GATE_DIR:-}" "$(dirname "${BASH_SOURCE[0]}")/.." \
129
+ "$(dirname "${BASH_SOURCE[0]}")/../.."; do
130
+ [ -n "$_g12_dir" ] || continue
131
+ if [ -f "$_g12_dir/lib/gate-12-blob-scan.awk" ]; then
132
+ GATE_12_SCANNER="$_g12_dir/lib/gate-12-blob-scan.awk"
133
+ break
134
+ fi
135
+ done
136
+ unset _g12_dir
137
+ fi
138
+ GATE_12_SCANNER="${GATE_12_SCANNER:-}"
139
+
140
+ GATE_12_HAS_TRAILING_WS=" "
141
+ GATE_12_MISSING_EOF=" "
142
+ GATE_12_HAS_CONFLICT=" "
143
+
144
+ _g12_scan_blobs() {
145
+ # ONE awk process for the whole change set (see githooks/lib/gate-12-blob-scan.awk
146
+ # for the measurements that made this a rewrite rather than a tidy-up).
147
+ #
148
+ # The path list is |-separated because a staged path may contain a newline.
149
+ local _paths _out
150
+ _paths=$(printf %s "$STAGED_FILES" | tr '\n' '|')
151
+ [ -z "$_paths" ] && return 0
152
+ _out=$(printf '%s\n' "$STAGED_FILES" | sed 's/^/:/' \
153
+ | git cat-file --batch 2>/dev/null \
154
+ | awk -v paths="$_paths" -f "$GATE_12_SCANNER" 2>/dev/null) || return 0
155
+ [ -z "$_out" ] && return 0
156
+ GATE_12_HAS_TRAILING_WS=$(printf %s "$_out" | sed -n 's/^WS://p')
157
+ GATE_12_MISSING_EOF=$(printf %s "$_out" | sed -n 's/^NOEOF://p')
158
+ GATE_12_HAS_CONFLICT=$(printf %s "$_out" | sed -n 's/^CONFLICT://p')
159
+ }
160
+
161
+ if [ "${GATE_12_DOCS_ONLY:-false}" != true ]; then
162
+ _g12_scan_blobs
89
163
  fi
90
164
 
165
+ _g12_in_set() {
166
+ case " $1 " in
167
+ *" $2 "*) return 0 ;;
168
+ *) return 1 ;;
169
+ esac
170
+ }
171
+
172
+ # --- Check 1: Trailing whitespace ---
173
+ TRAILING_WS_FILES=""
174
+ for file in $GATE_12_HAS_TRAILING_WS; do
175
+ TRAILING_WS_FILES="$TRAILING_WS_FILES $file"
176
+ done
177
+
91
178
  if [ -n "$TRAILING_WS_FILES" ]; then
92
179
  echo " ⚠️ Trailing whitespace detected in:"
93
180
  for f in $TRAILING_WS_FILES; do
@@ -105,26 +192,17 @@ fi
105
192
  # Every staged text file was a false positive, which is how a check that always
106
193
  # fires looks exactly like a strict check. `git show | tail -c 1` keeps the byte.
107
194
  file_missing_eof_newline() {
108
- local last_byte
109
- last_byte=$(git show ":$1" 2>/dev/null | tail -c 1)
110
- # Empty output means the blob is empty: there is no line to terminate.
111
- [ -n "$last_byte" ]
195
+ # Answered by _g12_scan_blobs, from the same single process that answered
196
+ # Check 1. Kept as a named predicate because that is the question being asked;
197
+ # the implementation is a set lookup now.
198
+ _g12_in_set "$GATE_12_MISSING_EOF" "$1"
112
199
  }
113
200
 
114
201
  NO_EOF_NEWLINE_FILES=""
115
202
  if [ "${GATE_12_DOCS_ONLY:-false}" != true ]; then
116
- while IFS= read -r file; do
117
- [ -z "$file" ] && continue
118
- # Skip binary files
119
- if is_binary_staged_file "$file"; then
120
- continue
121
- fi
122
- if file_missing_eof_newline "$file"; then
123
- NO_EOF_NEWLINE_FILES="$NO_EOF_NEWLINE_FILES $file"
124
- fi
125
- done <<EOF
126
- $STAGED_FILES
127
- EOF
203
+ for file in $GATE_12_MISSING_EOF; do
204
+ NO_EOF_NEWLINE_FILES="$NO_EOF_NEWLINE_FILES $file"
205
+ done
128
206
  fi
129
207
 
130
208
  if [ -n "$NO_EOF_NEWLINE_FILES" ]; then
@@ -148,19 +226,9 @@ if [ "${GATE_12_DOCS_ONLY:-false}" = true ]; then
148
226
  CONFLICT_MARKER_FILES="$STAGED_FILES"
149
227
  fi
150
228
  else
151
- while IFS= read -r file; do
152
- [ -z "$file" ] && continue
153
- # Skip binary files
154
- if is_binary_staged_file "$file"; then
155
- continue
156
- fi
157
- # Check for conflict markers in staged content
158
- if git show ":$file" 2>/dev/null | grep -qE '^(<{7}|={7}|>{7})([[:space:]]|$)'; then
159
- CONFLICT_MARKER_FILES="$CONFLICT_MARKER_FILES $file"
160
- fi
161
- done <<EOF
162
- $STAGED_FILES
163
- EOF
229
+ for file in $GATE_12_HAS_CONFLICT; do
230
+ CONFLICT_MARKER_FILES="$CONFLICT_MARKER_FILES $file"
231
+ done
164
232
  fi
165
233
 
166
234
  if [ -n "$CONFLICT_MARKER_FILES" ]; then
@@ -178,7 +246,22 @@ if [ "${GATE_12_DOCS_ONLY:-false}" != true ]; then
178
246
  while IFS= read -r file; do
179
247
  [ -z "$file" ] && continue
180
248
  [ ! -f "$file" ] && continue
181
- FILE_SIZE=$(wc -c < "$file" 2>/dev/null | tr -d ' ')
249
+ # `wc -c` is a process per file; measured 300 files = 12.6s on this machine,
250
+ # which after the blob scanner was the largest remaining share of a 36.9s run.
251
+ # `$(<file)` is a bash builtin with no fork, and `LC_ALL=C` makes ${#var} a
252
+ # BYTE count rather than a character count -- the threshold is in bytes
253
+ # (XP_GATE_MAX_FILE_SIZE, default 1 MiB), so a multibyte file must not measure
254
+ # short and slip under it.
255
+ #
256
+ # Binary files are not excluded from this check, so the read must not choke on
257
+ # them: an unreadable blob leaves FILE_SIZE empty and the comparison is skipped,
258
+ # exactly as a failed `wc -c` did.
259
+ FILE_SIZE=""
260
+ if [ -r "$file" ]; then
261
+ _g12_content=$(LC_ALL=C IFS= read -r -d '' _g12_all < "$file" 2>/dev/null; printf '%s' "${#_g12_all}")
262
+ FILE_SIZE=$((${_g12_content:-0}))
263
+ unset _g12_content
264
+ fi
182
265
  if [ -n "$FILE_SIZE" ] && [ "$FILE_SIZE" -gt "$MAX_FILE_SIZE_BYTES" ]; then
183
266
  SIZE_MB=$((FILE_SIZE / 1048576))
184
267
  OVERSIZED_FILES="$OVERSIZED_FILES $file(${SIZE_MB}MB)"
@@ -248,7 +331,8 @@ except yaml.YAMLError as e:
248
331
  except Exception:
249
332
  pass
250
333
  " 2>&1)
251
- if [ $? -ne 0 ] && [ -n "$YAML_ERROR" ]; then
334
+ _g12_rc=$?
335
+ if [ "$_g12_rc" -ne 0 ] && [ -n "$YAML_ERROR" ]; then
252
336
  YAML_JSON_ERRORS+=("$file(yaml:$YAML_ERROR)")
253
337
  fi
254
338
  fi
@@ -259,13 +343,15 @@ except Exception:
259
343
  JSON_ERROR=$(git show ":$file" 2>/dev/null | node -e "
260
344
  let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{try{JSON.parse(d)}catch(e){console.log(e.message.split('\\n')[0]);process.exit(1)}})
261
345
  " 2>&1)
262
- if [ $? -ne 0 ] && [ -n "$JSON_ERROR" ]; then
346
+ _g12_rc=$?
347
+ if [ "$_g12_rc" -ne 0 ] && [ -n "$JSON_ERROR" ]; then
263
348
  YAML_JSON_ERRORS+=("$file(json:$JSON_ERROR)")
264
349
  fi
265
350
  elif [ "$JSON_CMD" = "jq" ]; then
266
351
  JSON_ERROR=$(git show ":$file" 2>/dev/null | jq empty 2>&1)
267
- if [ $? -ne 0 ] && [ -n "$JSON_ERROR" ]; then
268
- YAML_JSON_ERRORS+=("$file(json:syntax error)")
352
+ _g12_rc=$?
353
+ if [ "$_g12_rc" -ne 0 ] && [ -n "$JSON_ERROR" ]; then
354
+ YAML_JSON_ERRORS+=("$file(json:$JSON_ERROR)")
269
355
  fi
270
356
  fi
271
357
  ;;
@@ -290,6 +376,9 @@ if [ "${GATE_12_DOCS_ONLY:-false}" = true ] && [ "$HYGIENE_ISSUES" -eq 0 ]; then
290
376
  echo " ✅ PASSED - File Hygiene (docs-only commit: diff-scoped conflict-marker + YAML/JSON checks clean)."
291
377
  GATE_12_STATUS="PASS"
292
378
  record_gate_audit "gate-12" "file-hygiene" "$GATE_12_STATUS" "0" "$GATE_12_START" "" "docs_only_change"
379
+ # shellcheck disable=SC2317 # the gate body is SOURCED, never run to completion here:
380
+ # the driver calls gate_12_run and treats a returned rc as the verdict, so the
381
+ # lines after this return ARE reachable in production (see pre-commit).
293
382
  return 0 2>/dev/null || true
294
383
  fi
295
384
  if [ "$HYGIENE_ISSUES" -eq 0 ]; then
@@ -0,0 +1,99 @@
1
+ # ============================================================================
2
+ # Gate 12 blob scanner -- ONE awk process for the whole change set.
3
+ #
4
+ # WHY THIS FILE EXISTS
5
+ # The gate asked git once per file per check, and piped through tail/head/grep
6
+ # inside the per-file loop. Measured on this machine (2026-11-19, 300 staged
7
+ # plain-text files):
8
+ #
9
+ # original design (4 git spawns + tail/head/grep/od per file) 4m22s
10
+ # batching only the binary classification 3m14s
11
+ # batching the blob fetch but keeping tail|head in the loop 6m25s
12
+ # this scanner 0.32s
13
+ #
14
+ # The third line is the one worth keeping: removing the git calls but leaving
15
+ # a `tail | head | grep` per file made the gate SLOWER. Isolated costs that
16
+ # explain it:
17
+ # 300 x `git show ":$f"` 26.2s
18
+ # 300 x `git diff --numstat -- $f` 27.0s
19
+ # 300 x `tail | head` (only) 21.8s
20
+ # ~53s of the original 262s was git; the rest was the pipe stages, each a
21
+ # process. The rule this encodes: nothing may be spawned inside a per-file
22
+ # loop. One awk over one stream is O(1) processes.
23
+ #
24
+ # INPUT
25
+ # stdin stdout of `git cat-file --batch`, requested as `:<path>` per staged
26
+ # file in the SAME order as the path list.
27
+ # -v paths="a|b|c"
28
+ # The staged paths, '|'-separated. Not newline-separated: a staged path
29
+ # may itself contain a newline, and this gate exists to look at exactly
30
+ # that kind of awkward input.
31
+ #
32
+ # OUTPUT
33
+ # Three lines, `<tag>:<space separated paths>`:
34
+ # WS: a line ends with a space or a tab
35
+ # NOEOF: a non-empty blob whose final byte is not \n
36
+ # CONFLICT: a line is 7 x '<', '=' or '>' followed by a space or EOL
37
+ #
38
+ # FRAMING
39
+ # git writes "<sha> blob <size>\n" then exactly <size> bytes then "\n", and
40
+ # repeats. Reading by <size> is what makes NOEOF representable at all: the
41
+ # body is consumed by byte count, so a shortfall on the final line IS the
42
+ # missing newline. (The previous implementation captured the blob with $(...),
43
+ # which strips trailing newlines -- so a correctly terminated file reported
44
+ # its last visible character and was flagged every single time.)
45
+ #
46
+ # Binary files are filtered out before this runs, so no body line contains a
47
+ # NUL and `length($0) + 1` is a faithful byte count. That is the precondition
48
+ # for the arithmetic below; do not remove the binary filter.
49
+ # ============================================================================
50
+
51
+ BEGIN {
52
+ nu = split(paths, U, "|")
53
+ ui = 1
54
+ ws = ""; noeof = ""; conf = ""
55
+ }
56
+
57
+ # A lookup that failed is reported as "<name> missing" -- never a size line.
58
+ / missing\r?$/ { ui++; next }
59
+
60
+ {
61
+ size = $NF
62
+ sub(/\r$/, "", size)
63
+ if (size !~ /^[0-9]+$/) next # not a header line; nothing to attribute
64
+
65
+ name = (ui <= nu) ? U[ui] : ""
66
+ ui++
67
+
68
+ remaining = size + 0
69
+ if (remaining == 0) { # empty blob: no line to check, no byte
70
+ getline
71
+ next
72
+ }
73
+
74
+ bad_ws = 0
75
+ bad_conf = 0
76
+ ends_nl = 1
77
+ while (remaining > 0) {
78
+ if ((getline body) <= 0) { ends_nl = 0; break }
79
+ n = length(body) + 1 # + the newline getline consumed
80
+ if (n > remaining) { n = remaining; ends_nl = 0 } # final line had no \n
81
+ if (body ~ /[ \t]$/) bad_ws = 1
82
+ if (body ~ /^(<{7}|={7}|>{7})([ \t]|$)/) bad_conf = 1
83
+ remaining -= n
84
+ }
85
+ # git writes one newline AFTER each object. It is only there to be skipped
86
+ # when the body itself was newline-terminated; when it was not, the next
87
+ # getline already points at the following header and consuming a line here
88
+ # would swallow it -- which is exactly how a blob without an EOF newline used
89
+ # to corrupt the attribution of the file after it.
90
+ if (ends_nl) getline
91
+
92
+ if (bad_ws) ws = ws " " name
93
+ if (bad_conf) conf = conf " " name
94
+ if (!ends_nl) noeof = noeof " " name
95
+ }
96
+
97
+ END {
98
+ printf "WS:%s\nNOEOF:%s\nCONFLICT:%s\n", ws, noeof, conf
99
+ }
@@ -2,6 +2,6 @@
2
2
  "verdict": "PASS",
3
3
  "license_type": "MIT",
4
4
  "sha256": "0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5",
5
- "checked_at": "2026-11-19T14:38:03.787Z",
5
+ "checked_at": "2026-11-19T16:20:39.429Z",
6
6
  "source": "network"
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boyingliu01/xp-gate",
3
- "version": "0.38.38",
3
+ "version": "0.38.41",
4
4
  "description": "AI-driven development workflow: 6 quality gates + Delphi review + Sprint Flow",
5
5
  "bin": {
6
6
  "xp-gate": "bin/xp-gate.js"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xp-gate",
3
- "version": "0.38.38",
3
+ "version": "0.38.41",
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.38.0
6
+ **Version:** 0.38.41.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.38.0
6
+ **Version:** 0.38.41.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.38.0
6
+ **Version:** 0.38.41.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": "@boyingliu01/dsh-plugin-xp-gate",
3
- "version": "0.38.38",
3
+ "version": "0.38.41",
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.38.0
6
+ **Version:** 0.38.41.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.38.0
6
+ **Version:** 0.38.41.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.38.0
6
+ **Version:** 0.38.41.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": "@boyingliu01/opencode-plugin",
3
- "version": "0.38.38",
3
+ "version": "0.38.41",
4
4
  "type": "module",
5
5
  "main": "index.ts",
6
6
  "description": "XP-Gate quality gates + AI workflow skills for OpenCode",
@@ -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.38.0
6
+ **Version:** 0.38.41.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.38.0
6
+ **Version:** 0.38.41.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.38.0
6
+ **Version:** 0.38.41.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.38.0
6
+ **Version:** 0.38.41.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.38.0
6
+ **Version:** 0.38.41.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.38.0
6
+ **Version:** 0.38.41.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.38.0
6
+ **Version:** 0.38.41.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.38.0
6
+ **Version:** 0.38.41.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.38.0
6
+ **Version:** 0.38.41.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.