/harbor:harbor-resume-external-failuresfrom harbor
Recovers independently proven external failures in Harbor 0.18.0 jobs with fixed call caps and first-evaluable lineage. Use when provider or infrastructure failures prevent measurement, or an exact versioned verifier-only recovery applies. Excludes semantic retries and cherry-picking.
Ships in harbor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use the bundled script to inspect completed Harbor jobs and create fresh jobs only for trials whose external failure is proven by verifier-owned structured diagnostics or an exact allowlisted exception type/code. The workflow never resumes or deletes a job, never treats a missing reward as sufficient evidence, and never retries semantic failures, context limits, agent timeouts, budget exhaustion, or candidate-caused cancellation.
Separate eligibility, provenance, and readiness. A null reward identifies a missing measurement; it does not explain its cause. Establish the allowlisted external failure from authoritative artifacts, verify the exact source lineage, then check that the specific remediation is ready before consuming the fixed call cap. A successful doctor is not evidence of a repaired service.
Stop at the first evaluable outcome even if it is a failure of the task. An exhausted cap or conflicting evidence leaves the cell unresolved; changing a config, destination, or skill is not a way to replenish the cap. Recovery of a frozen validation candidate never authorizes mutation, reselection, or another independent claim from the consumed cohort.
Preserve the original executor boundary and skill-loading policy during recovery. Do not add optimizer wiki notes, raw history, proposal logs, retrieval indexes, shared transcripts, or undeclared cache state to repair a failed call. Native discovery/loading and full-prompt injection remain different treatments. Check effective prompts, mounts, tools/services, retrieval, and session state; config equality does not prove live access isolation. Preserve recovery diagnostics as immutable evidence, and admit only authorized development evidence to later optimizer notes. Private gate outcomes never enter evolving memory or authorize another generation.
Create a JSON or YAML config with immutable source jobs, output directory, reward key, conservative requiredEnv and requiredPaths, and policy.maxExternalRetriesPerTrial. Authentication/environment entries additionally require remediationType, evidencePath, and the exact remediationEvidenceSha256; evidence contents are never copied. An incomplete or cancelled root is denied unless policy.optInFailureContracts names one implemented exact contract. The only current contract is harbor-0.18.0.sigterm-during-agent-setup.pre-agent-execution.v1; it fixes the cap at one and requires an infrastructure remediation attestation plus live preflight.
Run doctor and dry-run first. Both are read-only and execute no preflight or Harbor calls. Doctor prints contract validity plus eligible/excluded counts; dry-run prints the full plan to stdout. Neither mode creates the output directory or persists resume-plan.json:
uv run scripts/resume_external_failures.py resume-config.yaml --doctor
uv run scripts/resume_external_failures.py resume-config.yaml --dry-run
Inspect every trial's eligible, reason, evidence, provenanceError, and planned destination. Expect zero eligibility when evidence conflicts or provenance is incomplete.
Run without a mode flag to execute. Authentication and environment failures additionally require a verified remediation evidence digest and successful preflight. A sibling O_EXCL operation lock permits one writer; an active or stale lock fails closed. The script persists a sealed cap-consuming reservation before creating the attempt directory, staging a skill, writing a retry config, or calling Harbor.
uv run scripts/resume_external_failures.py resume-config.yaml
To recover a retry job left complete by a live engine process that exited after its Harbor call began, list the engine-reserved job in retryJobs and use:
uv run scripts/resume_external_failures.py resume-config.yaml --analyze-only
retryJobs is recovery input, not a general import or cherry-pick mechanism. The exact final ledger entry must already be a reserved, mode: live attempt for the same policy, contract, source lineage, and engine-fixed attempt paths; its sealed lifecycle must contain both configured-before-harbor-call and harbor-call-starting. Analyze-only then verifies the complete retry job and replaces only that reservation. An arbitrary completed job, an unreserved attempt, or a different path is rejected before merge. An empty retryJobs list is valid: the first analyze-only run persists the audit/merge and materializes only complete trusted sources. Repeating the same empty import against complete outputs is verified and byte-idempotent. Analyze-only rejects any attempt after the first evaluable retry.
If a sealed attempt proves that the agent completed but Harbor failed in its own artifact collection before the verifier started, do not repeat the agent. Read the indexed verifier-only recovery guide. This path is available only for an exact, reviewed, versioned failure shape; it makes zero Harbor/model calls, runs the deterministic verifier exactly twice from one sealed snapshot, and publishes an append-only derived recovery. Run its sealed wrapper with --doctor and --dry-run before live execution; the wrapper uses the sealed dependency lock with uv run --offline --frozen.
If that sealed verifier journal reached completed but V1 failed later while materializing derived artifacts, do not replay either verifier. Read the append-only V2 derivation contract. V2 accepts only the exact omission of Harbor's TaskConfig.overwrite: false default, preserves the entire V1 work tree as evidence, reconstructs from native and sealed run inputs, and adds zero Harbor, agent, model, or verifier calls. Its downstream q003 publisher fsyncs a UUID-owned complete tree and commits it atomically without replacement to one fixed namespace.
Read only the continuation matching the sealed failure and publication state:
These references describe distinct reviewed continuations; they do not authorize general recovery or another agent or verifier attempt.
The original V1 verification input remains at its historical path and recorded SHA-256. Treat it as compatibility data; use the indexed guide for instructions. Never edit that preserved input.
resume-plan.json; doctor and dry-run do not. The plan records config-order source indexes/names/labels, candidate/trial/task IDs, source and nested-diagnostic checksums, classifications, reasons, policy digest, cap state, and planned/created jobs.resume-lock.json is the persistent contract and sealed attempt lifecycle ledger. A live attempt records a durable reservation, its exact generated config, and a harbor-call-starting receipt immediately before the one Harbor call. Never edit or replace the ledger to obtain more retries. A lingering sibling .OUTPUT.resume-operation.lock means a prior writer may have crashed; audit it rather than deleting it automatically.merged-result.json preserves original and retry lineage, separates unresolvedRetryableExternal from nonRetryableUnavailable, and selects the first evaluable retry in attempt order—never the highest reward.effective-jobs/<source>/effective-job/ is emitted only when every source trial has an effective result. It is built and fully verified in a private sibling directory, then published with one atomic rename as a complete Harbor job consumable by existing evolvers in analyze-only mode.resume-manifest.json, which seals source/retry lineage, the selected retry artifact digest, every derived file checksum, and trial_uri values that name only the final published directory (never the private build path).report.md summarizes classifications, exclusions, attempts, and unresolved external outcomes.Treat a null unresolved reward as unresolved. Do not substitute a reported zero from an external failure, and do not materialize or pass an incomplete effective job downstream.
0.18.0 and run with Python 3.12 or newer.CancelledError non-retryable by default. The narrow pre-agent SIGTERM contract additionally requires the exact cancelled root counters, null job tokens/cost, null agent execution/result and verifier execution/result, Harbor's _handle_sigterm stack during Pi installation, matching exception/log artifacts, and a failed-and-absent Pi trajectory. One missing or conflicting predicate rejects the whole root before preflight or Job.create.SKILL.md frontmatter name, directory basename, config source, and lock name/source/digest must agree.readyForLive, liveReadiness, and hostInputVerification fields.Run the copied bundle checks without creating jobs:
uv run <skill-root>/scripts/skill_authoring.py <skill-root> --require-directory-name
uv run <skill-root>/scripts/resume_external_failures.py --help
agents/openai.yaml (opens in a new tab)references/contract.md (opens in a new tab)references/q003-publication-number-parity-v5.md (opens in a new tab)references/verifier-js-parity-v4.md (opens in a new tab)references/verifier-only-derivation-v2.md (opens in a new tab)references/verifier-only-derivation-v3.md (opens in a new tab)references/verifier-only-recovery-guide.md (opens in a new tab)references/verifier-only-recovery.md (opens in a new tab)scripts/complete_verifier_derivation_v2.py (opens in a new tab)scripts/complete_verifier_derivation_v2.py.lock (opens in a new tab)scripts/complete_verifier_derivation_v3.py (opens in a new tab)scripts/complete_verifier_derivation_v3.py.lock (opens in a new tab)scripts/publish_q003_verification_v4.py (opens in a new tab)scripts/publish_q003_verification_v4.py.lock (opens in a new tab)scripts/publish_q003_verification_v5.py (opens in a new tab)scripts/publish_q003_verification_v5.py.lock (opens in a new tab)scripts/recover_verifier_only.py (opens in a new tab)scripts/recover_verifier_only.py.lock (opens in a new tab)scripts/resume_external_failures.py (opens in a new tab)scripts/skill_authoring.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
12 skills in this plugin
/harbor-author-evaluation-datasetsAuthors and audits leakage-resistant native Harbor task datasets before study registration, or consolidates finalized schema-v1 native Harbor reports into privacy-safe aggregate comparisons. Use when Codex needs to define semantic task families, partition discovery, development, sealed validation, and holdout cohorts, generate deterministic seeded response-surface variants, diversify artifact contracts, test adapters and verifiers against shortcuts, compare completed report artifacts without exposing task-level details, or hand completed dataset roots to harbor-organize-evaluations. Do not use to run or score Harbor jobs or to manage study releases./harbor-evolve-skillEvolves SKILL.md with Harbor trials and GEPA reflective Pareto search. Use when improving instructions from development evidence, freezing one candidate, and checking it on independent validation and holdout datasets. Preserves the source bundle and sealed evaluation boundaries./harbor-maximize-knowledge-expertisePlans knowledge and expert skill mutations from digest-bound, sanitized development evidence. Use when preparing complementary expertise operators and exact mutation handoffs. Leaves candidate creation, scoring, selection, and promotion to their owning skills.npx claudepluginhub gvillarroel/plugins --plugin harbor