Setup
Set up Tax Code "Rule-as-Code" Engine
The order in which administrators set up Tax Code "Rule-as-Code" Engine, and what each step involves.
Applies to Tax Code "Rule-as-Code" Engine as it works today. Moraph updates the platform continuously, and this page is reviewed when it changes.
On this page
Setting up the product is done by your administrators with Moraph's delivery team, in this order. Each step is confirmed before the next begins.
Steps
Review the workspace. A product administrator opens the engine in Moraph Apps. The workspace starts with the Rule, Worked example, Interpretation question, Release, Legal source, Definition and Consuming system record types. Check their fields and choice lists, such as change reason, in Settings before anyone starts drafting. A workspace set up before legal sources, definitions and consuming systems were added shows Update this workspace in Rule settings; Add them adds the missing record types and fields without changing anything existing.
Assign people and roles. In the Moraph Portal under People and access, give specialists and legal reviewers the User role, release managers the Product administrator role, and auditors and consuming teams who only read the Viewer role. Approval and publication need a different person from the one who sent the rule or approved it, so plan for at least two people with the User role and one product administrator.
Confirm the rule settings. Open Rule settings and set how many worked examples a rule needs, whether every step must cite its clause and whether citations must match the linked legal source, whether a peer review is needed, whether blocking questions stop approval, the separation, test-first and consuming system rules for releases, and the reminder days. The values shown are placeholders until saved.
Load legal sources and shared definitions. Add a Legal source for each provision in scope with its text one clause per line, starting with the clause label in square brackets, or load it through the Work API from your legal source library. Add Definitions for amounts and terms several rules share, with their values by date, and have a second person approve them on their page.
Agree drafting conventions. Agree with your specialists and counsel how inputs are named, how clauses are cited in square brackets, and what kinds of worked examples each rule needs. The engine supplies no tax law or citations; every rule is what your agency enters.
Pilot one provision end to end. Write one rule's inputs and steps, add worked examples with expected results, send it for legal review, have a second person approve it, and publish it in a test release that a consuming team downloads and loads.
Connect integrations. Create Work API keys for the consuming systems and work tracking tools that read rule and release records. Packages are downloaded as JSON from the release's page; Moraph doesn't push them into your systems.
Register consuming systems. Add a Consuming system record for each system that loads packages. Its team reports test results and adoption on a release's page, or by setting Reported release and Reported result on the record through the Work API.
What the rollout 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.
The general phases of an engagement, from discovery to ongoing operations, are described on Working with Moraph.
The workspace itself (record types, fields, stages and allowed moves) is configured in Settings; see Sign in to read Configuring a product workspace.
Was this page helpful?
Report a problem with this page
Need help with your own setup rather than this page? Raise a support ticket.