Skip to main content
BuildReviewed Oct 19, 2026

Fix Failed Paperclip Run

v1.0.3New

Unsigned, install at your own risk

Unverified

This skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.

Install this skill

No account required. Pick your tool, then copy.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install paperclip-fix-failed-paperclip-run

What this does: Diagnose and fix failed, stuck, slow, or incorrectly blocked Paperclip tasks and runs. Use with a task/run URL or failure report to trace the root cause, prove a regression red then green, check second-order effects, verify the real workflow, and deliver a PR with passing checks.

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/paperclip-fix-failed-paperclip-run/SKILL.md

Setup guide →
0Save

Instructions

Fix Failed Paperclip Run

Own the failure from evidence through a tested repair and a green PR. A diagnosis,
a proposed plan, a successful provider turn, and a passing unit test are intermediate
results. The finish line is a verified user workflow and a PR whose current commit
passes the required checks and review.

Honor an explicit diagnosis-only request or a calling workflow's approval boundary.
Otherwise proceed through implementation without a separate plan-approval pause.
Carry forward existing authorization for merge, rollout, and recovery; do not ask
again. When the assignment ends at a PR, distinguish local verification from
deployment and recovery of the original task. This skill does not itself authorize
merging or deploying.

1. Establish the incident and the finish line

Start from the supplied task/run URL or failure report. Resolve these facts from
available tools and records before asking the user for missing information:

  • Instance, company, task, affected run(s), time window, and intended useful result.
  • Current state versus state at failure; parent/child tasks and pending interactions
    only where they control progress. Multiple failed runs can have different causes.
  • The code actually served, runner/provider pack versions, operating system and
    architecture, adapter, model/effort, execution workspace, trust mode, and credential
    source. Trace effective values back through task overrides, inherited settings,
    defaults, and saved session state. Redact credential values.
  • Whether a deploy or restart separated save from resume. Compare the served
    revision and runner/provider pack versions that saved the session, checkpoint,
    lease, or launch input with those that resumed it. Failures clustered after
    a deploy usually mean the new release refuses state the old one saved.
  • Which endpoint is authorized: verified fix and green PR, or also rollout and
    recovery. Preserve the requested work and success criteria throughout.

Use the bounded run diagnostics reference
for the repository's existing run, event, log, and recovery reads.

Use authorized diagnostic access. If company scoping blocks a read, use an
already-authorized diagnostic path or label the missing evidence; do not bypass
the boundary.

Read repository instructions. In this repository, the code and tests under
server/src/services/heartbeat/ and server/src/services/recovery/ define
ownership, continuation, waiting, finalization, and recovery. Inspect recent changes and open/merged repairs in the
affected area. A correct fix that has not reached the target is a deployment gap;
do not create a second patch without evidence that the first is insufficient.
Choose code repair, configuration repair, or recovery from that evidence. If an
existing fix is sufficient, verify it and continue to the authorized endpoint
using its PR; do not manufacture code changes for an already-fixed defect.

Keep a compact evidence record in the working notes or driving issue: environment,
revision, causal timeline, reproduction, safety assumptions, and acceptance result.
Preserve useful logs and saved work before retries or cleanup. Do not put secrets
or private incident links in public code, fixtures, skills, or PR descriptions.

2. Find the first causal failure

Reconstruct the run from dispatch through preparation, provider execution, tool
calls, result persistence, finalization, and task disposition. For chat/email work,
follow outbound delivery and the user-visible result too. Align run events, logs,
controller/provider records, task activity, and traces by time and identity.

Separate these questions:

  1. What first prevented useful work or its delivery?
  2. Why did the responsible component make that decision or emit that value?
  3. Why did recovery or continuation fail to complete the already-authorized work?
  4. Which later errors are consequences, misleading summaries, or independent bugs?

Answer early whether the failing step resumed state saved by a different release.
If it did, compare what the old release persisted with what the new one requires
before pursuing provider, model, or capacity explanations.

