Federal civilian · Moraph software

Tax Code "Rule-as-Code" Engine

Draft tax rules once, in a form people can review and processing systems can load

At a glance

For
Tax administration agencies implementing changes to tax law and guidance
What it does
Draft → Test → Review → Publish
Type and deployment
Moraph software, running in Moraph Apps. Moraph cloud, Rule packages run in your systems, With a managed service.
Availability
Generally available. What this means Release notes
Works alongside
Tax processing systems, Legal source library, Source control and build pipelines, Requirements and work tracking and 3 more

Request a demonstration See the walkthrough

What it does not do

  • 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.

All 8 limitations

Overview

What you are buying

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.

The problem it solves

When tax law changes, policy specialists describe the change in documents, developers interpret those documents into code in several processing systems, and testers try to confirm the result matches the law. Each hand-off is a chance for the meaning to drift. The same rule can be implemented differently in different systems, effective dates are tracked separately from the logic, and when a question arises about why a calculation behaves as it does, tracing it back to the legal text means reading code and old requirement documents side by side.

  • Legal text is re-interpreted by hand at each hand-off from policy to code
  • The same provision can be implemented differently in different systems
  • Effective dates and transition rules are tracked separately from the logic
  • Tracing a calculation back to the clause that requires it is slow and uncertain
Who uses it and related requirements

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

Related requirements

Internal Revenue Code (Title 26, U.S. Code)Treasury Regulations (26 CFR)Confidentiality of returns and return information (26 U.S.C. 6103)Taxpayer Bill of Rights (26 U.S.C. 7803(a)(3))Federal Information Security Modernization Act of 2014 (FISMA)Section 508 of the Rehabilitation Act

Listing a requirement here is not a statement that the product meets it; meeting it remains your organization's responsibility.

See how it works

A short walkthrough

Illustrative screens with fictional sample data. They show the workflow, not any client’s data or configuration, and the layout of the product itself differs. A live demonstration uses the product with sample data.

  1. Step 1

    Rules in progress

    Specialists and reviewers start from a list of rules by provision, status and effective date.

    RuleProvisionVersionEffective fromStatusOpen questions
    RULE-1042 Sample credit phase-outExample section 101(a) (fictional)v3Tax year 20X6In legal review1
    RULE-1038 Sample dependent definitionExample section 152 (fictional)v5Tax year 20X6Approved0
    RULE-1051 Sample deduction limitExample section 210(b) (fictional)v1Tax year 20X7Drafting3
    RULE-0977 Sample filing thresholdExample section 60(c) (fictional)v8Tax year 20X5Released0
    RULE-1047 Sample transition reliefExample act section 4 (fictional)v2Tax year 20X6Tests failing0
    Specialists and reviewers start from a list of rules by provision, status and effective date.
  2. Step 2

    A rule beside its source

    Each part of the rule sits beside the clause it implements, so reviewers read the law and the logic together.

    RULE-1042 · Sample credit phase-out (fictional provision)

    Source
    Example section 101(a) (fictional)
    Effective from
    Tax year 20X6
    Inputs
    Filing status, modified income, number of qualifying persons
    Uses definitions
    Qualifying person (RULE-1038 v5), modified income (RULE-0912 v2)
    Output
    Credit amount after phase-out

    Rule steps

    • Base amount per qualifying person (clause (1))
    • Threshold by filing status (clause (2))
    • Reduction per increment of income above threshold (clause (3))
    • Credit not reduced below zero (clause (4))
    Each part of the rule sits beside the clause it implements, so reviewers read the law and the logic together.
  3. Step 3

    Testing against worked examples

    Every change is run against the example set, and any example with a different result is shown with the step where it diverged.

    ExampleScenarioExpectedResultStatus
    TC-01Single filer, income below threshold (synthetic)$1,200$1,200Pass
    TC-02Joint filers, income at threshold (synthetic)$2,400$2,400Pass
    TC-03Joint filers, period spanning transition date (synthetic)$1,800$2,400Fail at step 2
    TC-04Head of household, no qualifying person (synthetic)$0$0Pass
    Every change is run against the example set, and any example with a different result is shown with the step where it diverged.
  4. Step 4

    Explaining a result

    Any result can be traced step by step, with the values used and the clause behind each step.

    TC-03 · RULE-1047 v2 (synthetic example)

    1. Filing status: joint (input)Example data
    2. Transition provision applies to periods beginning before the change dateClause 4(a)
    3. !Period start date not compared with change date; full amount usedStep 2
    4. Base amount $2,400 appliedClause 4(b)
    5. Result $2,400; expected $1,800Test
    Any result can be traced step by step, with the values used and the clause behind each step.
  5. Step 5

    Legal review

    Counsel reviews the reading of the law with comments on specific clauses, and interpretation questions are answered on the record.

    RULE-1042 v3 · Legal review

    Drafted by
    Tax law specialist (sample user)
    Second specialist review
    Complete
    Examples
    24, all passing
    Changes from v2
    Threshold amounts, rounding rule
    Legal reviewer
    Assigned

    Open interpretation question

    • Clause (3): is the reduction rounded per increment or on the total?
    • Specialist reading: on the total, per example guidance (fictional)
    • Example TC-17 depends on the answer
    Counsel reviews the reading of the law with comments on specific clauses, and interpretation questions are answered on the record.
  6. Step 6

    Preparing a release

    Approved versions are grouped into a release, published to a test channel, and promoted once consuming teams confirm their tests.

    RuleVersionChangeConsuming systemsTheir testsStatus
    RULE-1042 Sample credit phase-outv3Threshold amounts2PassedReady
    RULE-1038 Sample dependent definitionv5Age test wording41 of 4 pendingWaiting
    RULE-0912 Sample modified incomev2No change3PassedReady
    Approved versions are grouped into a release, published to a test channel, and promoted once consuming teams confirm their tests.

