Skip to content

Product support guides

Tax Code "Rule-as-Code" Engine

Moraph software. 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.

Raise a ticket about Tax Code "Rule-as-Code" EngineTroubleshooting guide (sign in to read)Product documentation

Critical incident? Raise an S1 ticket: support staff are emailed when you raise it, with the ticket marked critical. Check Moraph Status for incidents already under way.

What Moraph Support handles

  • Problems signing in to or using the engine in Moraph Apps
  • Errors in example runs, traces or version comparison that are not caused by the rule's content
  • Release packages that fail to publish or download
  • Work API keys, scopes and calls returning unexpected errors
  • Questions about configuring record types, fields, stages and allowed moves

What goes elsewhere

  • How the law should be read: raise an interpretation question for your counsel; Moraph does not give tax or legal advice
  • Changes to consuming processing systems so they read packages: the teams that own those systems
  • Your network access: your agency's IT service desk
  • Your agency's authorization decision and control assessment: your security and authorization officials, using the control documentation Moraph provides

Choosing a severity

SeverityExamples for Tax Code "Rule-as-Code" Engine
S1 Critical
A production service is down or unusable, data may be at risk, or a security incident is under way, and there is no workaround.
  • Nobody can sign in to the engine and a scheduled release is due
  • A published package holds rule versions that were never approved
S2 High
A production service is badly degraded or an important function is failing, and the workaround is poor or temporary.
  • Example runs fail for every rule after a change Moraph made, so nothing can be sent for legal review
  • Release packages can't be downloaded and a consuming team is waiting
S3 Normal
Something is not working as it should, but there is a reasonable workaround or the impact is limited.
  • Version comparison doesn't show a changed citation, but the rule's history shows it
  • One shared view returns the wrong rules and a manual filter works
S4 Low
A question, a minor problem, a request for information or a change that can be planned.
  • How to add a new choice to the change_reason field
  • How to write a condition with in (...) in a step

You choose the severity. Moraph’s support staff are emailed when a ticket is raised, an S1 ticket marked critical, and handle tickets as soon as they can. Moraph doesn’t promise a response or resolution time.

Before you raise a ticket

  1. Check whether the problem happens for one rule or for every rule
  2. Run the worked examples again and note which ones fail and the detail shown
  3. Check the rule's format errors and citations on its workbench
  4. For integrations, check the Work API key has not expired or been revoked
  5. Check the product's Activity for recent configuration changes

What to include in the ticket

  • Rule, worked example, interpretation question or release references, such as RULE-7KQ2PX
  • The rule version and effective date involved
  • Whether it affects a test release, a production release or both
  • The exact error message and the time it happened, with your time zone
  • For API problems, the key name, method, path and response status, never the key itself
  • Steps to reproduce using worked examples, never real return information

Don’t include passwords, secrets or full records of patients, customers or citizens. If we need data like that, we will arrange a secure way to receive it.

Common problems and fixes

A rule can't be sent for legal review

Likely cause: A worked example fails, a step has no clause, the effective from date is missing or the rule has too few examples, as the settings require.

What to do: Read the list under Review and approval on the workbench, fix each item and send it again.

A rule can't be moved to Legal review or Approved from the record

Likely cause: Those moves run checks, so they happen only on the rule's workbench.

What to do: Open the workbench and use Send for legal review, or Approve the legal reading.

Approve isn't offered to a reviewer

Likely cause: They drafted the current version, sent it, or peer reviewed it, or a peer review is needed first.

What to do: Ask another person with the User role to approve, or record the peer review first.

Approval is refused because the rule changed

Likely cause: The rule or its worked examples changed after it was sent for legal review.

What to do: Return the rule for changes, then send it again so the reviewer sees what is being approved.

The wrong version applies to a date

Likely cause: Effective dates of approved versions overlap; the highest version covering the date is used.

What to do: Compare the versions' dates, correct them in a new version and approve it.

A release can't be published

Likely cause: You approved a version in it, or a production release holds versions not yet in a published test release, as the settings require.

What to do: Have another product administrator publish it, or publish a test release with those versions first.

An example shows Error rather than Fail

Likely cause: The example's inputs don't match the rule's declared inputs, or the rule has format errors or divides by zero.

What to do: Open the example's detail, correct its inputs or the rule, and save to run it again.

The work tracking link stopped updating

Likely cause: The Work API key expired or was revoked.

What to do: Create a new key in Settings, Work API keys, give it to the integration owner and check recent calls succeed.

A rule says a definition has no value on a date

Likely cause: No approved value of the definition applies on the example's or scenario's date.

What to do: Add a value from an earlier date to the definition and have it approved, or set the example's as of date.

All product support guides · Using Support