Anti-AIClone

Log date · Sat

Can business rules be extracted from code?

Yes, but extracted rules need boundary tests and business review. We compare source clues with outputs from a small quotation sample.

Can business rules be extracted from code?

Yes. Code, configuration and tests can reveal business rules, but a proposed description still needs boundary checks and business review. In our own quotation sample, source inspection exposed a threshold of 100 and a reduction of 20; running 99, 100 and 101 units returned 99, 80 and 81 respectively.

A paper submitted on 19 September 2026 applies a related idea to enterprise migration. [1] Below we separate its findings from our illustration and show how to review your own release artifacts.

Our checks
QuestionFinding
What does the source show?Threshold 100; subtract 20 at or above it.
What do the runs show?Three inputs returned 99, 80 and 81.
Is that a complete requirement?No; check other inputs and business intent.

What the paper actually studied

At 03:08 UTC on 19 September 2026, Garima Agrawal and co-authors submitted v1 of arXiv 2609.22719, primarily classified as cs.SE. The paper describes seven specialized agents using code, tests, configuration and documents, with static analysis and human review at defined escalation points, to identify journeys and rules and produce business requirements documents. [1]

The authors report document generation in under nine minutes per service on execution traces from a real enterprise deployment, with extracted rules independently corroborated against production defect records. They report over 98% lower cost against a baseline derived from repository metrics, IFPUG complexity models and industry labor rates; a comparable earlier migration took over two years. [1] The paper distinguishes generation time from human review and validation. [2] These figures belong to that deployment and baseline, not a forecast for another project.

The paper concerns an internal migration, not an outsider with only a shipped binary. Our Node.js toy sample uses deterministic inspection and boundary probes to illustrate evidence and validation. It contains no agents and is not a replication of the paper’s results.

Read the source, then probe boundaries

Our sample has one quote function: at the threshold it subtracts a fixed amount. We used grep to find the variables and return statement, then ran three adjacent inputs. The lines and results below are from the same transcript.

Source inspection, copied verbatim.
1:const threshold = 100;
2:const discount = 20;
4:  return units >= threshold ? units - discount : units;
Results from boundary inputs.
units=99 total=99
units=100 total=80
units=101 total=81

The two kinds of evidence complement each other. Results for 99 and 101 suggest two regimes but do not establish whether 100 is included. The >= in source and the result at 100 answer that question together. Conversely, three successful outputs do not establish behavior for negative numbers, fractions, invalid input or other conditions in a real product.

Even an accurate description of the calculation cannot establish from code alone whether the reduction matches a contract, what currency unit applies, or whether historical exceptions remain valid. Record the file, revision, inputs, outputs and open questions for each candidate rule, and have a domain owner resolve conflicts. A passing test is evidence, not business approval.

Recommendations for different evidence

These are engineering recommendations, not protection effects measured by the sample. Separate material shipped to users from internal material, then decide according to business value and runtime constraints.

Recommendations by case
QuestionFinding
Fixtures or comments in a releaseRemove if unnecessary at runtime; recheck the final artifact.
Rules needed offlineAssess exposure against offline needs and test the release build.
Sensitive decision that can run onlineConsider server-side execution and return only necessary results.
Internal agent access to repositoriesLimit readable material and document external transfers and review ownership.

Moving a decision server-side has costs: offline availability, latency, authorization and failure handling all need design. Even with server-side rules, clients see inputs and returned results. Review which requests the interface accepts and limit unnecessary data.

Check your own project

Choose one important rule in a project you are authorized to inspect. Compare source, configuration and existing tests; write down boundary inputs and expected results. Node’s test runner supports tests and assertions, so confirmed boundaries can become regression checks. [3] Agree on expected behavior with the domain owner before adding a test to the normal build.

Example search for rule clues in your own source.
grep -nE 'threshold|discount|return' path/to/your-app/path/to/source.js

Next inspect the actual release build for unnecessary test data, rule tables, source maps or explanatory configuration. Keep an inventory and build identifier without copying sensitive content into a public report. After changing packaging, rebuild, inspect again and exercise critical paths; check runtime dependencies before removing files.

Apply a boundary to internal AI workflows too: specify which repositories and configuration may be read, check whether content leaves for an external service, and assign reviewers to generated requirements. Mark unsupported conclusions as unresolved so they do not become unreviewed specifications during a later migration.

Your checklist

  • Inventory rule tables, test data and configuration in release artifacts.
  • Record source revisions and evidence for candidate rules.
  • Test both sides of thresholds and invalid inputs.
  • Have a domain owner review rules and conflicts.
  • Limit what internal agents can read and send externally.

Primary sources

All sources and reproduction status ↗