@boyingliu01/xp-gate 0.38.46 → 0.38.47

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.
@@ -497,6 +497,31 @@ gate13_count_warnings() {
497
497
  printf '%s\n' "$(( ${warnings:-0} + ${errors:-0} ))"
498
498
  }
499
499
 
500
+ # Count ONLY compiler errors -- a translation unit that does not compile.
501
+ #
502
+ # Separate from gate13_count_warnings on purpose. The two questions are different:
503
+ # gate13_count_warnings -> "is this file worse than clean?" (baseline ratchet)
504
+ # gate13_count_errors -> "does this file compile at all?" (absolute)
505
+ #
506
+ # The ratchet legitimately tolerates a known warning count, and a file with no
507
+ # baseline entry is report-only so that adopting the gate does not mean fixing
508
+ # every pre-existing warning first. Neither exemption may extend to an ERROR:
509
+ # pre-existing errors are not "debt to adopt", and code that does not build has no
510
+ # business being committed.
511
+ #
512
+ # Measured 2026-11-19 with the language matrix, cpp fixture:
513
+ # a.cpp = `int main() { return not_a_symbol; }`
514
+ # g++: "error: 'not_a_symbol' was not declared in this scope"
515
+ # Gate 13: SKIP (no baseline) -> the error was not reported at all
516
+ # The file had a baseline-eligible path only because it was MODIFIED rather than
517
+ # added, which is the ordinary case for every existing project.
518
+ gate13_count_errors() {
519
+ local cc="$1" flags="$2" file="$3" out
520
+ # shellcheck disable=SC2086 # flags is a deliberately word-split flag list
521
+ out=$("$cc" -fsyntax-only $flags "$file" 2>&1)
522
+ printf '%s\n' "$(printf '%s\n' "$out" | grep -E 'error:' | grep -vcE '^\s*$' || true)"
523
+ }
524
+
500
525
  # ============================================================================
501
526
  # JAVA PATH (REQ-004)
502
527
  #
@@ -1388,6 +1413,28 @@ gate13_run_cpp_analysis() {
1388
1413
  if [ -z "$base" ]; then
1389
1414
  baseline_seen=1
1390
1415
  cnt=$(gate13_count_warnings "$cxx" "$flags" "$f")
1416
+ # Report-only applies to the RATCHET, not to compilability. A modified file
1417
+ # with no baseline entry is exempt from "no worse than before", because
1418
+ # adopting the gate must not mean clearing every pre-existing warning first.
1419
+ # It is not exempt from compiling: an error is not inherited debt, it is a
1420
+ # file that does not build.
1421
+ #
1422
+ # Measured 2026-11-19 (language matrix, cpp fixture):
1423
+ # a.cpp = int main() { return not_a_symbol; }
1424
+ # g++ "error: 'not_a_symbol' was not declared in this scope"
1425
+ # gate: "0 warning(s) (no baseline entry, report-only)" -> commit allowed
1426
+ _g13_errs=$(gate13_count_errors "$cxx" "$flags" "$f")
1427
+ _g13_errs=${_g13_errs:-0}
1428
+ if [ "$_g13_errs" -gt 0 ]; then
1429
+ findings=$((findings + _g13_errs))
1430
+ if [ "$tier" = "warn-only" ]; then
1431
+ echo " ⚠️ ${f}: does NOT compile (${_g13_errs} error(s)); warn-only tier, not blocking"
1432
+ else
1433
+ echo " ❌ ${f}: does NOT compile (${_g13_errs} error(s)) — a missing baseline is no excuse"
1434
+ blocking=$((blocking + 1))
1435
+ fi
1436
+ continue
1437
+ fi
1391
1438
  echo " ℹ️ ${f}: ${cnt:-0} warning(s) (no baseline entry, report-only)"
1392
1439
  continue
1393
1440
  fi
@@ -2,6 +2,6 @@
2
2
  "verdict": "PASS",
3
3
  "license_type": "MIT",
4
4
  "sha256": "0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5",
5
- "checked_at": "2026-11-19T18:53:44.275Z",
5
+ "checked_at": "2026-11-19T19:10:14.898Z",
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.46",
3
+ "version": "0.38.47",
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.46",
3
+ "version": "0.38.47",
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.46.0
6
+ **Version:** 0.38.47.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.46.0
6
+ **Version:** 0.38.47.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.46.0
6
+ **Version:** 0.38.47.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.46",
3
+ "version": "0.38.47",
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.46.0
6
+ **Version:** 0.38.47.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.46.0
6
+ **Version:** 0.38.47.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.46.0
6
+ **Version:** 0.38.47.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.46",
3
+ "version": "0.38.47",
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.46.0
6
+ **Version:** 0.38.47.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.46.0
6
+ **Version:** 0.38.47.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.46.0
6
+ **Version:** 0.38.47.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.46.0
6
+ **Version:** 0.38.47.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.46.0
6
+ **Version:** 0.38.47.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.46.0
6
+ **Version:** 0.38.47.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.46.0
6
+ **Version:** 0.38.47.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.46.0
6
+ **Version:** 0.38.47.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.46.0
6
+ **Version:** 0.38.47.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.