@boyingliu01/xp-gate 0.28.0 → 0.28.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.
package/hooks/pre-push CHANGED
@@ -153,8 +153,15 @@ fi
153
153
  DOC_ONLY=true
154
154
  SOURCE_EXTENSIONS="\.py$|\.js$|\.cjs$|\.mjs$|\.ts$|\.tsx$|\.java$|\.go$|\.rs$|\.cpp$|\.c$|\.swift$|\.kt$|\.sh$|\.dart$|\.ps1$|\.m$|\.mm$|\.h$|\.hpp$"
155
155
 
156
+ # Extensionless hook scripts and test files are CODE, not documentation.
157
+ # Measured consequence of the old list: a commit touching githooks/pre-push and
158
+ # its .bats suite was classified "Documentation-only push (no source code
159
+ # files)" and the walkthrough was skipped — the single most safety-critical
160
+ # script in the repo, exempt from review by a filename-shape accident.
161
+ NON_EXT_SOURCE_RE='^(githooks/(pre-commit|pre-push|post-merge|install\.sh|verify\.sh)|[^/]+\.bats)$|/__tests__/'
162
+
156
163
  for file in $PUSHED_FILES; do
157
- if echo "$file" | grep -qE "$SOURCE_EXTENSIONS"; then
164
+ if echo "$file" | grep -qE "$SOURCE_EXTENSIONS" || echo "$file" | grep -qE "$NON_EXT_SOURCE_RE"; then
158
165
  DOC_ONLY=false
159
166
  break
160
167
  fi
@@ -954,6 +961,7 @@ else
954
961
  # GATE MW: VALIDATE CODE WALKTHROUGH RESULT FILE
955
962
  # ============================================================================
956
963
  RESULT_FILE=".code-walkthrough-result.json"
964
+ MW_SKIPPED=0
957
965
 
958
966
  # Skipped on main/master by design, exactly like Gate ML and Gate UI above.
959
967
  # Work is already walkthrough-reviewed on the feature branch before it lands, so
@@ -962,6 +970,7 @@ RESULT_FILE=".code-walkthrough-result.json"
962
970
  # the release commit itself changes nothing anyone reviewed. githooks/AGENTS.md
963
971
  # documented this skip; the code did not implement it (drift fixed here).
964
972
  if [ "$CURRENT_BRANCH" = "main" ] || [ "$CURRENT_BRANCH" = "master" ]; then
973
+ MW_SKIPPED=1
965
974
  echo ""
966
975
  echo " ℹ️ Gate MW skipped (pushing to ${CURRENT_BRANCH} — pre-reviewed via branch walkthrough)"
967
976
  echo ""
@@ -1038,13 +1047,20 @@ fi
1038
1047
  # ============================================================================
1039
1048
  echo ""
1040
1049
  echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
1050
+ # Say what actually happened. Printing "VERIFIED" on a skipped gate would be a
1051
+ # claim the hook cannot support — the same dishonesty (evidence asserting an
1052
+ # unperformed check) that Gate MW exists to prevent.
1053
+ if [ "$MW_SKIPPED" = "1" ]; then
1054
+ echo " ℹ️ GATE MW: CODE WALKTHROUGH SKIPPED (main-branch push)"
1055
+ else
1041
1056
  echo " ✅ GATE MW: CODE WALKTHROUGH VERIFIED"
1057
+ fi
1042
1058
  echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
1043
1059
  echo ""
1044
1060
  echo "Branch: $CURRENT_BRANCH"
1045
1061
  echo "Files changed: $FILES_CHANGED"
1046
1062
  echo "Lines: +$LINES_ADDED -$LINES_DELETED"
1047
- if [ -f "$RESULT_FILE" ]; then
1063
+ if [ "$MW_SKIPPED" != "1" ] && [ -f "$RESULT_FILE" ]; then
1048
1064
  echo ""
1049
1065
  echo "Code walkthrough result:"
1050
1066
  echo " Commit: $EXPECTED_COMMIT"
@@ -2,6 +2,6 @@
2
2
  "verdict": "PASS",
3
3
  "license_type": "MIT",
4
4
  "sha256": "0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5",
5
- "checked_at": "2026-10-19T12:19:52.510Z",
5
+ "checked_at": "2026-10-19T12:54:56.485Z",
6
6
  "source": "network"
7
7
  }
@@ -1,9 +1,9 @@
1
1
  # SRC/MOCK-POLICY KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.1.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Mock layering policy enforcement — Gate M3 of pre-push hook. Ensures integration tests use real implementations for internal dependencies, mock external dependencies, and annotate pending mocks with removal plans. Combines project scope scanning, mock decision engine, and per-file validation into a single pipeline.
@@ -1,9 +1,9 @@
1
1
  # SRC/MUTATION KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.1.0
7
7
 
8
8
  ## OVERVIEW
9
9
  **Gate M** (incremental mutation testing) + **Gate M2** helpers (test-layer detection used by `src/mock-policy/`). Pre-push quality gate. TypeScript-only; uses Stryker.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boyingliu01/xp-gate",
3
- "version": "0.28.0",
3
+ "version": "0.28.1",
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.28.0",
3
+ "version": "0.28.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": {
@@ -1,9 +1,9 @@
1
1
  # SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.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.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.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, 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
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.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.28.0",
3
+ "version": "0.28.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",
@@ -1,9 +1,9 @@
1
1
  # SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.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.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.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, 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
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.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.28.0",
3
+ "version": "0.28.1",
4
4
  "type": "module",
5
5
  "main": "index.ts",
6
6
  "description": "XP-Gate quality gates + AI workflow skills + Sprint Flow TUI sidebar for OpenCode",
@@ -1,9 +1,9 @@
1
1
  # SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.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.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.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, 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
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.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.28.0",
3
+ "version": "0.28.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": {
@@ -1,9 +1,9 @@
1
1
  # SKILLS/DELPHI-REVIEW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.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.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.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, 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
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.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,9 +1,9 @@
1
1
  # PRINCIPLES CHECKER MODULE
2
2
 
3
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.1.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
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.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.
@@ -1,9 +1,9 @@
1
1
  # SKILLS/SPRINT-FLOW KNOWLEDGE BASE
2
2
 
3
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.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, 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
3
  **Generated:** 2026-10-19
4
- **Commit:** 07d3036f
4
+ **Commit:** 9b545de5
5
5
  **Branch:** main
6
- **Version:** 0.28.0.0
6
+ **Version:** 0.28.1.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.