---
title: "Comment by Mateo Ruiz on \"Scaling to 40+ Coding Agents: How I Built an Open-Source Software Factory Across Trust Boundaries\" | Hashnode"
description: "The interesting challenge at 40+ agents isn't really parallel execution; it's controlling what happens when independently operating agents cross ownership bound"
url: "https://hashnode.com/posts/scaling-to-40-coding-agents-how-i-built-an-open-source-software-factory-across-trust-boundaries/6b0c8ebb42736c3bbbf43507/comment/6b0cfe9f6a3f2c3d502f52c5"
---

[Discussion](https://hashnode.com/posts/scaling-to-40-coding-agents-how-i-built-an-open-source-software-factory-across-trust-boundaries/6b0c8ebb42736c3bbbf43507)

Comment [Scaling to 40+ Coding Agents: How I Built an Open-Source Software Factory Across Trust Boundaries](https://hashnode.com/posts/scaling-to-40-coding-agents-how-i-built-an-open-source-software-factory-across-trust-boundaries/6b0c8ebb42736c3bbbf43507)

[Mateo Ruiz](https://hashnode.com/@mateoruiz)

[2d ago](https://hashnode.com/posts/scaling-to-40-coding-agents-how-i-built-an-open-source-software-factory-across-trust-boundaries/6b0c8ebb42736c3bbbf43507/comment/6b0cfe9f6a3f2c3d502f52c5)

The interesting challenge at 40+ agents isn't really parallel execution; it's controlling what happens when independently operating agents cross ownership boundaries. I like the default-deny approach here, especially keeping bridge agents as narrowly scoped intermediaries rather than giving external agents direct access to credentials or repositories.

One thing I'd pay particular attention to as the swarm grows is whether review independence is preserved under load. Having 2–3 agents approve a PR only adds confidence if they aren't sharing the same assumptions, context, or blind spots. I'd also treat the final merge gate as a separate security boundary: validate the actual diff, permissions, and test evidence there, rather than relying solely on the agent's reported completion or approval status. That's where a software factory can remain trustworthy even when its contributors aren't.

[Oliver Zehentleitner](https://hashnode.com/@oliver-zehentleitner)

[2d ago](https://hashnode.com/posts/scaling-to-40-coding-agents-how-i-built-an-open-source-software-factory-across-trust-boundaries/6b0c8ebb42736c3bbbf43507/comment/6b0cfe9f6a3f2c3d502f52c5#reply-6b0d28a9f3954cb769c4ef36)

Agreed on both, and that is how our team runs it today.

Independence: a PR is never reviewed by the author's vendor. Each review runs in a fresh context, and our review lead checks every line a reviewer cites against the exact commit before the verdict counts. A review that cites the wrong head is thrown out, not argued with.

Merge gate: the lead merges only when two approvals from other vendors name the exact head SHA, CI is green on that same SHA, and the main that CI actually tested still covers every file main changed since. If main moved under the PR in overlapping code, it gets merged in and tested again first. The merge itself is pinned to the head commit, so nothing pushed after the approvals can slip in.

For security fixes the PR text describes behaviour only. The mechanism goes privately to the reviewers, and race fixes get a separate security review with probes on real PostgreSQL and MariaDB.

None of this is clever. It just means nobody's "done" is taken on trust, including the lead's.
