Agentic AI works particularly well in areas where AI agents can check their own work results and correct them on their own. In software development, compilers, automated tests, static code analysis and other tools provide the feedback for this, as I described in the article Agentic AI Is Like a Rocket. But what happens when the AI agent generates not only the program code, but also the tests it uses to check its implementation?
The same false assumptions can find their way into both the implementation and the tests. The tests pass, the agent sees no reason to correct anything – and yet the implementation is wrong. An empirical study by Konstantinou, Tambon and Papadakis from 2026 [1] provides concrete evidence of this. In their experiments with deliberately selected faulty implementations, tests generated after such an implementation detected only 14 percent of the faults, compared with 25 percent for independently generated tests.
How can we use autonomous self-checking without falling into the trap of self-confirmation? One promising approach is triangulation. This article explains it, distinguishes hard and soft triangulation and presents seven types for agentic AI.
What Is Triangulation?#
The term triangulation originally comes from geometry and surveying. By observing an object from different reference points, its position can be determined. The empirical social sciences have adopted this principle: instead of relying on a single source, a single observer or a single method, they combine different approaches.
As early as the 1970s, the sociologist Norman K. Denzin [2] distinguished four basic forms:
- Data triangulation
- Investigator triangulation
- Theory triangulation
- Methodological triangulation
Three approaches are not required: Uwe Flick [3] uses triangulation to mean looking at a subject of investigation “from (at least) two points” (my translation); together with the object under observation, this forms a triangle – hence triangulation. Not only matching results are valuable, but also contradictions and complementary insights. For agentic AI, this leads to an essential design principle:
The strength of a triangulation does not lie in the number of matching results, but above all in how different its sources of error and blind spots are.
That even independently developed solutions show correlated errors is nothing new. As early as 1986, John C. Knight and Nancy G. Leveson showed in a study on N-version programming [4] that independently developed programs had common faults more often than would have been expected under the assumption of statistical independence. With agentic AI, this problem takes on a new significance.
Hard and Soft Triangulation#
For the automation of software development, I distinguish between hard and soft triangulation; this is my own systematization, not an established scientific classification.
Hard Triangulation#
In hard triangulation, findings are obtained using explicit, machine-checkable criteria and related to each other. For example, an automated test can reproducibly demonstrate a deviation from the expected behavior. Two different implementations of an algorithm can be checked automatically for identical results.
Such results can be fed directly into the feedback loop of an AI agent: it corrects its implementation and checks again, without a human having to intervene. Hard, however, does not mean that the underlying criteria are necessarily correct or complete. Even a deterministic test method can be based on a wrong specification.
Soft Triangulation#
In soft triangulation, the findings are based at least in part on interpretations, assessments or reasoned conjectures. For example, an AI-assisted code review can identify a potential architecture problem without being able to demonstrate its actual impact. Another agent may come to a different assessment.
Such results can require human judgment and the assumption of responsibility. This is not inevitable: soft evidence, too, can be processed automatically using decision rules defined in advance.
Evidence, Decision and Risk#
In the following, I call the findings of hard triangulation hard evidence, and those of soft triangulation soft evidence. For the architecture of agentic systems, three dimensions therefore have to be considered:
| Dimension | Question |
|---|---|
| Quality of evidence | Is there a conjecture, a reasoned assessment or a reproducible proof? |
| Decision procedure | Can the decision be made automatically, or is human judgment required? |
| Risk | What would be the impact of a wrong decision? |
The same soft evidence can trigger a further automated check for a low-risk change, while it requires a human review for a security-critical change.
Soft evidence does not necessarily mean soft decision rules.
Seven Types of Triangulation in Agentic AI#
Starting from the classic forms of triangulation and established practices in software engineering and AI research, I propose seven types of triangulation for agentic AI. This classification, too, is not an established taxonomy; the categories are not mutually exclusive, but can be combined.
1. Model Triangulation#
In model triangulation, the same question is examined by different AI models, as a transfer of classic investigator triangulation to AI systems. Because of their training data, training methods and architectures, different models can have different strengths, weaknesses and error profiles. For example, a coding agent based on Claude creates an implementation, which a Claude-based and a GPT-based review agent check against the same specification; their results are then compared. The study “A Single LLM Is an Incomplete Code Reviewer” by Tony Stone (2026) [5] provides evidence from a case study that a second, independent LLM review finds significantly more defects; whether this requires a different model family remains open.
The mere separation of creation and checking by two different models, on the other hand, I would initially regard as a kind of four-eyes principle. The approach becomes model triangulation in the narrower sense through the comparable assessments of different models. Model triangulation is usually a form of soft triangulation. Even if several models arrive at the same result, that result is not necessarily correct.
2. Context Triangulation#
In context triangulation, the same subject is examined from information spaces isolated from each other. What matters is not which AI model is used, but which information is available to the agents involved. Even two different AI models can share the same context. Conversely, context triangulation can be implemented with the same AI model, provided the information spaces are reliably isolated from each other.
Say a coding agent develops its implementation in a longer dialog. An independent review agent then receives only the specification, the relevant development guidelines and the finished program code. The discussions, intermediate considerations and discarded approaches remain hidden from it. This can reveal two problems:
- The specification is incomplete because relevant decisions were documented only in the discussions.
- The implementation was influenced by false intermediate assumptions that should never have been part of the specification.
Context triangulation thus also indirectly serves the quality assurance of the specification. In the technical implementation, the agent harness plays a particularly important role. Shared conversation histories, persistent memories or uncontrolled shared intermediate results can impair the independence of the contexts. Sion and April [6] examine the structural separation of implementation and verification: in their experiments, a two-phase check with a fresh context found more faults than the builder’s own tests; a verifier from another provider in its place even found fewer faults.
3. Solution Path Triangulation#
In solution path triangulation, different solution paths are chosen for the same task and their results are compared with each other. One example is the calculation of access permissions in a relationship-based access control (ReBAC) system. An AI agent implements it using recursive SQL queries, a second implementation as a graph traversal in Java. Both receive the same input data, and a large number of generated test cases compare their results automatically.
Deviations indicate that at least one of the implementations is faulty, provided an unambiguous result is specified for the test case in question. In software engineering, this approach is known as differential testing (William M. McKeeman, 1998) [7]. A related approach from AI research is self-consistency (Wang et al., ICLR 2023) [8], in which different reasoning paths are generated and their answers are compared or aggregated.
The particular advantage for agentic AI: the implementations can be generated by AI, while the comparison is deterministic – a form of hard triangulation. However, both implementations may be based on the same faulty interpretation of the specification.
4. Source Triangulation#
In source triangulation, information from different sources is cross-checked to secure the knowledge base for a decision. An AI agent could check an assumption about the behavior of an external library against these sources:
- Official documentation of the version in use
- Source code of the library
- Observed behavior in a targeted experiment
This way, it could discover that the documentation is incomplete or that the behavior differs in an edge case. Source triangulation secures the knowledge base before the implementation, but provides no proof of the correctness of the software generated afterwards. Here, too, independence counts: web pages that have copied the same wrong information from each other offer hardly any additional certainty.
Source triangulation largely corresponds to Denzin’s classic data triangulation. In AI research, there are related approaches such as CRITIC (Gou et al., ICLR 2024) [9], in which language models check and correct their results with the help of external tools.
5. Perspective Triangulation#
In perspective triangulation, the same matter is viewed from different domain or theoretical perspectives. In my own work, security audits by AI agents repeatedly flagged customer self-service as a potential security risk. That customers can change certain data of their own, however, was an explicit business requirement. The necessary restrictions and safeguards were also in place.
A security agent may classify an operation as problematic from a general security perspective, while a domain review agent recognizes the same operation as desired functionality. Another agent could assess whether the concrete technical safeguards are sufficient. What matters is actually relating the results to each other; if each agent only produces its own list of findings, that is initially just a division of labor.
A business requirement alone does not invalidate a security risk. Conversely, an abstract security risk does not automatically make a concrete implementation insecure. Perspective triangulation can therefore not only uncover overlooked defects, but also correct false alarms of individual specialized agents.
Especially in security-critical decisions, weighing the different findings can require human judgment and the assumption of responsibility. Perspective triangulation builds on classic theory triangulation and in particular on the systematic perspective triangulation described by Uwe Flick [10].
6. Artifact Triangulation#
Artifact triangulation examines whether different artifacts of a development process represent the same matter consistently. An example from API-first software development is checking a REST API against different representations of its interface contract:
- OpenAPI specification
- Server-side implementation
- Consuming client code
By comparing them, a review agent can discover, for example, that the client expects a certain HTTP status code that the server-side implementation, contrary to the OpenAPI specification, does not return. Unlike in method triangulation, the focus here is not on different test methods, but on different representations of the same matter. The comparison can be done by AI agents as well as by deterministic test methods.
However, all artifacts may have arisen from the same false assumption. Their consistency would then be given, but not their functional correctness. In classic software engineering, the foundations for this are provided by requirements engineering, the traceability of development artifacts [11] and consistency checking between requirements, implementations and tests.
7. Method Triangulation#
In method triangulation, the same subject of investigation is examined using different test methods. One example is checking for SQL injection vulnerabilities. Parameterized SQL statements reduce this risk considerably, but in complex software systems, SQL statements are still assembled dynamically time and again. To be safe, different test methods could be combined:
- Static code analysis: Does potentially unsafe input data flow into SQL statements?
- Dynamic security testing: probing the running application with deliberately crafted inputs.
- AI-assisted security review: examining the program code in its technical and business context.
All three examine the same property of the same implementation, but detect vulnerabilities in fundamentally different ways; this way, their strengths and weaknesses complement each other. The OWASP Web Security Testing Guide [12], too, recommends combining manual review with automated static analysis and dynamic testing. Method triangulation can combine hard and soft evidence. Of particular interest for agentic AI are test methods whose results feed directly into autonomous correction loops.
The Seven Categories at a Glance#
| Category | What is varied? |
|---|---|
| Model triangulation | The AI models used |
| Context triangulation | The available information and how it came about |
| Solution path triangulation | The ways of solving the same task |
| Source triangulation | The origin of the underlying information |
| Perspective triangulation | The domain or theoretical viewpoints |
| Artifact triangulation | The representations of the same matter |
| Method triangulation | The investigation and test methods used |
In practice, these categories are rarely used in pure form. An independent review agent with a different AI model, an isolated context and its own domain perspective, which compares different development artifacts, already combines four forms. So it is less about a clear-cut assignment than about combinations whose failure mechanisms overlap as little as possible and whose findings complement each other. The effort for triangulation must be proportionate to the risk of the decision in question.
Conclusion: Triangulation as a Design Principle for Agentic AI#
Checking work results is becoming the decisive bottleneck of software development, as I described in the article When Coding Is Solved: Verification and Validation as the New Bottlenecks. Triangulation can ease it. Hard triangulation makes it possible to build more meaningful feedback loops within which AI agents can check and correct their work results autonomously.
Soft triangulation can provide additional insights, put false alarms into perspective and identify those decisions that really require human judgment. With risk-based decision rules, part of these insights can also be processed automatically. Triangulation is not meant to increase the effort for verification and validation, but to raise the significance of the evidence and to use human review capacity in a more targeted way. More trustworthy agentic systems therefore do not arise from more powerful AI models alone, but also from an architecture in which different checking mechanisms compensate for each other’s weaknesses.
Self-checking enables autonomy. Triangulation makes this self-checking more trustworthy.
Outlook: Triangulation in Practice#
In the second part, I present four examples from my practice:
- Autonomous Quality Triangle: behavior tests, mutation tests and a PR size budget.
- REST API verification: actual HTTP requests and responses against the OpenAPI specification.
- Risk-based AI reviews: processing soft evidence automatically, with rising requirements for proving a defect.
- Cross-domain validation: experts from consuming business domains assess behavior test reports.
They show how forms of triangulation can be combined, how hard and soft evidence fit into automated development processes and where human judgment and responsibility still have their place.
Sources and Further Reading#
- Konstantinou, M.; Tambon, F.; Papadakis, M. (2026): On the Risk of Coding Before Testing: An Empirical Study on LLM-Based Test Generation Workflow. arXiv preprint. ↩
- Denzin, N. K. (1970): The Research Act: A Theoretical Introduction to Sociological Methods. Aldine, pp. 301 ff.; the four forms are summarized in a freely available form by Rheinländer (2011), see [3]. ↩
- Rheinländer, K. (2011): Triangulation. Wissenschaftshistorische und methodologische Aspekte aus der Perspektive der sozialwissenschaftlichen Forschung. ZQF – Zeitschrift für Qualitative Forschung, 12(1), pp. 111–123, in German; quoting Flick (2000), p. 309. ↩
- Knight, J. C.; Leveson, N. G. (1986): An Experimental Evaluation of the Assumption of Independence in Multiversion Programming. IEEE Transactions on Software Engineering, SE-12(1), pp. 96–109; freely available manuscript in the MIT repository. ↩
- Stone, T. (2026): A Single LLM Is an Incomplete Code Reviewer: Evidence that Independent Review by Multiple LLM Families Recovers Code Defects Any One Model Misses. Preprint on Zenodo, not peer-reviewed. ↩
- Sion, S. I.; April, A. (2026): Who Verifies the Builder? Toward Independent Assurance for Agent-Produced Software. arXiv preprint. ↩
- McKeeman, W. M. (1998): Differential Testing for Software. Digital Technical Journal, 10(1), pp. 100–107; full text in the Internet Archive. ↩
- Wang, X.; Wei, J.; Schuurmans, D.; Le, Q.; Chi, E.; Narang, S.; Chowdhery, A.; Zhou, D. (2023): Self-Consistency Improves Chain of Thought Reasoning in Language Models. ICLR 2023; freely available as an arXiv preprint (2022). ↩
- Gou, Z.; Shao, Z.; Gong, Y.; Shen, Y.; Yang, Y.; Duan, N.; Chen, W. (2024): CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquing. ICLR 2024. ↩
- Flick, U. (1992): Entzauberung der Intuition: Systematische Perspektiven-Triangulation als Strategie der Geltungsbegründung qualitativer Daten und Interpretationen. In: Hoffmeyer-Zlotnik, J. H. P. (ed.): Analyse verbaler Daten. Westdeutscher Verlag, pp. 11–55, in German. ↩
- Antoniol, G.; Cleland-Huang, J.; Hayes, J. H.; Vierhauser, M. (eds.) (2017): Grand Challenges of Traceability: The Next Ten Years. arXiv preprint. ↩
- OWASP: Web Security Testing Guide – The Web Security Testing Framework. ↩