In the product

Annotated screens

The current build, with sample data. Select a numbered marker to read what it shows; the same notes are listed under the screen.

Tax Code "Rule-as-Code" Engine in Moraph Apps: the product home for a sample organization, with the Rules as code panel; counts for rules in drafting, in legal review, examples failing, open questions; workflow stages (Rules: Drafting, Legal review, Returned for changes, Approved, Withdrawn). All names and values are sample data.
Tax Code "Rule-as-Code" Engine as it runs in the current build of Moraph Apps, with sample data (build d889d9719, 2026-11-08). Records, names and figures are placeholders, not client data.
Notes on this screen (5)
  1. Product navigation This product’s own pages, then the records, tasks, calendar, search and activity every Moraph product shares.
  2. Rules as code The engine holds no tax law. Every rule, clause and worked example is entered by your agency, and the reading of the law is your specialists’ and counsel’s. Moraph doesn’t give tax or legal advice.
  3. New rule Creates a record in this product. A person fills it in; the product checks it against its rules before saving.
  4. Workflow Records in each stage. Select a stage to see its records.
  5. Your work Open tasks, records assigned to you, overdue records and open records in this product, counted from its records.

Workflows

The principal workflows

  1. 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.

    5 steps
    • Legal source loaded: statute, regulation, notice or internal guidance
    • Specialist marks the clauses the rule implements
    • Definitions, conditions and calculations written in the rule format
    • Effective dates and transition provisions recorded on the rule
    • Open questions on interpretation raised for counsel
  2. 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.

    5 steps
    • Specialist writes worked examples with the expected result
    • Engine runs the rule against every example
    • Failures shown with the step where the result diverged
    • Examples from earlier versions re-run to show what changed
    • Test set saved with the version as evidence
  3. 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.

    5 steps
    • Rule, source text and examples shown side by side
    • Reviewer comments on specific clauses or conditions
    • Interpretation questions answered and recorded
    • Legal reviewer approves the reading of the law
    • A product administrator who didn't approve the version publishes it in a release
  4. 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.

    5 steps
    • Approved versions grouped into a release
    • Release notes generated from the changes and edited by the release manager
    • Package published to a test channel for consuming systems
    • Consuming teams confirm their tests pass
    • Release promoted to production with its effective dates

Roles and permissions

Who does what in the product

Your organization's administrators and technical leads give each person one of the roles below in the Moraph Portal under People and access. Each time someone's product access is given, changed or removed, it is recorded in the product's Activity.

Show each role and the permissions matrix

Viewer

People who only read, such as auditors, oversight reviewers and consuming system teams

Sees the workspace without changing it.

