update-harness
Update a project to the current canonical LLM Workbench harness without losing project-specific controls, work state, or proof.
- License 许可
- MIT
- 最近更新
- 2026-09-05
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- update-harness
- description
- Update a project to the current canonical LLM Workbench harness without losing project-specific controls, work state, or proof.
- disable-model-invocation
- true
03 SKILL.md 正文
Update Harness
Migrate one existing project to the current canonical LLM Workbench contract. Reconcile; do not overwrite. The target project's verified truth survives the template change.
Invocation
Use /update-harness [project path]. If the path is omitted, use the current
repository. Treat an explicitly requested version as the target only after the
canonical source confirms it exists.
Canonical Workbench source on this machine:
$INSTANCE_ROOT/Foundry/Halls/Forge
1. Establish authority and source truth
- Read the applicable root and project-local
AGENTS.mdfiles completely. - Verify the target repository root, branch, remote, upstream, worktrees, and dirty state.
- Verify the canonical Workbench path, branch, remote, dirty state, and current
version from its live
README.mdorBLUEPRINT.md. - Read the canonical
templates/ADOPTION.md, the current control templates, and the upgrade section in the targetRUNBOOK.mdwhen it exists.
If the active checkout is dirty or belongs to another work lane, preserve it and create a separate worktree from the target's verified staging/default branch. Never stash, discard, or absorb unrelated work merely to make the migration convenient.
Completion criterion: both source and target are verified live, the migration base is explicit, and no unrelated dirty state is at risk.
2. Inventory and baseline
List every file that steers agents or humans, including root controls,
CLAUDE.md, .claude/, roadmaps/gameplans, policy/checklist files, taskboards,
specs, and harness feedback. Classify each:
- Port: project truth that belongs in a current control file or stable spec.
- Fold: live rules that should move into the current
AGENTS.mdcontract. - Keep: project-local design, research, or operations material the harness should reference rather than absorb.
- Retire: a competing old control or queue that must become a cold archive.
Run the target's documented full verification suite before editing. Read named PASS/FAIL markers and test totals; do not trust a zero process code when the tool can print load or parse errors and still exit zero.
Completion criterion: every steering file is classified and a reproducible, green pre-migration baseline is recorded. If the baseline is red, record the existing failure and stop unless the user explicitly expands the task to fix it.
3. Reconcile the new ownership model
Compare the target's current harness with the canonical templates. Copy only the changed contract; preserve filled project-specific scope, Git rules, verification commands, product boundaries, and safety rules.
For the spec-centered Workbench:
- keep
AGENTS.mdsmall and operational; - keep cross-cutting product truth in
BLUEPRINT.md; - create stable
specs/S-###-slug/SPEC.mdcapability packets; - make
TASKBOARD.mda generated hot projection; - keep exact commands and recovery in
RUNBOOK.md; - keep
CLAUDE.mdas the thin@AGENTS.mdbridge; - preserve public setup in
README.mdand harness friction inWORKBENCH_FEEDBACK.md(legacyHARNESS_FEEDBACK.md); - copy the canonical
tools/spec-workbench.mjsexactly when the local interface is part of the current harness.
Map capabilities, not every historical ticket. Create completed specs only for durable current capabilities whose acceptance and proof are already real. Move the actual active dependency chain into active/planned specs. Preserve the old queue and proof ledger in a dated cold archive; never rewrite historical proof into cleaner claims.
Update .claude/settings.json or equivalent mechanical scope enforcement when
new specs/ or harness-tool paths become writable.
Completion criterion: every live rule and active work item has one owner, old history remains reachable, and the target has no competing active queue.
4. Stamp, render, and diagnose
Stamp every copied control with the verified target version. Remove template placeholders and stale version/path/routing language. Run the current lifecycle commands from the target root, normally:
node tools/spec-workbench.mjs render
node tools/spec-workbench.mjs doctor
node tools/spec-workbench.mjs next --json
Inspect the rendered Blueprint catalog and Taskboard projection. Confirm next
returns the genuinely eligible active slice or null for a real dependency or
owner gate. Do not manipulate status merely to make next return work.
Completion criterion: render is deterministic, doctor is green, links resolve, spec paths are stable, and selection matches the project's real gate.
5. Re-verify and prove the migration
Run the same full project suite as the baseline, plus harness-specific checks:
- the canonical Workbench evaluator when available, recorded as a diagnostic rather than product-outcome proof;
- canonical tool byte comparison when copied;
- placeholder and stale-version search;
- retired control-name and duplicate-queue search;
- control-file stamps and mechanical scope alignment;
- diff review for lost project-specific rules or accidental product changes.
Record evaluator score and missing-evidence diagnostics, but do not pad the control plane merely to satisfy keyword heuristics. Native behavior proof, doctor, and truthful selection state remain the completion gates.
Record the upgrade in a dedicated stable spec. Close it only when its acceptance criteria, proof, documentation impact, and completion result are complete. Then render and doctor again so the completed migration leaves the hot board.
Completion criterion: project results match or improve on baseline, harness checks are green, and the migration spec contains the exact evidence.
6. Publish through the target's workflow
Review the final diff and status. Follow the target's branch and integration rules. When authorized by those controls, commit and push the migration branch; open the normal review PR into its staging/default branch. Never promote to an owner-only final branch or merge a review-held PR without explicit approval.
Report:
- What changed.
- Why it changed.
- Risks or side effects.
- Pre/post verification and lifecycle results.
- Branch, commit, push, and PR state.
- The exact remaining owner gate, if any.
Completion criterion: the verified migration is recoverable remotely or the specific publication blocker is stated without claiming completion.
04 同仓库更多 Skills
writing-great-skills
Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.
update-harness
Update a project to the current canonical LLM Workbench harness without losing project-specific controls, work state, or proof.
tracer-bullet
Cut a capability into vertical tracer-bullet slices that each pierce every layer of a project's stack, then order, scope, and assign them.
to-tickets
Break an assigned Workbench spec into dependency-aware tracer-bullet tickets.
to-spec
Turn an already-settled conversation into one stable Workbench capability spec without restarting the interview.
to-docs
Route settled conversation truth into existing Workbench documentation owners without restarting discovery or creating another store.