Trace the causal value or transition to its producer and shared contract. Verify
the hypothesis against a counterexample or a reproduction. Check logs before and
after the apparent error: a recovered authorization warning may not be fatal, and
“final response,” HTTP 200, or “run succeeded” may not mean the task is complete.
Missing error detail is an evidence gap, not proof of a provider outage. When
evidence cannot distinguish hypotheses, name the uncertainty and add the smallest
bounded, redacted observation or fault injection that will resolve it.

For a stalled tree, classify each relevant non-progressing node as genuinely
waiting on a named human/external dependency, agent-actionable but unrouted, or
already covered by existing work. Preserve all three invariants:

  • Productive work has a real next action and owner.
  • Genuine approval, credential, budget, and dependency blockers remain effective.
  • Recovery and continuation are bounded and cannot recursively recover themselves.

Consult failure patterns for matching mechanisms
and test oracles. Treat them as hypotheses to check, not a catalog of explanations.

3. Prove the bug before changing production code

Write the smallest behavioral regression at the boundary that owns the defect.
Run it against the unfixed code and capture the expected failure. A setup error,
missing dependency, or assertion about a mock's own return value is not the red.

  • Use the real policy/resolver/serializer and realistic persisted input. Mock only
    boundaries outside the behavior under test. If a query duplicates rows, exercise
    that query with the relational shape that produces duplicates.
  • For recovery or races, control the interruption point and assert the resulting
    ownership, command receipts, side effects, and continuation. Restarting between
    completed turns does not reproduce a restart during an in-flight side effect.
  • For packaging, process startup, platform, or cross-language defects, reproduce
    using the actual affected artifact or protocol. A host binary or mocked provider
    cannot prove that a sandbox image contains an executable compatible binary.
  • For latency, measure the user's full interval and the suspected stage under the
    relevant cold/warm conditions. Use a stable controlled regression where possible;
    keep noisy wall-clock comparisons as measured acceptance evidence.

Keep this failing regression as the starting point for the repair. If the defect
requires a real integration environment, capture a
repeatable failing integration probe before the fix and repeat it afterward;
add a durable regression at the closest reliable boundary. If no meaningful red
can be observed, report that gap and keep working on reproduction. Do not claim
red-green proof from a test that was first run after the fix.

4. Repair the cause and prove the safety assumptions

Before changing a failing guard, name the invariant it protects. If existing runtime
checks already establish compatibility, remove redundant prerequisites instead of
adding qualification machinery; retain authority and integrity checks.

Fix the responsible producer or shared transition at the narrowest correct scope.
Check sibling callers/adapters that share that contract; generalize only as far as
the evidence requires. Avoid historical string allowlists, swallowed errors,
unbounded retries, or relaxing an integrity check to accommodate malformed input.
Preserve the requested model, trust, isolation, and performance behavior unless a
change or explicit fallback policy is part of the assignment.
A repair that makes recovery start more runs must state its worst-case starts per
hour across the company during an outage (provider refusing, crash loop, deploy)
and what bounds them; per-task caps do not bound the aggregate.

Before implementation, state the behavioral rule and the strongest plausible
second-order failure. Trace callers, downstream consumers, persisted state, and
runtime variants affected by the changed contract. Turn the important safety
assumptions into observable regression cases, not just assurances in the PR:

Changed boundarySafety evidence to consider
Ownership, cancellation, retry, or continuationNo second executor or repeated external side effect; legitimate queued work still runs; cancellation remains effective. An unchanged assignee field alone is insufficient.
Recovery or finalizationSaved files, results, and sessions survive; known-complete work is not rerun; interrupted work continues once; indeterminate outcomes reconcile before retry.
Waiting or task dispositionReal approval/budget/credential gates still stop work; actionable work has a durable wake; recovery is bounded; no recursive recovery tree.
Input, tool, or credential plumbingCompany and trust boundaries hold; intentional configuration reaches execution without ambient secret forwarding; distinct tools still dispatch correctly; sensitive logging remains redacted.
Packaging, compatibility, or session identityRelevant local/sandbox, platform, fresh/resumed, and old/new artifact combinations work; obsolete saved values are handled by a contract rather than a list of incident exceptions.
Persisted run identity across releasesState saved by the previous release resumes on the new one, or stops with a permanent, named code that recovery does not retry. A deploy landing mid-run follows the same contract.
Performance or lifecycleWarm reuse remains warm where intended; queueing and finalization do not regress; configured deadlines retain their meaning.

