This article is written as part of the Kiroween 2026 hackathon.
The problem begins with two numbers
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.
- 10 bar = 1,000,000 Pa
- 900 kPa = 900,000 Pa
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.
Why not simply ask an LLM?
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.
Building around explicit requirements with Kiro
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:
- Compare engineering measurements.
- Convert units.
- Generate a report.
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.
A single comparison engine, multiple interfaces
SpecForge separates the comparison logic from its interfaces.
The architecture consists of:
- A deterministic Python comparison engine.
- Pint for unit handling and dimensional analysis.
- Streamlit for the interactive web application.
- FastAPI for programmatic access.
- An MCP tool for integrating the comparison engine into Kiro's workflow.
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.
Extending Kiro with MCP
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 agent can help organize and investigate the task.
- The specialized engine performs the defined comparison.
- The result retains the underlying evidence.
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.
Finding no conflicts is not the same as verifying everything
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:
- One numerical conflict.
- Two equivalent measurements.
- Four coverage gaps.
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.
Testing the assumptions, not just the examples
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.
What this project does not claim
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 lesson
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.
Explore the implementation
- Source code — MIT licence
- Kiro project configuration
- Recorded CI results
- Interactive demonstration
- Video walkthrough
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.


