Skip to content

fix(adv): classify ADV-layer 'workflow not found' as completed-workflow evidence#329

Merged
JRedeker merged 1 commit into
trunkfrom
hotfix/workflow-not-found-classifier
Jul 25, 2026
Merged

fix(adv): classify ADV-layer 'workflow not found' as completed-workflow evidence#329
JRedeker merged 1 commit into
trunkfrom
hotfix/workflow-not-found-classifier

Conversation

@JRedeker

Copy link
Copy Markdown
Contributor

Problem

When a poisoned workflow (TMPRL1100) is terminated and deleted at the Temporal level, ADV tools receive "workflow not found for ID: ..." from the tool layer. The COMPLETED_WORKFLOW_EVIDENCE_RE regex only recognized Temporal SDK error names (WorkflowNotFoundError, WorkflowExecutionAlreadyCompleted) but not the ADV-layer wrapper, so the recovery classifier could not match it. Tools errored out instead of falling through to disk-projection recovery.

Fix

Add workflow not found and workflow execution not found to COMPLETED_WORKFLOW_EVIDENCE_RE in plugin/src/temporal/recovery-classification.ts.

Context

Recovery hotfix during fixOpsResolutionProjection — a 12-hour-old workflow lived across 5 worker builds, producing nondeterministic history. After Temporal-level termination + deletion, ADV tools could not self-recover.

Verification

  • pnpm run build passes
  • Deployed locally; classifier fix verified by recovery flow

…ow evidence

The COMPLETED_WORKFLOW_EVIDENCE_RE regex recognized Temporal SDK error
names (WorkflowNotFoundError, WorkflowExecutionAlreadyCompleted) but
not the ADV tool-layer wrapper message 'workflow not found for ID: ...'
produced when a workflow execution has been deleted.

When a poisoned workflow was terminated and deleted at the Temporal
level (TMPRL1100 during replay), ADV tools received 'workflow not found'
but the classifier could not match it, preventing automatic disk-
projection recovery. Tools errored out instead of falling through to
recover_via_disk.

Add 'workflow not found' and 'workflow execution not found' to the
regex so the classifier recognizes both SDK and ADV-layer error text.

Recovery context: fixOpsResolutionProjection had a 12-hour-old workflow
that lived across 5 worker builds, producing nondeterministic history.
After Temporal-level termination + deletion, the ADV tools could not
self-recover because the error text was unclassifiable.
@JRedeker
JRedeker merged commit 0233b09 into trunk Jul 25, 2026
5 of 6 checks passed
@JRedeker
JRedeker deleted the hotfix/workflow-not-found-classifier branch July 25, 2026 20:40
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.

1 participant