From 7408b15cdc2faaccd64d44bcbada678bdf139ef4 Mon Sep 17 00:00:00 2001 From: Giuliano Pezzolo Giacaglia Date: Wed, 13 May 2026 11:21:17 -0500 Subject: [PATCH 1/3] Add MaestroRuleTerminalFailure action item codes 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 --- ...287-maestro-rule-terminal-failure-action-items.md | 5 +++++ packages/privacy-types/src/actionItems.ts | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .changeset/link-6287-maestro-rule-terminal-failure-action-items.md diff --git a/.changeset/link-6287-maestro-rule-terminal-failure-action-items.md b/.changeset/link-6287-maestro-rule-terminal-failure-action-items.md new file mode 100644 index 00000000..a2ad61de --- /dev/null +++ b/.changeset/link-6287-maestro-rule-terminal-failure-action-items.md @@ -0,0 +1,5 @@ +--- +"@transcend-io/privacy-types": patch +--- + +Add `MaestroRuleTerminalFailure` and `MaestroRuleTerminalFailureAssigned` values to the `ActionItemCode` enum so that Rules Automation rule owners can be notified when a rule hits a terminal execution failure. diff --git a/packages/privacy-types/src/actionItems.ts b/packages/privacy-types/src/actionItems.ts index a5cfb3d6..2b1e85e7 100644 --- a/packages/privacy-types/src/actionItems.ts +++ b/packages/privacy-types/src/actionItems.ts @@ -160,6 +160,18 @@ export enum ActionItemCode { * A database datapoint has queries that need approval */ DataPointDatabaseQueryNeedsApproval = 'DATA_POINT_DATABASE_QUERY_NEEDS_APPROVAL', + /** + * - A Rules Automation rule has hit a terminal failure (an execution + * transitioned to FAILURE with no further retries) and the rule has + * no assigned owners + */ + MaestroRuleTerminalFailure = 'MAESTRO_RULE_TERMINAL_FAILURE', + /** + * - A Rules Automation rule has hit a terminal failure (an execution + * transitioned to FAILURE with no further retries) and the rule has + * one or more assigned owners (users or teams) + */ + MaestroRuleTerminalFailureAssigned = 'MAESTRO_RULE_TERMINAL_FAILURE_ASSIGNED', } /** From f3e14e3071bca0754e357ff76fb92e4884a3a863 Mon Sep 17 00:00:00 2001 From: Giuliano Pezzolo Giacaglia Date: Mon, 1 Jun 2026 16:54:48 -0500 Subject: [PATCH 2/3] Use product name in rule terminal failure action codes 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. --- .../link-6287-maestro-rule-terminal-failure-action-items.md | 5 ----- ...87-rules-automation-rule-terminal-failure-action-items.md | 5 +++++ packages/privacy-types/src/actionItems.ts | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 .changeset/link-6287-maestro-rule-terminal-failure-action-items.md create mode 100644 .changeset/link-6287-rules-automation-rule-terminal-failure-action-items.md diff --git a/.changeset/link-6287-maestro-rule-terminal-failure-action-items.md b/.changeset/link-6287-maestro-rule-terminal-failure-action-items.md deleted file mode 100644 index a2ad61de..00000000 --- a/.changeset/link-6287-maestro-rule-terminal-failure-action-items.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@transcend-io/privacy-types": patch ---- - -Add `MaestroRuleTerminalFailure` and `MaestroRuleTerminalFailureAssigned` values to the `ActionItemCode` enum so that Rules Automation rule owners can be notified when a rule hits a terminal execution failure. diff --git a/.changeset/link-6287-rules-automation-rule-terminal-failure-action-items.md b/.changeset/link-6287-rules-automation-rule-terminal-failure-action-items.md new file mode 100644 index 00000000..ca91146b --- /dev/null +++ b/.changeset/link-6287-rules-automation-rule-terminal-failure-action-items.md @@ -0,0 +1,5 @@ +--- +"@transcend-io/privacy-types": patch +--- + +Add `RulesAutomationRuleTerminalFailure` and `RulesAutomationRuleTerminalFailureAssigned` values to the `ActionItemCode` enum so that Rules Automation rule owners can be notified when a rule hits a terminal execution failure. diff --git a/packages/privacy-types/src/actionItems.ts b/packages/privacy-types/src/actionItems.ts index 2b1e85e7..c018b1da 100644 --- a/packages/privacy-types/src/actionItems.ts +++ b/packages/privacy-types/src/actionItems.ts @@ -165,13 +165,13 @@ export enum ActionItemCode { * transitioned to FAILURE with no further retries) and the rule has * no assigned owners */ - MaestroRuleTerminalFailure = 'MAESTRO_RULE_TERMINAL_FAILURE', + RulesAutomationRuleTerminalFailure = 'RULES_AUTOMATION_RULE_TERMINAL_FAILURE', /** * - A Rules Automation rule has hit a terminal failure (an execution * transitioned to FAILURE with no further retries) and the rule has * one or more assigned owners (users or teams) */ - MaestroRuleTerminalFailureAssigned = 'MAESTRO_RULE_TERMINAL_FAILURE_ASSIGNED', + RulesAutomationRuleTerminalFailureAssigned = 'RULES_AUTOMATION_RULE_TERMINAL_FAILURE_ASSIGNED', } /** From 6503a90a854d0a8f60b7d171e85b068290c9df32 Mon Sep 17 00:00:00 2001 From: Giuliano Pezzolo Giacaglia Date: Mon, 1 Jun 2026 18:22:44 -0500 Subject: [PATCH 3/3] Regenerate CLI schema for new action item codes 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. --- ...287-rules-automation-rule-terminal-failure-action-items.md | 3 ++- packages/cli/schema/transcend-yml-schema-latest.json | 4 +++- packages/cli/schema/transcend-yml-schema-v10.json | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.changeset/link-6287-rules-automation-rule-terminal-failure-action-items.md b/.changeset/link-6287-rules-automation-rule-terminal-failure-action-items.md index ca91146b..ef5438b0 100644 --- a/.changeset/link-6287-rules-automation-rule-terminal-failure-action-items.md +++ b/.changeset/link-6287-rules-automation-rule-terminal-failure-action-items.md @@ -1,5 +1,6 @@ --- "@transcend-io/privacy-types": patch +"@transcend-io/cli": patch --- -Add `RulesAutomationRuleTerminalFailure` and `RulesAutomationRuleTerminalFailureAssigned` values to the `ActionItemCode` enum so that Rules Automation rule owners can be notified when a rule hits a terminal execution failure. +Add `RulesAutomationRuleTerminalFailure` and `RulesAutomationRuleTerminalFailureAssigned` values to the `ActionItemCode` enum so that Rules Automation rule owners can be notified when a rule hits a terminal execution failure. Regenerate the CLI `transcend.yml` JSON schema so the new codes are reflected. diff --git a/packages/cli/schema/transcend-yml-schema-latest.json b/packages/cli/schema/transcend-yml-schema-latest.json index 65042f61..559f939f 100644 --- a/packages/cli/schema/transcend-yml-schema-latest.json +++ b/packages/cli/schema/transcend-yml-schema-latest.json @@ -57,7 +57,9 @@ "ONBOARDING", "REQUEST_ASSIGNED_TO_USER", "BUSINESS_ENTITY_NEEDS_DOCUMENTATION", - "DATA_POINT_DATABASE_QUERY_NEEDS_APPROVAL" + "DATA_POINT_DATABASE_QUERY_NEEDS_APPROVAL", + "RULES_AUTOMATION_RULE_TERMINAL_FAILURE", + "RULES_AUTOMATION_RULE_TERMINAL_FAILURE_ASSIGNED" ] }, "collections": { diff --git a/packages/cli/schema/transcend-yml-schema-v10.json b/packages/cli/schema/transcend-yml-schema-v10.json index 98438024..b1756be1 100644 --- a/packages/cli/schema/transcend-yml-schema-v10.json +++ b/packages/cli/schema/transcend-yml-schema-v10.json @@ -57,7 +57,9 @@ "ONBOARDING", "REQUEST_ASSIGNED_TO_USER", "BUSINESS_ENTITY_NEEDS_DOCUMENTATION", - "DATA_POINT_DATABASE_QUERY_NEEDS_APPROVAL" + "DATA_POINT_DATABASE_QUERY_NEEDS_APPROVAL", + "RULES_AUTOMATION_RULE_TERMINAL_FAILURE", + "RULES_AUTOMATION_RULE_TERMINAL_FAILURE_ASSIGNED" ] }, "collections": {