treat a prompt edit as a config change
A shared system prompt, tool allowlist or sampling temperature is production configuration. Version, review and roll it back like one, so audit and recovery stop depending on who remembers the Slack thread.
NIST AI RMF 1.0 is voluntary; Govern 2.1 covers documenting responsibility and communication, and Manage 4.1 covers post-deployment monitoring with incident response, recovery and change management (NIST AI RMF core). Prompt files are a local implementation choice; make the mapping explicit.
Steps
Workshop timing: 10 min inventory, 25 min review gate, 25 min canary plus rollback drill, 20 min audit entry and debrief.
- Inventory editable surfaces per agent: system prompt, tool list, model id, sampling parameters, retrieval config. Name one owner for each.
- Move each into a diffable file, for example
prompts/support-agent/v7.mdplusconfig.yaml. Hash the pair; that hash is your rollback anchor. - Make the pull request the unit of change, and require a pasted regression result (counts, not adjectives) in the description.
- Require two approvals from different roles before merge.
- Canary a traffic slice, watch error and refusal rates over a fixed window, then promote or abort.
- Record change id, from/to pair hashes, approvals, canary window and rollback outcome. The record is complete only when the served prompt and config match the prior pair hash.
Test
Input a one-word prompt change with one approval. Observe whether CI blocks the merge; if it merges, branch protection is decorative, so fix the gate before adding process. Then input a real change with two approvals and a canary window, promote it, and restore the prior prompt-plus-config pair. Observe the served pair hash and the record's from/to hashes, approvals and canary window. If the served hash does not return inside your deploy window, the deploy path bypasses the files; fix that before adding process. If the revert is absent from the record, log it and treat the gap as an incident.
Limits
Single-operator prototypes rarely justify two-person review; the cost outruns the risk. Teams with only one reviewer should use time-delayed merge plus post-hoc review, and record that substitution honestly rather than claiming a control they do not run. The NIST playbook lets teams select practices by Core outcome; it does not require every suggestion (NIST AI RMF playbook).
This article was created with AI assistance.
Top comments (0)