Select cases that exercise the actual blast radius. Do not create an unrelated
platform matrix. Test the sibling success path and the negative case that the old
guard protected. Keep reproduction and safety tests through later revisions.

Upgrade safety is part of every repair that touches persisted run identity:
launch arguments, provider/runner pack digests, leases, listeners, session or
checkpoint schema, and workspace authority. Each must either carry forward across
releases or fail with a permanent, named code, never a generic retryable one such
as native_session_interrupted. A retry cannot change saved identity; it repeats
the refusal or replaces saved state. Add an old-saved/new-resumed regression using
state shaped by the previous release, and a deploy-lands-mid-run case when the run
can be in flight at the cutover. Prefer one class-level rule at the shared
admission or recovery boundary over another per-error-code exception. For remote
sandbox paths, test with the provider's confinement rules applied; a local test
without them does not prove the remote path.

With the red established and the safety assumptions identified, make the repair
and run the same regression green. Run the relevant safety cases and existing
tests. Refactor only while they stay green. Investigate unexpected failures
instead of weakening an assertion or deleting the regression to finish.

Routine infrastructure facts belong to the harness when it can determine them
under existing authority. Reconcile process ownership, saved results, or eligible
continuations in code instead of asking a user to certify those facts in a form.
Keep UI choices for genuine user intent, authorization, or unavailable information.

5. Verify the real workflow at the fixed revision

Apply the repository's verify-paperclip skill and affected map recipes when
available. Its essential requirement here is a real run through the affected user
entry point, using the fixed source or package and the relevant runtime configuration.
Run the narrow regression first so each hypothesis gets fast feedback; use a local
server with the real remote provider when that reproduces the failure. Do not wait
for a full deployment for every experiment when a faithful shorter loop exists.

Exercise the original failure mechanism with a representative task: actual adapter,
provider, tools, trust boundary, persisted state, artifact, and interruption point
where each matters. A mock, Storybook, provider-free benchmark, or generic “hello”
smoke is supporting evidence only when the incident depends on a different path.

Verify the useful output, persistence after reload/reconnect, finalization, and
correct task state with no stranded lock or pending operation. For resume and
conversation defects, run a second turn and check retained context/files. For
delivery defects, check the destination and user-visible outcome, not just receipt
of an HTTP request. For slowness, compare the end-to-end interval with the baseline.

Record the tested revision and runtime versions. Re-run affected acceptance after
changes that invalidate that evidence. Report any missing credentials, access, or
environment precisely; an unavailable live check remains unverified. Continue
independent repair and PR work instead of substituting an unsupported “works” claim.

6. Deliver the PR and close the incident to the authorized endpoint

Use prepare-paperclip-pr and prcheckloop when available. Follow repository
instructions for checks, branch isolation, PR template, and review. Open the PR,
address review and CI failures, and inspect required checks and review on the
current head SHA. Pending, skipped, and passing are distinct. Retry a failed check
only with a reason; retain its evidence and fix repeatable failures. Resolve
companion repository/artifact changes needed by the fix and state their ordering.
A job whose log shows the runner shut down or lost communication is lost
infrastructure: re-run it. A cancellation without that evidence may be deliberate. A test failing in a file the PR does not touch gets one re-run; if it
repeats, check master and tell the test's owner. When review finds one instance of
a bug class, enumerate and test every entry point or counter of that class before
pushing again.

The PR must explain the causal defect, behavioral change, failing-before/passing-
after evidence, safety regressions, actual acceptance environment, and limitations.
Do not declare it ready while required checks or review remain unresolved. If a
required service or permission prevents completion, name the exact remaining gate.

