Prompt Configuration as Data
# 006 — Prompt configuration as versioned, audited data
**Status:** Accepted
## Context
Prompts and model choices change often and have outsized effects on output
quality and cost. If they live in application code, every wording tweak is a
deploy, there is no record of what produced a past result, and rolling back
means a revert-and-redeploy.
## Decision
Store prompt configuration — task, model id, parameters, and templates — in a
`prompt_configs` table, one active row per task. Every write lands a row in
`prompt_config_history` via a trigger. The AI client loads the active config by
task at request time; app code never hardcodes a model id or a prompt string.
## Consequences
- A prompt or model change is a reviewable, revertable data change, and the
exact configuration behind any past output can be reconstructed from history.
- The eval harness (ADR-010) grades a specific config version, so quality
changes are attributable.
- Configuration is now operational data that must be seeded and migrated; the
reference impl ships a default config in code to keep the path self-contained,
with the table as the production source.when to use it
Community prompt sourced from the open-source GitHub repo chrisrollins-labs/rag-report-platform (MIT). A "Prompt Configuration as Data" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
productivitycommunitydeveloper
source
chrisrollins-labs/rag-report-platform · MIT
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar