/harbor:harbor-operator-coevolutionfrom harbor
Coevolves 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.
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 one native Harbor job per skill candidate. Rank skill candidates by absolute development fitness, credit mutation operators by improvement over each candidate's evaluated parent, breed the next operator population, and apply a separate holdout gate only after development selection.
Runtime: use uv and Python 3.12 or newer. The bundled executable pins Harbor
0.18.0. In commands, <skill-root> 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 generation zero, freeze a development dataset for candidate ranking and
operator credit plus a disjoint, optimizer-invisible validation dataset. Plan
the validation stage before evolution starts. This bundle's deferred holdout
declaration normally supplies that independent validation dataset; a study may
reserve an additional holdout afterward. Its lexical commitment may be created
up front, but neither the coevolution analyzer nor candidate author may resolve
or inspect the referenced validation inputs before the selected development
candidate and digest are frozen.
Validation is a one-way gate. Never use its rewards, task identities, diagnostics, or trajectories for operator credit, breeding, repair, candidate ranking, or reselection in the same study. If it fails, preserve the result and start a new study with fresh validation for another unbiased claim.
Use operator coevolution only when multiple distinct child realizations can support operator credit. If evidence supports one child or one repair hypothesis, use a simpler development method first. Keep candidate quality separate from operator credit: compare the child with its own evaluated parent, then inspect preserved cases and competing causes of the change.
Declare the operator-establishment threshold, evaluation budget, and stopping
rule before observing improvements. Distinct child digests and minimum trials
are lower bounds on support, not proof of independent mechanisms or causal
operator superiority. Report parent, task-family, and generation coverage when
available. Use development-chain for repeated generations and full only
for the final frozen decision; an opened gate ends the chain.
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, exact operator text and candidate changes, and their accepted, rejected, or unavailable outcomes. Retain rejected interventions when a candidate or operator is discarded. Before proposing the same mechanism again, consult its prior native outcome and diff and identify new development evidence that justifies another attempt. Never import independent-validation outcomes into this knowledge; operator lineage and ranking logs are 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.
harbor.requiredRewards, operators, and holdout before creating children.
Give every child exactly one operator and one evaluated parent.
Use at least two candidates and two operators. Every candidate is a version
of the baseline skill and must preserve its SKILL.md frontmatter name;
include at least one generated child.
Leave coevolution.complementaryRepair false for the normal fail-closed
workflow. Enable it only when an all-unqualified generation should produce
a diagnostic crossover hypothesis from complementary required-reward gates.
Leave harbor.candidateAttributableDiagnosticPolicy omitted unless the
frozen benchmark explicitly treats one of the code-owned, non-retryable
absolute-deny contracts as a candidate failure. The only current contract is
provider-context-limit.v1.frontmatter.name before Harbor sees it.uv run <skill-root>/scripts/harbor_operator_coevolution.py generation.yaml --dry-run
Dry-run does not prove that a dataset contains runnable Harbor tasks. 5. Check declared credentials and Docker when applicable:
uv run <skill-root>/scripts/harbor_operator_coevolution.py generation.yaml --doctor
Job and JobConfig APIs:uv run <skill-root>/scripts/harbor_operator_coevolution.py generation.yaml
To execute or analyze development as a terminal receipt without resolving, validating, loading, or running either holdout job, use the explicitly separated phase:
uv run <skill-root>/scripts/harbor_operator_coevolution.py generation.yaml --phase development
To keep holdout equally closed while making a normal, fully qualified and fully breedable development generation eligible to seed the next generation, use the separate opt-in phase:
uv run <skill-root>/scripts/harbor_operator_coevolution.py generation.yaml --phase development-chain
To analyze already completed native jobs without launching agents, provide
jobDirectory for every entry used by the selected phase, then add
--analyze-only. Plain development seals the selected candidate ID and
digest, marks promotion false and chainEligible: false, and does not open
the frozen holdout declarations. development-chain performs the same
holdout-free analysis but requires a qualified winner and enough established,
credit-eligible operators for a normal breeding plan; only then does its
sealed generation log record chainEligible: true. It seals the winner
separately from an opaque schema-v2 holdout declaration. That declaration
freezes the baseline ID/reference, an ID-free candidate-slot reference, and
the promotion policy; it does not predict the eventual release candidate.
The paths may be absent, and this step neither resolves nor reads their
targets. Legacy artifacts whose
source basename differs from frontmatter.name remain analyzable, but are explicitly
exploratory and can never pass promotion. A canonical-looking path that is
not the exact declared candidate source is likewise source-mismatch
exploratory evidence.
Plain development can still seal a qualified winner when fewer than
operatorSurvivors operators are established. It preserves operator ranking
and credit diagnostics but emits an empty, non-chainable breeding plan with
reason insufficient-established-operators. Full mode remains fail-closed.
When a downstream evidence publisher must report a completed development
stage regardless of qualification, use the separate report-only executable:
uv run <skill-root>/scripts/harbor_operator_report_only.py generation.yaml `
--output-dir run/report-only
It accepts immutable jobDirectory inputs only, reuses this skill's exact
classifier and ranking implementation, suppresses diagnostic/model-text
excerpts, and emits no survivor, operator credit, breeding, holdout,
promotion, or chain decision. The normal coevolution command remains
fail-closed when no candidate qualifies.
7. Inspect optional verifier diagnostic classifications, per-trial required
reward values, and qualification failures in generation-evidence.json,
then inspect candidate-ranking.json,
operator-ranking.json, breeding-plan.json, holdout-promotion.json, and
operator-coevolution-log.json. Treat every breeding-plan instruction as
the exact next-generation operator text bound by its
instructionContract; mutation and crossover plan text is not a placeholder
that may be rewritten while retaining the same operator ID.
After a successful development-chain run, point the next config's
evolution.previousGenerationLog at that log so the sealed
Harbor, scoring, evaluation, and promotion profile cannot drift. Run fresh
Harbor jobs for every newly attributed child; copying or relabeling a prior
generated-child job is not a new realization. Plain
development and repair logs are receipts with chainEligible: false, not
predecessor logs. A final full generation may follow a
development-chain predecessor: it validates the prior development profile
and breeding lineage before resolving holdout, then runs its own development
selection before opening holdout once.
When complementary repair activates, inspect repair-plan.json instead.
It is a diagnostic-only same-parent crossover/mutation proposal, not a
breeding, fitness, credit, survival, promotion, or holdout decision.
8. Promote only when holdout-promotion.json says promote. The script never
installs a candidate or replaces the source skill.
frontmatter.name: 1-64 lowercase letters,
digits, or interior hyphens, excluding Windows reserved basenames. In live
mode, never give Harbor a candidate path with a different basename.harbor.requiredRewards as a mapping from verifier reward key to a
finite minimum when any mechanical or semantic metric is a hard gate. An
empty mapping preserves the reward-only workflow.harbor.passThreshold, and holdout
minimumMeanGain; NaN and infinity never enter ranking or output JSON.null when it
is missing, and record missing or below-threshold qualification failures.verifier/**/diagnostics.json, extract status,
failure_domain, terminal_outcome, and error_code. Authentication,
environment, evaluator, infrastructure, and provider failures (including
equivalent terminal outcomes and error codes) make evaluation fitness
unavailable (null) rather than a semantic zero by default. Do not require
this optional file from generic tasks.harbor.candidateAttributableDiagnosticPolicy.contracts is an explicit,
profile-sealed opt-in to code-owned exact contracts; it is not a configurable
signal allowlist. provider-context-limit.v1 requires every diagnostics
observation to contain the exact raw tuple provider-failure, provider,
provider-context-limit, and context_length_exceeded, with one unambiguous
domain, no Harbor exception, and no nonzero configured primary or required
reward. Unconfigured audit metrics do not participate in this conflict gate. It
records an unqualified, evaluation-available candidate failure with score
zero and retryAuthorized: false. Partial matches, conflicts, transient
provider failures, and authentication/environment/evaluator/infrastructure
failures remain unavailable. This analyzer never authorizes a retry.reportedReward: null, set score and fitness unavailable, and do
not synthesize zero. Missing reward without an exception or such a diagnostic
remains invalid.coevolution.allowCaseRegressionsForCredit: true only as an
explicit policy exception.coevolution.minimumOperatorTrials as a non-compensating establishment
gate. Keep under-sampled operators and their lineage in diagnostics, but do
not credit them as established, select them as operator survivors, or use
them as mutation/crossover parents.coevolution.complementaryRepair defaults to false. When true and no
candidate passes every development gate, normal candidate/operator survivors
remain empty, no fitness or operator credit is awarded, holdout stays closed,
promotion stays false, and the resulting log is diagnostic-only and cannot
seed another generation.coevolution.minimumOperatorTrials independently to complementary
repair evidence. Repair mode never relaxes the normal establishment or
survivor gates.skillChangeCreditBlocker: no-skill-change, and keep its credited
improvement null. Such a child cannot supply an operator's required
qualified content-changing realization or count as complementary-repair
evidence; noisy gate gains are not a changed operator effect. Operator
tie-breaks count creditable comparisons, keeping raw child counts diagnostic.decision: baseline-retained, an
unopened holdout reason no-skill-change, and false promotion, including
when the selected candidate has another id. The summary gate also rejects
equal digests. A zero mean-gain threshold still permits a qualified
content-changing candidate with equal quality.evolution.previousGenerationLog.--phase development,
--phase development-chain, and an all-unqualified complementary-repair
branch return first. They retain frozen holdout declarations in the input
schema but never resolve or load them.development-chain as an explicit strict mode, not an alias for plain
development. It requires a qualified development winner and a complete normal
breeding plan. It seals that generation's winner separately and never
requires the raw holdout candidate ID to predict it. An all-unqualified,
complementary-repair, or insufficient-operator result cannot become
chain-eligible.evolution.id; require a fresh generationId, the exact prior
breeding-plan operator IDs, origins, parent lineages, and exact sealed
instruction text, plus an unchanged declared and observed evaluation profile.developmentEvidenceIdentity and its digest in every newly emitted log.
For each candidate it binds the job directory, root JobResult UUID/path/
digest, config and lock digests, and every TrialResult UUID/path/digest along
with task identity. A successor's generated children must be disjoint from
every predecessor candidate across job directories, job UUIDs, result paths,
result digests, trial UUIDs, and trial result paths/digests. Changing only an
operator label, copying a job tree, or replaying prior result artifacts fails
before holdout is resolved.selectedDevelopment (not merely another ranked
survivor). Reject partial/hybrid identity reuse. Fully disjoint fresh
reevaluations of those roots or the selected winner remain allowed. Never
apply this exception to a candidate attributed to a current operator.phase: development, requestedPhase: development-chain,
chainEligible: true, a qualified selected candidate, a normal breeding
plan, false promotion, and an unopened holdout. Validate its development
profile projection before a successor resolves holdout. Full logs, including historical receipts previously marked
chain-eligible, cannot seed a new generation after opening validation.
Missing proof of an unopened gate also rejects continuation before jobs or
output creation. Newly emitted full logs use explicit phase: full,
requestedPhase: full, chainEligible: false, holdoutOpened: true, and
promotion markers; their breeding plans are also non-chainable.holdoutUsedForDevelopmentSelection: false; its selected development record
must match the first qualified ranking survivor and skill digest. Its normal
breeding plan must be non-diagnostic and chain-eligible, with an
operatorCount equal to the length of its unique operator list. Every planned
operator must carry an exact-text-v1 instruction contract whose digest
matches the sealed instruction, and the successor must use that text exactly.development-chain predecessor to a canonical opaque
schema-v2 holdout declaration and its digest. Canonicalize the raw
jobConfig and jobDirectory path strings lexically relative to the
generation config; do not resolve symlinks, require existence, inspect, or
load either target. A successor must present the same baseline ID/reference,
ID-free candidate-slot reference, and promotion policy. Its development
winner ID may change. Only full requires the raw holdout candidate ID to
equal the current winner, immediately before resolving the frozen candidate
slot. The full log seals holdoutReleaseBinding with that ID and skill
digest, the declaration/slot digests, and the observed candidate holdout
job/result/trial identity. Development logs must omit this binding. Legacy
candidate-bound declaration v1 logs fail closed as predecessors.operatorSurvivors to at least two, and set nextOperatorCount
greater than or equal to it. Full breeding requires that many eligible
operators; plain development may seal a winner without breeding when the
observed population falls short, while development-chain fails closed.The output directory contains deterministic JSON strategy artifacts plus a
concise report.md. A normal full run writes ranking, breeding, holdout, and
sealed coevolution artifacts and explicitly marks the log as a terminal,
non-chainable full phase with an opened holdout and Boolean promotion decision.
Development-only output records an unopened
holdout. Plain development seals the selected candidate/digest with
chainEligible: false; successful development-chain seals the same
development evidence with chainEligible: true in the generation log while
the unopened holdout artifact remains non-chainable. Its evolution profile
contains holdoutDeclaration and holdoutDeclarationDigest; these commit the
future release identity without observing the referenced jobs.
If the candidate winner exists but the operator population is insufficient,
its breeding plan is diagnostic, empty, and non-chainable.
An all-unqualified opt-in run additionally writes repair-plan.json, whose
flags explicitly deny fitness, credit, survival, promotion, and holdout use.
Native Harbor jobs remain at the destinations declared by their job configs.
The report-only executable writes the same core evidence/ranking filenames but
marks them reportOnly: true, empties all survivor and breeding outputs, and
keeps holdout unopened. It is suitable for a sanitized terminal stopped
publication, never as a predecessor generation.
These checks use only the copied bundle and its declared runtime dependencies:
uv run <skill-root>/scripts/skill_authoring.py <skill-root> --require-directory-name
python -m py_compile <skill-root>/scripts/harbor_operator_coevolution.py
uv run <skill-root>/scripts/harbor_operator_coevolution.py --help
agents/openai.yaml (opens in a new tab)references/config-and-artifacts.md (opens in a new tab)scripts/harbor_candidate_diagnostic.py (opens in a new tab)scripts/harbor_operator_coevolution.py (opens in a new tab)scripts/harbor_operator_report_only.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