Sees

  • Every rule, worked example, interpretation question, release, legal source, definition and consuming system, except a rule marked Restricted, with its examples and questions, until a version is approved
  • Release packages, reports and each rule's history

Does

  • Runs scenarios, traces and what-if cases on a rule
  • Verifies a package file against the published releases
  • Downloads release packages and reports

Cannot

  • Add, change or move records
  • See a rule marked Restricted, or its examples and questions, before a version is approved
  • Send, review or approve rules, answer questions or work on releases
Approvals
None.
Notified about
Nothing by default.

User

Tax law specialists, legal reviewers and rules engineers

Does the day-to-day work: tasks, records and workflow steps.

Sees

  • Every rule, worked example, interpretation question, release, legal source, definition and consuming system, including rules marked Restricted
  • Their own tasks and the rest of the team's

Does

  • Drafts rules, worked examples, interpretation questions, legal sources and definitions, and moves records through their stages
  • Imports records from a CSV file
  • Sends a rule or definition for review
  • Records a peer review of a rule someone else drafted and sent
  • Approves or returns the legal reading of a rule they didn't draft, send or peer review
  • Approves definition values someone else drafted and sent
  • Answers interpretation questions someone else raised
  • Assembles releases from approved rule versions and records consuming systems' results

Cannot

  • Approve a rule version they drafted, sent or peer reviewed, or definition values they drafted or sent
  • Peer review a rule they drafted or sent
  • Approve a rule while a blocking question is open (on by default), before its peer review when peer review is on (off by default), or after the rule or its examples changed since it was sent
  • Answer a question they raised, or withdraw a blocking question someone else raised
  • Publish, promote or withdraw a release, or change the rule settings
Approvals
Approves the legal reading of rule versions, and definition values, that someone else drafted and sent, and not a rule they peer reviewed. When a product administrator turns on peer review in Rule settings (off by default), a second specialist records a peer review first.
Notified about
When a record or task is assigned to them, and when work assigned to them is due or overdue, such as a rule waiting for legal review, a rule that isn't approved taking effect soon, a rule whose legal source changed or an interpretation question to answer.

Product administrator

Release managers and whoever maintains the rule settings

Everything a User can do, plus the product's settings and reference data.

Sees

  • Every rule, worked example, interpretation question, release, legal source, definition and consuming system, including rules marked Restricted
  • Rule settings
  • Recently deleted records

Does

  • Publishes releases, promotes test releases to production and withdraws releases
  • Sets the review and release rules and the reminder days in Rule settings
  • Withdraws any blocking question
  • Changes the workspace's record types, fields and workflow stages, manages Work API keys and restores deleted records

Cannot

  • Give people access to the product or change their roles: your organization's administrators and technical leads do that in the Moraph Portal under People and access
  • Publish a release holding a version whose legal reading they approved, while that setting is on (on by default)
  • Publish a production release before its versions are in a published test release, while that setting is on (on by default)
  • Approve a rule version they drafted, sent or peer reviewed
Approvals
Publishes releases of approved rule versions, but by default not a release holding a version whose legal reading they approved. Approves rule versions and definitions on the same terms as a User.
Notified about
When a record or task is assigned to them, and when work assigned to them is due or overdue,

Permissions at a glance

