@boyingliu01/xp-gate 0.40.0 → 0.40.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.
@@ -278,7 +278,16 @@ else
278
278
  # this file's own directory (covers a test that `source`s the gate directly,
279
279
  # where no driver ran and $GATE_DIR is unset), and the repo root.
280
280
  XP_FC_LIB="${GATE_DIR:-}/lib/file-classifier.sh"
281
+ # In the PUBLISHED package this file lives beside `hooks/`, and the classifier
282
+ # lives at `hooks/lib/`. The three candidates below cover a driver that set
283
+ # $GATE_DIR, a test that sources this file directly (no driver, so the sibling
284
+ # `lib/` one level up), and a checkout. The shipped layout was none of them:
285
+ # `src/npm-package/gate-10.sh` + `src/npm-package/hooks/lib/`, so on CI the gate
286
+ # printed "source classifier missing ... refusing to grade" and exited 0 -- ten
287
+ # assertions in issue-532 measured that refusal instead of a verdict about SAST.
288
+ XP_FC_LIB="${GATE_DIR:-}/lib/file-classifier.sh"
281
289
  [ -f "$XP_FC_LIB" ] || XP_FC_LIB="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" 2>/dev/null && pwd)/lib/file-classifier.sh"
290
+ [ -f "$XP_FC_LIB" ] || XP_FC_LIB="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" 2>/dev/null && pwd)/hooks/lib/file-classifier.sh"
282
291
  [ -f "$XP_FC_LIB" ] || XP_FC_LIB="$(git rev-parse --show-toplevel 2>/dev/null)/githooks/lib/file-classifier.sh"
283
292
  if [ ! -f "$XP_FC_LIB" ]; then
284
293
  echo "BLOCKED - source classifier missing (githooks/lib/file-classifier.sh); refusing to grade an unknown population."
package/gate-10.sh CHANGED
@@ -278,7 +278,16 @@ else
278
278
  # this file's own directory (covers a test that `source`s the gate directly,
279
279
  # where no driver ran and $GATE_DIR is unset), and the repo root.
280
280
  XP_FC_LIB="${GATE_DIR:-}/lib/file-classifier.sh"
281
+ # In the PUBLISHED package this file lives beside `hooks/`, and the classifier
282
+ # lives at `hooks/lib/`. The three candidates below cover a driver that set
283
+ # $GATE_DIR, a test that sources this file directly (no driver, so the sibling
284
+ # `lib/` one level up), and a checkout. The shipped layout was none of them:
285
+ # `src/npm-package/gate-10.sh` + `src/npm-package/hooks/lib/`, so on CI the gate
286
+ # printed "source classifier missing ... refusing to grade" and exited 0 -- ten
287
+ # assertions in issue-532 measured that refusal instead of a verdict about SAST.
288
+ XP_FC_LIB="${GATE_DIR:-}/lib/file-classifier.sh"
281
289
  [ -f "$XP_FC_LIB" ] || XP_FC_LIB="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" 2>/dev/null && pwd)/lib/file-classifier.sh"
290
+ [ -f "$XP_FC_LIB" ] || XP_FC_LIB="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" 2>/dev/null && pwd)/hooks/lib/file-classifier.sh"
282
291
  [ -f "$XP_FC_LIB" ] || XP_FC_LIB="$(git rev-parse --show-toplevel 2>/dev/null)/githooks/lib/file-classifier.sh"
283
292
  if [ ! -f "$XP_FC_LIB" ]; then
284
293
  echo "BLOCKED - source classifier missing (githooks/lib/file-classifier.sh); refusing to grade an unknown population."
package/hooks/gate-10.sh CHANGED
@@ -278,7 +278,16 @@ else
278
278
  # this file's own directory (covers a test that `source`s the gate directly,
279
279
  # where no driver ran and $GATE_DIR is unset), and the repo root.
280
280
  XP_FC_LIB="${GATE_DIR:-}/lib/file-classifier.sh"
281
+ # In the PUBLISHED package this file lives beside `hooks/`, and the classifier
282
+ # lives at `hooks/lib/`. The three candidates below cover a driver that set
283
+ # $GATE_DIR, a test that sources this file directly (no driver, so the sibling
284
+ # `lib/` one level up), and a checkout. The shipped layout was none of them:
285
+ # `src/npm-package/gate-10.sh` + `src/npm-package/hooks/lib/`, so on CI the gate
286
+ # printed "source classifier missing ... refusing to grade" and exited 0 -- ten
287
+ # assertions in issue-532 measured that refusal instead of a verdict about SAST.
288
+ XP_FC_LIB="${GATE_DIR:-}/lib/file-classifier.sh"
281
289
  [ -f "$XP_FC_LIB" ] || XP_FC_LIB="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" 2>/dev/null && pwd)/lib/file-classifier.sh"
290
+ [ -f "$XP_FC_LIB" ] || XP_FC_LIB="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" 2>/dev/null && pwd)/hooks/lib/file-classifier.sh"
282
291
  [ -f "$XP_FC_LIB" ] || XP_FC_LIB="$(git rev-parse --show-toplevel 2>/dev/null)/githooks/lib/file-classifier.sh"
283
292
  if [ ! -f "$XP_FC_LIB" ]; then
284
293
  echo "BLOCKED - source classifier missing (githooks/lib/file-classifier.sh); refusing to grade an unknown population."
@@ -791,17 +791,24 @@ else
791
791
  # real source path stays unbudgeted. Exclude it and let the mirroring be
792
792
  # governed by Mirror Parity in CI, which compares content rather than
