/loom-skill-enhancement
Upgrade or create a target skill through the published Loom Skill Orchestrator (so) workflow. Target-skill delivery is the business result; runtime checks are supporting evidence.
Mandatory Reading
Execution contract: runtime acquisition, file and payload rules, workflow identity, compile/run/resume, version-semantic probes, and runtime modes.
Runtime semantic migration: the verified 0.3.282 emitter matrix, producer rules, gov4 reachability, migration procedure, resume shape, and Windows tooling constraints. Read only the reference needed for the current stage:
Execution contract: runtime acquisition, file and payload rules, workflow identity, compile/run/resume, version-semantic probes, and runtime modes.
Review and evidence contract: guide assets, workflow design, batch review/repair, required outputs, audit delivery, and completion evidence.
Plain-language feedback: required user-facing wording, term mapping, and examples.
SO skill reference: exact-runtime guide/schema/demo reference pack and package behavior.
Mermaid artifact delivery: verified Mermaid and HTML output handling.
Shared terminology authority:
../../../docs/en/architecture/workflow-terminology.md.
Runtime Binding
- Current published SO package runtime version:
0.3.288. - This block is refreshed by the publish workflows whenever SO package versions change, so the skill contract stays aligned with the latest published stable package set.
assets/so-workflow/so-package-lock.jsonis the exact-version authority and checked-in lock reference target. Derive the channel from that version; do not ask the user to choose it.- The platform resolver owns runtime mode, RID, package identity, executable, cache, and launch path. Do not persist those values in skill-owned state.
- Released and beta package indexes are
reference/packages.released.mdandreference/packages.beta.md. - Migration script playbook: path-safe migration entry points, producer boundaries, dry-run behavior, and repeatable fixture checks.
Non-Negotiable Entry
Every enhancement pass must first prove that the skill-bound published Loom Skill Orchestrator runtime is runnable.
- Create a fresh external workflow copy and preserve one
caseId/runIdlineage. - Preflight the exact published runtime according to the execution contract. Stop on failure.
- Ask the platform-aware resolver for
runtime_launch_descriptor_ref. Use that descriptor to generate the requested VS Codemcp.jsonand Claude.mcp.jsonthrough the selected runtime, then try MCP registration, handshake, andso_inspect_workflow_fragmentagainst the same external workflow copy. - If MCP cannot be provided before successful command dispatch, use the same descriptor for the bounded
inspect-workflow-fragmentCLI backup and record one allowed fallback reason. An MCP application or command failure after startup remains a failure. - Use the same descriptor for the fresh
--guideoperation, then collect downstream inputs, plan, author, validate, compile, run, or resume.
Workflow Procedure
- Classify the target as new or already Loom-governanced; lock the requested target-skill deliverables.
- Enter plan mode before editing target-skill deliverables. Build the bounded reference pack and per-run plan under
<execution-output-root>/plan/. - Analyze inputs, outputs, nodes, branches, loops, ownership seams, gates, and concrete evidence producers.
- Generate or revise the workflow JSON through
assets/agents/loom-skill-enhancement-workflow-designer.agent.md; keep JSON as authority and Mermaid as presentation. - For independent checks, build one shared bounded context, run complete
ConcurrencyStrategy.Allbatches, aggregate once, repair once, and revalidate as described in the review contract. - Run exact-runtime compile. Treat compile as structural evidence only.
- Run the exact external workflow copy through public
runand every requiredresumeuntil finalDone. Never claim completion from compile, a blocked payload, local orchestration, or a different workflow copy. - Verify target deliverable changes, event/audit records, output-family values, Mermaid/HTML paths, and the completion manifest.
Semantic Drift Gate
A runtime version change is both a contract change and an execution-semantics change.
- Before target edits or batch execution, run inherited and replacement variants of a minimal three-node fixture on the exact selected runtime. The replacement must reach final
Donewith expected non-empty context values. - The released
0.3.282matrix is emitter-specific: literalupdateson plainToolCall/noopare inert;StateUpdate/MemoryWritewrite declared updates; realecho/write-fileresults and proven external resume projections may use$resultafter probing. Do not use a declaredoutputPathor same-transition$contextbinding as self-proof. - Run the gov4 probe for producer-before-branch/cycle consumers. Ignore a DFS back edge on the first pass, reject producer-on-only-one-branch joins, and keep governed and ungoverned dataflow rules separate. Record unknown behavior instead of guessing.
- For repeated target patterns, run an idempotent dry scan before migration. Auto-convert only unambiguous
ToolCall/noopliteral-write shapes toStateUpdate/state.update; report ambiguous bindings and unknown emitters without inventing$contextproducers. - Inspect blocked transition
requiredInputsbefore every canonical resume. Required sibling fields stay at the payload top level; only the declaredresumeOutputKeyis projected from the payload. - Final validation must return non-empty
runtime_semantic_probe_evidence,batch_migration_evidence, anddecision_evidence_manifest.
The detailed fixture, payload, manifest, and evidence requirements are in the execution contract and runtime semantic migration reference.
Core Governance
- Workflow-owned schema and control metadata are English; user/business payloads and localized presentation retain their source/request language.
- All CLI file inputs are complete, closed, path-only files. Keep mutable plans, runtime copies, events, audit output, and decision evidence outside the skill bundle.
AskUserrequests only user-owned decisions or values. Runtime-owned facts and artifact paths use runtime-owned continuation.- Every next step must pass its boundary check on the same external copy; owner-crossing steps also require explicit approval or structured continuation.
- Direct edits to a running workflow copy are blocked-state-only, explicitly approved, minimal emergency workarounds followed immediately by normal SO compile/run/resume.
- Never hide a visible multistep plan inside one node. Named local
.agent.mdfiles are the authoritative subagent contracts. - Write assumptions, corrections, decisions, probes,
events.jsonl, and audit references under<execution-output-root>/evidence/; conversation text is not execution evidence.
Stable Assets
assets/so-workflow/so-template.jsonassets/so-workflow/so-package-lock.jsonassets/so-workflow/restore-so-runtime.ps1assets/so-workflow/node-to-file-map.mdassets/so-workflow/governance-notes.mdassets/so-workflow/reference/document-copy-manifest.json- Workflow designer subagent:
assets/agents/loom-skill-enhancement-workflow-designer.agent.md - MCP-first startup subagent:
assets/agents/loom-skill-enhancement-mcp-startup.agent.md - Reusable weave-out and review subagents:
assets/agents/loom-skill-enhancement-skill-markdown-gap-review.agent.mdassets/agents/loom-skill-enhancement-package-lock-gap-review.agent.mdassets/agents/loom-skill-enhancement-workflow-governance-gap-review.agent.md- Re-enhancement strategy reviewer:
assets/agents/loom-skill-enhancement-reenhancement-conflict-judgment.agent.md assets/agents/loom-skill-enhancement-weave-out-subagent-fit-review.agent.mdassets/agents/loom-skill-enhancement-review-fix-loop.agent.mdassets/agents/loom-skill-enhancement-review-findings-aggregator.agent.mdassets/agents/loom-skill-enhancement-scope-input-output-analysis.agent.mdassets/agents/loom-skill-enhancement-route-gate-analysis.agent.mdassets/agents/loom-skill-enhancement-evidence-node-map-analysis.agent.md
Completion
Completion requires all of the following:
- requested target-skill files were created or modified;
- exact published runtime preflight, MCP registration attempt, either MCP or descriptor-driven CLI fragment evidence, and fresh guide evidence passed;
- exact-runtime semantic probes and batch migration evidence passed where applicable;
- one workflow-copy lineage reached final
Donethrough publicrun/resume; - review, repair, post-fix validation, boundary checks, event log, audit artifacts, and durable decision evidence are readable;
- the runtime-owned completion manifest references existing evidence rather than self-certifying missing proof.
The package lock metadata splits into a checked-in lock reference target, resolved runtime bundle version/channel evidence, and a runtime-owned completion-manifest reference to the checked-in lock asset. The checked-in skill-markdown governance outcome likewise carries a runtime-owned completion-manifest reference to that checked-in source asset.
Use the review and evidence contract for the complete output checklist and the plain-language contract for user-facing completion or failure text.