GitNexus/gitnexus/test
Garrett Griffin-Morales b77cb4ed33 feat(zig): surface staticGated on impact byDepth items; gate if-expressions and negated/parenthesized conditions
Addresses the tri-review on #3161.

- impact: the depth traversal already selected r.staticGated but dropped it
  when building the byDepth item. Forward it (present only when true) and
  document the field on the impact tool's byDepth contract. Traversal and
  ranking still do not act on it; that stays opt-in for consumers.
- zig-static-gating: walk `if_expression` (`const x = if (c) a() else b();`)
  in addition to `if_statement`. The expression form has no field names and
  no else_clause wrapper, so the arms are located positionally
  (`ifExpressionArms`). Labeled-block arms are covered.
- evalCond: `parenthesized_expression` is transparent, so `!(A and B)` and
  `((FLAG))` fold. Prefix `!` has no unary node in tree-sitter-zig; the
  header now says exactly which shapes fold instead of "simple negation".
- fixture + tests: nine new cases (negation x2, parentheses x2,
  if-expression then/else/labeled-block x5). Cross-file `@import` constants
  remain skipped and now cite the tracking issue #3162.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015ciQ3MTjpQXkCoNntZR9zG
2026-09-03 12:57:00 -04:00
..
fixtures feat(zig): surface staticGated on impact byDepth items; gate if-expressions and negated/parenthesized conditions 2026-09-03 12:57:00 -04:00
helpers feat: add Zig language support (#1432) 2026-09-03 13:29:42 +01:00
integration feat(zig): surface staticGated on impact byDepth items; gate if-expressions and negated/parenthesized conditions 2026-09-03 12:57:00 -04:00
unit test(zig): move the SCHEMA_BUMP pin to 93; rebaseline emit fingerprints for the staticGated column 2026-09-03 10:36:06 -04:00
utils fix(hook): emit MCP query hint when server owns DB lock (#2396) (#2397) 2026-07-08 18:34:05 +01:00