Product factsheet · Federal civilian · Moraph software
Tax Code "Rule-as-Code" Engine
The Tax Code Rule-as-Code Engine lets tax law specialists write rules in a structured, readable format that is tied clause by clause to the statute, regulation or guidance it implements. Each rule is tested against worked examples, reviewed by counsel and released as a versioned, machine-readable JSON package that your processing systems' teams download and load. The link from legal text to running logic stays visible for every version, so reviewers can see what changed and why.
Principal workflows
- Draft: A tax law specialist opens the provision being implemented and writes the rule in a structured format of definitions, conditions, calculations and effective dates, with each part linked to the clause it comes from.
- Test: Each rule is run against worked examples written by the specialist, including edge cases and examples from published guidance, so the logic is checked before anyone downstream relies on it.
- Review: Counsel, and a second specialist where peer review is on, review the rule beside its legal source, the interpretation notes and the test results, and approve or return it.
- Publish: Approved rule versions are released as a versioned JSON package that consuming teams download, with the release record readable through the Work API and release notes describing what changed.
Who uses it
- Tax administration agencies implementing changes to tax law and guidance
- Tax law specialists and policy analysts who interpret new provisions
- Counsel who review the legal reading of each rule
- Engineering teams who maintain tax processing and forms systems
- Testing, audit and oversight staff who need to trace logic to law
Reporting
- Rules by status: drafting, in review, approved and released
- Test results by rule and release
- Open interpretation questions and their age
- Releases and the consuming systems that have adopted them
- Clause coverage: which provisions have rules and which do not
- Change history for any rule, with approvers
Features
- Structured rule format: Rules are written as definitions, conditions, calculations and effective dates in a format specialists can read, the engine runs against worked examples, and processing systems load from the release package.
- Clause-level citations: Every part of a rule links to the clause of statute, regulation or guidance it implements, and the link is kept across versions.
- Effective dating: Rules carry effective and end dates, and transition provisions are modeled explicitly, so the right version applies to each tax period.
- Worked-example testing: Specialists write examples with expected results, and every rule change is run against the full example set.
- Step-by-step trace: Each result can be explained step by step, showing the conditions met, values used and the clause behind each step.
- Version comparison: Compare two versions of a rule to see changed conditions, calculations, dates and citations, and which examples now give a different result.
- Review and approval: Clause-level comments, recorded interpretation questions and answers, and separate approvals for the legal reading and for release.
- Shared definitions: Terms used across many provisions are defined once and referenced, so a change to a definition shows every rule it affects.
- Release packages: Approved versions published as versioned JSON packages with release notes, downloaded by consuming teams, with each release record readable through the Work API.
- Impact view: Before release, see which rules, forms and consuming systems a change touches, from the dependencies recorded in the engine.
- Synthetic test data: Worked examples use constructed scenarios rather than real return information, so testing does not require access to taxpayer data.
- Audit trail: Every edit, test run, comment, approval and release recorded with the person and time.
Integrations
- Tax processing systems: Your processing systems' teams download each released package as a JSON file, and can read the release record, with its versions and package fingerprint, through the Work API. Moraph doesn't push packages into your systems.
- Legal source library: Statutory, regulatory and guidance text loaded clause by clause by your team, or through the Work API from your legal source library, with versions kept as the text changes.
- Source control and build pipelines: Consuming teams can commit the downloaded package to their source control and continuous integration tools and test it like any other dependency, then report results on the release or through the Work API.
- Requirements and work tracking: Rule changes can be linked to the work items your agency uses to manage legislative implementation.
- Forms and instructions: Rule references can be shared with the teams that produce forms and instructions, so they can check that the published guidance and the logic agree.
- Sign-in: Staff sign in with their Moraph account, using email and password and, optionally, two-step verification. Sign-in through your own identity provider (SAML or OpenID Connect) is not offered.
- Work API: Rule, version, test and approval data available to your reporting tools through the Moraph Work API.
Deployment
- Moraph cloud: Hosted on Cloudflare's network.
- Rule packages run in your systems: Released packages are executed by your own processing systems or by an execution component installed in your environment, so production calculations do not depend on Moraph's cloud.
- With a managed service: Optionally run alongside a Moraph managed service for administration, rule-engineering support and integration support.
Security and privacy
- Data residency: Rules, examples and review records are hosted on Cloudflare's network, in a database that is not restricted to a jurisdiction.
- Access by role: Drafting, legal approval and release are kept apart, and a rule marked Restricted is hidden from viewers and Work API keys until a version is approved.
- Encryption: Data is stored in Cloudflare D1 and files in Workers KV, which Cloudflare encrypts at rest with keys Cloudflare manages, and every connection uses HTTPS. The product adds no encryption of its own to its records and files.
- Complete audit trail: Every edit, test, approval and release is recorded with the user and time, and the product offers no way to edit that history.
Limitations
- It does not interpret the law for your agency. Every rule reflects the reading of your specialists and counsel, and Moraph does not provide tax or legal advice.
- It does not process returns or hold taxpayer accounts. Your processing systems run the released rules.
- Some provisions depend on judgment, facts and circumstances that cannot be reduced to conditions and calculations; these are recorded as inputs a person or system must supply, not decided by the engine.
- A rule is only as reliable as its worked examples. Testing shows the rule matches the examples written, not that the examples cover every case.
- Moraph holds no FedRAMP authorization for this product. We provide control documentation to support your agency's own authorization decision.
- Existing logic in legacy processing systems is not converted automatically; provisions are modeled in the engine as your agency chooses to bring them across.
- Consuming systems must be changed to read the released packages, and that work sits with the teams that own them.
- It is designed for tax provisions. Other areas of law can be modeled but are outside the conventions delivered at implementation.
Next steps
Request a demonstration or a technical briefing at www.moraph.com/solutions/tax-code-rule-as-code-engine. Purchasing routes and company information: www.moraph.com/how-to-buy. Questions or documents: www.moraph.com/how-to-buy/request.
Generally available. Moraph LLC · Current as of October 2026.