Structured contract copied for validation or lookup.
- Purpose
- Carry the required implementation-contract shape into skeleton construction.
Build a gxformat2 skeleton from a reviewed Workflow Brief and its Galaxy design briefs, consulting retained source evidence.
Every file beside index.md is one the mold kind declares.
target-specific fields are coherent.
Abstract oracle: the properties any cast of this Mold must satisfy.
eval.md declares properties and check type.
eval.md ↗Concrete cases bound to fixtures, run against the eval properties.
scenarios.md not written yet.
14 typed references; 0 resolver issues.
All on-demand references describe triggers.
Hypothesis references include verification.
Typed references describe what casting consumes, and when the generated skill should load each artifact.
Structured contract copied for validation or lookup.
Background synthesis loaded by explicit progressive-disclosure metadata.
Structured contract copied for validation or lookup.
Command reference. Usually cast to a sidecar and loaded only when invoked.
Background synthesis loaded by explicit progressive-disclosure metadata.
Background synthesis loaded by explicit progressive-disclosure metadata.
Background synthesis loaded by explicit progressive-disclosure metadata.
Background synthesis loaded by explicit progressive-disclosure metadata.
Background synthesis loaded by explicit progressive-disclosure metadata.
Workflow-construction idiom. Copied verbatim.
Workflow-construction idiom. Copied verbatim.
Workflow-construction idiom. Copied verbatim.
Workflow-construction idiom. Copied verbatim.
Background synthesis loaded by explicit progressive-disclosure metadata.
gxformat2 draft (see [[galaxy-workflow-draft-format]]): topology fully resolved (workflow inputs, outputs, step set, edges); tool_id / state / tool_shed_repository and wrapper-determined port names may be TODO with free-text _plan_state / _plan_context / _plan_in / _plan_out per step for later implementation Molds.
Carried obligations ledger re-emitted by this step: entries it appended or closed updated, every other entry passed through with its provenance intact.
Inputs sharing a role are alternatives — one producer satisfies it.
Expert-reviewed implementation contract governing scope and requirements.
Optional narrative source evidence retained from brief production; consult it for source-backed detail within the selected scope.
Optional structured Nextflow source evidence; source processes and channels are evidence, not a Galaxy topology mandate.
Galaxy interface brief from [[workflow-brief-to-galaxy-interface]] that pins workflow inputs, outputs, labels.
Galaxy data-flow brief from [[workflow-brief-to-galaxy-data-flow]] that pins abstract operations and collection choices.
Structural diff guidance from [[compare-against-iwc-exemplar]] (run on the design brief); steers the skeleton toward IWC-aligned structure before per-step authoring. Carries an inline gxformat2 excerpt of the nearest exemplar.
Cleaned gxformat2 view of the nearest IWC exemplar's relevant subgraph from [[compare-against-iwc-exemplar]]; pattern-match the draft's input/collection shapes, map-over wiring, output promotion, and post-job actions against this concrete idiom. Absent when no nearest exemplar was found.
Carried obligations ledger [[open-requirements-ledger]]: the run's open, resolved, and surrendered entries with their provenance. Absent on the first Mold of a run; start an empty one.
Read the unchanged Workflow Brief and its Galaxy interface and data-flow briefs. Consult the original source artifact and retained freeform-summary or summary-nextflow when present. Emit a gxformat2 skeleton with workflow inputs, workflow outputs, placeholder steps, rough connections, and TODO slots for later implementation Molds.
The Workflow Brief is the implementation contract. Source artifacts are an evidence dossier: use them to substantiate methods, formats, parameters, and named tools within the selected scope, never to reintroduce excluded work or override expert requirements. A hand-authored brief without a source summary remains a valid input; record consequential missing evidence in the ledger instead of inventing it.
Topology is this Mold’s job to settle. The output must be concrete gxformat2: workflow inputs with their final collection shapes and formats, workflow outputs, the step set, the producer→consumer edge graph, branches, and when: guards are all decided here. The upstream Workflow-Brief-to-Galaxy interface and data-flow briefs guide those decisions, but if they hedge or leave a topology choice open, this Mold makes the call from reviewed intent, source evidence, IWC exemplars, and pattern pages — never emit a topology TODO. Wrapper resolution, by contrast, is evidence-gated, not source-gated: resolve each tool step to the tier its evidence supports — Resolved (fully concrete, no _plan_*), Identity-pinned (concrete tool_id, parameters and changeset left to the per-step Mold), or Deferred (tool_id: TODO) — as defined in galaxy-workflow-draft-format. Capture whatever you defer in the _plan_* family (_plan_state, _plan_context, _plan_in, _plan_out) so the per-step Mold has the source evidence and constraints it needs.
Evidence tendency: narrative sources name tools less often than structured pipeline summaries, so their steps land in Deferred more often — but source evidence that names a specific tool/version can harden to the matching tier, and a corpus-confirmed utility wrapper is not deferred merely because the source is informal. When deferring a domain tool, cite the originating paper section, interview answer, pipeline location, figure, or supplementary table in _plan_context, and record vague intent in _plan_state so the per-step Mold knows the evidence ceiling.
Before handing off, sanity-check that each step is computable from what feeds it. Once the step set is settled, re-read it and ask, for each step, whether the operation its intent implies can actually be produced from the inputs you wired. The connection graph only knows that ports connect — not what each port is supposed to contain — so an output that needs evidence no input carries will validate fine and still be impossible to implement. Where you spot that gap, don’t leave it implicit: wire (or add) the step that supplies the missing input, or record the unmet need plainly in _plan_state so the per-step Mold or a reviewer can act on it rather than discover it late.
Things worth a second look:
_plan_* promises more than its in: ports can supply;Optionally, once topology is settled, group the step set into titled stage frames via the gxformat2 comments: array (one frame per analysis stage, contains_steps: populated, color decorative) — see galaxy-workflow-comments for the convention.
Before handing off, check each settled step is computable from what feeds it. The connection graph knows that ports connect, not what they carry — so a declared output that needs evidence no wired input supplies will validate yet can’t be implemented. Where you find that gap, wire (or add) the producer; if you can’t, record the vague intent in _plan_state and append a blocking entry to the open-requirements-ledger naming the step, the uncomputable output, and the missing evidence, so the per-step loop or repair-galaxy-draft-topology acts on it rather than discovering it late.
Output shape is gxformat2 with wrapper-tier relaxations and _plan_state / _plan_context / _plan_in / _plan_out per tool step — see galaxy-workflow-draft-format. Refinement open work for those planning fields lives in refinement.md.