When rollout/recovery is already authorized, continue: confirm the served revision
and required artifact versions, re-read the original task, and recover it through
the normal product path. Reconcile existing work before starting another executor.
Observe the original useful result or a genuine, named remaining blocker. Do not
cancel, replace, or shrink the user's original task merely to make a test pass.

Finish with a concise report:

  • Root cause and what changed, with unresolved hypotheses labeled.
  • Red/green regression and second-order behavior checked.
  • Real workflow exercised, revision/environment, and observed result.
  • PR URL, current check/review status, and companion changes if any.
  • Whether the original task is recovered, still awaiting rollout, or blocked on a
    specific remaining dependency. Separate code readiness from incident recovery.

Do not stop at a plan when a fix is authorized. Do not call the incident resolved
because its error message improved or a successful run badge appeared.

This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →

More from paperclip

View source →
paperclip-create-agentCreate new agents in Paperclip with governance-aware hiring. Use when you need to inspect adapter configuration options, compare existing agent configs, draft a new agent prompt/config, and submit a hire request.1 installstest-auditGarden the test suite by finding and removing redundant, vacuous, or implementation-coupled tests while preserving useful regression coverage. Use for test audits, test pruning, duplicate coverage, or reducing CI test cost. Supports focused cleanups and coordinated audit campaigns.1 installspaperclip-create-pluginCreate and develop external Paperclip plugins with the CLI-first workflow. Use when scaffolding a plugin, iterating on a local plugin, installing it into Paperclip, or updating plugin authoring docs.1 installspaperclip-converting-plans-to-tasksDecide whether Paperclip work needs delegation, and connect justified tasks with owners and real dependencies. Use when turning an authorized plan into work.1 installspaperclip-boardManage a Paperclip company as a board member via chat. Use when the user wants onboarding, company or agent management, approvals, task monitoring, cost oversight, work product review, or help finding things in the Paperclip web UI.1 installsverify-paperclipVerify Paperclip from a source checkout, published npm install, or existing staging or production stack. Select the environment, data state, version, and platform; drive real UI or CLI journeys and capture evidence. Route deployment to the private Cloud skills.1 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.656 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.561 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.373 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.269 installsfounder-consumerThe consumer panel. Spins up a swarm of buyer sub-agents (default 100, --quick for 20) trained on the user's target customer, each with a different income, age, buying behaviour and objection, shows every one the same pitch, and runs the business through 100 buyer scenarios to see who buys, who doesn't, and why. Tallies the answers into buy rates by segment, the reasons people pass in their own words, what would flip a no, and price answers for founder-pricing. Use when the user says "would people buy this", "test it on customers", "run the consumer panel", "simulate buyers", "who is my customer", or "validate demand".198 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.186 installs

Frequently asked questions about fix-failed-paperclip-run

What does the fix-failed-paperclip-run skill do?

Diagnose and fix failed, stuck, slow, or incorrectly blocked Paperclip tasks and runs. Use with a task/run URL or failure report to trace the root cause, prove a regression red then green, check second-order effects, verify the real workflow, and deliver a PR with passing checks. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the fix-failed-paperclip-run skill?

Run `npx @skills-hub-ai/cli install paperclip-fix-failed-paperclip-run` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/paperclip-fix-failed-paperclip-run/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does fix-failed-paperclip-run work with?

fix-failed-paperclip-run runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the fix-failed-paperclip-run skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use fix-failed-paperclip-run after installing it?

In Claude Code, type `/paperclip-fix-failed-paperclip-run` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the fix-failed-paperclip-run skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/paperclip-fix-failed-paperclip-run)](https://skills-hub.ai/skills/paperclip-fix-failed-paperclip-run)
HTML
<a href="https://skills-hub.ai/skills/paperclip-fix-failed-paperclip-run"><img src="https://skills-hub.ai/api/badges/skill/paperclip-fix-failed-paperclip-run" alt="Install on Skills Hub"></a>

More options in the badge docs.