@boyingliu01/xp-gate 0.38.41 → 0.38.43

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/adapters/dart.sh CHANGED
@@ -43,6 +43,11 @@ run_tests() {
43
43
  # slower, but never silently dropping test verification.
44
44
  coverage_runs_tests() { return 0; }
45
45
 
46
+ # Gate 13 capability: `dart analyze` type-checks the project. Measured
47
+ # 2026-11-19: exits 0 on clean code, 3 on a type error -- and it reports type
48
+ # mismatches that no other gate in this chain looks for in Dart.
49
+ compiler_check_command() { printf "%s" "dart analyze"; }
50
+
46
51
  run_coverage() {
47
52
  if command -v dart &>/dev/null; then
48
53
  dart test --coverage=coverage 2>&1 | tail -10
@@ -44,6 +44,13 @@ GATE13_FAIL=1
44
44
  GATE13_BLOCK=2
45
45
  # shellcheck disable=SC2034 # public contract
46
46
  GATE13_WARN=3
47
+ # "Nothing to evaluate", as a verdict distinct from WARN. WARN means "looked at it
48
+ # and it is not clean"; SKIP means "there was nothing here". Conflating them is the
49
+ # defect family this codebase keeps repeating, and until now the C/C++ arm answered
50
+ # PASS -- the worst of the three -- when no C/C++ file was staged, recording
51
+ # "nothing to compile" as "compiled and clean".
52
+ # shellcheck disable=SC2034 # public contract: the entry maps this to SKIP
53
+ GATE13_SKIP=4
47
54
 
48
55
  GATE13_DEFAULT_TIMEOUT=120
49
56
 
@@ -468,10 +475,26 @@ gate13_baseline_exists() {
468
475
  # Prints the diagnostics on stderr; the COUNT goes to stdout.
469
476
  # ---------------------------------------------------------------------------
470
477
  gate13_count_warnings() {
471
- local cc="$1" flags="$2" file="$3" out
478
+ local cc="$1" flags="$2" file="$3" out warnings errors
472
479
  # shellcheck disable=SC2086 # flags is a deliberately word-split flag list
473
480
  out=$("$cc" -fsyntax-only $flags "$file" 2>&1)
474
- printf '%s\n' "$out" | grep -E 'warning:' | grep -vcE '^\s*$' || true
481
+ warnings=$(printf '%s\n' "$out" | grep -E 'warning:' | grep -vcE '^\s*$' || true)
482
+ # ERRORS COUNT TOO, AND THEY ARE THE POINT.
483
+ #
484
+ # This used to be `grep 'warning:' | grep -vc`. A file that does not COMPILE emits
485
+ # `error:` lines and no `warning:` lines, so it scored 0 -- identical to a clean
486
+ # file -- and the added-file branch below blocks only on cnt > 0. Measured on a
487
+ # new file containing `int broken( { return 0; }`:
488
+ #
489
+ # g++ says: bad.cpp:1:11: error: Unmatched '('
490
+ # gate said: (nothing) -- PASS
491
+ #
492
+ # while the banner two functions up promises "new files are still -Werror".
493
+ # Counting errors alongside warnings is the minimum honest reading: the caller's
494
+ # question is "is this file worse than clean", and a file that does not parse is
495
+ # worse than one that merely warns.
496
+ errors=$(printf '%s\n' "$out" | grep -E 'error:' | grep -vcE '^\s*$' || true)
497
+ printf '%s\n' "$(( ${warnings:-0} + ${errors:-0} ))"
475
498
  }
476
499
 
477
500
  # ============================================================================
@@ -775,7 +798,11 @@ gate13_run_java_analysis() {
775
798
 
776
799
  srcs=$(gate13_java_sources)
777
800
  if [ -z "$srcs" ]; then
778
- return "$GATE13_PASS"
801
+ # SKIP, not PASS: no sources for this arm means it evaluated nothing.
802
+ # Answering PASS here made the arm claim a clean result it never computed, and
803
+ # it suppressed the whole gate's SKIP verdict (measured: a Ruby-only project
804
+ # with no declared checker reported Gate 13 PASS).
805
+ return "$GATE13_SKIP"
779
806
  fi
780
807
 
781
808
  if [ "${GATE13_FORCE_NO_JAVA_TOOLCHAIN:-}" = "1" ]; then
@@ -1005,29 +1032,218 @@ gate13_analyzer_supported() {
1005
1032
  return 1
1006
1033
  }
1007
1034
 
1035
+ # ============================================================================
1036
+ # DECLARED ADAPTER CHECKS (REQ-GATE13-CAPABILITY)
1037
+ #
1038
+ # Gate 13 used to cover exactly C/C++, Java and C# -- the three languages whose
1039
+ # compiler somebody wired in here. Every other language with a compiler or type
1040
+ # checker (Go, Rust, Dart, Kotlin, Swift, PHP, Ruby, ...) was simply not asked.
1041
+ # Measured 2026-11-19: a Go file containing `var x int = "not an int"` passed the
1042
+ # entire chain, and the one gate whose subject is compiler errors reported PASS on
1043
+ # a project it had not looked at.
1044
+ #
1045
+ # The fix is deliberately NOT a list of languages here. githooks/AGENTS.md:
1046
+ #
1047
+ # "Declare capabilities on the adapter, never enumerate language names. A hand
1048
+ # written list of languages can only ever contain what someone remembered;
1049
+ # this was patched twice before becoming a rule. The default is the safe side."
1050
+ #
1051
+ # So a language opts in by defining ONE function in its adapter:
1052
+ #
1053
+ # compiler_check_command() { printf '%s' 'go vet ./...'; }
1054
+ #
1055
+ # printing a command that compiles or type-checks the project and exits non-zero
1056
+ # when it finds an error. An adapter that does not define it is not asked, and the
1057
+ # gate contains no notion of which languages those are. Adding Go, Rust or Dart is
1058
+ # a change to that adapter alone.
1059
+ #
1060
+ # Two deliberate choices:
1061
+ #
1062
+ # * The command runs from the PROJECT root, not per file. Compilers are
1063
+ # whole-project by nature -- `tsc --noEmit`, `go vet ./...`, `cargo check` --
1064
+ # and a per-file invocation would need the gate to know each tool's argument
1065
+ # shape. The project root is what the gate already runs in.
1066
+ #
1067
+ # * A declared checker that fails BLOCKS. That is the opposite of the C/C++ arm's
1068
+ # baseline ratchet (which only blocks a RISE in warning count) and it is
1069
+ # correct: these commands report errors, not warnings, so there is no existing
1070
+ # count to be tolerant of.
1071
+ # ============================================================================
1072
+
1073
+ # Print the command an adapter declares for compile-time checking, or nothing.
1074
+ # Resolution order matches the gate's existing adapter lookup: the adapter is
1075
+ # already sourced by the time this is called (pre-commit sources the language
1076
+ # adapter first), so a defined function is the answer and an undefined one is the
1077
+ # absence of a claim.
1078
+ gate13_declared_checker() {
1079
+ # An adapter may already be sourced by the caller (a test, or a future gate
1080
+ # driver that shares one scope). Honour that first -- it is the cheap path and
1081
+ # it keeps the function usable without a repository.
1082
+ if declare -f compiler_check_command >/dev/null 2>&1; then
1083
+ local cmd
1084
+ cmd=$(compiler_check_command 2>/dev/null || true)
1085
+ [ -n "$cmd" ] && printf '%s' "$cmd"
1086
+ return 0
1087
+ fi
1088
+
1089
+ # Otherwise SOURCE the adapter for each detected language and ask it.
1090
+ #
1091
+ # This branch is the difference between the capability existing and the
1092
+ # capability working. pre-commit sources adapter-common.sh only; language
1093
+ # adapters are sourced by Gate 1 inside its own subshell, so by the time Gate 13
1094
+ # runs there is no adapter in scope. The first end-to-end run of this feature
1095
+ # therefore printed "no compiler/type-checker declared" on a Go project whose Go
1096
+ # adapter DID declare one -- the declaration existed and nothing loaded it.
1097
+ #
1098
+ # PROJECT_LANGS is the authority for which languages this repository has
1099
+ # (githooks/AGENTS.md). It is used to FIND the adapter, never to decide what a
1100
+ # language can do -- that decision stays with compiler_check_command.
1101
+ local lang path cmd
1102
+ for lang in ${PROJECT_LANGS:-}; do
1103
+ path=$(gate13_adapter_path "$lang") || continue
1104
+ [ -n "$path" ] && [ -f "$path" ] || continue
1105
+ # Subshell per adapter: sourcing a language adapter defines run_lint,
1106
+ # run_static_analysis and friends, and the LAST one sourced would silently
1107
+ # overwrite the ones before it.
1108
+ cmd=$(
1109
+ # shellcheck source=/dev/null
1110
+ . "$path" >/dev/null 2>&1 || exit 0
1111
+ if declare -f compiler_check_command >/dev/null 2>&1; then
1112
+ compiler_check_command 2>/dev/null || true
1113
+ fi
1114
+ )
1115
+ if [ -n "$cmd" ]; then
1116
+ printf '%s' "$cmd"
1117
+ return 0
1118
+ fi
1119
+ done
1120
+ return 1
1121
+ }
1122
+
1123
+ # Find the adapter file for a language, using the same resolution the hook uses.
1124
+ # Returns non-zero (and prints nothing) when the language has no adapter file.
1125
+ gate13_adapter_path() {
1126
+ local lang="$1" dir
1127
+
1128
+ # The hook's own resolver, when present. It encodes the 3-tier order in one
1129
+ # place so the gate and `xp-gate doctor` cannot disagree.
1130
+ if declare -f resolve_adapter_path >/dev/null 2>&1; then
1131
+ local p
1132
+ p=$(resolve_adapter_path "$lang" 2>/dev/null) || p=""
1133
+ [ -n "$p" ] && [ -f "$p" ] && { printf '%s' "$p"; return 0; }
1134
+ fi
1135
+
1136
+ # Fallback for direct invocation (tests, `xp-gate check`): the global install
1137
+ # first, then this file's own directory, which is the tracked tree.
1138
+ for dir in "$HOME/.config/xp-gate/adapters" \
1139
+ "$(dirname "${BASH_SOURCE[0]}")" \
1140
+ "${ADAPTER_DIR:-}"; do
1141
+ [ -n "$dir" ] || continue
1142
+ if [ -f "$dir/${lang}.sh" ]; then
1143
+ printf '%s' "$dir/${lang}.sh"
1144
+ return 0
1145
+ fi
1146
+ done
1147
+ return 1
1148
+ }
1149
+
1150
+ # Run the declared checker for whichever language adapter defines one.
1151
+ #
1152
+ # Returns GATE13_PASS when the checker ran and reported no error, GATE13_BLOCK when
1153
+ # it reported one, and GATE13_SKIP when nothing was declared -- never PASS for the
1154
+ # last case, which is the whole defect this function exists to end.
1155
+ gate13_run_declared_checks() {
1156
+ local cmd out rc
1157
+
1158
+ cmd=$(gate13_declared_checker) || cmd=""
1159
+ if [ -z "$cmd" ]; then
1160
+ # No adapter claimed a compile-time checker. Say so plainly rather than
1161
+ # inventing a tool: this is the arm that used to report PASS on languages it
1162
+ # never looked at.
1163
+ gate13_reason "Gate 13: no compiler/type-checker declared for this language -- compiler errors not checked"
1164
+ echo " i No compile-time checker declared by this project's language adapter."
1165
+ return "$GATE13_SKIP"
1166
+ fi
1167
+
1168
+ echo " -> declared compile-time checker: ${cmd}"
1169
+
1170
+ # `eval` on a string is normally a smell. It is what the adapter contract asks
1171
+ # for -- a command with arguments, chosen by the adapter -- and the alternative
1172
+ # (tuple-encoding it through a function call) would force every adapter to
1173
+ # implement the same quoting. Bounded by: the string comes from our own tracked
1174
+ # adapters, never from the change set or from config.
1175
+ # shellcheck disable=SC2086 # $cmd is a deliberately word-split command line
1176
+ out=$(cd "$(gate13_project_root)" && eval "$cmd" 2>&1)
1177
+ rc=$?
1178
+
1179
+ if [ "$rc" -ne 0 ]; then
1180
+ echo " X Declared compile-time check FAILED (${cmd})"
1181
+ local line shown=0
1182
+ # Show the first lines that look like diagnostics, plus a bounded tail, so a
1183
+ # failed run is actionable without dumping a whole build log into the commit.
1184
+ while IFS= read -r line; do
1185
+ [ -n "$line" ] || continue
1186
+ case "$line" in
1187
+ *error*|*Error*|*cannot*|*undefined*|*mismatch*)
1188
+ echo " ${line}"
1189
+ shown=$((shown + 1))
1190
+ [ "$shown" -ge 10 ] && break
1191
+ ;;
1192
+ esac
1193
+ done <<EOF
1194
+ $out
1195
+ EOF
1196
+ if [ "$shown" -eq 0 ]; then
1197
+ printf '%s\n' "$out" | tail -5 | sed 's/^/ /'
1198
+ fi
1199
+ return "$GATE13_BLOCK"
1200
+ fi
1201
+
1202
+ echo " OK Declared compile-time check passed (${cmd})"
1203
+ return "$GATE13_PASS"
1204
+ }
1205
+
1206
+ # The directory the declared command should run in. Uses the same root the rest of
1207
+ # the gate uses so a repository check and a hook check agree on scope.
1208
+ gate13_project_root() {
1209
+ if [ -n "${PROJECT_ROOT:-}" ]; then
1210
+ printf '%s' "$PROJECT_ROOT"
1211
+ return 0
1212
+ fi
1213
+ git rev-parse --show-toplevel 2>/dev/null || printf '.'
1214
+ }
1215
+
1008
1216
  gate13_run_analyzer() {
1009
1217
  local cc
1010
1218
  local files=""
1011
1219
  local f cnt total=0 blocking=0
1012
1220
  local workdir
1013
1221
 
1014
- gate13_analyzer_enabled || return 0
1222
+ # Not enabled is "this arm has nothing to say", not "the analysis was clean".
1223
+ gate13_analyzer_enabled || return "$GATE13_SKIP"
1015
1224
 
1016
1225
  cc=$(gate13_select_cc)
1017
1226
  [ -n "$cc" ] || {
1018
1227
  echo " ⚠️ -fanalyzer requested but no C compiler is usable; analyzer stage skipped"
1019
- return 0
1228
+ # WARN, not SKIP: the arm was asked to run and could not. That is a degraded
1229
+ # result the reader must see, not a quiet "nothing here".
1230
+ return "$GATE13_WARN"
1020
1231
  }
1021
1232
 
1022
1233
  if ! gate13_analyzer_supported "$cc"; then
1023
1234
  echo " ℹ️ $(gate13_compiler_id "$cc") has no -fanalyzer support; analyzer stage skipped"
1024
- return 0
1235
+ # The compiler exists but cannot do this analysis: degraded, not clean.
1236
+ return "$GATE13_WARN"
1025
1237
  fi
1026
1238
 
1027
1239
  files=$(gate13_analyzer_files)
1028
1240
  if [ -z "$files" ]; then
1029
1241
  echo " ℹ️ -fanalyzer: no staged .c files"
1030
- return 0
1242
+ # SKIP, not PASS: this arm evaluated nothing. Returning 0 here made it look
1243
+ # like a successful analysis, which then suppressed the SKIP verdict for the
1244
+ # whole gate (measured: a Ruby-only project with no checker declared reported
1245
+ # Gate 13 PASS because this arm answered "clean").
1246
+ return "$GATE13_SKIP"
1031
1247
  fi
1032
1248
 
1033
1249
  workdir="${TMPDIR:-/tmp}/gate13_analyzer_$$"
@@ -1095,8 +1311,23 @@ gate13_run_cpp_analysis() {
1095
1311
  local classified
1096
1312
  classified=$(gate13_classify_changed)
1097
1313
  if [ -z "$classified" ]; then
1314
+ # SKIP, not PASS, and not WARN either.
1315
+ #
1316
+ # PASS said "compiled and clean" about a change set this arm never read. WARN
1317
+ # would say "looked at it and it is not clean", which is also false. The only
1318
+ # honest answer to "there is no C/C++ here" is "there is no C/C++ here", which
1319
+ # is what GATE13_SKIP is for -- the entry maps it to a SKIP verdict carrying
1320
+ # this reason, instead of the WARN that every unrecognised code used to become.
1321
+ #
1322
+ # Measured consequence of the old answer (2026-11-19): a Go file with
1323
+ # `var x int = "not an int"` staged on a Go-only project produced
1324
+ # Gate 9 : SKIP (not a TypeScript project -- correct, with a reason)
1325
+ # Gate 13 : PASS ("No staged C/C++ source files")
1326
+ # so the chain reported a passing compiler-strictness gate on a commit whose
1327
+ # compiler-level error it had not looked for.
1328
+ gate13_reason "Gate 13: no staged C/C++ source files -- nothing to compile"
1098
1329
  echo " ℹ️ No staged C/C++ source files — nothing to compile"
1099
- return "$GATE13_PASS"
1330
+ return "$GATE13_SKIP"
1100
1331
  fi
1101
1332
 
1102
1333
  budget=$(gate13_timeout_budget)
@@ -1144,7 +1375,10 @@ gate13_run_cpp_analysis() {
1144
1375
  if [ "$tier" = "warn-only" ]; then
1145
1376
  echo " ⚠️ ${f}: ${cnt} warning(s) (warn-only tier, not blocking)"
1146
1377
  else
1147
- echo " ❌ ${f}: ${cnt} warning(s) in a NEW file"
1378
+ # "diagnostic(s)" not "warning(s)": since errors are counted too, a file
1379
+ # that does not compile reports here, and calling that a warning would
1380
+ # understate what has to be fixed.
1381
+ echo " ❌ ${f}: ${cnt} diagnostic(s) in a NEW file"
1148
1382
  blocking=$((blocking + 1))
1149
1383
  fi
1150
1384
  fi
@@ -1387,6 +1621,8 @@ gate13_csharp_changed_warning_count() {
1387
1621
  # - the separators differ, so the diagnostic path is folded to "/" first.
1388
1622
  # Comparing raw strings matched nothing and reported 0 warnings on a file that
1389
1623
  # has two.
1624
+ # shellcheck disable=SC1003 # see the tr below: the backslash pairs are tr escapes,
1625
+ # and single quotes already keep the shell from touching them.
1390
1626
  printf '%s\n' "$out" \
1391
1627
  | grep -E ': (warning|error) [A-Z]+[0-9]+' \
1392
1628
  | sed -n 's/^\(.*\)(.*$/\1/p' \
@@ -1418,7 +1654,11 @@ gate13_run_csharp_analysis() {
1418
1654
 
1419
1655
  sources=$(gate13_csharp_sources)
1420
1656
  if [ -z "$sources" ]; then
1421
- return "$GATE13_PASS"
1657
+ # SKIP, not PASS: no sources for this arm means it evaluated nothing.
1658
+ # Answering PASS here made the arm claim a clean result it never computed, and
1659
+ # it suppressed the whole gate's SKIP verdict (measured: a Ruby-only project
1660
+ # with no declared checker reported Gate 13 PASS).
1661
+ return "$GATE13_SKIP"
1422
1662
  fi
1423
1663
 
1424
1664
  if ! gate13_csharp_has_manifest; then
package/adapters/go.sh CHANGED
@@ -63,6 +63,16 @@ run_tests() {
63
63
  # Undeclared adapters keep the safe double-run default.
64
64
  coverage_runs_tests() { return 0; }
65
65
 
66
+ # Gate 13 capability: the Go vet tool type-checks and reports the class of error
67
+ # the compiler gate exists to catch. Measured 2026-11-19 on this machine: 1.4s,
68
+ # and it exits 1 on `var x int = "not an int"` -- which the whole chain let through
69
+ # before this declaration existed.
70
+ #
71
+ # The pattern is "./..." rather than the staged files: Go compiles per package, so
72
+ # vetting one file of a package reports that package anyway, and a partial
73
+ # argument cannot detect an error that only appears when two files meet.
74
+ compiler_check_command() { printf "%s" "go vet ./..."; }
75
+
66
76
  run_coverage() {
67
77
  require_tool go "Go SDK" || return 1
68
78
 
@@ -542,6 +542,11 @@ if ! gate_enabled 13; then
542
542
  fi
543
543
 
544
544
  GATE_13_STATUS="SKIP"
545
+ # Cleared here, not only set on the arms that need it: the audit call below passes
546
+ # this as the detail, and an inherited value from a previous gate would attribute
547
+ # one gate's reason to another.
548
+ GATE_13_DETAIL=""
549
+
545
550
  if [ "${XP_GATE_DISABLE_13:-}" = "1" ]; then
546
551
  echo "⏭️ SKIPPED - Gate 13: Compiler Strictness (XP_GATE_DISABLE_13=1)"
547
552
  GATE_13_STATUS="SKIP"
@@ -561,10 +566,24 @@ elif [ -f "$GATE_DIR/gate-13-compiler-strictness.sh" ] || [ -f "$(git rev-parse
561
566
 
562
567
  _g13_worst=0
563
568
  _g13_rc=0
569
+ # True when at least one arm answered GATE13_SKIP (4). Kept separately from
570
+ # _g13_worst because SKIP is not a severity -- it is "this arm had nothing to
571
+ # evaluate", so it must not beat a WARN or a BLOCK, but it must survive an
572
+ # arm that answered PASS.
573
+ _g13_any_skip=0
574
+ # True when at least one arm actually evaluated something and found nothing.
575
+ # Kept because "SKIP" is contagious by design only when NOTHING evaluated: a
576
+ # project whose Go adapter ran `go vet` and passed has been checked, even
577
+ # though its C/C++ arm had no sources. Measured consequence of not tracking
578
+ # this: a clean Go project reported Gate 13 SKIP, which reads exactly like the
579
+ # language being unsupported.
580
+ _g13_any_pass=0
564
581
  _g13_note() {
565
582
  case "$1" in
583
+ 0) _g13_any_pass=1 ;;
566
584
  1|2) _g13_worst=$1 ;;
567
585
  3) [ "$_g13_worst" -eq 0 ] && _g13_worst=3 ;;
586
+ 4) _g13_any_skip=1 ;;
568
587
  esac
569
588
  return 0
570
589
  }
@@ -576,7 +595,27 @@ elif [ -f "$GATE_DIR/gate-13-compiler-strictness.sh" ] || [ -f "$(git rev-parse
576
595
  # #717 is about, one level up.
577
596
  gate13_run_csharp_analysis; _g13_rc=$?; _g13_note "$_g13_rc"
578
597
  gate13_run_analyzer; _g13_rc=$?; _g13_note "$_g13_rc"
598
+ # The adapter-declared compile-time check (Go, Rust, Dart, Kotlin, ...). Runs
599
+ # for every language whose adapter defines compiler_check_command; returns
600
+ # GATE13_SKIP for the rest, which _g13_note already understands.
601
+ gate13_run_declared_checks; _g13_rc=$?; _g13_note "$_g13_rc"
579
602
 
603
+ # A clean worst of PASS means no arm found a problem -- but that is only a real
604
+ # PASS if every arm actually evaluated something. If any arm reported SKIP and
605
+ # none reported a finding, the honest verdict is SKIP, not PASS: nothing was
606
+ # compiled anywhere.
607
+ #
608
+ # Without this, the C/C++ arm's new GATE13_SKIP would be erased by the analyzer
609
+ # arm answering 0 on the same empty change set -- which is exactly what the
610
+ # _g13_any_pass is what makes SKIP conditional on NOTHING having been checked:
611
+ # a Go project whose vet ran and passed HAS been checked, even though its
612
+ # C/C++ arm had no sources. Without it, a clean Go project reported SKIP --
613
+ # which reads exactly like "your language is not supported".
614
+ # first end-to-end run showed: the reason line printed, and the verdict was
615
+ # still PASS.
616
+ if [ "$_g13_worst" -eq 0 ] && [ "$_g13_any_skip" -eq 1 ] && [ "$_g13_any_pass" -eq 0 ]; then
617
+ exit 4
618
+ fi
580
619
  exit "$_g13_worst"
581
620
  )
582
621
  GATE_13_RC=$?
@@ -586,10 +625,16 @@ elif [ -f "$GATE_DIR/gate-13-compiler-strictness.sh" ] || [ -f "$(git rev-parse
586
625
  0) GATE_13_STATUS="PASS" ;;
587
626
  1) GATE_13_STATUS="FAIL" ;;
588
627
  2) GATE_13_STATUS="BLOCK" ;;
628
+ # GATE13_SKIP: at least one arm had nothing to evaluate, and no arm found a
629
+ # problem. Before this case existed, 4 fell through to WARN -- which said "we
630
+ # looked at your C/C++ and it is not clean" about a change set containing no
631
+ # C/C++ at all.
632
+ 4) GATE_13_STATUS="SKIP"
633
+ GATE_13_DETAIL="no_sources_for_any_arm" ;;
589
634
  *) GATE_13_STATUS="WARN" ;;
590
635
  esac
591
636
  echo " Gate 13 ($GATE_13_STATUS) completed in ${GATE_13_DURATION}s"
592
- record_gate_audit "gate-13" "compiler-strictness" "$GATE_13_STATUS" "0" "$GATE13_START"
637
+ record_gate_audit "gate-13" "compiler-strictness" "$GATE_13_STATUS" "0" "$GATE13_START" "${GATE_13_DETAIL:-}"
593
638
  # Every other gate blocks by exiting immediately (e.g. Gate 1's
594
639
  # "❌ BLOCKED ... exit 1"); there is no aggregate-then-exit shared with
595
640
  # gates 0-12, so Gate 13 must do the same or its FAIL would only be cosmetic
@@ -2,6 +2,6 @@
2
2
  "verdict": "PASS",
3
3
  "license_type": "MIT",
4
4
  "sha256": "0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5",
5
- "checked_at": "2026-11-19T16:20:39.429Z",
5
+ "checked_at": "2026-11-19T16:55:02.170Z",
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.41",
3
+ "version": "0.38.43",
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.41",
3
+ "version": "0.38.43",
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.41.0
6
+ **Version:** 0.38.43.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.41.0
6
+ **Version:** 0.38.43.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.41.0
6
+ **Version:** 0.38.43.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.41",
3
+ "version": "0.38.43",
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.41.0
6
+ **Version:** 0.38.43.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.41.0
6
+ **Version:** 0.38.43.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.41.0
6
+ **Version:** 0.38.43.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.41",
3
+ "version": "0.38.43",
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.41.0
6
+ **Version:** 0.38.43.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.41.0
6
+ **Version:** 0.38.43.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.41.0
6
+ **Version:** 0.38.43.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.41.0
6
+ **Version:** 0.38.43.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.41.0
6
+ **Version:** 0.38.43.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.41.0
6
+ **Version:** 0.38.43.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.41.0
6
+ **Version:** 0.38.43.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.41.0
6
+ **Version:** 0.38.43.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.41.0
6
+ **Version:** 0.38.43.0
7
7
 
8
8
  ## OVERVIEW
9
9
  Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.