01Purpose and scope
This procedure applies to every change to an application that ProductMarvel runs in production: code, prompts, model versions, retrieval settings, configuration, dependencies, infrastructure definitions and database schema.
Content edited through the application’s own admin screens is not a change under this procedure.
02Where applications run
Applications run either self-hosted, on the customer’s own infrastructure (a cloud subscription, MITA’s Hybrid Cloud Platform for government entities, or a data centre), or on platform hosting that ProductMarvel manages. The procedure is the same in both cases.
- Self-hosted, you own the accounts, the data and the infrastructure costs.
- ProductMarvel’s pipeline deploys with its own identity, limited to the application’s QA and PROD environments.
- People do not deploy. No developer, on your side or ours, holds standing rights to change production.
- Your infrastructure owner holds break-glass access for restoring service. Each use is logged and reviewed.
03Roles
| Role | Who | Responsible for |
|---|---|---|
| Change requester | Your product owner | Raises each change, sets its acceptance criteria and accepts it in QA. |
| Developers | Your team | Build on branches, write tests and eval cases, and keep documentation current. |
| Reviewer | A second developer on your team | Reviews each pull request for the domain logic. |
| Architect | ProductMarvel | Reviews each pull request for architecture, security and data handling, and signs off each release. |
| Operations team | ProductMarvel | Runs the platform: the checks, signed releases and deployments, monitoring, incident response and the audit log. |
| Infrastructure owner | Your infrastructure team or provider | Networks, identity, hosts and clusters, backup storage and break-glass access. |
04Environments
| Environment | Where it runs | Data | Changed by |
|---|---|---|---|
| Development | Your machines or a development subscription | Synthetic | Your developers |
| Preview | Created for each pull request, removed on merge | Synthetic | The pipeline |
| QA | Isolated and production-like, in its own account or subscription | Synthetic or masked | The pipeline |
| PROD | Isolated, in its own account or subscription | Live | The pipeline, after sign-off |
QA and PROD have separate secrets. Production data is never copied into development or preview.
05Change classes
| Class | Examples | Adds to the standard steps |
|---|---|---|
| Standard | Text and layout, a fix inside one module, a minor dependency update. | The standard steps. |
| Significant | A new feature or integration, a schema change, a prompt or retrieval change, a new dependency. | New eval cases, a migration plan, and acceptance in QA by the product owner. |
| High-risk | Authentication and access, payments, personal data, agent tools and permissions, a model version change, infrastructure and network. | A security review by a second architect, a data protection check, an EU AI Act check where the risk class may change, and a scheduled release in stages. |
06The procedure
- Step 1Your product owner
Raise the change
Open a change request in the application’s tracker with the fields in appendix A.
Done whenThe request has acceptance criteria and a proposed class.
- Step 2Your developers
Build on a branch
Branch from main and keep the change small. Add tests for new behaviour, eval cases for any change to model behaviour, and update the documentation the change affects. Put unfinished work behind a feature flag.
Done whenThe branch builds and its tests pass.
- Step 3Your developers
Open a pull request
Link the change request and complete the checklist in appendix B. The pipeline creates a preview environment for the pull request.
Done whenThe checklist is complete.
- Step 4Platform, automated
Automated checks
The build, unit and integration tests, the regression suite, the eval suite against its baseline, static code testing, secret scanning, dependency and licence checks, image scanning and policy checks. Any failure blocks the merge.
Done whenEvery check passes.
- Step 5Your reviewer and the architect
Review
Your reviewer checks the domain logic. The architect checks architecture, security and data handling, and whether the tests cover the change, within the review time in your service level agreement. The architect confirms the change class and can raise it.
Done whenBoth approve.
- Step 6Platform, automated
Merge and deploy to QA
Merging builds one signed release and deploys it to QA. The full regression and eval suites, an application vulnerability scan and smoke tests run against QA, and database migrations are rehearsed there.
Done whenThe QA checks pass.
- Step 7Your product owner
Acceptance in QA
Test the change against its acceptance criteria and record the result on the change request. A rejected change goes back to step 2.
Done whenAcceptance is recorded.
- Step 8Architect and operations team
Sign-off and promotion
The architect reviews the release record and signs it off. The same release is promoted to PROD in the agreed release window, in stages where the tier requires it. Health, error and guardrail measures are watched, and the release rolls back automatically if they cross the agreed limits.
Done whenThe release is live and stable.
- Step 9Operations team and architect
Verify and close
Post-release checks run for the agreed period. Release notes, the changelog, runbooks and the data-flow map are updated, and the change request is closed with a link to its release record.
Done whenThe change request is closed.
07Keeping regressions out
- A test for every fix
- A bug is first reproduced as a failing test. The fix makes it pass, and the test stays in the suite.
- Eval baselines
- Each release’s eval scores are compared with the release in production. A drop beyond the agreed tolerance blocks the release.
- Pinned models and prompts
- Model versions, prompts and retrieval settings live in the repository. Changing one is a change under this procedure.
- One release, promoted unchanged
- A release is built once, signed and promoted from QA to PROD as it is. Environments differ only in versioned configuration.
- Compatible migrations
- Schema changes are split across releases (expand, migrate, contract), so the previous release still runs against the new schema.
- Feature flags
- Unfinished work merges switched off, so deploying a release and turning a feature on are separate decisions.
- Contract tests
- Integrations with other systems are tested against agreed contracts, on both sides where possible.
- Protected tests
- Removing or weakening a test, eval case or scan rule needs the architect’s approval.
- Small changes from AI tools
- Coding assistants may be used. Ask them for a targeted change, not a regenerated file. A regenerated module is reviewed as a significant change.
08Emergency changes
For a production incident that needs a code or configuration change.
- The architect on call, with the operations team, opens an emergency change and approves the fix.
- The fix goes through the same pipeline, on the shortened path agreed for emergencies. No check is switched off.
- Overriding a failed check needs two architects and is recorded with the reason.
- The test that reproduces the incident is added in the follow-up change.
- A post-incident review is written and shared with your team.
Production is not edited by hand. Break-glass access is for restoring service, and every use is reviewed.
09Rolling back
- Every release record names its rollback: normally the previous signed release, with the new feature flags off.
- Because migrations are compatible, the previous release runs against the current schema.
- The architect on call decides on a rollback and informs your product owner within the time in your service level agreement.
- A rolled-back change returns to step 2 with a test that reproduces the failure.
10Records and documentation
For each change the audit log keeps the change request, the pull request and its reviews, every check result, the eval scores against the baseline, scan findings and their triage, the QA acceptance, the architect’s sign-off, and each deployment and rollback. It is kept for the period in your agreement and is open to your auditors.
Updated with each release: release notes and the changelog, architecture decision records, runbooks, the data-flow map, and the register of models and prompts in use.
11Rules for your team
Do
- Work on branches, one change per pull request.
- Use synthetic data in development and preview.
- Note in the pull request which parts an AI tool generated.
- Raise a change request for every change to model versions, prompts or guardrails.
Do not
- Push to the main branch.
- Ask for production credentials or deploy rights.
- Copy production data into development or preview.
- Commit secrets, keys or tokens.
- Disable, skip or weaken a test, eval or scan to get a change through.
AAppendix A: change request
- Summary
- What changes and why.
- Acceptance criteria
- How the product owner will judge the change in QA.
- Proposed class
- Standard, significant or high-risk.
- Areas affected
- Modules, integrations and data.
- Data impact
- New personal data, schema changes, retention.
- Model impact
- Prompts, models, retrieval settings, agent tools and permissions.
- Rollout
- Feature flag, release window, and who to inform.
BAppendix B: pull request checklist
Paste this into the pull request template of each application repository.
- Linked to its change request
- One change, kept small
- Tests added or updated for new behaviour
- Eval cases added for changes to model behaviour
- Migrations backward compatible and reversible
- Unfinished work behind a feature flag
- No secrets, keys or production data
- Documentation updated: README, decision record, runbook
- AI-generated parts noted in the description
Questions about this procedure go to your architect or to intake@productmarvel.com.