Skip to content

Add RulesAutomationRuleTerminalFailure action item codes (LINK-6287)#139

Merged
giacaglia merged 4 commits into
mainfrom
giuliano/link-6287-action-item-codes-rule-terminal-failure
Jun 2, 2026
Merged

Add RulesAutomationRuleTerminalFailure action item codes (LINK-6287)#139
giacaglia merged 4 commits into
mainfrom
giuliano/link-6287-action-item-codes-rule-terminal-failure

Conversation

@giacaglia
Copy link
Copy Markdown
Member

@giacaglia giacaglia commented May 13, 2026

Summary

Add two new values to the ActionItemCode enum so that Rules Automation rule owners can be notified when a rule hits a terminal execution failure.

  • RulesAutomationRuleTerminalFailure — terminal failure on a rule with no assigned owners (org-level subscribers / fallback emails)
  • RulesAutomationRuleTerminalFailureAssigned — terminal failure on a rule with one or more assigned owners (users or teams)

The codes use the product-facing RulesAutomation name rather than the internal Maestro codename, matching the convention for other published, persisted ActionItemCode values. Mirrors the With Owner / Without Owner split already used by DataSiloNeedsReconnect / DataSiloNeedsReconnectAssigned.

Why

Rule owners currently have no way to know that a Rules Automation rule has failed silently. The companion transcend-io/main#43398 wires these codes into:

  • ACTION_ITEM_CONFIG_MAPPING (with supportsCadence: true, mirroring reconnect)
  • A new terminal-failure email template
  • A JIT/Immediate dispatch lambda triggered from a Sequelize afterUpdate hook on maestroRuleExecutions when an execution transitions into the FAILURE status
  • An action item compilation query handler so failures also surface as action item rows

This PR is the lightweight enum addition that must publish first; once a new @transcend-io/privacy-types version ships, the catalog version in transcend-io/main will be bumped and the rest of the feature lands.

Test plan

  • pnpm typecheck in packages/privacy-types
  • pnpm test in packages/privacy-types
  • Changeset published, version bumped via release workflow
  • Catalog bump + downstream wiring lands in transcend-io/main

Links: LINK-6287 - Add notification option for terminal rule failures

Add MaestroRuleTerminalFailure and MaestroRuleTerminalFailureAssigned
values to the ActionItemCode enum so Rules Automation rule owners can
be notified when a rule hits a terminal execution failure (an execution
that reaches the FAILURE status with no further retries).

Mirrors the With Owner / Without Owner split already used for the data
silo reconnect codes. Backend wiring lives in transcend-io/main.

- ref https://linear.app/transcend/issue/LINK-6287/add-notification-option-for-terminal-rule-failures
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 13, 2026

LINK-6287

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 13, 2026

Open in StackBlitz

@transcend-io/airgap.js-types

pnpm add https://pkg.pr.new/@transcend-io/airgap.js-types@139
yarn add https://pkg.pr.new/@transcend-io/airgap.js-types@139.tgz

@transcend-io/cli

pnpm add https://pkg.pr.new/@transcend-io/cli@139
yarn add https://pkg.pr.new/@transcend-io/cli@139.tgz

@transcend-io/internationalization

pnpm add https://pkg.pr.new/@transcend-io/internationalization@139
yarn add https://pkg.pr.new/@transcend-io/internationalization@139.tgz

@transcend-io/privacy-types

pnpm add https://pkg.pr.new/@transcend-io/privacy-types@139
yarn add https://pkg.pr.new/@transcend-io/privacy-types@139.tgz

@transcend-io/sdk

pnpm add https://pkg.pr.new/@transcend-io/sdk@139
yarn add https://pkg.pr.new/@transcend-io/sdk@139.tgz

@transcend-io/type-utils

pnpm add https://pkg.pr.new/@transcend-io/type-utils@139
yarn add https://pkg.pr.new/@transcend-io/type-utils@139.tgz

@transcend-io/utils

pnpm add https://pkg.pr.new/@transcend-io/utils@139
yarn add https://pkg.pr.new/@transcend-io/utils@139.tgz

@transcend-io/mcp

pnpm add https://pkg.pr.new/@transcend-io/mcp@139
yarn add https://pkg.pr.new/@transcend-io/mcp@139.tgz

@transcend-io/mcp-server-admin

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-admin@139
yarn add https://pkg.pr.new/@transcend-io/mcp-server-admin@139.tgz

@transcend-io/mcp-server-assessment

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-assessment@139
yarn add https://pkg.pr.new/@transcend-io/mcp-server-assessment@139.tgz

@transcend-io/mcp-server-base

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-base@139
yarn add https://pkg.pr.new/@transcend-io/mcp-server-base@139.tgz

@transcend-io/mcp-server-consent

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-consent@139
yarn add https://pkg.pr.new/@transcend-io/mcp-server-consent@139.tgz

@transcend-io/mcp-server-discovery

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-discovery@139
yarn add https://pkg.pr.new/@transcend-io/mcp-server-discovery@139.tgz

@transcend-io/mcp-server-dsr

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-dsr@139
yarn add https://pkg.pr.new/@transcend-io/mcp-server-dsr@139.tgz

@transcend-io/mcp-server-inventory

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-inventory@139
yarn add https://pkg.pr.new/@transcend-io/mcp-server-inventory@139.tgz

@transcend-io/mcp-server-preferences

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-preferences@139
yarn add https://pkg.pr.new/@transcend-io/mcp-server-preferences@139.tgz

@transcend-io/mcp-server-workflows

pnpm add https://pkg.pr.new/@transcend-io/mcp-server-workflows@139
yarn add https://pkg.pr.new/@transcend-io/mcp-server-workflows@139.tgz

commit: 6503a90

@giacaglia giacaglia changed the title 🤖🔵 Add MaestroRuleTerminalFailure action item codes (LINK-6287) Add MaestroRuleTerminalFailure action item codes (LINK-6287) May 13, 2026
Rename the new ActionItemCode members from the internal "Maestro"
codename to the product-facing "RulesAutomation" name, matching the
naming convention for other published, persisted action item codes.
@giacaglia giacaglia changed the title Add MaestroRuleTerminalFailure action item codes (LINK-6287) Add RulesAutomationRuleTerminalFailure action item codes (LINK-6287) Jun 1, 2026
giacaglia added 2 commits June 1, 2026 18:21
The transcend.yml JSON schema embeds the ActionItemCode enum, so add the
two new RulesAutomation rule terminal failure values to the generated
schema and cover @transcend-io/cli in the changeset.
@giacaglia giacaglia marked this pull request as ready for review June 1, 2026 23:26
Copy link
Copy Markdown
Member

@dawson-turechek-transcend dawson-turechek-transcend left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@giacaglia giacaglia added this pull request to the merge queue Jun 2, 2026
Merged via the queue into main with commit b90b468 Jun 2, 2026
4 checks passed
@giacaglia giacaglia deleted the giuliano/link-6287-action-item-codes-rule-terminal-failure branch June 2, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants