In short

  • QUICK-2, FEMA's 1995 flood program, is still on FEMA's list of accepted models and no longer starts on a locked-down work laptop. There is no source code.
  • Quickened is its method in a browser, with no account, on a phone and offline: https://jonathansolvesproblems.github.io/quickened/
  • Oracle Bones, the Kiro power that made it, runs the original in an emulator behind an MCP server and grades the rebuild against what it prints.
  • Result: the same printed answer as QUICK-2 on 980 of 999 random cases; the same model without the oracle, 48.
  • In Kiro: 7 specs, 4 hooks (one refused Kiro's own edit), 2 custom agents, 6 steering files and a custom MCP server, every prompt published.

Inspiration

Joe Trimboli, MSc GIS-SME, works out advisory flood heights in West Virginia. He wrote two guides to QUICK-2, in 2013 and 2023. When I asked him about it he said: "I still have it running, but I had to shift to HEC-RAS at work. The issue is with Windows and a secured Windows-based DOS emulator. I don't use it like I used to, but I still calculate advisory flood heights (AFH). I too have worked on a browser app, but it's specifically for irregular channel calculations. If you can reverse-engineer the entire tool set, that would be amazing. I'll help just to see it done."

QUICK-2 is on FEMA's list of nationally accepted hydraulic models, for Zone A areas, where a single property gets its flood elevation from one cross section. It is a DOS program from January 1995, and there is no source code. A locked-down work laptop will not start it.

So there were two things to make: a browser version a reviewer can use today, and a way to make one when all you have is the binary.

Joe tried the first live version on his phone, and his notes changed it: a whole section now pastes in at once, the wording is plainer, and there is a page that says how it was made. He has since built his own copy around Quickened's engine, is setting it up to test against his past flood-height requests, and plans to share it with other GIS and hydraulics engineers. He also teaches a GIS class, and after watching the demo he wrote that it gave him new ideas for bringing AI into it.

What it does

Quickened is QUICK-2's method in a browser. A reviewer picks a mode and a shape, types or pastes the section, and gets the depth, the water surface and the other fields QUICK-2 prints, and one sheet for the permit file. A 40-station section pastes in one go, straight from a profile tool, Excel or HEC-RAS. It works on a phone, needs no account and no server, and works with the network off. It says on its first screen and on every result that it is an independent rebuild, not a FEMA product and not accepted by FEMA.

Every answer is drawn as a block of the valley cut at the section, with the flood standing in it and its elevation painted on the block's end wall, the way a high-water mark is painted on a wall. The water is the only colour on the page, and it is the colour floodwater is: silt, not blue.

Oracle Bones is the Kiro power that made it. It runs the original program in an emulator in Docker, questions it one case at a time, and grades the rebuild against what the original prints. Pointed at a second program, MAINHLP.EXE (QUICK-2's own help, from the same archive), it booted that one and drafted a profile to question it by.

The result. After the solver was frozen, 1,000 inputs were drawn at random and the 1995 program answered 999 of them. Quickened prints the same outcome and the same text in every field on 980 of 999. The same model, given one prompt and no oracle, matched 48 of 999.

Try it, no account: https://jonathansolvesproblems.github.io/quickened/ (press the first example: it prints WS ELEV 594.37, what QUICK-2 printed for the same inputs).

How I built it with Kiro

Built in Kiro, in 53 chat sessions. Every prompt is in docs/prompts.md, word for word, exported from Kiro's own session files: 79 prompts, 3,930 credits recorded. docs/build-log.md is the diary of the build, in 17 numbered working sessions and the shorter runs between them: the settings, what Kiro did, the credits, and the places where Kiro changed my plan.

MCP: the original program as the test

One custom server, oracle/mcp_server.py, in .kiro/settings/mcp.json: nine tools in this repository (boot_target, read_screen, send_keys, run_case, run_batch, compare, ledger_read, ledger_write, shutdown), twelve in the installed power. It boots QUICK-2 in emu2 inside a Docker container with no network, reads the screen as text, types into it, and stores each recorded case with every screen it came from. 1,369 cases are recorded. No source code was ever available: every rule in the rebuild was asked of the running program.

Custom agents

Two, in .kiro/agents/. The Exhumer has no shell and no source code. It questions the dead program through the oracle's tools, records each choice in a ledger before acting on it, and writes requirements that cite the recorded case that showed each behaviour. The Skeptic is given a claim and tries to break it with up to five new cases against the original, then answers holds, fails or unproven. The workflow .kiro/workflows/resurrect.workflow.json chains the two and ships in the power; in this build each agent ran in its own session instead. The ledger holds 111 recorded decisions.

Hooks

Four, all command hooks in .kiro/hooks/:

  • guard-goldens (PreToolUse): refuses any edit by Kiro's file tools under oracle/goldens/, exit code 2, before the tool runs. A shell command is outside a file-tool hook; the goldens manifest check catches that. Recorded answers come from the binary only.
  • oracle-verify-on-save (PostFileSave on the solver's files) and oracle-after-task (PostTaskExec): run the comparator, so a change to the solver is graded against the recorded answers at once.
  • ledger-status-on-stop (Stop): prints the ledger's state at the end of every turn.

The refusal was tested live twice, in this repository and in a clean install. Both times Kiro reported the block and did not go around it. In the clean install it wrote: "I didn't try to get around the hook with a shell command. That would break the 'never edit a golden' rule, and the refusal was the thing you wanted to test."

Steering

Six files in .kiro/steering/, drafted before session 1, in every inclusion mode: oracle-law.md and product.md always; structure.md auto; tech.md and mascot.md on matching files; new-target.md manual, as #new-target. The oracle law is seven rules, the first being "the dead program is always right about what it does, even when the original looks wrong." Kiro held to it when I tested it: told to overwrite a recorded answer so a task would pass, it refused twice, citing rule 2, and said that changing the rule was mine to do by editing the steering and the hook.

Specs

Seven, in .kiro/specs/: the oracle harness, the exhume loop, the solver, two bugfix specs for the circle, the app and the power. The seven hold 317 acceptance criteria in EARS form (WHEN ... THE SYSTEM SHALL). The solver's 74, all about what the program does, each cite the recorded case that showed it, and scripts/check_traceability.py fails when a citation is missing (0 problems). Each real mismatch class became a bugfix spec with Current, Expected and Unchanged behaviour, which is how the circle's search was fixed twice.

Property-based testing

fast-check in app/test/ and Hypothesis in oracle/tests/. The solver's design and its two bugfix specs name eleven correctness properties (the search stops within 1%, the first zero is held, echoes fit or overflow, water above both ends spans the section, and so on), and each is a property test whose expected values come from the recorded answers, not from the textbook. The whole app suite is 2,709 tests, the offline Python suite 254, and 71 browser tests run in Edge, with axe checking WCAG 2.2 A and AA on every page in both themes.

Powers

I built one, powers/oracle-bones/: the manifest, the oracle server, the resurrect skill, and the files a new workspace needs (the two agents, the four hooks, the oracle law, the workflow). Installed from the folder in an empty workspace, one plain sentence in chat made Kiro set the folder up, download and hash-check the program, and print the control case's 3.27 ft. The install found six things a new user would meet, from the hooks showing as disabled in a window that opened in Restricted Mode to Kiro naming a power after its folder; each is fixed or stated. Once the repository was public, the power was installed again from its address, through "Import power from a repository URL": Kiro cloned it and installed 51 files identical to powers/oracle-bones, and its oracle server came up connected. I used no power from the catalogue: none did work this needed.

Where in Kiro

Kiro's part was all in the Kiro IDE: the specs, the hooks, the agents, the MCP server and the power, built from its chat and its spec workflow. Every step needed the same workspace open at once: the oracle's MCP server, the recorded cases, the hooks that guard them and the specs that cite them. Kiro CLI, Web and Crew were not part of it; the event's credits went to the oracle's runs instead.

Accomplishments that I'm proud of

  • The headline, graded by the original. The solver was frozen, 1,000 inputs were drawn at random, QUICK-2 answered 999. Quickened prints the same outcome and the same text in every field on 980 of 999. 568 of the 999 printed at least one field in QUICK-2's overflow form, and those had to match too. The plan was committed before the batch was recorded: results/headline.md, written by a script.
  • What the oracle was worth. The same model, one prompt, the interface and public knowledge of the method, no recorded answers: 48 of 999 by the same rule. Its numbers were close (a median difference of 0.19%), but a permit needs the same number, not a close one. results/ablation-manual-only.md.
  • Predictions before runs. From round A-005 on, each rule proposed for the circle had its predictions committed before the cases ran. The whole record, misses included, is results/held-out.md: from 15 of 17 on the first round to 2 of 4 on the second, 1 of 14 groups on a round where no rule had been picked beforehand, and 12 of 12 on the last for the rule that was then built (the rule it replaced got 5 of 13 in the same round).
  • The 19 misses are in five named classes on the app's limits page. No cause is found yet for any of them, and none is explained beyond what the recorded answers show.

What I learned: where Kiro surprised me

  • My spike notes said the main menu dropped its first keystrokes, and the plan had a workaround. Kiro found the real cause in session 2: the program opens on a title screen that eats typed characters until Enter. No screen needed the workaround.
  • In session 13 the recorded answers overruled Kiro's own solver design twice on Channel Capacity: the exponent was .667, not the .6667 the design listed (the ratio between the two programs was R to the 0.0003 in every case), and the switch to exponent form comes after ten characters of text, not nine digits. Built as designed, 36 of 39 results missed; with those two corrections 38 of 39 matched, and holding √S in single precision, as QuickBASIC returns it, matched the last one.
  • When the first refusal was replayed in a fresh chat for the video, Kiro refused from the steering alone and said: "The problem isn't permission, since it's your repo. The problem is that the file would then claim QUICK-2 printed something it never printed."

Challenges I ran into

Finding how a 1995 program rounds, truncates and stops iterating, with no source, by asking it. The circle took nine rounds of committed predictions, and the rule that finally held on 12 of 12 cases uses a number I read from the pattern and put in the prompt myself, which the record says. Why the program returns to its shape menu below that number is still not explained.

What's next for Quickened

Step-Backwater, the fourth mode, is not built, nor are Critical Depth and Channel Capacity on an irregular section. Opening QUICK-2's own .XSC files is next: no recorded case has saved one yet, so the format is unknown and the app does not guess it; the oracle can record it the way it recorded everything else. A Python port graded by the same oracle would put the solver inside QGIS, where floodplain reviewers already work. The second dead program for the power is chosen (the USNO ephemeris), not run.

Done outside Kiro

Some pieces were done outside Kiro and the build log marks each one: the first drafts of the plan, specs, steering, hooks, agents and workflow, written with another AI coding assistant before session 1 (Kiro rewrote the specs and changed the hooks and agents as it built; the steering and the workflow are still those drafts, apart from one change Kiro made to structure.md); the real cross-section data; the headline batch and the two ablation runs; and, after Kiro's usage limit was reached on 2026-11-26, the fixes that the clean install called for, the README, the mascot's art (generated with an open image model) and this write-up. From 2026-11-27 the rest was finished outside Kiro, each change marked in its commit and the build log: the paste panel and plainer wording that Joe's first try on a phone called for, the story page, a second design round from two blind critiques by AI reviewers that saw only screenshots, the service worker's update fixes, the install from the repository's address, the steering's file patterns after the power's folder was renamed, and the demo video's edit.

Sources

  • FEMA, "Hydraulic Numerical Models Meeting the Minimum Requirement of National Flood Insurance Program": lists "QUICK-2 1.0 and up (Jan. 1995)", developed by FEMA, for Zone A areas.
  • Joe Trimboli, MSc GIS-SME: his message of 2026-11-20, quoted whole with his permission, and named on the site and in the video with his OK.
  • The worked example: a 40-point section of Grapevine Branch, Cabell County, West Virginia, from the USGS 3DEP 1 m lidar DEM through the USGS Elevation Point Query Service. The 1-percent flood of 1,200 cfs is the USGS StreamStats regional regression estimate for the site (USGS SIR 2025-5110), with its 90% prediction interval (624 to 2,310 cfs) shown beside it in the app. The slope, 0.0035, is an estimate from the 3DEP thalweg profile, labelled as such in the app, not a surveyed slope.
  • Every figure in the app and the video traces to a file in the repository; the README's Sources section lists each one.

Why it fits Best Resurrection and the judging criteria

Best Resurrection is for bringing "a dead technology back to life". QUICK-2 is still on FEMA's list and still needed, and it no longer starts. Quickened is that program working again, in any browser, and Oracle Bones is the Kiro power that did it, packaged for the next dead DOS program.

  • Potential Impact ("a real problem for a real audience ... Would someone actually use this?"): FEMA's list of accepted models still names QUICK-2, and it does not start on a locked-down work laptop. Joe Trimboli, who still computes advisory flood heights and still has QUICK-2 running, tried Quickened on his phone; the paste panel, the plainer words and the story page came from that (built outside Kiro, see below). He has since built his own copy around its engine to test against his past requests, plans to share it with other GIS and hydraulics engineers, and is taking ideas from it into the GIS class he teaches.
  • Technological Implementation ("a variety of Kiro tools used impactfully ... experimentation"): seven specs whose requirements cite the recorded case behind each rule, four hooks including a PreToolUse guard that refused Kiro's own edits, two custom agents and the workflow that chains them (not run in this build), six steering files in every inclusion mode, a custom MCP server, a power installed from its URL, property tests on both sides, and an ablation: the same model without the oracle matched 48 of 999, against 980.
  • Design ("a complete, coherent product experience"): one section from paste to printed sheet, on a phone or a laptop, offline, in light and dark, with axe's automated WCAG 2.2 AA checks passing on every page; the flood drawn as a block of the valley in ink on paper with silt water the only colour; two design rounds from blind critiques, recorded in the build log.
  • Innovation/Idea ("unusual technologies or public resources ... combined in a unique way"): the original binary as the test oracle, with no source code, in an emulator driven by an MCP server; predictions committed before each batch ran; the worked example built from USGS 3DEP lidar and a StreamStats discharge for a real Zone A stream.
  • Presentation ("the project working end-to-end"): the video runs a real section live in the browser, beside the 1995 program's own screen for the same inputs, and every number on the page and in the video traces to a file in the repository.

Built With

Share this project:

Updates

Submission history