# Why I Used AI to Build an Engineering Auditor That Doesn't Use AI

> Source: <https://dev.to/erentahiroglu/why-i-used-ai-to-build-an-engineering-auditor-that-doesnt-use-ai-59la>
> Published: 2026-12-04 00:37:41+00:00

**Recommendation:** When an agent needs reliable calculations, wrap the logic in a deterministic tool exposed over MCP and have the agent invoke it instead of computing values in-context.
More in the playbook "Designing agent systems": <https://wpnews.pro/playbooks/agent-architecture>

*This article is written as part of the Kiroween 2026 hackathon.*

Imagine two engineering documents describing the same pump.

The engineering specification says:

`P-101 | pressure | 10 bar`

The purchasing document says:

`P-101, pressure,900 kPa`

The documents use different units, but the more important question is whether they describe the same physical requirement.

They do not.

Using the larger absolute value as the denominator, the relative difference is 10%.

This is a simple example of a broader engineering problem: technical documents can disagree, and those disagreements are not always obvious when values are expressed using different units.

As a mechanical engineering student, I wanted to explore how software could make this kind of verification more systematic, reproducible, and transparent.

That became SpecForge.

Large language models are useful for understanding documents, writing software, and exploring unfamiliar problems.

But engineering verification introduces a different requirement: reproducibility.

For the same supported inputs, a numerical comparison should produce the same result. It should also explain exactly where the values being compared came from.

A convincing explanation is not a substitute for a correct calculation.

This distinction shaped the architecture of SpecForge:

**AI-assisted development, deterministic execution.**

I used Kiro CLI to develop the application under human direction, but the audit engine itself does not depend on a language model.

Python and Pint handle the numerical and dimensional comparisons.

One of the most important aspects of the development process was moving beyond feature requests and defining behavioral requirements.

For example, the requirements were not limited to:

They also needed to describe what the software must not do.

An unsupported unit must not be guessed.

An unreadable row must not silently disappear.

An unmatched measurement must not be presented as a successful comparison.

These requirements matter because a misleading clean result can be more dangerous than a visible error.

Kiro's spec-driven approach provided a way to organize these behavioral constraints alongside implementation tasks.

Steering documents helped maintain project-level development constraints instead of relying entirely on the immediate conversation.

The project's Kiro configuration, specifications, steering documents, hook configuration, and MCP integration are available in the public repository.

SpecForge separates the comparison logic from its interfaces.

The architecture consists of:

The purpose of this separation is to avoid maintaining independent implementations of the same numerical logic.

The interface should present the result, not invent a different interpretation of it.

The Model Context Protocol integration illustrates an important distinction between giving an AI agent more instructions and giving it access to a specialized tool.

Instead of asking a model to calculate every engineering conversion itself, the agent can invoke SpecForge's deterministic comparison tool for supported structured rows.

This creates a useful division of responsibilities:

The demonstration video includes a recorded Kiro CLI session invoking the MCP tool. This recording demonstrates the tool's functionality; it is not presented as historical footage of the complete development process.

One of the most important design decisions in SpecForge is the distinction between comparison results and comparison coverage.

Consider the synthetic pump station example.

The application identifies:

Those gaps matter.

For example, `hp` can refer to more than one definition of horsepower. Rather than silently choosing one, SpecForge refuses the ambiguous comparison.

An unsupported row or unmatched record also remains visible.

This means an absence of detected conflicts cannot automatically be interpreted as successful verification of the entire document.

That distinction is reflected in the result's verdict and coverage information.

Ordinary unit tests are necessary, but engineering parsers also encounter unexpected combinations of units, numerical values, and input formats.

The project uses pytest and Hypothesis, including property-based testing, to exercise behavior beyond a small collection of manually selected examples.

Relevant properties include numerical consistency, unit equivalence, and behavior under different input arrangements.

The accepted contest revision recorded 3,066 passing tests and four skipped tests in each of its Python 3.11 and Python 3.12 CI environments.

These results are available in the corresponding GitHub Actions run.

Passing tests do not prove universal correctness. They provide evidence of the behaviors and boundaries that were actually tested.

The development process also included bounded fixes and adversarial reviews, with Codex used as a separate AI tool. Kiro remained central to the development workflow, with technical decisions and acceptance directed by me.

SpecForge is deliberately limited.

The public demonstration focuses on comparisons between two documents that contain supported, structured engineering measurement rows.

It does not universally understand arbitrary engineering documents, establish semantic equivalence across all engineering properties, or certify engineering safety.

Public PDF uploads are disabled.

The hosted application should only be used with synthetic or non-confidential documents.

These limitations are part of the engineering design, not details to hide.

The most interesting question for me was not whether an AI coding agent could help build an engineering application.

It was how to organize development so that the resulting application remains accountable to explicit rules, reproducible calculations, and inspectable evidence.

SpecForge explores that approach.

Use AI to help build the tool. Use deterministic computation where the task requires it. Keep the evidence visible, and never confuse incomplete coverage with successful verification.

*Disclosure: AI tools assisted with the drafting of this article. The technical content is based on the SpecForge project and its documented development and verification records.*
