/shipwright:error-resolve runs instead · from shipwright
Resolves Sentry issues linked to error patrol findings once their gating tasks reach deployed/done status. Reads task store for live status and calls Sentry API.
This skill never runs in Claude Code
It ships in shipwright at skills/, but /shipwright:error-resolve (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Read the repo's error PatrolFindings that /error-fix linked to a task (taskId), look up
each linked task's current status in the task store, and call Sentry's issue-resolve
endpoint only for issues whose gating task has reached deployed or done. This skill makes
no code changes and queues no tasks; it mutates Sentry issue state and, after a successful
resolve, the finding's status in the store. It reads and writes no repo path and no local state
file.
--repo org/repo — required. If missing or not org/repo, print and stop:
Usage: /error-resolve --repo org/repo [--cron ID] [--dry-run]
Error: --repo is required.
--cron ID — the system-cron id (default error-patrol), used as CRON_ID.--dry-run — check readiness and print what would resolve; no Sentry call, no store write.SHIPWRIGHT_TASK_STORE_URL and SHIPWRIGHT_TASK_STORE_TOKEN must be set; otherwise print
error-resolve requires SHIPWRIGHT_TASK_STORE_URL and SHIPWRIGHT_TASK_STORE_TOKEN to be set. Invoke /shipwright:task-store for setup instructions. Skipping resolve. and stop.SENTRY_ORG and SENTRY_AUTH_TOKEN must be set; otherwise print
error-resolve requires SENTRY_ORG and SENTRY_AUTH_TOKEN to be set in the environment. Skipping resolve. and stop.$SENTRY_AUTH_TOKEN or $SHIPWRIGHT_TASK_STORE_TOKEN, never write either to a
file, and never echo the literal $SENTRY_ORG.curl -sf -H "Authorization: Bearer $SHIPWRIGHT_TASK_STORE_TOKEN" \
"$SHIPWRIGHT_TASK_STORE_URL/patrol-findings?cronId=$CRON_ID&repo={url-encoded-repo}&status=open&limit=200" | jq '.findings'
Page with nextCursor until exhausted. Keep findings whose taskId is non-null; the Sentry
issue id is the finding's fingerprint. If none, print No linked error findings for {repo}. Nothing to resolve. and stop cleanly.
Each finding links one task (taskId): the primary fix task, or the companion for a pure-noise
issue (/error-fix links the primary whenever one exists). That linked task is the gate. A
companion task of an issue that also has a primary never gates resolution.
Always a live lookup, before any Sentry action. The finding stores only the task id.
curl -sf -H "Authorization: Bearer $SHIPWRIGHT_TASK_STORE_TOKEN" \
"$SHIPWRIGHT_TASK_STORE_URL/tasks/{taskId}"
status and metadata.errorPatrol.memberIssueIds (if any).missing: not ready. Continue.lookup failed: not ready, retried next run. Continue.cancelled — not ready (the fix was abandoned, not shipped); recorded distinctly.An issue resolves only when its gating task is deployed or done. deployed and done are the only resolving statuses.
merged, released and pr_open never resolve: released means a library was published, and a published library does not change a running service until a consumer deploys it. Every other status is also not ready.
Every non-ready issue is
left untouched: no Sentry call and no store write.
Cluster members. A ready gating task resolves every issue in its
metadata.errorPatrol.memberIssueIds (the confirmed cluster, including the survivor's own
issue id), not only the finding's issue. When memberIssueIds is absent or empty, fall back to
the finding's own issue id (one issue, as before). Members resolve only at deployed/done,
exactly like a single issue; nothing resolves earlier. issuesToResolve in
scripts/error-patrol/cluster.ts computes the list. A member that later regresses refiles as
a new issue; /error-fix hints it back to the survivor if the survivor is still open.
Print and stop; no Sentry call, no store write:
ERROR RESOLVE — DRY RUN ({repo})
Would resolve {N}: <sentry_issue_id> — task {task_id} status={deployed|done}
Not yet ready {N}: <sentry_issue_id> — task {task_id} status={status}
Missing/cancelled {N}: <sentry_issue_id> — task {task_id} ({missing|cancelled})
For each ready issue (for a cluster survivor, each id in its member list, one call per id):
curl -sS -X PUT -H "Authorization: Bearer $SENTRY_AUTH_TOKEN" -H "Content-Type: application/json" \
-d '{"status": "resolved"}' \
"https://sentry.io/api/0/organizations/$SENTRY_ORG/issues/{issue_id}/"
Success requires a 2xx and a response body whose status is "resolved". Otherwise record
the failure (issue id, HTTP status) and leave that finding untouched for a retry; continue with
the rest.
Only after Step 6 succeeded for an issue (each cluster member separately), set its finding to resolved in the store so the
next /error-scan detects a later reappearance as a regression:
curl -sf -X POST -H "Authorization: Bearer $SHIPWRIGHT_TASK_STORE_TOKEN" -H "Content-Type: application/json" \
"$SHIPWRIGHT_TASK_STORE_URL/patrol-findings/batch" \
--data '{"cronId":"'"$CRON_ID"'","repo":"'"$REPO"'","findings":[{"fingerprint":"<issue id>","status":"resolved"}]}'
A member with no finding in the store (never recorded, or already resolved) needs no write.
Then record one run with cron-run-recorder.ts record --cron "$CRON_ID" --repo "$REPO" --commit "$(git rev-parse HEAD)" --result "$RESULT" where $RESULT (a temp file outside the repo) is
{"outcome":"ok"|"no_op","metrics":{"resolved":N,"not_ready":N,"missing":N,"lookup_failed":N,"sentry_failed":N}}.
If the store write fails after a successful Sentry resolve, log it and do not try to unresolve
in Sentry; a later run's redundant resolve is harmless.
ERROR RESOLVE — {repo}: {R} resolved, {N} not yet ready, {M} missing/cancelled, {L} lookup failed, {F} Sentry call failed
{One line per resolved issue: <sentry_issue_id> — task {task_id} reached {deployed|done}}
Stop after printing.
--repo is required — no fallback to the current directory.memberIssueIds), and only at deployed/done.deployed/done resolves. merged, released and pr_open — and every other
status — never do.$SENTRY_AUTH_TOKEN or $SHIPWRIGHT_TASK_STORE_TOKEN.--dry-run mutates nothing.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub app-vitals/shipwright --plugin shipwright27 skills in this plugin
/agent-readinessScore one repo against the agent-readiness catalogue (docs/readiness.md) with the deterministic scorer, post one ReadinessSnapshot and record one run. Requires --repo org/repo. No model judgment, no task creation, no repo files./canary-executionCross-cutting contract for the test-readiness pipeline. Defines how canary-eligible test code runs in two modes — `local` (boot dependencies inline, hit localhost) and `canary` (skip the boot, hit a deployed `TEST_TARGET_URL`) — via a dedicated entry point separate from the local smoke runner. Specifies eligibility rules (read-only or self-cleaning, smoke/E2E only, critical/high tier only, zero DB-dependent tests) and the deploy-gate budget (<60s wall time). Referenced by the inventory, system-design, migration, and roadmap skills.
/duplication-fixRead a repo's ready_to_propose duplication patterns from the task store (PatrolFinding) and queue them as routed task-store tasks (auto, review or plan), one task per pattern, each carrying a strangler-fig (build -> coexist -> eliminate) execution plan. Requires --repo org/repo and duplication-scan to have run first./duplication-scanDiscover emerging duplicate/similar code patterns in one repo via judgment-driven comparison, track them across runs in the task store's PatrolFinding ledger, and list only stabilized open patterns in docs/patrols/duplication.md. Requires --repo org/repo. Report only — no code changes./entropy-fixRead the entropy-scan handoff for one repo and route PR-worthy violations as task-store tasks (auto / review / plan), one task per rule. Requires --repo org/repo and /entropy-scan to have run first./entropy-scanScan one repo for principle deviations and write docs/patrols/entropy.md. Requires --repo org/repo. Report only — no code changes.Other plugins' skills for the same job