Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
# Case-insensitive, trimmed; stray commas ignored.
# Example: GITTENSORY_REVIEW_REPOS="JSONbored/gittensory,JSONbored/awesome-claude"
GITTENSORY_REVIEW_REPOS=
# LOOPOVER_REVIEW_REPOS= # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_REPOS above when both are set

# Instance-wide write kill switch for the cloud→self-host parallel-run migration. When set to "dry-run"
# (or "disabled"), EVERY GitHub write from this instance is suppressed regardless of per-repo settings —
Expand All @@ -38,19 +39,23 @@ GITTENSORY_REVIEW_REPOS=
# Safety scan: defangs untrusted PR title/body/diff (prompt-injection
# neutralization) and scans the diff for leaked secrets (secret_leak blocker).
GITTENSORY_REVIEW_SAFETY=false
# LOOPOVER_REVIEW_SAFETY=false # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_SAFETY above when both are set

# Grounds the AI-reviewer prompt with the PR's finished CI status + the full
# post-change content of the changed files, so claims are verified against reality.
GITTENSORY_REVIEW_GROUNDING=false
# LOOPOVER_REVIEW_GROUNDING=false # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_GROUNDING above when both are set

# Retrieval-augmented context: appends semantically related code/docs from the
# self-host vector index to the reviewer prompt. Inert until Qdrant or sqlite vectors are populated.
GITTENSORY_REVIEW_RAG=false
# LOOPOVER_REVIEW_RAG=false # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_RAG above when both are set

# Review-enrichment service (REES): POSTs the PR diff/files to the external
# enrichment service and splices any public-safe brief into the AI reviewer
# prompt. Also requires REES_URL and the repo in GITTENSORY_REVIEW_REPOS.
GITTENSORY_REVIEW_ENRICHMENT=false
# LOOPOVER_REVIEW_ENRICHMENT=false # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_ENRICHMENT above when both are set
# REES_URL=https://enrichment.example.internal
# REES_SHARED_SECRET= # bearer secret configured on the REES service
# REES_TIMEOUT_MS=8000 # optional; minimum 1000, default 8000
Expand Down Expand Up @@ -100,32 +105,39 @@ GITTENSORY_REVIEW_ENRICHMENT=false
# Submitter-reputation spend control (internal-only): downgrades new/burst/low-rep
# submitters to a deterministic-only review. Never surfaced publicly.
GITTENSORY_REVIEW_REPUTATION=false
# LOOPOVER_REVIEW_REPUTATION=false # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_REPUTATION above when both are set

# Renders the public PR comment as one in-place unified comment instead of the
# legacy multi-panel comment. OFF keeps the legacy comment byte-identical.
GITTENSORY_REVIEW_UNIFIED_COMMENT=false
# LOOPOVER_REVIEW_UNIFIED_COMMENT=false # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_UNIFIED_COMMENT above when both are set

# --- Global capabilities (NOT scoped by GITTENSORY_REVIEW_REPOS) -------------

# Observability (read-only): cron anomaly scan over the gate-block ledger emits
# ops_anomaly logs, plus a bearer-gated GET /v1/internal/ops/stats aggregate.
GITTENSORY_REVIEW_OPS=false
# LOOPOVER_REVIEW_OPS=false # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_OPS above when both are set

# Self-improvement / auto-tune loop: computes tuning recommendations, shadow-soaks
# strictly-tightening ones, and auto-promotes only after the soak passes. Tightening-only.
GITTENSORY_REVIEW_SELFTUNE=false
# LOOPOVER_REVIEW_SELFTUNE=false # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_SELFTUNE above when both are set

# Parity readiness (shadow, record-only): shadow-records each finalized gate
# decision and serves a readiness report at GET /v1/internal/parity. Changes no behavior.
GITTENSORY_REVIEW_PARITY_AUDIT=false
# LOOPOVER_REVIEW_PARITY_AUDIT=false # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_PARITY_AUDIT above when both are set

# Content-review lane: routes content repos (curated lists, registries) through the
# dedicated content lane (dedup, source-evidence, scope, registry grounding).
GITTENSORY_REVIEW_CONTENT_LANE=false
# LOOPOVER_REVIEW_CONTENT_LANE=false # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_CONTENT_LANE above when both are set

# Public draft-submission flow: enables the /v1/drafts endpoints (contributor draft
# -> GitHub OAuth -> fork PR). OFF every draft endpoint 404s. Needs draft secrets below.
GITTENSORY_REVIEW_DRAFT=false
# LOOPOVER_REVIEW_DRAFT=false # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_DRAFT above when both are set

# =============================================================================
# 2. Secrets (names only — set with `wrangler secret put NAME`)
Expand Down
6 changes: 6 additions & 0 deletions .env.selfhost.example
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,17 @@ REDIS_URL=redis://redis:6379
# =============================================================================
SELFHOST_DEPLOYMENT_MODE=dry-run
GITTENSORY_REVIEW_REPOS=owner/repo
# LOOPOVER_REVIEW_REPOS=owner/repo # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_REPOS above when both are set
GITTENSORY_REVIEW_UNIFIED_COMMENT=true
# LOOPOVER_REVIEW_UNIFIED_COMMENT=true # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_UNIFIED_COMMENT above when both are set
GITTENSORY_REVIEW_SAFETY=true
# LOOPOVER_REVIEW_SAFETY=true # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_SAFETY above when both are set
GITTENSORY_REVIEW_GROUNDING=true
# LOOPOVER_REVIEW_GROUNDING=true # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_GROUNDING above when both are set
GITTENSORY_REVIEW_RAG=false
# LOOPOVER_REVIEW_RAG=false # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_RAG above when both are set
GITTENSORY_REVIEW_ENRICHMENT=false
# LOOPOVER_REVIEW_ENRICHMENT=false # #5555 dual-read: preferred name; wins over GITTENSORY_REVIEW_ENRICHMENT above when both are set

# =============================================================================
# 4. AI provider — pick ONE block below and uncomment it (deterministic-only review if you skip
Expand Down
Loading