{"slug": "why-i-used-ai-to-build-an-engineering-auditor-that-doesn-t-use-ai", "title": "Why I Used AI to Build an Engineering Auditor That Doesn't Use AI", "summary": "A mechanical engineering student built SpecForge, an engineering document auditor that uses deterministic Python and Pint calculations rather than a language model to compare specifications across documents. The tool, developed with Kiro CLI under human direction, flags unit mismatches and relative differences while refusing to guess unsupported or ambiguous units and keeping unmatched rows visible. SpecForge exposes its comparison logic through a Model Context Protocol integration so AI agents can invoke the deterministic tool instead of computing conversions themselves.", "body_md": "*This article is written as part of the Kiroween 2026 hackathon.*\n\nImagine two engineering documents describing the same pump.\n\nThe engineering specification says:\n\n`P-101 | pressure | 10 bar`\n\nThe purchasing document says:\n\n`P-101, pressure,900 kPa`\n\nThe documents use different units, but the more important question is whether they describe the same physical requirement.\n\nThey do not.\n\nUsing the larger absolute value as the denominator, the relative difference is 10%.\n\nThis 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.\n\nAs a mechanical engineering student, I wanted to explore how software could make this kind of verification more systematic, reproducible, and transparent.\n\nThat became SpecForge.\n\nLarge language models are useful for understanding documents, writing software, and exploring unfamiliar problems.\n\nBut engineering verification introduces a different requirement: reproducibility.\n\nFor the same supported inputs, a numerical comparison should produce the same result. It should also explain exactly where the values being compared came from.\n\nA convincing explanation is not a substitute for a correct calculation.\n\nThis distinction shaped the architecture of SpecForge:\n\n**AI-assisted development, deterministic execution.**\n\nI used Kiro CLI to develop the application under human direction, but the audit engine itself does not depend on a language model.\n\nPython and Pint handle the numerical and dimensional comparisons.\n\nOne of the most important aspects of the development process was moving beyond feature requests and defining behavioral requirements.\n\nFor example, the requirements were not limited to:\n\nThey also needed to describe what the software must not do.\n\nAn unsupported unit must not be guessed.\n\nAn unreadable row must not silently disappear.\n\nAn unmatched measurement must not be presented as a successful comparison.\n\nThese requirements matter because a misleading clean result can be more dangerous than a visible error.\n\nKiro's spec-driven approach provided a way to organize these behavioral constraints alongside implementation tasks.\n\nSteering documents helped maintain project-level development constraints instead of relying entirely on the immediate conversation.\n\nThe project's Kiro configuration, specifications, steering documents, hook configuration, and MCP integration are available in the public repository.\n\nSpecForge separates the comparison logic from its interfaces.\n\nThe architecture consists of:\n\nThe purpose of this separation is to avoid maintaining independent implementations of the same numerical logic.\n\nThe interface should present the result, not invent a different interpretation of it.\n\nThe Model Context Protocol integration illustrates an important distinction between giving an AI agent more instructions and giving it access to a specialized tool.\n\nInstead of asking a model to calculate every engineering conversion itself, the agent can invoke SpecForge's deterministic comparison tool for supported structured rows.\n\nThis creates a useful division of responsibilities:\n\nThe 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.\n\nOne of the most important design decisions in SpecForge is the distinction between comparison results and comparison coverage.\n\nConsider the synthetic pump station example.\n\nThe application identifies:\n\nThose gaps matter.\n\nFor example, `hp` can refer to more than one definition of horsepower. Rather than silently choosing one, SpecForge refuses the ambiguous comparison.\n\nAn unsupported row or unmatched record also remains visible.\n\nThis means an absence of detected conflicts cannot automatically be interpreted as successful verification of the entire document.\n\nThat distinction is reflected in the result's verdict and coverage information.\n\nOrdinary unit tests are necessary, but engineering parsers also encounter unexpected combinations of units, numerical values, and input formats.\n\nThe project uses pytest and Hypothesis, including property-based testing, to exercise behavior beyond a small collection of manually selected examples.\n\nRelevant properties include numerical consistency, unit equivalence, and behavior under different input arrangements.\n\nThe 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.\n\nThese results are available in the corresponding GitHub Actions run.\n\nPassing tests do not prove universal correctness. They provide evidence of the behaviors and boundaries that were actually tested.\n\nThe 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.\n\nSpecForge is deliberately limited.\n\nThe public demonstration focuses on comparisons between two documents that contain supported, structured engineering measurement rows.\n\nIt does not universally understand arbitrary engineering documents, establish semantic equivalence across all engineering properties, or certify engineering safety.\n\nPublic PDF uploads are disabled.\n\nThe hosted application should only be used with synthetic or non-confidential documents.\n\nThese limitations are part of the engineering design, not details to hide.\n\nThe most interesting question for me was not whether an AI coding agent could help build an engineering application.\n\nIt was how to organize development so that the resulting application remains accountable to explicit rules, reproducible calculations, and inspectable evidence.\n\nSpecForge explores that approach.\n\nUse 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.\n\n*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.*", "url": "https://wpnews.pro/news/why-i-used-ai-to-build-an-engineering-auditor-that-doesn-t-use-ai", "canonical_source": "https://dev.to/erentahiroglu/why-i-used-ai-to-build-an-engineering-auditor-that-doesnt-use-ai-59la", "published_at": "2026-12-04 00:37:41+00:00", "updated_at": "2026-12-04 00:46:01.321610+00:00", "lang": "en", "topics": ["ai-tools", "ai-agents", "agent-protocols", "developer-tools", "artificial-intelligence"], "entities": ["SpecForge", "Kiro CLI", "Kiro", "Model Context Protocol", "Pint", "Python"], "also_reported_by": [], "takeaway": "Separate deterministic numerical comparison from the LLM layer and expose it as an MCP tool, so agents call a reproducible engine rather than computing conversions themselves, and report comparison coverage alongside results so unmatched or ambiguous rows stay visible.", "recommendation": {"advice": "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.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/why-i-used-ai-to-build-an-engineering-auditor-that-doesn-t-use-ai", "markdown": "https://wpnews.pro/news/why-i-used-ai-to-build-an-engineering-auditor-that-doesn-t-use-ai.md", "text": "https://wpnews.pro/news/why-i-used-ai-to-build-an-engineering-auditor-that-doesn-t-use-ai.txt", "jsonld": "https://wpnews.pro/news/why-i-used-ai-to-build-an-engineering-auditor-that-doesn-t-use-ai.jsonld"}}