Launch offer: the first 1,000 users get Settl free for a year* Claim your spot
settlbuilding in public

Config-as-truth: keep docs & privacy claims honest automatically

An overnight audit caught my own documentation lying about which AI I run. Docs and marketing said one thing ("on-device AI," an Anthropic model); Sentry's outbound traces showed cloud Gemini calls in production. Not malice: docs went stale during provider experiments, marketing amplified the stale claim, and by cleanup time there were ~70 instances to kill. The correction-canon file that came out of it is now law in my repo. And Apple will eventually make you honest anyway. Ask me how I know.

How docs start lying

You A/B models. Routing changes weekly via config. Docs are written once, by hand, from memory. Every experiment widens the gap between what config does and what prose claims, and privacy claims are the worst place for that gap to live.

The playbook

  1. Make runtime config the single source of truth for "what AI do we use." Providers, models, and routing live in one config file/table, the same one the code reads. Prose never states a provider name that isn't generated or checked from it.
  2. Generate the user-facing provider page from config. My /privacy/ai-providers page should never be hand-edited. Build it from the provider list at deploy time, so an experiment that adds a provider cannot ship without the disclosure updating.
  3. Verify claims against traces, not memory. The lie was caught by comparing docs to Sentry's outbound HTTP spans: what production actually calls. Make that an audit ritual: list distinct outbound AI hosts from traces, diff against the disclosed list.
audit: for each outbound host in last 7d of traces:
  host ∈ disclosed_providers ? OK : FAIL (undisclosed vendor reachable)
for each provider in docs/marketing:
  provider ∈ live_config ? OK : FAIL (stale claim)
  1. Keep a correction canon. One file listing APPROVED claims and BANNED claims (with the exact allowed phrasings). Every marketing artifact must conform; "if a claim isn't on the approved list, cut it." This turned my 70-instance cleanup into a grep-verifiable done-state.
  2. Make the banned list grep-able. My verification rule is literally: a file is clean when grep for on-device, never leaves your phone, etc. returns nothing. Mechanical checks outlive good intentions.
  3. Remove keys for anything undisclosed. If a vendor key exists in prod, that vendor is reachable, and a reviewer (or regulator) treats it as in-use. I ripped four out.
  4. Re-audit on every provider experiment. The moment routing config changes, the docs/claims audit re-runs, ideally in CI, at minimum as a checklist item on the config PR.

Steal this for your app

Run this on your codebase

Paste this into Claude Code in your repo:

Audit this repo for docs and privacy claims that drift from runtime config.
Find where AI providers, models, and routing are configured, and list every provider actually reachable (config plus vendor API keys in env).
Grep docs, marketing copy, privacy pages, and store listings for provider names and claims like "on-device" or "never leaves your phone"; diff each claim against the config.
Flag any user-facing provider or privacy page that is hand-edited instead of generated or CI-checked from config.
List vendor API keys present in prod env that no disclosure mentions.
Check whether any CI step or PR checklist re-runs this claims audit when routing config changes.
Report findings as a checklist before changing anything.

Get the next one in your inbox