AI privacy model#
ResearchVC is fully usable with AI disabled. Every AI feature has a deterministic fallback:
| Feature | Without AI | With AI (opt-in) |
|---|---|---|
| Semantic diff | all facts, observations, metric deltas | + narration (numbers not in the facts are flagged) |
| Commit message | deterministic facts summary | + phrasing and labelled "Interpretation" |
| Claim extraction | cue-phrase + number heuristic | LLM extraction; quotes must be exact substrings |
| Evidence linking | deterministic number↔metric matching | (same; inferred links are proposed) |
| Audit | deterministic + heuristic tiers | + "AI-generated observations" tier |
| Assistant | hybrid retrieval, cited records | grounded answer; unknown citations → [unverified] |
Controls#
ai.enabled = falseby default (CLI repo config and server project settings).- Non-local providers additionally require
ai.allow_external = true. Ollama, the mock provider, and OpenAI-compatible endpoints on localhost count as local. - Every outgoing prompt passes through secret redaction; inputs above
ai.max_input_charsare refused rather than silently truncated. ai.monthly_token_limitcaps usage; usage (tokens, estimated cost where pricing is known) is recorded per task in.rvc/cache/ai.dband server usage records.- Per-task model selection:
ai.models.extraction(defaultclaude-haiku-4-5for Anthropic) andai.models.synthesis(defaultclaude-opus-5). For the Anthropic provider,claude-opus-5requests opt in to server-side refusal fallbacks (anthropic_fallbacks = true, disable to turn off). - Bring-your-own key: environment variables for the CLI; encrypted per-project storage on the server. Keys never enter repository config or history.
Prompt-injection resistance#
Research artifacts are untrusted data. They are wrapped in <untrusted-data> blocks with a
random boundary the content cannot close; system prompts instruct the model to ignore
embedded instructions; outputs are JSON-schema-validated; extracted quotes must appear
verbatim in the source; assistant citations must refer to retrieved sources; AI audit
findings must reference real claim ids. The assistant cannot mutate anything; web mutations
require a human preview and apply.
What is stored#
AI output is never written into commits automatically. Proposed relationships are stored as
inferred/proposed edges only when a researcher runs an accepting command (e.g.
rvc claim extract --accept) and are reviewable (rvc graph review, web graph explorer).
Responses are cached locally/server-side keyed by input hash and can be deleted at any time
(.rvc/cache/ai.db).
Live-model evaluation is not part of CI (all tests use a deterministic mock provider).