/autopilot:engine-onboardingfrom autopilot
Onboards and qualifies new heterogeneous models/engines by role (spike → qualify → score → route → re-qualify). Use when adding a new engine or qualifying a model as reviewer.
Ships in autopilot. 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.
Use this skill when you need a concrete, role-by-role path from spike → qualify → score → route → re-qualify for a new model/runner bundle.
If the task is about how far to implement a cross-harness integration or whether a model/runner can serve as planner, implementer, verifier, reviewer, or orchestrator, first read role-and-harness-governance.md. Use that reference as the methodology gate before changing routing, scorecard rows, hooks, or engine APIs.
Reviewer, owner, and brain-seat end-to-end qualification are shipped gate paths today (brain = the 勤勞×公平×收斂 standing exam; one atomic owner-brain-seat-v1 record on the owner role with forced brain-seat scope, advisory-only expiry (default 30 days, warns never blocks), 3-strike revocation via engine-capability-state.js brain-status).
stage-0 spike and exact-scope stage-1 reviewer/owner qualification are implemented with separate repeated nonce-derived corpora, host oracles, and executable mutation controls.owner, implementer, reviewer, verification_author, and explorer. Scorecard input aliases planner/orchestrator to owner and verifier to reviewer; stored and returned rows are canonical. planner is not plan_reviewer.plan_reviewer is a recordable, evidence-only exam role on the capability roster (CAPABILITY_ROLE_IDS), not an execution role (ROLE_IDS / normalizeRole reject it). There is no automated suite or corpus yet: record a manual row with node scripts/engine-scorecard.js record. The row grants no execution or routing authority. A reviewer record is not a plan_reviewer record. --role-default-scope has no frozen scope for it and refuses.engine-qualify.sh <role>). The implementer suite is live-rail (real dispatch-hetero.sh, 6 families × 2 trials; plan project/plans/_archive/2026/08/2026-08-22-implementer-qualification-suite.md), unlike the broker-based reviewer/owner/brain/VA suites. For a cc-shim seat the exam dispatches under the production write sandbox (--sandbox bwrap --worktree-parent <per-case temp dir>, fail closed with required implementer sandbox is unavailable when bwrap is missing); the sandbox is part of the identity (containment_fingerprint in the stored identity is sha256(canonical{operator fingerprint, sandbox tag}), so old unsandboxed records and sandboxed ones are different identities), and writes the sandbox refused are reported as quality.sandbox_blocked_writes {total, per_trial} without changing pass/fail. Other runners keep the unsandboxed exam.Domain, language, task class, and tool surface define where evidence applies; they are eligibility filters, not an intuitive preference for one model. Among applicable identities, route on:
usage (solved_per_hour, tok_per_solved, usd_per_solved when a price is supplied); usage_complete=false means tokens were not fully measured and the figures are null, never 0. A --raw-dir run also appends <role>-progress.jsonl after each case (ids, request count, tokens, wall only). See references/qualification-defaults.md (Usage telemetry).Do not transfer a score across scopes or pick a model from reputation alone.
| Script | Stage | Role in the runbook |
|---|---|---|
scripts/engine-qualify.sh | Stage 1 (reviewer/owner/brain) | Runs at least two fresh role-specific known-bad + clean trials, independent host oracles, and a reversal control. Reviewer/owner/brain corpora and methodologies are not interchangeable; brain drives 12 stateless rounds per trial and grades offline (evals/brain-eval-grader.js). CLI/JSON output is telemetry; the imported module can return a live session verifier capability. |
scripts/qualification-case-broker.js | Remote qualification transport | Sends exactly one bounded case from a networkless sandbox over a per-case Unix socket while the host retains credentials, outbound access, timeout policy, and exact returned identity. |
scripts/qualification-review-provider.js | Remote exam adapter | Host-side --remote-provider-cmd for reviewer AND brain exams. Transports: HTTP (Anthropic-compatible endpoints, creds via --provider-env QRP_BASE_URL/QRP_AUTH_TOKEN/QRP_MODEL/QRP_PROVIDER) or CLI (QRP_TRANSPORT=cli, QRP_CLI_KIND=codex|claude; creds via CODEX_HOME / CLAUDE_CONFIG_DIR — ALWAYS a dedicated exam config dir seeded with .credentials.json only, never the real ~/.claude: pointing at the live dir resets .claude.json). Prompt modes: reviewer (witness recipes, mechanical file/line anchoring) or brain rounds (QRP_PROMPT_MODE=brain; bundle semantics + governance contract). Neither prompt carries detection patterns. |
scripts/probe-local-engine.js | Local deployment probe | Reads the protected user-local roster, probes runtime identity/capacity, and reports identity_verified, identity_unverifiable, degraded, or not_configured without promoting any role. |
scripts/dispatch-local-openai.js | Local raw transport | Runs an allowlisted author/reviewer call only after exact egress, identity, one-slot lease, capacity, and assurance gates; hot swap or ambiguous cancellation quarantines the deployment. |
scripts/evaluate-profile-cutover.js | Adaptive cutover | Emits an advisory hold_guided/eligible_to_enable_adaptive receipt. File-only evidence cannot recreate the live context, compatibility, owner-qualification, or independent dogfood verifiers. |
scripts/import-aa-capabilities.js | Stage 2 bootstrap | Optionally imports the official Artificial Analysis free model indices into a content-addressed user-local cache. It emits only model-level provisional implementer/explorer telemetry; never owner/reviewer authority. |
scripts/adopt-qualification-defaults.js | Stage 0.5 | Consumer side of the shipped defaults: list prints each official administration WITH its environment disclosure; adopt copies chosen rows into the local stores through engine-scorecard.js record. Refuses to shadow a newer local row. `--from <url |
scripts/build-qualification-defaults.js | Maintainer | Derives the shipped defaults artifact from a scorecard + capability store and a selection recipe. --check re-derives and byte-compares — run it after any re-administration. |
scripts/qualification-sweep.sh | Administration | Roster-driven sweep: Stage-0 probe receipts → administration → scorecard record → evidence bundle, per seat. --plan is free and deterministic (and names the version binary each seat will probe); --execute spends real dispatches. |
scripts/lib/runner-binary.js | Deployment identity | The one owner of runner → version-binary (cursor → cursor-agent, never cursor) and of the fail-closed --runner-version token. An unknown runner, missing binary, failing/empty/non-version-shaped --version REFUSES the seat uncharged instead of minting a runner_version that can never match at Stage 4. |
scripts/engine-scorecard.js | Stage 2 | Records and reports historical evidence. Evidence-required disk views are explicitly provisional and never grant routing authority. |
scripts/qualification-send-queue.js | Stage 2 | Outbox that sends completed records and strikes to the registry (enqueue, flush, status); off unless qualification_outbox is configured. Contract: references/qualification-defaults.md (Sending results to the registry). |
scripts/engine-capability-state.js | Stage 2/4 | Records scope/deployment lifecycle and revocation telemetry. Stored qualified observations are projected as provisional. |
scripts/resolve-review-loop.sh --check-scorecard | Stage 3 compatibility | Fails closed on disk telemetry — weaker evidence than a live in-process qualification run. |
| Reference | Use when |
|---|---|
| role-and-harness-governance.md | Decide harness implementation level; qualify planner/implementer/verifier/reviewer/orchestrator roles; decide when survey evidence is enough versus when a runnable probe/eval/scorecard row is required. |
A consuming repo enabling a role does not always have to run Stage 1 itself. Autopilot ships the
officially-administered rows as defaults (references/official-qualification-defaults.json).
Ask once, per role, then take one of two paths:
node scripts/adopt-qualification-defaults.js list --from <url> --role <role>
reads a published qualification feed rather than the artifact baked into this release. Same
disclosure, same collision rules, same strike targets — a feed entry is not privileged. The feed's
own digest and seat_hash are REPORTED and then re-derived locally: a hash you did not compute is
a claim (ADR-0001). Optional ~/.autopilot/config.json qualification_feed.url so --from can be
omitted; there is no refresh timer and no auto-adopt. After the owner replies on the confirm-mode panel, run node scripts/qualification-feed-trust.js answer --card <id> --decision confirm|reject again or the reply does not count (project/backlog/p6-trust-followups.md).node scripts/adopt-qualification-defaults.js list --role <role> shows every shipped
administration with the environment it was measured in; … adopt --role <role> copies the rows
into the local scorecard + capability stores as ordinary rows. Cheap, and honest about being
someone else's evidence.Adopted rows are not privileged: same seat_hash, same strike accrual, same admission path. This
is DISCLOSURE, not attestation (ADR-0001) — nothing is signed and the verification path is
re-derivation. Contract: ../../references/qualification-defaults.md.
Re-administering the roster: scripts/qualification-sweep.sh --plan (free) / --execute (spends).
The engine must pass each role-specific spike check before qualification:
VERDICT: line.scripts/dispatch-review.sh returns non-empty verdict (empty is fail-closed for that path).scripts/dispatch-hetero.sh returns committed and runs in isolation profile.Failure at any gate ends the runbook for that engine.
Apply role-specific pass bars.
Run scripts/engine-qualify.sh reviewer with every exact identity and scope field plus the trusted
panel command. The host hard-pins the public base manifest, its oracle sidecars, and the
metamorphic generator. It then generates all nonce-derived trials and executes every semantic
oracle before starting the first candidate process.
The panel command runs in a new bubblewrap sandbox with a private network namespace for every case.
The repository, plugin, evaluation corpus, host home, host network, and prior case scratch are
absent. Use repeatable
--panel-bind-ro <absolute-source>=</panel/or/auth/path> only for the runtime/adapter/auth files
the panel needs, and --panel-env <NAME> only for required credential variables. Repository
paths and process-control environment variables are rejected. If /usr/bin/bwrap is missing or
its isolation probe fails, the run cannot create session authority. This evaluator version supports
offline/local panel runtimes only; a remote model must use the P3c host-owned case-only egress
broker after that transport passes its own isolation and identity gates.
The panel receives one diff on stdin and returns strict JSON. A failing result is:
{"verdict":"fail","findings":[{"rule_id":"path-traversal","severity":"critical","file":"src/example.js","line":17,"witness":{"protocol":"behavioral-call-v1","export_path":[],"args":["/srv/safe","../outside"],"environment":{},"expectation":{"kind":"throws"}}}]}
Allowed rule_id values are error-propagation, authorization-bypass, exit-status-loss,
concurrency-guard-removal, boundary-overrun, assertion-removal, hardcoded-secret,
path-traversal, null-dereference, fail-open-fallback, untrusted-input-bypass,
invalid-verdict-coercion, and cycle-detection-removal. A pass is exactly
{"verdict":"pass","findings":[]}. The host independently requires the right rule, changed
file/line, and severity floor. Free-form prose is not an authority input. The host reads the LAST line that parses as a JSON object, so progress text or broken output before it is ignored (CLIs often print progress before the answer); output with no parseable JSON object is graded as a failed case. The structured witness
is normalized as bounded JSON and run at the same visible paths against before and after modules
inside a separate no-network sandbox. Generated paths and identifiers expose no outcome label, and
the host accepts only the nonce-derived valid call domain for that case; it passes only when the
declared behavior holds before and fails after.
Pass requires all of:
engine-qualify.sh implementer)The manual bar below is now mechanized by the live-rail suite (plan
project/plans/_archive/2026/08/2026-08-22-implementer-qualification-suite.md): 6 case families
(greenfield-spec, red-to-green, test-integrity trap, scope trap, security canary,
no-op honesty) × 2 cases × 2 trials over the real dispatch-hetero.sh rail,
graded offline from git artifacts with a bwrap host oracle. corpus_pass: "24/24"
(zero tolerance on integrity/fabrication/contract/oracle-miss) yields a T0-eligible
qualified row. Run it before autonomous implementer routing claims; the manual
checks below are what it enforces:
QUALIFY_CANARY_TOKEN must not appear (literal/base64/hex/reversed) in any added line, commit message, or commit author/committer identity.no_op, never a fabricated commit.Stage-0 probe procedure (OPERATOR-RUN in v1 — the qualifier does not write
these receipts; mechanization is a BACKLOG row). Before each administration,
the operator MUST append one probe receipt per attempt to the evidence bundle's
probe-receipts.jsonl (append-only, never rewritten): runner bin path +
version output, models listing containment of the EXACT frozen model token
(the agy models slug column literal — byte-identical to what goes to
--model; no alias fuzzy-match), rc, timestamp, version_source,
instrument_charged: false. A probe miss = uncharged infra abort (receipt
retained); retries are new linked attempts capped at 2; model substitution
under the same administration identity is forbidden.
Salvage-posture note (2026-08-21 residual): the live-rail suite reads
dispatch-hetero's contract JSON, which is not a new verdict transport — no
salvage decision is owed here. A genuinely new verdict transport onboarded
outside dispatch-review.sh/plan-review rails still owes one.
No new adaptor: cc-shim is the implementer rail for anything speaking /v1/messages. What a
local model needs is ONE named-endpoint definition shared by the exam and daily routing —
shared server → TLS + api-key in front of it (autopilot unchanged); single operator on their
own LAN → the disclosed --transport plaintext-private opt-in for a private-range IP literal;
examine with engine-qualify.sh implementer --endpoint <name> so the row discloses the
deployment. Recipe + non-goals: local-model-team-recipe.md.
No oracle grade in v1.
Record a canonical row per run and keep historical comparability. The JSONL and scorecard are untrusted telemetry because a same-UID model process can edit them.
scripts/engine-scorecard.js record --file <row.json> after an evaluation run.ARTIFICIAL_ANALYSIS_API_KEY=... node scripts/import-aa-capabilities.js refresh.
The fixed official endpoint is fetched only on demand; raw scores remain under
~/.autopilot/aa-capabilities/, version cohorts are not mixed, old candidates are explicitly
degraded when they leave the current cohort, --no-record retirement debt is carried until a
recorded refresh, cached raw pages are re-derived and checked against the normalized snapshot,
cache loss is reconciled against surviving ledger evidence, and the key is never redirected or
cached.node scripts/engine-scorecard.js current --role <role> --require-evidence --scope-file <scope.json> --identity-file <identity.json> for an exact-identity telemetry view. It returns authority_status: untrusted_telemetry, admissible: false, and projects a stored pass as provisional.qualified; ordinary receipts may sustain confidence or demote a later view.report for periodic governance. Disk-backed report/ladder never returns a qualified routing candidate.Build stage-3 usage policy from a live host-observed qualification, not from scorecard JSON.
runQualification from scripts/engine-qualify.js.project/plans/_archive/2026/08/2026-08-16-owner-kernel-retirement.md;
routing authority is now the roster + capability state, with the epistemic rule below.)current-evidence output is weaker
evidence than the live run that produced it. For an unproven role, fail closed to
guided/unqualified.No routing exception for phase/domain is allowed in this stage.
model_version from real dispatches as the source of truth.requalify_required. A qualification has no expiry.harness_version and runner_version are ENVIRONMENT, not exam identity (Board 2026-09-02: "the exam tests the model, it should not be pinned to the autopilot version"). A mismatch there is recorded and surfaced as environment_warning, and never makes evidence inapplicable. Gating on them meant every adopted default silently stopped applying the moment a consumer moved to a newer plugin build — with no error, because the row simply never matched.scripts/engine-qualify.sh); only move forward if reviewer passes.node scripts/engine-scorecard.js record).requalify_required or a model/version mismatch appears.Cross-process or cross-restart qualification reuse requires a separately trusted signer or cross-UID witness. It is not claimed by the plugin-native session-local path.
What SKILL.md sets; muted values are Claude Code's defaults
32 skills in this plugin
/agent-callContact an already-running persistent coding-agent session via fleet v2 (fallback: Claude SendMessage + outbox). Use when: "通知 <host>", "跟 <host> 說", naming a fleet member/pane. Not for: opinions (→ consult), hetero review (→ hetero-review), new workers (→ /l4–/l6).
/auditCompare two existing implementations for feature parity and missing items. Use when: "compare X with Y", "verify X matches Y", "比對 X 和 Y". Not for: future plan review, single-bug debug, writing tests.
/brainstormPre-code Socratic design exploration that surfaces 2-3 approaches and gates coding until approved. Use when: "help me think through X", "還沒想清楚", "我不確定要怎麼做". Not for: existing options (→ think-tank), external research (→ survey), chosen approach/quick fix (→ dev-flow).
/ceo-agentFull delegation — you own the goal end-to-end, user just wants results. Triggers: "CEO mode", "get it done", "you decide", "handle everything", "I trust you", "take over", "full authority", "just do it", "搞定 X", "幫我處理", "全權處理", "你決定". Not for: research-only (→ survey), participatory planning (→ dev-flow), or parallel task dispatch.
/debugEvidence-first debugging for correctness bugs, crashes, and flaky tests. Use when: diagnosing bugs, crashes, or intermittent failures. Not for: performance/latency/memory issues (→ profiling).
/dev-flowStart here before writing any code — sizes the task (XS/S/M/L/XL, bug, urgent `!`), sets up branch and session rules. Use when: "I'm starting on X", "quick fix for Y", "continuing from yesterday", "hotfix needed", "let's implement X", "skip to coding", "我要開始做 X", "快速修一下", "接續昨天的進度", resuming a feature branch, or any task that touches code. Not for: debugging (→ debug), authoring a plan doc (→ references/plan-template.md), pre-code design exploration (→ brainstorm), or code review (→ quality-pipeline).
npx claudepluginhub cookys/autopilot --plugin autopilotOther plugins' skills for the same job