/harbor:harbor-reflective-pareto-searchfrom harbor
Improves skill bundles from native Harbor evidence while retaining complementary candidates in a Pareto archive. Use when reflecting on case-specific failures, combining supported variants, and checking one frozen development winner on an independent dataset.
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 Harbor as the only evaluation and evidence layer. Keep candidates whose case-level strengths are not dominated, reflect on their weakest cases, and promote only after a separate holdout comparison.
Runtime: use uv and Python 3.12 or newer. The bundled executable pins Harbor 0.18.0. In commands, means this installed skill directory.
This is an atomic bundle. Copy the entire directory, not only SKILL.md.
Its executable and reference are included here, dependencies are declared in
the executable's PEP 723 metadata, and no Skill Arena repository module is
required.
Before starting generation zero, freeze a development dataset for Pareto
reflection and a disjoint, optimizer-invisible validation dataset. Plan that
validation stage before the evolution stage starts. The configured
harbor.holdoutJob normally serves as this bundle's independent validation
dataset; a study may reserve an additional holdout after it. Keep the declared
job and its artifacts unopened until one development archive member and its
skill digest are frozen.
Validation is a one-way acceptance gate. Never use its rewards, task
identities, diagnostics, or trajectories to change, merge, rank, or reselect a
candidate in the same study. If it fails, preserve the candidate and evidence;
another unbiased evolution claim requires a new study with fresh validation.
Creation of the output's holdout/ directory records an attempted release.
Further development or holdout invocations reject that output, including an
unfinished or failed release; continuation also checks the prior archive's
standard output location. Read existing reports without rerunning the search.
These local checks do not authenticate cohort freshness across copied archives
or unrelated output directories; the study organizer owns that boundary.
Use a Pareto archive when candidate strengths conflict across comparable development cases. Archive membership preserves an option; it is neither a promotion decision nor proof of a distinct reusable mechanism. Inspect the cases responsible for non-dominance, propose a supported change, and reevaluate every merge as a new complete candidate.
Predeclare the archive-to-finalist rule, generation/call budget, and plateau condition in the private study protocol. This runner does not enforce a total campaign budget. Select one finalist using development evidence only; do not open validation for each archive member. If no qualified member remains, preserve the baseline and diagnose development evidence while the independent gate remains unopened.
Keep persistent development knowledge outside every evaluated candidate bundle and the execution agent's accessible context. Link reusable failure and success patterns to native development evidence, parent/child digests, the exact change, and its accepted, rejected, or unavailable outcome. Retain rejected interventions when a candidate leaves the archive. Before proposing the same mechanism again, consult its prior evidence and diff and identify what new development evidence justifies another attempt. Never import independent-validation outcomes into this knowledge; the Pareto archive is not a WikiSkill implementation.
The runner applies its bundled authoring checks to source and staged candidate bundles before evaluation. Fix structural errors before spending calls; task performance still requires the declared native Harbor gates.
uv run <skill-root>/scripts/harbor_reflective_pareto.py <config.yaml> --dry-run
uv run <skill-root>/scripts/harbor_reflective_pareto.py <config.yaml> --doctor
uv run <skill-root>/scripts/harbor_reflective_pareto.py <config.yaml>
For already completed jobs, declare each candidate jobDirectory and add --analyze-only. The script validates native config.json, lock.json when present, root result.json, and every trial result.json.
Declare harbor.requiredRewards for verifier gates that every trial must
report and meet. Candidates with an execution error, missing required reward,
or below-threshold required reward remain in diagnostic output but are excluded
from the Pareto archive.
When a task optionally emits verifier/diagnostics.json, the analyzer reads
status, failure_domain, terminal_outcome, and error_code.
Authentication, environment, evaluator, infrastructure, and provider failures
make that trial and candidate non-evaluable and unqualified, whether declared
as the domain or an equivalent terminal/error signal. Reported scores remain
diagnostic evidence; semantic rewards, gated objectives, and aggregate
comparisons are null. Affected candidates cannot enter the Pareto archive or
pass holdout promotion. Generic Harbor tasks do not need to emit diagnostics.
Map each completed job only to the exact candidate it evaluated. If legacy jobs lack lock skill digests, treat the archive as an exploratory performance summary: it cannot prove candidate provenance or causal improvement, and it must not support promotion. Prefer live jobs created by this script. Analyze-only also retains a factual source mismatch or physical legacy alias for diagnosis, but marks it exploratory and non-promotable. Canonical-looking paths do not substitute for the exact declared candidate source.
Read pareto-archive.json and reflection-plan.json. For each child:
Increment search.generation, add the copied children, and repeat development
evaluation. Keep the Harbor task set, agent, model, attempts, environment,
and retry policy fixed. Set search.previousGenerationLog to the immediate
prior pareto-archive.json and cite at least one archived candidate as a
parent; the runner verifies the sealed profile and lineage before writing
the next archive.
Select one candidate from the development Pareto archive. Do not inspect holdout artifacts during reflection. Set selectedCandidate and developmentArchive, then run:
uv run <skill-root>/scripts/harbor_reflective_pareto.py <config.yaml> --phase holdout
Use --analyze-only only when baseline and selected holdout jobs already exist
and are declared as holdoutJobDirectory values.
The holdout command rejects an archive from another search or generation, any
development/holdout evaluation-profile drift, and any change to the selected
bundle since its skillDigest was recorded in the archive.
It also requires canonical locked provenance for the selected development and
both holdout jobs, plus an observed development job signature that exactly
matches the declared harbor.developmentJob profile.
10. Promote candidate-skill/skills/ only when promotion.json says promote and ordinary
structural validation and tests for that copied bundle also pass.
A selected candidate with the baseline's content digest retains the baseline,
even under another candidate id. The holdout command records
development/generation-NNN/baseline-retained.json with no-skill-change
before loading or executing holdout jobs, leaving that gate unopened. Continue
development with a content-changing candidate; a zero gain threshold still
permits an otherwise qualified content-changing candidate with equal quality.
The script derives case vectors from:
It rejects incomplete jobs, candidate config drift, lock drift beyond skill
provenance, missing selected rewards without an exception, mismatched case
sets, and development/holdout name or checksum overlap. It rejects zero-trial
jobs and binds every TrialResult configured task/name, agent, model, skill,
runtime setting, observed identity, attempt count, and lock entry. Harbor 0.18's
deprecated TrialResult.task_checksum dirhash and its Packager-derived
TrialLock.task.digest are distinct algorithms and must not be equated. The
analyzer binds result task IDs and configured task declarations to the
corresponding per-trial/root locks, while canonical lock comparison preserves
the durable task digests across candidates. A symbolic or omitted Git commit
and a non-digest package ref require a complete set of adjacent per-trial locks;
Harbor's root lock alone does not preserve enough information to prove which
mutable declaration produced a resolved commit or digest. Root-only association
uses the full runtime identity, allows identical duplicate locks only as exact
multiplicity, and rejects ambiguous non-identical matches. Missing required
rewards remain explicitly null and make the candidate ineligible rather than
becoming numeric zeros. Provider and infrastructure failures preserve
reportedReward, but use null for the semantic reward, affected means, and
holdout gain when the corresponding comparison is unavailable. The development
archive also seals the search id, generation, Harbor job profiles, reward/gate
policy, promotion rules, baseline digest, selected-candidate digest, and case
names/checksums reconstructed from candidateResults before holdout.
frontmatter.name. For live jobs, the runner freezes each
candidate under an isolated path whose exact basename is that logical name;
it never substitutes the arbitrary source-directory basename. Source,
staged, and Harbor lock digests must agree before results are accepted.passThreshold, required-reward thresholds,
and minimumMeanGain; reject NaN and infinity before archive construction.A development generation writes:
<output>/development/generation-NNN/
├── harbor-jobs/
├── pareto-archive.json
└── reflection-plan.json
The holdout phase writes:
<output>/holdout/
├── harbor-jobs/
├── candidate-skill/
│ └── skills/<name>/
├── promotion.json
└── report.md
After editing this bundle, run:
uv run <skill-root>/scripts/skill_authoring.py <skill-root> --require-directory-name
python -m py_compile <skill-root>/scripts/harbor_reflective_pareto.py
uv run <skill-root>/scripts/harbor_reflective_pareto.py --help
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub gvillarroel/plugins --plugin harbor12 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./harbor-metaskill-evolutionReplays and audits development ledgers and typed meta-policy snapshots bound to Harbor evidence. Use when checking lineage, utility, budgets, frozen-meta parity, or identity-specific frontiers. Performs analysis without Harbor or model calls, candidate generation, or selection./harbor-operator-coevolutionCoevolves skill candidates and mutation operators using native Harbor jobs. Use when repeated development generations need parent-to-child operator credit, evidence-bound breeding, and an independent gate for a frozen winner. Keeps private gate outcomes outside development./harbor-organize-evaluationsOrganizes Harbor studies, frozen protocols, dataset locks, split access, and ordered validation gates. Use when preparing or auditing an evaluation lifecycle, reviewing leakage, or cataloging published skill metrics. Leaves scoring and evolution to their owning skills.