The DevSecOps Review Guide: Thousands of Merge Requests a Month
It's Thursday afternoon and the merge request queue has 41 items in it. The senior engineer on review duty opens one that touches 64 files, scrolls the diff, sees green tests and a familiar author, and approves it in three minutes. The security scan runs after merge and adds two findings to a dashboard nobody checks. Six weeks later a customer reports seeing another tenant's invoices. The root cause is a query in that approved MR that filtered by invoice ID and never by tenant.
Most teams that ship through GitHub or GitLab automated their pipeline and left review manual. This guide is a reference architecture for the other half: Review reads every merge request before a person does, and Cyber tests the running app on staging, where an authorization bug has to prove itself with a real request.
The examples are illustrative, written for this guide. The one customer figure is sourced and linked.
Why the traditional review pipeline breaks
01Code
No early review
Developers push and wait. Feedback lands days later, out of context.
02MR
Senior bottleneck
One reviewer on duty, dozens of MRs waiting, LGTM on 64 files.
03CI checks
Diff only
Linters rank style nits with real bugs. Logic bugs pass green.
04Deploy
Late scan
SAST runs after merge into a dashboard nobody owns.
05Production
Customer finds it
A cross-tenant bug surfaces weeks later. Root cause: an approved MR.
None of these are discipline problems. They're structural.
Human review doesn't scale with volume. Review capacity is a fixed number of senior hours a week. Merge request volume isn't, and AI coding tools have pushed it up. When the queue outgrows the reviewers, review quality drops first, and nobody measures it.
Static tools see the diff, not the system. A linter or a SAST rule judges the lines that changed. Whether invoice_id is enough to scope a query depends on how tenancy works in the rest of the codebase, which the diff doesn't contain. That's why the most expensive bugs (authorization, tenancy, business logic) pass green.
Late findings have no owner. A finding that arrives after merge competes with feature work and usually loses. A finding without proof is easy to dismiss as a false positive. A finding without a fix is a ticket, and tickets age.
Conventions live in heads. "Every query on a tenant-scoped table goes through the repository helper" is a rule most teams enforce only when the right reviewer is on duty.
The architecture
01Where it triggers
Your pipeline
- Local changescloudthinker review, before the push
MR opened or updatedEvery push, reviewed incrementally
- Failed CI runPipeline analysis
- Release tagRelease report and decision
- StagingScheduled Cyber runs
Nobody has to remember to ask
02Two reviewers
CloudThinker
- ReviewDiff, ticket, conventions, BUSINESS.md
- LearningsRules from findings you resolved
- CyberThe running app, on a verified domain
One reads the change, one attacks the app
03Where it lands
Your team
MR commentsSeverity, category, suggested fix
- Cyber findingsRequest and response proof
- FixesCommit, stacked MR or fix PR
- ReleaseApprove or Hold, on record
People merge
Two reviewers, each at the point where it sees the most. Review reads the change. Cyber attacks the running app. Neither replaces the other: Review catches the bug in the diff before merge, and Cyber catches the same class of bug in code that never went through Review, or that Review missed.
Where review triggers
- Before the MR.
cloudthinker reviewreviews local changes from the terminal before anything is pushed. The CLI is in beta. - MR opened or updated. Review picks up every merge request on a connected repository with nobody asking. Each new push gets an incremental review that checks whether the earlier findings were fixed.
- A failed CI run. With pipeline analysis on, Review reads the failed jobs in GitHub Actions, GitLab CI, Bitbucket Pipelines or Azure Pipelines and explains why the run broke and how to fix it. It's off by default.
- A release tag. A release report lists Blocking and Watch risks across the changes since the last release, and the team records Approve or Hold. The decision is a record in CloudThinker. It doesn't block your pipeline.
- Staging, on a schedule. Cyber runs security tests against your staging app daily, weekly or on a cron schedule. Separately, a Code Audit reads a repository branch and re-audits it as it changes.
What each reviewer reads
Review reads the diff, the ticket linked in the description (Jira, Confluence, Linear, Backlog, or GitHub and GitLab issues), the convention files you already keep (AGENTS.md, CLAUDE.md, .cursorrules and similar), a BUSINESS.md that lists your product's invariants, and Learnings: rules it distilled from findings your team resolved. It doesn't read your live systems.
Cyber reads the running app at a domain you've proved you own with a DNS TXT record. You give it include and exclude paths, test users, and optionally a repository and an OpenAPI spec. What you attach sets the depth: a URL alone is black-box, test users make it gray-box, a repository makes it white-box.
Where results land
- Inline MR comments with a severity, a category and a suggested fix, plus one summary comment.
- Cyber findings with the requests and responses that reproduce them, triaged on a board from Confirmed to Verified fixed.
- Fixes as commits on the source branch, a separate stacked MR, or a Cyber fix PR, depending on how you ask.
- A release decision your whole team can see, with the risks that drove it.
One merge request, end to end
01MR opened
Invoice endpoint
Filters by invoice ID, never by tenant. Tests pass.
02Review
Critical finding
Breaks the repository helper rule and the tenant invariant.
03Fix
Stacked MR
One line, read and merged by a person.
04Cyber
Staging run
Two tenants test the whole app for the same class of bug.
05Retest
Verified fixed
The next scan replays the proof and closes the finding.
The MR from the opening adds an endpoint to download an invoice PDF:
@router.get("/invoices/{invoice_id}/pdf")
def download_invoice(invoice_id: int, user=Depends(current_user)):
invoice = db.query(Invoice).filter(Invoice.id == invoice_id).first()
if invoice is None:
raise HTTPException(status_code=404)
return render_pdf(invoice)
Tests pass. The linter is happy. A diff-only reviewer has nothing to say. Review starts from what the change could get wrong instead:
Reading 1: the query is tenant-scoped somewhere else. If so, a middleware, a session filter or a repository helper adds the tenant clause. Review reads how other handlers load Invoice: every one goes through InvoiceRepository.for_tenant(user.tenant_id). This one doesn't. Rejected.
Reading 2: the IDs aren't guessable, so exposure is low. If so, invoice_id would be a UUID. It's an auto-increment integer, so tenant B's invoices are a counter away. Rejected.
Reading 3: the team wrote this rule down. billing/AGENTS.md says tenant-scoped models are read through their repository helper, and BUSINESS.md carries invariants.billing.tenant-isolation. The change breaks both.
The finding lands on the line as a Critical Security finding, citing the invariant, with a one-line fix:
invoice = InvoiceRepository.for_tenant(user.tenant_id).get(invoice_id)
The author comments @cloudthinker-ai autofix stacked, which opens a separate MR with the fix so it can be read before it reaches the branch. A person merges it. The next push gets an incremental review, which confirms the finding is fixed.
That closes this MR. It doesn't tell you whether the same mistake lives somewhere Review never looked, such as an endpoint written before Review was connected. That's Cyber's job.
On staging, Cyber runs weekly at Aggressive intensity with two test users in different tenants. Scheduled runs sign in only with long-lived token users, so those are the two you add. With a user in each tenant, Cyber tests whether one can read or change the other's data. Suppose it finds an older /invoices/{id}/receipt route with the same flaw. It signs in as the tenant A user, requests a tenant B invoice ID and gets a 200 with tenant B's receipt. The finding is Confirmed, with that request and response attached as proof.
Create PR with agent opens a chat where CloudThinker drafts the fix as a pull request against the repository attached to the app. Your engineers review and merge it, mark the finding Ready for retest, and the next scan replays the proof. If the request now fails, the finding moves to Verified fixed.
Who merges the fix
Neither reviewer merges on its own.
Review gives you four ways to apply a fix. Apply fix commits one finding. Fix all findings, or @cloudthinker-ai autofix in a comment, commits every unresolved finding to the source branch. autofix stacked opens a separate MR instead, on GitHub and GitLab. Copy prompt hands the fix to your own coding agent. Plain autofix pushes without a separate approval step, and anyone who can comment on the MR can run it, so on a shared repository limit who can comment or standardize on autofix stacked. Your provider's branch protection applies to every push.
Cyber drafts fixes as pull requests that your team reviews and merges. Anything CloudThinker writes to your systems along the way goes through Auto Mode, so you decide what runs on its own and what waits for approval.
Cyber intensity is your call per run. Safe sends read requests only. Aggressive adds POST, PUT and PATCH and can create test data. Full and Deep dive add DELETE. Point anything above Safe at staging with test accounts, never production.
Why this beats the traditional pipeline
| Traditional review | Review and Cyber | |
|---|---|---|
| When review happens | When a senior engineer gets to it | On every MR and push, before a person opens it |
| What the reviewer reads | The diff | The diff, the ticket, your convention files and BUSINESS.md |
| Authorization bugs | Found by a customer | Flagged in the MR, then tested across the app on staging |
| Security findings | After merge, in a dashboard | Request and response proof attached to every confirmed finding |
| Fixes | A ticket for later | A commit, a stacked MR or a fix PR, reviewed by your team |
| Re-checks | At the next annual pentest | Incremental review on the next push, a retest on the next scan |
| Conventions | Enforced when the right person reviews | Read from the files you keep, plus Learnings from resolved findings |
The deeper difference is where review sits. In the traditional pipeline, review is a scarce human resource at one stage and a noisy scanner at another. Here it's part of the pipeline at every stage, with the same rules each time, and people spend their review time on intent and design.
Cost
Each review and each Cyber run uses credits, so cost follows what you ship and test. There's no fixed price per MR, because a 40-line change and a 4,000-line change don't take the same work, and Deep dive runs use the most. Review and Cyber runs start on the Team plan. Set that against what you pay now: senior hours in the review queue, and the incident when an approved MR reaches a customer.
Reference deployment
FPT Cloud runs Review on live merge requests on a shared cloud platform, where one cross-tenant defect is a compliance event. In its evaluation, Review reached about 97% precision with full backend logic coverage in the evaluated set, and of every verified defect, 68.6% were caught at the merge request, 5.9% in human review and 25.5% in QC (preliminary figures). The engineering story is in Inside the FPT Cloud evaluation.
Getting started
- Connect one repository. Set up Review with your Git provider and open a merge request. The first review lands as MR comments.
- Write down your rules. Commit the conventions reviewers enforce by memory into
AGENTS.md, and your product's invariants intoBUSINESS.md. - Register a staging app in Cyber. Verify the domain, add two test users from different tenants, set include paths, and start with a Safe run.
- Pick your fix path. Decide whether your team uses
autofix stacked, Apply fix or plain autofix, and limit who can comment on shared repositories.
Then ask in plain language:
"Review the open merge requests on the billing service and list any that read a tenant-scoped table without the tenant filter. Propose fixes, merge nothing."
"Here's our convention: every outbound HTTP call goes through the shared client with a timeout. Write it as an AGENTS.md rule for the services folder."
"Which confirmed Cyber findings on staging let a user in one tenant read another tenant's data? Show the request and response for each."
Connect a repository and open your first review in Review.



