When a correct calculation leads to an incorrect conclusion
As a mechanical engineering PhD researcher, I frequently work with mathematical models, computational predictions, experimental datasets, material parameters, and scientific visualizations.
One of the most important challenges in computational research is not simply obtaining a numerical result. It is establishing whether that result is consistent with the assumptions, boundary conditions, parameters, and evidence behind it.
A calculation can be mathematically correct and still support an inappropriate scientific conclusion.
This distinction inspired ResearchForge, an open-source scientific evidence and reproducibility auditor built primarily with Kiro IDE for the Frankenstein category of Kiroween 2026.
Why I chose Kiro Specs
My favorite feature of Kiro is its spec-driven development workflow.
For a scientific application, loosely defined requirements can be dangerous. Terms such as "verified," "consistent," and "correct" must have precise meanings.
Instead of treating the project as a sequence of coding prompts, I organized the development process around three specification documents:
-
requirements.md— what the scientific verification workflow must accomplish. -
design.md— how the software architecture and verification engine should operate. -
tasks.md— how implementation and testing should progress.
Kiro Steering files established additional project-wide constraints, including scientific correctness, deterministic numerical computation, evidence traceability, and separation between different verification states.
This approach helped turn an abstract research problem into implementable and testable software behavior.
The specifications and steering files are available in the public repository under .kiro.
Stitching together the Frankenstein
ResearchForge combines several technologies that normally serve different purposes:
- Graph-based scientific evidence management.
- Numerical computation and mathematical expression evaluation.
- Dimensional and unit-consistency checking.
- Interactive scientific data visualization.
- SHA-256 file-integrity verification.
- Rule-based consistency auditing.
- Structured reproducibility reporting.
The application uses Python, Streamlit, NumPy, pandas, SciPy, Plotly, Pint, and NetworkX.
Kiro helped develop the core application, organize its implementation, and create its automated tests.
The resulting workflow connects scientific claims to their supporting equations, parameters, datasets, and figures. Researchers can identify inconsistencies, inspect their sources, correct selected inputs, recompute results, and export an audit report.
Importantly, ResearchForge does not use generative AI to decide whether a scientific claim is correct. Its runtime verification is deterministic and rule-based.
The most important design decision: three different statuses
During development, I realized that a single PASS or FAIL label was insufficient.
Consider a theoretical prediction that agrees with a dataset. If the mathematical model assumes one boundary condition while the dataset comes from another, the numerical agreement does not resolve the physical inconsistency.
ResearchForge therefore distinguishes:
- Numerical verification status
- Scientific claim consistency status
- Overall audit status
The built-in conflict demonstration illustrates this distinction.
After correcting selected numerical inputs, the application can legitimately display:
Numerical check: PASS Status of claim CL_1: FAIL Overall audit status: FAIL This is intentional.
The numerical calculation has passed, but the associated scientific claim still contains unresolved inconsistencies.
For me, this is one of the most meaningful outcomes of the project. A scientific verification tool should expose uncertainty and inconsistency rather than hide them behind a reassuring green badge.
What independent testing revealed
Kiro's specifications and automated tests provided a strong development foundation. However, passing the original test suite did not mean that every important failure mode had been covered.
Independent verification revealed several problems:
- A missing parameter could be incorrectly interpreted as zero.
- A non-finite error tolerance could allow an incorrect prediction to pass.
- Missing data could mask other invalid values.
- Malformed mathematical expressions could interrupt an audit.
- A passing numerical result could be displayed in a way that misrepresented the associated scientific claim.
The missing-parameter problem was particularly important.
In scientific computing, an unknown parameter is not equivalent to zero. Treating the two as interchangeable can change the physical meaning of a model while still producing an apparently valid numerical result.
Another example involved an invalid infinite error tolerance. A numerical comparison against infinity can pass even when the disagreement is substantial.
These problems reinforced the importance of explicit input contracts and fail-closed validation.
The corrections were accompanied by regression tests that reproduced the original defects.
From implementation to a verified release
The development and verification process produced three controlled release candidates.
| Release | Passing automated tests |
|---|---|
| R1 | 261 |
| R2 | 432 |
| R3 | 474 |
The increase in test coverage came from investigating actual failure modes rather than merely increasing the number of tests.
The final R3 release passed all 474 automated tests. Independent targeted verification also confirmed the final corrections for missing parameters and invalid numerical tolerances.
The deployed cloud application was subsequently checked through 28 external functional checks, including anonymous access, demonstration workflows, numerical results, verification statuses, and report downloads.
These results do not establish that the software is free of every possible defect. They document the scope of the verification performed.
What I learned about AI-assisted development
Kiro's structured workflow changed how I approached this project.
Rather than asking an AI coding agent to produce an entire application and accepting the result, I used explicit specifications, implementation checkpoints, independent reviews, and targeted regression testing.
I also learned that automation itself needs boundaries.
An automatic testing hook was configured during development, but repeated test-session creation introduced unnecessary execution overhead. The hook was subsequently disabled, and testing was consolidated into meaningful verification stages.
The project used Kiro IDE as its primary development tool, with additional support from AWS Quick for product research and acceptance-test design, ZCode for engineering validation and targeted corrections, and Gemini antigravity for independent verification.
The broader lesson is that AI-assisted engineering benefits from separation between implementation and verification. A successful build should be supported by evidence, not merely by an agent's confidence.
Open science without exposing unpublished research
ResearchForge was inspired by general challenges encountered in scientific research, but its demonstration datasets were generated specifically for this project.
The public application does not contain unpublished experimental datasets, proprietary material formulations, or existing finite-element simulation models.
Even the spiral-curl animation in the demonstration video is an independently generated conceptual visualization rather than experimental or simulation data.
Open-source scientific tooling and protection of unpublished research can coexist when the boundary between public demonstration materials and private research evidence is clearly defined.
Try ResearchForge
ResearchForge is publicly accessible without a login or API key.
- Live application: https://researchforge-science.streamlit.app/
- GitHub repository: https://github.com/Zicheng-Yang/ResearchForge
- Demonstration video: https://youtu.be/COyqYZXBwJg
- License: MIT
I recommend starting with DEMO_CLEAN and then exploring DEMO_CONFLICT.
Try correcting the numerical inputs and observe why a passing numerical check does not necessarily produce a passing scientific claim.
Final thoughts
ResearchForge is an initial step toward making computational research easier to inspect, reproduce, and challenge.
It does not prove scientific theories or replace expert scientific judgment. Instead, it provides a structured way to examine the consistency of computational results and the evidence supporting them.
Building ResearchForge with Kiro reminded me that reliable software development and reliable scientific research share a common principle:
A conclusion is only as trustworthy as the evidence and assumptions behind it.
AI disclosure: This article was drafted with AI assistance using the actual ResearchForge development, testing, and release records.







