DEV Community

Cover image for Quickened: FEMA still lists a 1995 flood program that no longer starts, so I rebuilt it and let the original grade it
JonathanSolvesProblems
JonathanSolvesProblems Subscriber

Posted on Edited on Originally published at jonathanandrei.com

Quickened: FEMA still lists a 1995 flood program that no longer starts, so I rebuilt it and let the original grade it

I am writing this post as part of the Kiroween 2026 hackathon (Kiro, on Devpost, December 2026), Best Resurrection track, and built Quickened and Oracle Bones for the same submission. Quickened is live at jonathansolvesproblems.github.io/quickened, source at github.com/JonathanSolvesProblems/oracle-bones, both open with no key and no account. #KiroweenHackathon26

The claim in one sentence: with the solver frozen and the plan committed before the batch was recorded, 1,000 inputs were drawn at random, the 1995 program answered 999, and Quickened printed the same outcome and the same text in every field on 980 of them, graded by QUICK-2 itself; the same model with one prompt and no recorded answers matched 48. What is not claimed: that Quickened is accepted by FEMA, or that its 19 misses are understood. It is an independent rebuild, and no cause is found yet for any of the misses.

Quickened's drawing for Grapevine Branch: the valley cut as a hatched block, the channel between the bank stations Left 179.5 and Right 230.8, the flood in silt brown standing in it, and 594.37 painted on the block's end wall beside an elevation scale from 587 to 599.
Grapevine Branch, Cabell County, West Virginia, at the 1-percent flood of 1,200 cfs: WS ELEV 594.37, what QUICK-2 printed for the same inputs.

A program on FEMA's list that no longer starts

QUICK-2 gives the flood elevation at one cross section. FEMA's list of nationally accepted hydraulic models still names it, "QUICK-2 1.0 and up (Jan. 1995)", for Zone A areas, where a single property gets its flood elevation from one section. It is a DOS program, there is no source code, and a locked-down Windows work laptop will not start it.

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 wrote: "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."

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.

A quoted message from Joe Trimboli, MSc GIS-SME, Huntington, West Virginia, author of two QUICK-2 guides, about still using QUICK-2 and having to shift to HEC-RAS at work.
Joe Trimboli's message of November 20, 2026, quoted whole with his permission.

Same inputs, same printed answer

Quickened is QUICK-2's method in a browser. A reviewer picks a mode (Critical Depth, Channel Capacity or Normal Depth) and a shape, types or pastes the section, and gets the depth, the water surface and the other fields QUICK-2 prints, in QUICK-2's own words. A 40-station section pastes in at once, straight from a profile tool, Excel or HEC-RAS. It works on a phone, needs no account and no server, and keeps working 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. The worked example is a real Zone A stream: a 40-point section of Grapevine Branch in Cabell County, West Virginia, cut from the USGS 3DEP 1 m lidar, at the 1,200 cfs 1-percent flood that USGS StreamStats estimates for the site.

Sheet 1: A 1995 flood program, rebuilt from the running program, not its source. Quickened's drawing of Grapevine Branch with 594.37 on the end wall, and a table: section, 40 stations from the USGS 3DEP 1 m lidar DEM; discharge, 1,200 cfs, 1-percent AEP flood, USGS regional regression.
The running app, with the worked example built from public USGS data.

QUICK-2 v1.0's own screen, recorded on November 22, 2026, beside Quickened's result for the same inputs. Both print WS ELEV 594.37.
Left, the 1995 program run headless in an emulator, its screen text stored, never typed. Right, Quickened in the browser.

The dead program is always right

Oracle Bones is the Kiro power that made Quickened. Its MCP server, oracle/mcp_server.py, 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. The first of the seven rules in its steering, the oracle law, says it plainly: the dead program is always right about what it does, even when the original looks wrong.

Two custom agents did the questioning. The Exhumer has no shell and no source code: it questions the 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, then answers holds, fails or unproven. Seven specs hold 317 acceptance criteria; the solver's 74 each cite the recorded case behind them, and a script fails the build when a citation is missing.

The recorded answers corrected the plan more than once. My notes from a first spike said the main menu dropped its first keystrokes, and the plan had a workaround; in session 2 Kiro found the real cause, a title screen that eats typed characters until Enter. In session 13 the recordings overruled Kiro's own solver design twice: the exponent was .667, not the .6667 the design listed, 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 the square root of the slope in single precision, as QuickBASIC returns it, matched the last one.

Sheet 7: Built in Kiro, with the old program as the test oracle. Counts: 7 specs, 317 acceptance criteria, 9 MCP tools on the oracle, 4 agent hooks, 2 custom agents, 6 steering files, 1,369 recorded cases, 252 commits.
Counted from .kiro/, oracle/ and the git history; every prompt and every session is in docs/build-log.md and docs/prompts.md.

980 of 999, graded by the original

The headline run was planned and committed before the batch was recorded. The solver was frozen at one commit, and the generator drew 1,000 inputs at random (seed 201, the practical input ranges) across Critical Depth, Channel Capacity and Normal Depth. QUICK-2 answered 999; one did not finish within the runner's wait, and it is listed by name. Quickened prints the same outcome, a result or a rejection, and the same text in every printed field on 980 of the 999. The results file is written by a script, and a test fails if anyone edits it by hand.

