From 363b078f6995e4348ead2e164791595f06aa9a29 Mon Sep 17 00:00:00 2001 From: JSONbored <49853598+JSONbored@users.noreply.github.com> Date: Tue, 23 Jun 2026 17:00:37 -0700 Subject: [PATCH] feat(rag): enable RAG retrieval for the live repos (GITTENSORY_REVIEW_RAG=true) Flips GITTENSORY_REVIEW_RAG false->true so the reviewer retrieves related-code context (with the #1124 quality knobs: minScore 0.4 + bm25 rerank + title-led query). Fail-safe: retrieval degrades to '' until the Vectorize index warms (this flag also activates ingestion: the 6-hourly cron fan-out + the merged-PR incremental path). Still gated by the GITTENSORY_REVIEW_REPOS allowlist. (#GAP-2) --- wrangler.jsonc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrangler.jsonc b/wrangler.jsonc index 058c3c161b..59f7f36f42 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -85,7 +85,7 @@ // Default OFF — flag-OFF performs no retrieval, uses no adapter, makes no vector query, and keeps the // reviewer prompt byte-identical. Even when ON it is inert until a repo's vector index is populated (the // index-population job + cron is a deploy-time follow-up; a cold/missing index degrades to no context). - "GITTENSORY_REVIEW_RAG": "false", + "GITTENSORY_REVIEW_RAG": "true", // Convergence (self-improve / auto-tune): run the ported self-improvement loop on the cron tick over // gittensory's own review-outcome data — compute tuning recommendations, SHADOW-SOAK any strictly- // tightening one, and AUTO-PROMOTE it to live ONLY after the soak window passes the gate; every action is