Platform/Business rules
/ Business rules
Every business rule, traced to its source line.
The biggest risk in any modernization is the rule nobody knew about. Moderniza finds rules with code first, uses AI only to explain them, and then checks every AI answer against the original source. Review rule ownership and proof status in the new code, including claims without proof.
Found by code·Explained by AI·Checked by code
/ Part 1 — How rules are found
Code finds them. AI explains them. Code checks the AI.
- 1Find every candidate. Code — not AI — walks your source and lists every line that could hold a rule: conditions, calculations, validations, limits.
- 2Explain each one. AI reads one function at a time, with line numbers, and explains the rule in plain English.
- 3Check the quote. Code confirms that the lines the AI cited really exist, in that file, at those lines.
- 4Check the claim. The legacy source is searched again to catch rules the AI may have made up.
- 5Flag dead code. Rules that sit in code nothing calls are marked, so you do not rebuild logic nobody uses.
- 6Join the pieces. Duplicates are merged. Rules spread across several files, or across the states of a workflow, are linked into one chain.
Database schema rules (keys, constraints, defaults) are read directly from SQL definitions, with no AI involved.
/ Part 2 — How rules reach the new code
One rule. One owner. Proof required.
- 1One owner per rule — each rule is assigned to exactly one task in the new code, so it is neither lost nor built twice.
- 2Marked in the code — the agent must label the rule in the code it writes.
- 3Checked for proof — the platform checks where the code lives, finds the rule’s label, and has a reviewer model judge it. Each rule gets a clear status, such as Confirmed or Claimed without proof.
- 4Turned into tests — priority rules become Given/When/Then tests, written once and run in Testing against the new application. The Business Rules page shows how many rules a passing test has proven.
- 5Enforced at runtime — the running app is checked to confirm it applies the contract’s rules.
/ Part 3 — Review and export
Rules your business and your auditors can read.
- Business Rules page — every rule with its plain-English meaning, source file and line, owner task and proof status.
- Business Logic view — the same rules grouped by type of decision, for business reviewers.
- Rules document — export to Markdown or CSV, with source file and line for every rule.
- Drools Workbench — export rules as a Drools rule bundle (.drl). Rule conditions are translated from the cited source lines and the bundle is compiled for real. Any rule that cannot be translated is clearly marked — never hidden or faked.
Why it matters
A rewrite that drops one interest-rounding rule can cost more than the whole project saved. Review the extracted rules, their owners and available test evidence before sign-off.
/ Next step
See your own code modernized.
Bring a repository. We will scan it and show you the blueprint, the plan and the cost estimate — before anything is built.