Skip to content

Name the workflow step that blocked a release deployment (0.3.23) - #36

Merged
MainSequenceDev merged 1 commit into
mainfrom
claude/blocked-reason
Nov 26, 2026
Merged

MainSequenceDev merged 1 commit into
mainfrom
claude/blocked-reason

Conversation

@MainSequenceDev

Copy link
Copy Markdown
Contributor

Why

A release deployment its workflow blocked carried only outcome: workflow_prerequisite_failed. The Releases tab showed "Workflow prerequisite failed" with all stages skipped. Command Center shows the same workflow run as migrate failed · 2 blocked, so the two looked like they disagreed.

What

  • deployment-release-history reads with include=workflow_run, still one request per page.
  • A blocked deployment carries blockedBy: { workflowRunUid, workflowPath, workflowState, steps: [{ key, state }] }. The steps are found by walking from the deployment's own workflow steps (workflow_step_keys, or steps with its deployment_run_uid) through needs, past steps that did not run (blocked, skipped, superseded), to the ones that failed (failed, cancelled, timed_out, …). An agent deployment that needs deploy_api, which needs migrate, names migrate. If the graph leads nowhere, every failed step is named. Any other row has blockedBy: null.
  • deployment-run already read the workflow run, and deployment-wait now does too, so both return blockedBy.
  • The version goes to 0.3.23.

Checks

  • npm test: 203/203, with new tests for the dependency walk (through a blocked step, a cycle, the fallback, no workflow) and for the include on the history and wait reads.
  • Read against Production with this build: 19 blocked deployments in the last 7 days, all of them named (metatables-api.yaml: migrate failed, connector.yaml: image failed, crm-api.yaml: deploy_api failed, …), and no non-blocked row with a blockedBy. A 100-row page grows to about 97 KB.

After merge (needs the owner's go-ahead)

Tag v0.3.23 to publish, then pin it in the Claude Desktop PR that shows the text (mainsequence-sdk/mainsequence-claude-desktop, branch claude/blocked-reason). The Codex panel needs the same one-line change once this is on npm.

🤖 Generated with Claude Code

A deployment its workflow blocked had only the outcome `workflow_prerequisite_failed`, which
names neither the step that failed nor the workflow, so the Releases rows read as if they
contradicted Command Center's `migrate failed · 2 blocked`.

`deployment-release-history` now reads each deployment with `include=workflow_run`, and a
blocked deployment carries `blockedBy`: the workflow run (`workflowRunUid`, `workflowPath`,
`workflowState`) and the steps that failed. They are found by walking back from the
deployment's own workflow steps through the steps they need, past the ones that did not run,
to the ones that failed; when that leads nowhere, every failed step is named. `deployment-run`
and `deployment-wait` (now also read with the workflow run) return it too.

Checked against Production: every blocked deployment of the last 7 days names a step
(`metatables-api.yaml: migrate failed`, `connector.yaml: image failed`, ...), and no other
row carries one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MainSequenceDev
MainSequenceDev merged commit aff0942 into main Nov 26, 2026
4 checks passed
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