gstack/lib/code-intelligence
Garry Tan 9488173b0a
fix(code-intelligence): consent that means what it says — polarity, receipts, read-only veto
Four review findings on the wave's own Phase 1 port, all red-first:
'consent <repo> no' recorded consent GRANTED (the CLI ignored the
argument and always wrote true) — yes|no is now required and garbage
records nothing; Sourcebot egress receipts claimed consented=true on
paths that never checked consent — the actual consent state is threaded
into every receipt, search is fail-closed on non-loopback, and the
liveness probe's receipt says truthfully that it sends no repo content;
repoPolicyVeto only honored the deny tier while gbrain refresh writes
pages — write-class ops now veto on read-only too, matching the sync
chokepoint, via one shared lib/gbrain-repo-policy-client.ts (win32
bash invocation, spawn-vs-unreadable error distinction) used by both
call sites. Also: source ids get a host+path hash (same-name repos no
longer collide), refresh timeout raised to 120s, availability probes
run concurrently at 3s, graphify status stops JSON.parsing 100MB graphs
for a count, and every ported file carries the fork MIT notice.
+15 tests across the two suites.
2026-08-14 17:13:22 -07:00
..
contract.ts fix(code-intelligence): consent that means what it says — polarity, receipts, read-only veto 2026-08-14 17:13:22 -07:00
gbrain-adapter.ts fix(code-intelligence): consent that means what it says — polarity, receipts, read-only veto 2026-08-14 17:13:22 -07:00
graphify-adapter.ts fix(code-intelligence): consent that means what it says — polarity, receipts, read-only veto 2026-08-14 17:13:22 -07:00
index.ts fix(code-intelligence): consent that means what it says — polarity, receipts, read-only veto 2026-08-14 17:13:22 -07:00
picker.ts fix(code-intelligence): consent that means what it says — polarity, receipts, read-only veto 2026-08-14 17:13:22 -07:00
selection.ts fix(code-intelligence): consent that means what it says — polarity, receipts, read-only veto 2026-08-14 17:13:22 -07:00
sourcebot-adapter.ts fix(code-intelligence): consent that means what it says — polarity, receipts, read-only veto 2026-08-14 17:13:22 -07:00
suggest.ts fix(code-intelligence): consent that means what it says — polarity, receipts, read-only veto 2026-08-14 17:13:22 -07:00