Shared AI demos break at handoff when prompts, settings, fixtures, and data live in chat or one engineer's shell. Use an immutable bundle with a rehearsed rollback path. This is proposed practice; the manifest is illustrative and unexecuted.
Define the bundle boundary
Manifest fields: bundle_id, app_commit, prompt, model_parameters, fixtures, expected_labels, data_snapshot. Keep the snapshot ID separate. Never include secrets or customer data. Labels should be checkable properties, not exact wording.
Steps to make rollback routine
- Freeze fixtures and labels before prompt changes.
- Preflight prints bundle ID, app commit, snapshot, and required variable names, never values.
- Store bundles under new IDs; never edit after a demo.
- Rehearse switching back and record passing checks.
- Hand off owner, expiry, limits, and exact bundle ID.
Kubernetes documents a boundary: Deployment rollback restores the Pod template, not unrelated database changes (https://kubernetes.io/docs/concepts/workloads/controllers/deployment/). Bundle rollback restores prompts, parameters, fixtures, and app commit; data needs its snapshot restored separately.
Test the rollback, not just the happy path
Preflight the current bundle, change one prompt line, create a new ID. Observe the new ID and commit. Switch back; confirm old ID, fixtures, labels load. If snapshot differs, stop: demo is not rolled back even if prompt is. If outputs differ while the labels pass, record both observations. Compare the restored manifest, fixed input and expected properties before assigning a cause. A different answer alone does not show which part of the system changed. If variable names are missing, fix environment rather than add secrets.
This pattern does not provide role-based access, cost attribution, or audit retention. W3C PROV-DM models entities, activities, and responsible agents, but lineage alone does not certify correctness (https://www.w3.org/TR/prov-dm/).
This article was created with AI assistance.
Top comments (0)