What the original was worth: the same model, given one prompt with the interface and public knowledge of the method but no recorded answers, matched 48 of the same 999 by the same rule. Its numbers were close (a median difference of 0.19%), and a permit needs the same number, not a close one. A first attempt at that ablation matched 33, and it is kept in the record because its prompt leaked one answer.

Sheet 4: On 1,000 inputs it had never seen, every printed field is the same 980 times in 999. Below, the plan committed before the batch was recorded, the batch of 1,000 drawn at random with 999 answered by QUICK-2, the rule of the same outcome and the same text in every field, and the file results/headline.md.
Graded by the 1995 program: 980 of 999, 98.1%.

Sheet 5: The same model without the old program to answer to: 48 of 999. Bars: Quickened, built against QUICK-2 case by case, 980; one-prompt rebuild, same model, no oracle, no spec, 48; first attempt, kept for the record, 33.
The ablation: the same 999 cases and the same rule, with no recorded answers to check against.

A hook that refused me

Four command hooks guard the work. The one that matters most, guard-goldens, runs before every tool call and refuses any edit by Kiro's file tools under oracle/goldens/ with exit code 2, before the tool runs (the goldens manifest check catches a shell edit): recorded answers come from the binary only. The others run the comparator when the solver's files are saved and after each task, and print the ledger's state at the end of every turn. When I tested it by telling Kiro to overwrite a recorded answer so a task would pass, it refused twice, citing rule 2 of the oracle law, and said that changing the rule was mine to do by editing the steering and the hook. Replayed in a fresh chat for the video, it refused from the steering alone: "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."

The power carries all of it to a new folder: the oracle server, the resurrect skill, the two agents, the four hooks, the oracle law and the workflow that chains the agents. Installed 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 refusal held there too: "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." Once the repository was public, the power installed again from its address through Kiro's Import power from a repository URL, 51 files identical to the folder, its oracle server connected. Pointed at a second program, QUICK-2's own help MAINHLP.EXE, it booted that one and drafted a profile to question it by.

Sheet 6: The agent cannot edit the answers. Kiro, in a new folder with only the power installed, reports that before editing it took the case file's SHA-256, used its file edit tool to change depth 3.27 to 3.29, and the guard hook installed during setup stopped the edit before it ran; afterwards the file's hash was still the same.
A capture of the Kiro window on November 26, 2026, cropped, not edited.

Sheet 8: Kiro's own panels, here and in a new folder. Left, this repository mid-build with its specs, agent hooks, steering and the oracle's MCP server connected; right, a new folder with only the Oracle Bones power installed, showing the same hooks, steering and server.
Seven specs, four hooks, six steering files and nine oracle tools here; the power brings the hooks, the law and the server into a new folder.

Predictions before runs

From round A-005 on, each rule proposed for the circle had its predictions committed before the cases ran, and the whole record is in the repository, misses included. The first round got 15 of 17 circle cases right by the rules of the time; the second, 2 of 4; a round where no rule had been picked beforehand left 1 group standing of 14; the last got 12 of 12 for the rule that was then built, while the rule it replaced got 5 of 13 in the same round. The circle took nine rounds. The rule that finally held uses a number I read from the pattern and put in the prompt myself, and the record says so. Why the program returns to its shape menu below that number is still not explained.

One sheet for the permit file

A result prints on one US Letter sheet with every input labelled as the engineer's and every output labelled as computed by QUICK-2's method, and the same job reads on a 375 px phone. The app suite is 2,709 tests, the offline Python suite 254, and 71 browser tests run in Microsoft Edge with axe checking WCAG 2.2 A and AA on every page in light and dark.

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.

Sheet 9: One sheet for the permit file, and it works on a phone. Left, the print view on US Letter with the drawing and the tables of inputs and outputs; right, the 375 px phone view with WS ELEV 594.37 and the drawing.
No account and no server: the solver runs in the page and works offline.

What is not claimed

Quickened is an independent rebuild of QUICK-2 v1.0. It is not a FEMA product and is not accepted by FEMA; FEMA's list names QUICK-2, not Quickened, so it is a cross-check, not a substitute. The grader is the 1995 program, not me, which is the point of the whole build, but the input ranges the 1,000 cases were drawn from and the comparison rule (same outcome, same text in every printed field, messages not compared) are mine. The 19 misses sit in five named classes on the app's limits page, and no cause is found for any of them. Step-Backwater, QUICK-2's fourth mode, is not built, and QUICK-2's own .XSC files cannot be opened. In the worked example, the slope of 0.0035 is my estimate from the 3DEP thalweg profile, labelled as such, not a surveyed slope, and the 1,200 cfs flood is a StreamStats regression estimate shown beside its 90% prediction interval of 624 to 2,310 cfs.

Some of the work was done outside Kiro, and the build log marks each piece: 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 real cross-section data; the headline batch and the two ablation runs; and, after Kiro's usage limit was reached on November 26, the fixes the clean install called for, the README, the mascot's art and the write-up. From November 27, the changes from Joe's first try on his phone, the second design round and the demo video's edit were also done outside Kiro, each marked in its commit.

Top comments (0)