{"slug": "migrating-oracle-forms-with-behavioural-proofs", "title": "Migrating Oracle Forms with behavioural proofs", "summary": "Bosun's Bosun and Parity migration workflow passed 89% of a hidden 89-journey test suite when migrating Oracle's SUMMIT ORDERS Oracle Forms sample to a Rust web application on PostgreSQL, versus 53% for a coding agent alone, according to a benchmark the company published with code on GitHub and a dataset on Hugging Face. The experiment ran twelve migrations — six with Bosun and six with Codex — all using the same model, GPT-6.1 Sol, against Oracle Forms 14.1.2 and Oracle Database 23ai, with grading covering the form's 38 in-scope triggers and alerts. Bosun reported each migration cost about $3.20 (€2.80) and 12 million tokens over roughly 115 minutes, versus about $2.90 (€2.50) and 11 million tokens over about 35 minutes for the agent alone, with over 90% of tokens read from cache in both cases.", "body_md": "[All posts](https://blog.bosun.ai/)\n\n# Migrating Oracle Forms with behavioural proofs\n\nWe migrated a legacy Oracle Forms application to Rust with Bosun and Parity, multiple times, and compared it with regular AI-assisted modernization. Bosun scores 89%.\n\nOracle Forms dates back to 1979 and is still used today to manage data entry and control on Oracle databases. Dated, yet it’s still wildly used in Enterprise. Years of stored procedures handling critical data is risky and complicated to modernize.\n\nWe set out to see if we can effectively modernize the SUMMIT example, and how it compares to using just a coding agent. We set up a benchmark that tests user journeys and data validity on both legacy and the target. The test suite remains hidden during the implementation. Without human intervention, Bosun passes 89%, opposed to the coding agent alone at 53%.\n\n**You can check out [the code on github](https://github.com/bosun-ai/oracle-forms-migration) and [dataset on huggingface](https://huggingface.co/datasets/bosun-ai/oracle-forms-migration).**\n\n## Capturing undefined behavior\n\nA big challenge in modernization is capturing behavior that is not well defined. And from our experience, it’s exactly this behavior that makes a modernization risky. Locks, error handling, transactions, and so on.\n\nFor instance, two people and one order. When the first one changes the order, Oracle Forms locks its row in the database. The second one is stopped with “Could not reserve record (2 tries). Keep trying?”.\n\nBosun can capture this behavior without explicitly defining it. The only thing explicit, is when behavior intentionally differs between legacy and target. This is the core feedback-loop for our agents, so our agents (and humans) understand exactly what is captured, must stay the same, and what must change.\n\nIn the benchmark we run a Bosun workflow, where it explores and modernizes the form slice-by-slice, test driven with a Parity proof.\n\n## The experiment\n\nThe subject is Oracle’s Summit ORDERS sample form, running on Oracle Forms 14.1.2 with Oracle Database 23ai. The target is a Rust web application on PostgreSQL.\n\nWe migrated it twelve times: six times with Bosun, and six times with Codex. All twelve used the same model, GPT-6.1 Sol, and the same task. The task describes the interface only, no business rules nor specifications.\n\nEvery migration was graded on a hidden suite of 87 user journeys, run against the Oracle Forms application and against the migrated one. It covers the form’s 38 in-scope triggers and alerts.\n\n## Results\n\nWe graded in two buckets, visually on screen, and stricter with comparing database interaction and state added.\n\nThe strictest grading compares the screen, the saved data and the conversation with the database on 89 journeys. There the Bosun and Parity migrations pass 89% and the coding agent 53%.\n\nGraded on screen and saved data over the 87 journeys, it is 91% against 77%. Every Bosun and Parity migration scored above every agent.\n\nGrading the finished applications also turned up the following defects:\n\nA migration cost about $3.20 (€2.80) with Bosun and Parity and about $2.90 (€2.50) with the agent alone, counting model usage at provider list prices. It used about 12 million and 11 million tokens, over 90% of them read from cache, and took about 115 and 35 minutes.\n\n## Example: Changing the customer on an order\n\nLet’s explore a proof generated by an agent for changing the customer on an existing order.\n\nA user opens order 101 and changes its customer from 205 to 201. While the user types the new number, the customer name on screen stays “Kam’s Sporting Goods”, because Oracle Forms checks the field only when the cursor leaves it. Then the name becomes “Unisports”, and the sales rep changes with the customer, from 14 (Dumas) to 12 (Giljum). Saving reports “FRM-40400: Transaction complete: 1 records applied and saved.”\n\nThe proof is thin, and covers the steps the user would take. When ran, it executes on the frontend of both legacy and target.\n\nEach `when` line is one user action, run on Oracle Forms and on the migrated application. After every action Parity compares the two screens. The `then` block holds what the agent expected and must hold on both sides.\n\nThe six assertions in the `then` block are what a hand-written test of this journey would state. After each action Parity compared the whole screen: the mode, the cursor position, the order header, all seven order lines, the total, the messages, and which items are disabled or required. That is 202 values per side. It compared the stored order row before and after the save, and checked that no audit rows were added. Both databases stored this change:\n\nParity also recorded what both programs did beyond the screen: files, database state and interaction, processes and network. 320 records on the Oracle Forms side and 311 on the target.\n\n## Beyond validating a screen\n\nBack to the two people and one order. In five out of six cases, Codex omitted the lock. On screen and in the saved rows the two look the same. The difference only shows when we look at how the application communicates over the wire.\n\nNone of the five Bosun and Parity applications has this defect. Those migrations observed the running original and carried its constraints over.\n\nOther behavior identified by Parity:\n\n- No duplicate products in the same order.\n- Multi-tenant silently overwriting someone else’s work.\n\n## The remaining 11%\n\nAbout ten of the 89 journeys per application still differ from the original, and we know which ones.\n\nThey are of this kind:\n\n- Pressing Cancel after a change does not ask whether to save.\n- Products can be typed into a new order before it has a customer. Saving is still refused.\n- Duplicate Order offers to save where the original refuses.\n\nWrong data was saved in 1 of the 522 journeys graded on screen and saved data.\n\nWe analysed the failures of an earlier round. Every one was on a path the agent’s proofs had not run on the original. What a proof ran, matched.\n\nThis trial was done fully hands-off. In a production scenario, human review and expertise are still the gate. I feel it’s also worth noting that given we *know* there is a gap and *what* the gap is, we are in a good spot.\n\n## Proof by observation\n\nA Bosun modernization comes with evidence that it behaves like the original, journey by journey.\n\nThe [example repository](https://github.com/bosun-ai/oracle-forms-migration) holds one migrated application and its proofs. What still differs, and the limits of this experiment, are in the repository and the [dataset](https://huggingface.co/datasets/bosun-ai/oracle-forms-migration).\n\nBring us a legacy system, one form or program of yours. We run both approaches on it, and you get the proofs and the comparison.", "url": "https://wpnews.pro/news/migrating-oracle-forms-with-behavioural-proofs", "canonical_source": "https://blog.bosun.ai/oracle-forms-migration-parity/", "published_at": "2026-11-30 00:00:00+00:00", "updated_at": "2026-11-30 09:48:43.278706+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools"], "entities": ["Bosun", "Parity", "Oracle Forms", "Oracle", "SUMMIT ORDERS", "Codex", "GPT-6.1 Sol", "Rust"], "also_reported_by": [], "takeaway": "Bosun's Parity-proof workflow passed 89% of a hidden 89-journey suite versus 53% for a coding agent alone on the same GPT-6.1 Sol model, at roughly $3.20 and 12 million tokens per migration versus $2.90 and 11 million tokens.", "recommendation": {"advice": "Grade legacy migrations against a hidden suite of user journeys run on both the old and new systems, and capture implicit behavior like row locks and error handling as explicit proofs rather than leaving it undefined.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/migrating-oracle-forms-with-behavioural-proofs", "markdown": "https://wpnews.pro/news/migrating-oracle-forms-with-behavioural-proofs.md", "text": "https://wpnews.pro/news/migrating-oracle-forms-with-behavioural-proofs.txt", "jsonld": "https://wpnews.pro/news/migrating-oracle-forms-with-behavioural-proofs.jsonld"}}