Code review process
AI helps us write code faster. It never decides what ships. Every change that reaches your server has passed the same gates — automated checks and a person who read it.
Principles
- AI drafts, people decide. No change ships that a developer has not read and understood.
- The AI works in an isolated workspace — no access to production systems, customer data or secrets.
- Every change is traceable: from the request, through the review, to the version and the changelog it shipped in.
- Tests are not optional. A change that breaks a test, or adds behaviour without one, does not pass.
From request to release
| Step | What happens |
|---|---|
| 1. Request | An issue describes the change and what counts as done. Without it, nothing is started. |
| 2. Draft | The AI proposes code and tests in an isolated workspace, steered by a developer. |
| 3. Automated checks | The full test suite against PostgreSQL, including a regression test for every bug ever fixed; a browser walk through every screen that fails on errors, broken output or script errors; a scan of every library against known vulnerabilities and a software bill of materials (SBOM). |
| 4. Human review | A developer reads the complete change, line by line, against the checklist below. What cannot be explained goes back. |
| 5. Security pass | Changes touching sign-in, permissions, deletion, file uploads, database queries or licensing get a dedicated second pass. |
| 6. Our own use | The package is installed on our own instances and used in daily work before it is offered to anyone. |
| 7. Release | A versioned package with date and time, changelog and SBOM. The installer backs the database up first, refuses to put an older version over a newer one, and rolls back with one command. |
What the reviewer checks
- Does it do what the request says — and nothing beyond it?
- Is every action checked for permission on the server, not only hidden in the interface?
- Is input never trusted: parameterised database queries, uploads recognised by their content rather than their file name?
- No secrets in code, logs or error messages.
- What happens when something fails — the network, the database, a full disk? Errors are reported, not swallowed.
- Every new library exists, is maintained, has a compatible licence and appears in the SBOM.
- Do the tests check the behaviour, or do they merely run?
- Could another developer maintain this code tomorrow?
Where AI-generated code needs extra care
AI-written code tends to look right. The review therefore looks hardest where looking right and being right part ways:
- Invented details: functions, parameters or fields of an external interface that do not exist, or only existed in an older version. Every external interface is checked against the vendor's current documentation and tried against a test system.
- Edge cases that read plausibly but are wrong — empty values, time zones, rounding, the first and the last element.
- Error handling that hides problems instead of reporting them.
- Changes wider than asked for. Unrequested rewrites are sent back, however tidy they look.
- Patterns copied from elsewhere that are insecure in this context.
And the AI inside our products?
The same rule applies to the AI assistant in MGProject, MGService and MGWiki: it never sees more than the person asking may see, and it never changes anything on its own. It prepares a draft; a person confirms it; the change is recorded in the audit log under that person's name.
When something slips through
- Every bug found after a release first becomes a test that reproduces it, then gets fixed — so it cannot return unnoticed.
- Fixes ship as a new patch version with a changelog entry.
- Until then, the previous version is one command away.