-
-
Project Phoenix — Resurrect the system. Rediscover its rules.
-
The Discovery Loop — From hypotheses and experiments to observations and traceable evidence.
-
The Phoenix Demo Viewer — Inspecting hypotheses, recorded observations, and experimental evidence.
-
Experiment 2 — Real HTTP observations contradict the free-shipping hypothesis, despite verified source citations.
-
Built with Kiro — Spec-driven development combining AI-assisted engineering, human decisions, and rigorous verification.
Inspiration
Legacy systems don't just contain old code. They contain forgotten business knowledge.
As a software engineer with over 25 years of experience, I have become increasingly concerned about the security risks associated with aging software systems.
Many small and medium-sized businesses depend on systems whose original developers are no longer available. Documentation is often incomplete, and even the people using these systems cannot fully explain the business rules embedded within them.
Modern AI can generate and rewrite code. But replacing technology without understanding the original business behavior introduces another kind of risk.
What if we could resurrect a legacy system, rediscover its business rules through experiments, and preserve that knowledge for the next generation?
That question inspired Project Phoenix.
What it does
Project Phoenix introduces an evidence-driven approach to legacy system modernization.
Rather than treating source code analysis as sufficient proof of business behavior, Phoenix provides a framework for testing hypotheses against a running legacy system.
The Discovery Loop is designed around five steps:
- Resurrect the legacy system in a controlled environment.
- Form hypotheses about its business rules.
- Design and execute experiments.
- Compare predicted behavior with actual observations.
- Preserve the results as traceable evidence.
The current prototype demonstrates this approach using a synthetic order management system running on PHP 5.6 and MySQL 5.7.
The demonstration
For Kiroween 2026, Phoenix executed three experiments against the running legacy application using human-written hypotheses.
The results were:
- 3 experiments executed through real HTTP requests
- 2 hypotheses supported by observations
- 1 hypothesis contradicted by observations
One experiment demonstrates why source code analysis alone is not enough.
The hypothesis predicted that orders with a subtotal of at least ¥5,000 would qualify for free shipping.
An order with a subtotal of ¥5,200 received a ¥300 discount, reducing its value to ¥4,900.
The hypothesis predicted free shipping. However, the running system returned a shipping fee of ¥500.
This observation suggests that the free-shipping threshold may be evaluated after discounts.
Even though the cited source references were verified, the hypothesis itself was contradicted.
Correct source citations do not necessarily mean correct conclusions.
Phoenix preserves that contradiction as evidence instead of hiding it or treating it as a successful prediction.
The included Demo Viewer allows reviewers to inspect the recorded HTTP observations, hypothesis predictions, comparison results, source evidence, and approval status.
How I built it
Project Phoenix was developed using Kiro IDE and its spec-driven development workflow.
Kiro helped translate the initial concept into structured requirements, architectural designs, implementation tasks, and verification procedures.
The development process combined AI-assisted implementation with human architectural decisions, explicit approval boundaries, and evidence-based verification.
The main technologies include:
- Kiro IDE for spec-driven development
- TypeScript and Node.js for the Discovery Loop
- Docker for legacy and runtime environments
- PHP 5.6 and MySQL 5.7 for the synthetic legacy application
- PowerShell for orchestration and verification
- Vitest for automated testing
- HTML, CSS, and JavaScript for the Demo Viewer
- GitHub for version control and public distribution
The project's Kiro specifications and steering documents are included in the public repository.
Challenges I ran into
The greatest challenge was not simply getting an old application to run.
It was designing a trustworthy process for discovering business behavior without confusing assumptions, observations, and verified knowledge.
This required careful consideration of:
- Reproducible experiments
- Controlled execution environments
- Separation of hypotheses from observations
- Source citation verification
- Preservation of contradictory evidence
- Traceability and human approval
The original vision was considerably larger than what could be completed during the hackathon.
I therefore prioritized building a verifiable foundation rather than presenting unsupported claims about autonomous AI capabilities.
Accomplishments that I'm proud of
- Successfully resurrecting a legacy PHP 5.6 application.
- Executing hypothesis-driven experiments against a running system.
- Detecting a meaningful contradiction through actual system behavior.
- Preserving experimental evidence for independent inspection.
- Establishing a structured development and verification process using Kiro.
The most important achievement is demonstrating that Phoenix can expose an incorrect hypothesis even when its source citations are valid.
What I learned
AI-assisted software development is not only about generating code faster.
It is also about creating processes in which humans and AI can collaborate while maintaining clear boundaries between assumptions, evidence, and decisions.
Kiro's spec-driven approach helped turn an ambitious concept into a structured engineering project.
I also learned that recovering business knowledge requires more than reading source code. It requires observation, experimentation, and the willingness to accept contradictory results.
Current scope and limitations
The Kiroween submission demonstrates the foundation of the Discovery Loop.
The hypotheses used in the demonstration are human-written mock fixtures. The HTTP responses and comparison results come from actual execution of the legacy application.
The demonstration consists of one iteration and does not include autonomous hypothesis revision.
Autonomous AI-driven rule discovery, complete security isolation verification, and automated modernization remain future work.
The current prototype is not a production-ready modernization platform.
What's next for Project Phoenix
This is only the beginning.
The next stage is to connect a real AI provider to the Discovery Loop so that AI can formulate hypotheses, design experiments, observe results, and revise its understanding autonomously.
The longer-term vision is to:
- Recover undocumented business specifications.
- Build evidence-backed models of legacy business behavior.
- Generate modernization requirements from recovered knowledge.
- Verify that modern replacement systems preserve intended business behavior.
- Help organizations migrate away from outdated and vulnerable technologies.
Project Phoenix aims to preserve more than software.
It aims to preserve the business knowledge that organizations have accumulated over decades.
Resurrect the system. Rediscover its rules.
Give legacy systems a new future.
Built With
- ai
- css
- docker
- github
- html
- javascript
- kiro
- mysql
- nginx
- node.js
- php
- powershell
- typescript
- vitest