/foundationskills:fskills-confirm-before-launchfrom foundationskills
Gates an fs_launch_spec behind a user-confirmed plan hash. Recomputes the hash and refuses (exit 96) when the user-supplied hash is absent or mismatched, sealing a confirmation record on match. Never submits jobs or prints expected hashes.
Ships in foundationskills. 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.
None: SKILL.md is the whole skill.
Gate an fs_launch_spec behind the plan hash the user read back. The skill
recomputes the plan hash (fskills hash --spec, the same token fskills launch --confirm requires) from the spec payload and REFUSES (96) when the
user-supplied hash is absent (CB-IN-001) or does not match what is on disk
(CB-IN-002, CB-IN-003), or when the spec drifted before the confirmation record
was sealed (CB-HO-001). On a match it seals a confirmation_record with
confirmed_by: user and auto_filled: false, carrying spec_sha256
(sha256_file of the spec file) as a separate drift seal. The skill never
submits a job and never prints or fills the expected hash for a caller to copy.
fskills launch.fskills launch --confirm alone).| Field | Required | Meaning |
|---|---|---|
launch_spec | yes | path of the fs_launch_spec JSON (an artifact envelope unwrapped like cli._load_payload, or a bare payload); a relative path resolves against the workdir |
user_plan_hash | yes — the skill never fills it | the plan hash the user read back (16 hex, what fskills hash --spec prints). Absent/empty is CB-IN-001; a mismatch is CB-IN-002 (an empty string is deliberately not blocked by the schema) |
confirmation_id | no | optional correlation id, recorded in provenance |
out | no | directory the record is written into (default <workdir>/artifacts); a .json value uses its parent |
artifact_id | no | record/artifact id (default cb-<spec_sha256[:12]>) |
confirmation_record.<artifact_id>.json (artifact type confirmation_record,
written atomically): launch_spec, spec_sha256 (64 hex sha256_file of the
spec file, a separate drift seal), confirmed_hash (the user's verbatim input,
16 hex), confirmed_by: "user", auto_filled: false, plus provenance (skill
and versions, spec_sha256, timestamp).
Exit codes: 0 PASS (the record is sealed), 96 REFUSED (no record is written). This skill's exit set is 0/96: it either confirms or refuses. The recomputed hash is never echoed — only the hash the user themselves supplied is stored.
Only local, deterministic hashing happens here — no GPU is touched. The gate
stands exactly between the two CLI steps of a GB200 (or any) launch: the user
runs fskills hash --spec <spec> and reads the 16-hex token aloud; this skill
seals confirmation_record.<id>.json; then fskills launch --spec <spec> --confirm <token> is the only submission path and re-hashes the payload the
same way (require_confirmation), refusing anything but that exact token.
Submission never happens through this skill.
Any fs_launch_spec produced for FoundationScale work (training or fskills eval jobs), local/GB200/H100, LLMs of any family, any training stage, full or
adapter runs. The scope is the confirmation gate only: no planning, probing,
scoring, or submitting.
Outcome semantics (from core/contract.py, the same for every skill): an input-phase BLOCK refuses before any work - status REFUSED, exit 96, nothing written. A handoff-phase BLOCK does not refuse: the work ran, and the result is RED (exit 5), never PASS. WARN and INFO findings never block; they travel with the result. Phase by prefix: CB-IN rules are input phase, CB-HO rules are handoff phase. CB-HO-001 is detected in run, at the record seal (a drift before the seal REFUSES with 96 and writes no record), and re-checked at handoff over sha256_file; the exit set is 0 PASS / 96 REFUSED.
| Rule | Severity | Fires when |
|---|---|---|
| CB-IN-001 | BLOCK | user_plan_hash is absent or empty — launching without re-showing the hash is refused, and the skill never auto-fills it |
| CB-IN-002 | BLOCK | the supplied hash is not the plan hash recomputed from the spec payload |
| CB-IN-003 | BLOCK | the fs_launch_spec is missing, unreadable or not an fs_launch_spec (nothing to hash) |
| CB-HO-001 | BLOCK | the spec drifted on disk between the input recompute and the record seal (the second plan_hash differs); the handoff re-verify compares sha256_file with the sealed spec_sha256 |
launch_spec (CB-IN-003): nothing is hashed and nothing is sealed; give a readable fs_launch_spec.fskills launch --confirm.artifact_id) surface as refusals or the template's CORE-* RED; nothing here submits a job.Consumes an fs_launch_spec (envelope or bare payload, hashed the same way
fskills hash --spec hashes it) and emits a confirmation_record. Interfaces:
fskills hash --spec / fskills launch --confirm. It recomputes the plan hash;
never submits, never auto-fills.
Host portability (A1.5). On a host where the fskills CLI or the foundationskills package is missing, do not improvise a plan or simulate a result: report REFUSED with the install step (pip install -e <FoundationScale repo>/FoundationSkills, or run where it is installed), and report every check that could not run as UNMEASURED, never PASS.
from pathlib import Path
from foundationskills.core.contract import SkillContext
from foundationskills.skills.confirm_before_launch import ConfirmBeforeLaunchSkill
# the user read the hash back themselves; it is passed in verbatim, never computed for them
result = ConfirmBeforeLaunchSkill().execute(
{"launch_spec": "artifacts/fs_launch_spec.q27.json", "user_plan_hash": hash_read_back_by_the_user},
SkillContext(workdir=Path("work/")),
)
# 0 PASS seals work/artifacts/confirmation_record.cb-<sha12>.json (confirmed_by=user, auto_filled=false)
# 96 REFUSED writes no record and echoes no expected hash
# the pair this gate stands between: the token is for the user's eyes only
fskills hash --spec artifacts/fs_launch_spec.q27.json
fskills launch --spec artifacts/fs_launch_spec.q27.json --confirm <token the user read back>
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub trannhiem/foundationscale --plugin foundationskills21 skills in this plugin
/fs-dataUser-invoked slash command: run ONLY when the user types /fs-data; never choose it on your own. Slash-command data preparation workflow (/fs-data) that composes the model skill data_engine to turn raw data refs into a dataset, data_pipeline_spec and readiness_report. Inputs: the data_engine request fields (sources, target_format, tokenizer, chat_template_family, out_dir, requirements, pipeline, reasoning_unsupported, benchmarks, ...) passed through unchanged, plus optional goal_spec (a path recorded in outputs, not interpreted). The workflow record says which step ran, what it produced and the verdict (PASS/RED/UNMEASURED). Do NOT use for explaining fskills results (use /fs-status), fixing data problems yourself, or training a model (use /fs-training): this composes data_engine and produces data artifacts only./fs-evalUser-invoked slash command: run ONLY when the user types /fs-eval; never choose it on your own. /fs-eval is the A3.2 user-invoked workflow skill: it takes the evaluation request (checkpoint, run_manifest, base, benchmarks, policy, eval_cache, out, baseline_cache, ...) and forwards it UNCHANGED to the ONE composed model skill `evaluation`, run through foundationskills.skills._workflow, then writes one workflow_record {workflow, steps, outputs, verdict} whose outputs name the eval_report BY PATH. Outcome mapping (PASS 0 / RED 5 / UNMEASURED 95 / REFUSED 96): inner REFUSED -> FE-IN-002 REFUSED; inner RED -> FE-HO-001 RED; inner UNMEASURED -> FE-HO-002 UNMEASURED (never PASS). Do NOT use for fixing a regression, running a bare lm-eval harness or judging launch-readiness: /fs-eval records the evaluation verdict, it never repairs a benchmark or tunes a policy./fs-goalUser-invoked slash command: run ONLY when the user types /fs-goal; never choose it on your own. Grilling composer (/fs-goal) for one FoundationSkills goal_spec: takes the intake answers so far ({objective, goal?, domain?, preserve_general?, base_model {name_or_path, size_b?, arch?}, sources [{uri, kind, ...}], hardware {gpu, gpus_per_node, nodes}, data_facts {has_verifiable_answers, has_pairs, has_instructions}, rl_algorithm?}), asks ONLY for the facts intake.missing_facts still names and then one confirm question, and writes one goal_spec artifact only when the frontier is empty AND confirmed is true. Do NOT use to plan, train, launch, fix or explain a run: this skill only collects and confirms intake facts (fskills-training plans). Side-effect free: composes and invokes nothing (invokes is empty) and writes only its own goal_spec./fs-handoffUser-invoked slash command: run ONLY when the user types /fs-handoff; never choose it on your own. Slash-command closer (/fs-handoff) for a FoundationSkills session: takes this session's artifact JSON paths, optional notes and next_steps and writes ONE handoff artifact that references every artifact BY PATH ({path, type, id, sha256}, payload never copied) with notes and next_steps redacted of secrets (sk-, ghp_, AKIA, Bearer, NAME=KEY/TOKEN/SECRET/PASSWORD values) and PII (email, phone, credit_card, ssn, national_id). Do NOT use for re-running a skill, fixing findings or deciding what to run next: it hands a session off, it does not act./fskills-auto-researchManages a hash-chained auto-research campaign (M0): validates the campaign spec, opens one human approval envelope (campaign_confirm hash), authorises launches with derived tokens, records immutable trial results, proposes ideas from the ideas catalog and closes with statistical acceptance against a calibrated noise floor (guardrails, keep/discard/crash TSV view) writing auto_research_report. Do NOT use for single training runs (fskills-training), nor for evaluation alone (fskills-evaluation). M1 submits emitted trials (`envelope`/`submit`/`cancel`) behind the envelope budget gate and the IMEX fabric probe./fskills-compressionModel compression and quantization of a HF checkpoint (v1 method: RTN weight-only quantize-dequantize, int4 or int8, group-wise). Use it to preflight a host for compression (vendored preflight.py; classifies FAIL, UNKN and PROBE_ERROR results), to plan a probe-first run that emits an fs_launch_spec running rtn_worker.py on one GPU (launched only with the plan hash the user types back), and to verify the measured perplexity ratio (harness A vs B instrument certification, no-op check) against a pre-registered budget into a compression_report. Also route here any GPTQ, AWQ, NVFP4, MXFP4, FP8, modelopt, llm-compressor or quantized-speedup request: this skill answers it with a deferral refusal (CP-IN-003). Do NOT use for serving a checkpoint, already-quantized ones included, or asking whether it fits the serving envelope (fskills-deployment), LoRA merges (fskills-merging), benchmark accuracy suites (fskills-evaluation) or fine-tuning (fskills-training).Other plugins' skills for the same job