ActionViewerUserProduct administrator
See every rule, release and report (a Viewer doesn't see a Restricted rule before a version is approved)FullFullFull
Run scenarios, traces and what-if cases, and verify packagesFullFullFull
Download release packages and reportsFullFullFull
Add, change and move records through their stagesNo accessFullFull
Send a rule or definition for reviewNo accessFullFull
Record a peer review (not of a rule you drafted or sent)No accessApprovesApproves
Approve the legal reading of a rule (not one you drafted, sent or peer reviewed)No accessApprovesApproves
Approve definition values (not ones you drafted or sent)No accessApprovesApproves
Answer an interpretation question (not one you raised)No accessFullFull
Assemble releases from approved rule versionsNo accessFullFull
Publish, promote or withdraw a release (by default, not a release holding a version you approved)No accessNo accessApproves
Change the rule settingsNo accessNo accessFull
Restore deleted recordsNo accessNo accessFull
Give people access and roles (in the Moraph Portal, by your organization's administrators and technical leads)No accessNo accessNo access
  • Full
  • Approves
  • No access

How access is controlled

  • Separation is built in: nobody approves the legal reading of a rule version they drafted, sent or peer reviewed, nobody approves definition values they drafted or sent, and nobody answers their own interpretation question.
  • Release rules are on by default and a product administrator can change them in Rule settings: someone who approved a version's legal reading doesn't publish a release holding it, and a production release holds only versions already in a published test release. Only product administrators publish, promote and withdraw releases.
  • A rule marked Restricted is hidden, with its examples and questions, from viewers and Work API keys until a version is approved; people with the User or Product administrator role see it.
  • Roles are given to each person by your organization's administrators and technical leads in the Moraph Portal under People and access.
  • Each time someone's product access is given, changed or removed, it is recorded in the product's Activity.

Features

What it does

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.

Reporting

What you can report on

10 standard reports, grouped by who uses them. Each shows who it is for, how it can be broken down, how it is delivered and what it is used for. The data behind them is also available to your own reporting tools.

Show all 10 reports

Operational

Rules by status

For specialists, team leads and release managers

Every rule and version with its status, owner, effective date and open questions.

Break down by
Status, Provision, Tax type, Effective date
Delivered as
Live dashboard; CSV export
Used for
Seeing what is ready, what is blocked and what is due for an upcoming tax period.

Open interpretation questions

For legal reviewers and team leads

Questions raised on rules, who they are with and how long they have been open.

Break down by
Rule, Assignee, Age, Provision
Delivered as
Live view; CSV export; reminder tasks after the days you set
Used for
Keeping legal questions from holding up implementation.

Test status

For specialists and rules engineers

Example results for every rule version, with failures and the step where each diverged.

Break down by
Rule, Version, Result, Run date
Delivered as
Live dashboard
Used for
Fixing failures before review.

Release

Release readiness

For release managers and consuming teams

Each release with its rule versions, approvals and consuming systems' test results.

Break down by
Release, Rule, Consuming system, Status
Delivered as
Live view on each release
Used for
Deciding whether a release can be promoted.

Adoption by consuming system

For release managers and program leadership

Which release each consuming system is using and which systems are behind.

Break down by
Consuming system, Release, Date adopted
Delivered as
Live view of consuming systems
Used for
Making sure every system applies the same version of the law.

Release notes

For consuming teams, forms teams and leadership

What changed in each release, by rule, with citations and effective dates.

Break down by
Release, Provision, Change type
Delivered as
In the product and in the release package
Used for
Communicating changes to everyone who depends on the rules.

Program

Clause coverage

For program leadership and policy managers

Which clauses of the provisions in scope have rules linked to them and which do not.

Break down by
Provision, Coverage status, Legal source
Delivered as
Live view; CSV export per legal source
Used for
Planning which provisions to model next and showing implementation progress.

Implementation progress for a law change

For program leadership

For a selected act or set of provisions, the rules drafted, reviewed, approved and released.

Break down by
Provision, Status, Effective date
Delivered as
Live view; CSV export
Used for
Reporting on implementation of new legislation.

Audit and oversight

Rule change history

For auditors, oversight reviewers and counsel

Every version of a rule with its changes, tests, reviewers, legal approver and release.

Break down by
Rule, Version, Approver, Date
Delivered as
Live view; JSON evidence file
Used for
Showing how and why logic changed and who approved it.

Audit trail extract

For auditors and oversight reviewers

Who did what, when and why for a selected rule, release or period.

Break down by
Record, User, Action, Date range
Delivered as
Activity page, with CSV export for product administrators; each rule's evidence file
Used for
Answering audit requests without assembling evidence by hand.
Exports, access and evidence
  • Rule, question, test status, form line and report tables download as CSV, and any view can be printed from the browser. Reports are opened in the product rather than emailed on a schedule; reminders arrive as tasks.
  • Filters can be saved as personal or team views, and reports that need a different shape can be built in your own tools from the data described below.
  • Rule, test, approval and release data is available through the Moraph Work API for your agency's reporting and work-tracking tools.
  • Reports follow each person's access: a rule marked Restricted appears only to people with the User or Product administrator role until a version is approved, and consuming teams record their own test results.
  • Approved versions, test runs and published packages are kept unchanged with a SHA-256 fingerprint, so evidence shows what was approved at the time, and every export is recorded in the product's activity.

Integrations

The systems it works alongside

Tax Code "Rule-as-Code" Engine: related requirements and the systems it connects toRelated requirementsWorks alongsideTax Code "Rule-as-Code"…Internal Revenue Code (Title 26, U.S. Code)Internal Revenue Code (Title 26, U.S. Code)Treasury Regulations (26 CFR)Treasury Regulations (26 CFR)Confidentiality of returns and return information (26 U.S.C. 6103)Confidentiality of returns and return information (26 U.S.C. 6103)Taxpayer Bill of Rights (26 U.S.C. 7803(a)(3))Taxpayer Bill of Rights (26 U.S.C. 7803(a)(3))FISMA: Federal Information Security Modernization Act of 2014 (FISMA)FISMASection 508 of the Rehabilitation ActSection 508Tax 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.Tax processing systemsLegal 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.Legal source librarySource 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.Source control and build pipelinesRequirements and work tracking: Rule changes can be linked to the work items your agency uses to manage legislative implementation.Requirements and work trackingForms 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.Forms and instructionsSign-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.Sign-inWork API: Rule, version, test and approval data available to your reporting tools through the Moraph Work API.Work API

Related requirements

  • Internal Revenue Code (Title 26, U.S. Code)
  • Treasury Regulations (26 CFR)
  • Confidentiality of returns and return information (26 U.S.C. 6103)
  • Taxpayer Bill of Rights (26 U.S.C. 7803(a)(3))
  • FISMA
  • Section 508

Tax Code "Rule-as-Code" Engine

Works alongside

Each requirement links to its requirement page and each system to the integrations directory. Meeting a requirement remains your organization’s responsibility.
The diagram as a list

Related requirements

  • Internal Revenue Code (Title 26, U.S. Code)Internal Revenue Code (Title 26, U.S. Code)
  • Treasury Regulations (26 CFR)Treasury Regulations (26 CFR)
  • Confidentiality of returns and return information (26 U.S.C. 6103)Confidentiality of returns and return information (26 U.S.C. 6103)
  • Taxpayer Bill of Rights (26 U.S.C. 7803(a)(3))Taxpayer Bill of Rights (26 U.S.C. 7803(a)(3))
  • FISMAFederal Information Security Modernization Act of 2014 (FISMA)
  • Section 508Section 508 of the Rehabilitation Act

Works alongside

  • Tax processing systemsTax 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 libraryLegal 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 pipelinesSource 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 trackingRequirements and work tracking: Rule changes can be linked to the work items your agency uses to manage legislative implementation.
  • Forms and instructionsForms 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-inSign-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 APIWork API: Rule, version, test and approval data available to your reporting tools through the Moraph Work API.
How data moves with each system (7)
Works alongsideHowWhat flows
Tax processing systemsYour 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.Out: versioned JSON rule packages by download; release records through the Work API.
Legal source libraryStatutory, 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.In: legal text and its publication dates.
Source control and build pipelinesConsuming 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.Out: rule packages by download. In: test results reported on the release or through the Work API.
Requirements and work trackingRule changes can be linked to the work items your agency uses to manage legislative implementation.Out: rule status through the Work API. In: work item references entered on each rule.
Forms and instructionsRule references can be shared with the teams that produce forms and instructions, so they can check that the published guidance and the logic agree.Out: rule summaries and citations by form line, where mapped.
Sign-inStaff 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.None: accounts are kept in Moraph
Work APIRule, version, test and approval data available to your reporting tools through the Moraph Work API.Out: rule status, test results, approvals and releases.

The product doesn’t connect to these systems itself: data moves through the Moraph Work API, CSV import, exports or staff entry, as each row says.

Security and evidence

How your data is protected

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.

The evidence trail

What Tax Code "Rule-as-Code" Engine records, and the reports that show it to a reviewer.

  1. Recorded

    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.

  2. Change record

    Release readiness

    Each release with its rule versions, approvals and consuming systems' test results.

  3. Audit evidence

    Audit trail extract

    Who did what, when and why for a selected rule, release or period.

Request security information

Company-wide controls, data residency and subprocessors are described in our Trust Center, where you can send a request for security information.

Deployment

Where and how it runs

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.

Moraph Apps, and how the product is put together

Runs in Moraph Apps, the workspace shared by every Moraph-built product. Sign-in, roles, the audit trail, reports and the Work API are the same in every product; record types, fields, stages, roles and reports are configured for your organization during implementation, and anything beyond configuration is scoped as project work.

How a Moraph product is put together Your staff sign in once through the Moraph client portal and use the product in Moraph Apps, which runs on Cloudflare's global network and provides records, workflow, tasks, search, roles and the audit trail. The product's own services and your primary data run on Cloudflare too: the database is stored in one Cloudflare location and is not restricted to a jurisdiction. Your systems connect to the product through the Work API and the integrations agreed in the design. Your organization Your staffbrowser or mobile Your systemsyour existing software Cloudflare global network Client portalone Moraph sign-in, two-step, roles Moraph Apps records, workflow stages, taskssearch, reports, rolesaudit trailWork API (/api/v1) Moraph data on Cloudflare Product servicesthe product’s own processingand integrations Primary dataone database, not restrictedto a jurisdiction
How every Moraph product is put together. Sign-in and the shared workspace run on Cloudflare’s global network; the product’s own services and your primary data run there too, in a database that is not restricted to a jurisdiction. Each integration is specified in the design.

Security controls and data residency are set out in our Trust Center. Engagement models and what drives a quotation are on Working with Moraph.

Implementation

What a rollout involves

Every implementation follows the same phases, described on Working with Moraph. Their length depends on scope, so the plan in your proposal gives the dates.

  1. Discovery
  2. Design
  3. Implementation
  4. Migration
  5. Testing
  6. Go-live
  7. Ongoing operations

For Tax Code "Rule-as-Code" Engine, the work involves

  • Scope and pilot provisions

    We agree with your policy and engineering leads which provisions to model first, usually a recent change with known expected results.

  • Rule format and conventions

    Drafting conventions, shared definitions and citation styles are agreed with your specialists and counsel, and documented.

  • Legal source loading

    The statutory, regulatory and guidance text in scope is loaded and versioned, with your team confirming the sources.

  • Consuming system integration

    The package format is walked through with one consuming system team, which builds the loading on its side and reports its tests against the first test release.

  • Roles and approvals

    Roles and the review and release rules are set to match your agency's procedures for legal review and release.

  • Training and handover

    Specialists, reviewers and engineers are trained on drafting, testing and release, and Moraph works alongside your team on the first provisions.

Release notes

Release history

Tax Code "Rule-as-Code" Engine

Generally available
End of support
None announced. At least 12 months’ notice before any end of support.

No version history is published for this product.

What the stages mean, how versions work and our end-of-support policy: Product lifecycle.

Limitations

What it does not do

Worth knowing before you evaluate it.

  • 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.

Evaluation checklist

What to test in a demonstration or pilot

Questions worth putting to us, and to any other vendor you are considering.

  1. Ask a specialist to model a recent provision and judge whether counsel could review it without help
  2. Check that every step of a rule traces to a specific clause
  3. Write edge-case examples, including a transition period, and review how failures are explained
  4. Compare two versions of a rule and confirm the differences shown are complete
  5. Have an engineering team consume a test release in a non-production system
  6. Confirm role separation: who can draft, approve the legal reading and release

Questions

Frequently asked questions

Do policy specialists need to write code?

No. Rules are written in a structured format of definitions, conditions and calculations that specialists can learn without programming. Rules engineers support more complex structures.

Does the engine decide how the law should be read?

No. Your specialists draft the reading and your counsel approves it. The engine records the reading, tests it and keeps the link to the legal text.

Do we need taxpayer data to test rules?

No. Worked examples are built from constructed scenarios. If your agency chooses to test against return information, that happens within your own systems and under your own controls.

How do our processing systems use the rules?

Their teams download each released package as a JSON file and change their systems to load it; the release record, with its versions and package fingerprint, is readable through the Work API. Moraph doesn't push packages or run calculations in your systems.

Is it FedRAMP authorized?

No. Moraph holds no FedRAMP authorization for this product. We provide control documentation to support your agency's own authorization decision.

How do we try it before buying?

A demonstration uses fictional provisions. For a deeper evaluation, your specialists can model a recent provision with known expected results and compare the engine's output with your current implementation.