793
793
  # re-linting it. (See the same exclusion in adapters/powershell.sh.)
794
+ MIRROR_EXCLUDE="$MIRROR_PATH_FILTER"
794
795
  # The mutation corpus is DEFECT DATA, not product code: every fixture under
795
796
  # tests/meta-gate/corpus/ carries the violation a gate is being asked to catch.
796
797
  # Boy Scout requires zero warnings from new files, which those files cannot
797
798
  # satisfy by construction -- a corpus with none would test nothing. Excluded here
798
799
  # as well as in the CI workflow so the two surfaces agree about the population.
799
- MIRROR_EXCLUDE="${MIRROR_PATH_FILTER}|^tests/meta-gate/corpus/"
800
+ #
801
+ # A SEPARATE variable, not appended to MIRROR_EXCLUDE: that name means "the
802
+ # mirrored tree" everywhere else, and issue-510 pins it to exactly
803
+ # $MIRROR_PATH_FILTER because two definitions of the mirror prefix is the defect
804
+ # it was filed for. Adding a second concern to the same variable would have
805
+ # re-opened that.
806
+ CORPUS_EXCLUDE='^tests/meta-gate/corpus/'
800
807
  # filter_project_paths also removes dependencies and build output (#649):
801
808
  # a staged node_modules/ or dist/ file is not budgetable project code, and
802
809
  # entering it in the Boy Scout baseline would budget a path nobody edits.
803
- NEW_FILES=$(git diff --cached --name-only --diff-filter=A | filter_project_paths | grep -v "$MIRROR_EXCLUDE" | grep -v "$DASHBOARD_PATH_FILTER" | tr '\n' ' ')
804
- MODIFIED_FILES=$(git diff --cached --name-only --diff-filter=M | filter_project_paths | grep -v "$MIRROR_EXCLUDE" | grep -v "$DASHBOARD_PATH_FILTER" | tr '\n' ' ')
810
+ NEW_FILES=$(git diff --cached --name-only --diff-filter=A | filter_project_paths | grep -v "$MIRROR_EXCLUDE" | grep -v "$DASHBOARD_PATH_FILTER" | grep -Ev "$CORPUS_EXCLUDE" | tr '\n' ' ')
811
+ MODIFIED_FILES=$(git diff --cached --name-only --diff-filter=M | filter_project_paths | grep -v "$MIRROR_EXCLUDE" | grep -v "$DASHBOARD_PATH_FILTER" | grep -Ev "$CORPUS_EXCLUDE" | tr '\n' ' ')
805
812
 
806
813
  if [ -z "$NEW_FILES" ] && [ -z "$MODIFIED_FILES" ]; then
807
814
  echo " ✅ No new or modified files to check."
@@ -476,7 +476,15 @@ case "$GATE_9_STATUS" in
476
476
  # GATE_9_UNVERIFIED is already computed for the PASS note above and the journal;
477
477
  # the SKIP line was the one place it still went unsaid.
478
478
  SKIP)
479
- if [ -n "${GATE_9_UNVERIFIED:-}" ]; then
479
+ # Two different sentences, because they answer different questions.
480
+ #
481
+ # `no_change_needing_build_integrity` is the JOURNAL reason stamped below when
482
+ # the change set carries no language this gate builds -- it must be present, and
483
+ # it must be machine-readable. It is not a list of languages, though, so printing
484
+ # it after "no build-integrity half for:" claimed that a language named
485
+ # `no_change_needing_build_integrity` went unchecked. The reader gets plain
486
+ # English; the journal keeps the token.
487
+ if [ -n "${GATE_9_UNVERIFIED:-}" ] && [ "$GATE_9_UNVERIFIED" != "no_change_needing_build_integrity" ]; then
480
488
  echo "⏭️ Gate 9 skipped in ${GATE_9_DURATION}s — no build-integrity half for: ${GATE_9_UNVERIFIED}"
481
489
  else
482
490
  echo "⏭️ Gate 9 skipped in ${GATE_9_DURATION}s (nothing was verified)"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boyingliu01/xp-gate",
3
- "version": "0.40.0",
3
+ "version": "0.40.1",
4
4
  "description": "Deterministic quality gates for AI-generated code: 15 gates, Delphi review, sprint flow. Works with Claude Code, OpenCode, Qoder.",
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.40.0",
3
+ "version": "0.40.1",
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.40.0.0
6
+ **Version:** 0.40.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.
@@ -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.40.0.0
6
+ **Version:** 0.40.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; 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.40.0.0
6
+ **Version:** 0.40.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": "@boyingliu01/dsh-plugin-xp-gate",
3
- "version": "0.40.0",
3
+ "version": "0.40.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",
@@ -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.40.0.0
6
+ **Version:** 0.40.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.
@@ -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.40.0.0
6
+ **Version:** 0.40.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; 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.40.0.0
6
+ **Version:** 0.40.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": "@boyingliu01/opencode-plugin",
3
- "version": "0.40.0",
3
+ "version": "0.40.1",
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.40.0.0
6
+ **Version:** 0.40.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.
@@ -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.40.0.0
6
+ **Version:** 0.40.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; 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.40.0.0
6
+ **Version:** 0.40.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.40.0",
3
+ "version": "0.40.1",
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.40.0.0
6
+ **Version:** 0.40.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.
@@ -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.40.0.0
6
+ **Version:** 0.40.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; 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.40.0.0
6
+ **Version:** 0.40.1.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.40.0.0
6
+ **Version:** 0.40.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.
@@ -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.40.0.0
6
+ **Version:** 0.40.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; 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.40.0.0
6
+ **Version:** 0.40.1.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.