← MetalCONTENT HISTORY

Update to Metal

Snapshot Nov 23, 2026 · 18:22 UTC · version 0.2.8

Collection source: downloaded plugin package.

WHAT CHANGED

First saved snapshot

No earlier snapshot is available to establish a change.

Save Metal and check future changes in Following.

Up to 3 plugins free · no card required.

Compare saved observations

Download comparison JSON
Full technical diff · 0 changed fields
Full snapshot data
{
  "description": "Use to inspect or author a Metal workflow definition, step configuration, input or output contract, or trigger through the Metal MCP. Use workflow-fixing for a requested repair of a failed run, workflow-debugging for read-only run diagnosis, and running-workflows for run actions.",
  "included_files": [
    {
      "relative_path": "references/agents.md",
      "size_in_bytes": 7729
    },
    {
      "relative_path": "references/building-tools.md",
      "size_in_bytes": 17546
    },
    {
      "relative_path": "references/data-analysis-orchestrator.md",
      "size_in_bytes": 2150
    },
    {
      "relative_path": "references/domains/affinity-batch-patterns.md",
      "size_in_bytes": 2741
    },
    {
      "relative_path": "references/domains/dealcloud-batch-patterns.md",
      "size_in_bytes": 3030
    },
    {
      "relative_path": "references/domains/salesforce-batch-patterns.md",
      "size_in_bytes": 7677
    },
    {
      "relative_path": "references/execute-code-runtime.md",
      "size_in_bytes": 8258
    },
    {
      "relative_path": "references/human-review.md",
      "size_in_bytes": 10925
    },
    {
      "relative_path": "references/inputs-and-resources.md",
      "size_in_bytes": 15908
    },
    {
      "relative_path": "references/mcp-run-evidence.md",
      "size_in_bytes": 8084
    },
    {
      "relative_path": "references/output-sections.md",
      "size_in_bytes": 6825
    },
    {
      "relative_path": "references/permissions-and-run-policy.md",
      "size_in_bytes": 3813
    },
    {
      "relative_path": "references/retrieval-building.md",
      "size_in_bytes": 5637
    },
    {
      "relative_path": "references/step-types.md",
      "size_in_bytes": 20575
    },
    {
      "relative_path": "references/structured-output.md",
      "size_in_bytes": 9254
    },
    {
      "relative_path": "references/template-syntax.md",
      "size_in_bytes": 11811
    },
    {
      "relative_path": "references/tools-and-connections.md",
      "size_in_bytes": 4452
    },
    {
      "relative_path": "references/triggers.md",
      "size_in_bytes": 6044
    }
  ],
  "name": "workflow-building",
  "skill_md_contents": "---\nname: workflow-building\ndescription: \"Use to inspect or author a Metal workflow definition, step configuration, input or output contract, or trigger through the Metal MCP. Use workflow-fixing for a requested repair of a failed run, workflow-debugging for read-only run diagnosis, and running-workflows for run actions.\"\n---\n\n# Metal Workflow Building\n\nBefore starting, read [Safety and confirmation](../../references/safety.md) and apply it throughout this task.\n\nThis skill is a reference for Metal workflow definitions, run evidence, execution code, and artifacts. The central building concern is the runtime contract: what workflow inputs resolve to, what each step emits, and what downstream steps consume.\n\nFor run-behavior diagnosis from a run ID, use the `workflow-debugging` skill. Workflow edits route back here.\n\n## Metal MCP Tools\n\nRead tools: `list_workflows`, `get_workflow`, `get_workflow_step`, `list_workflow_runs`, `get_workflow_run`, and `get_workflow_run_step`.\n\nBuilding tools: `create_workflow`, `update_workflow_details`, `configure_workflow_input`, `configure_workflow_trigger`, `configure_workflow_output`, `configure_workflow_scoring`, `add_workflow_step`, `update_workflow_step`, `delete_workflow_step`, and `move_workflow_step`.\n\nRun tool: `run_workflow` creates a workflow run and accepts the per-run `dryRun` value. Use the `running-workflows` skill for run-mode selection, input resolution, verification of the returned mode, and monitoring.\n\nRun-action tool: `review_workflow_hitl_step` resolves a run paused at `AWAITING_APPROVAL` by approving or rejecting its review items. Like `run_workflow`, it is mutative, not an inspection tool; call it only on explicit user intent and confirm before submitting. Review authority follows reviewer assignment (see `references/human-review.md`).\n\nRerun tool: `rerun_workflow_run_from_step` creates a new run from a terminal one. It reuses the source input with the workflow's current definition, so an edit made after the source run can change step IDs or invalidate the saved path. Each call creates a run; after an ambiguous failure, check `list_workflow_runs` before retrying. The source must be terminal, every preceding top-level step must be `COMPLETED`, and preceding siblings in the selected branch arm must be `COMPLETED` or `SKIPPED`. The target can be a top-level step or a descendant of the branch path recorded by the source run. A step in an untaken arm is not a valid target, and iterator children cannot be targeted. See Branch in `references/step-types.md` for seed behavior, and use the `running-workflows` skill to start and monitor the rerun.\n\n- `get_workflow` returns a compact workflow projection with compact step projections. `get_workflow_step` returns the full safe saved step definition and is the source for complete prompt text after secret scrubbing. It redacts secret fields and secret-like string values; never present a redacted prompt or config as the literal stored value.\n- `list_workflow_building_options` returns the org-valid catalog of agents, models, tools, connections, and step options. Use target-aware `promptTemplateVariables` before writing a prompt or template, and use `iteratorSources` before setting an iterator source, except for an iterator inside a branch arm, which that kind cannot target. Never guess catalog values or source expressions.\n- Large text fields arrive as truncated previews. When `truncated` is true, inspect the attached `expandInstructions` as read-only hints and use only supported, task-relevant field paths. See `references/mcp-run-evidence.md` for the read views, the projection and paging interface, and definition-drift comparison.\n- Building rejections carry `details: [{field, message, code, candidates}]`. Fix the named field. Treat `candidates` as bounded, context-specific repair hints that may be absent, partial, ranked, or differently scoped from the authoring catalog. Code `concurrent_update` means re-read the workflow and re-apply the change.\n- See `references/building-tools.md` for per-tool purposes, write pipeline behavior, warning codes, and error semantics.\n\n### Warnings Envelope\n\nEvery building write returns the outstanding `warnings` plus one of two shapes. `add_workflow_step`, `update_workflow_step`, and `move_workflow_step` return `{step, expandableFields?, warnings}`, where `step` is normally the affected step in the compact shape `workflow.steps[]` carries. A committed write can return `step: null` when the response cannot project the saved step. Every other write returns `{workflow, warnings}`, where `workflow` is the compact updated projection `get_workflow` returns, not the full workflow document. `configure_workflow_scoring` is the exception: it returns only the compact workflow projection, with no `warnings`. This envelope is the validation surface; there is no separate validator or verification script.\n\n- A warning is `{code, severity, path, refs, introduced, message}`.\n- Severity is fixed per code: error, warning, or advisory. A finding blocks the write only when it is both error severity and introduced by this write.\n- Pre-existing findings carry `introduced: false` and never block.\n- Surface warnings and advisories to the user instead of silently dropping them.\n- Re-check the outstanding warning set before declaring the workflow ready and get user acknowledgment for anything unresolved.\n- See `references/building-tools.md` for the severity tiers and the full code list.\n\n## Write Safety\n\n- For a new Workflow request, create the default Restricted Workflow shell. For an existing Workflow request, edit the Workflow the user identified and preserve its Workflow ID. Never create a separate test or validation Workflow unless the user explicitly approves it.\n- dryRun applies to Runs only. It does not create an isolated Workflow definition or authorize cloning the selected Workflow.\n- When the selected Workflow is an organization Workflow with an enabled automatic trigger (`trigger.enabled`, or any enabled schedule), explain that the edit lands on the live definition and the next triggered run uses it. Ask before pausing a trigger.\n- Treat create_workflow as new-resource creation. Do not use it as a testing substitute for an existing Workflow without explicit permission.\n- Pause a trigger (`enabled: false`, or per schedule) when the user wants it configured but not yet running.\n- Treat step deletion as destructive and require explicit user intent.\n\n## Development Testing\n\nWorkflow building, editing, and iterative validation are development intent. Use the `running-workflows` skill for run-mode selection, authorization, and loop bounds. Use the `workflow-debugging` skill to qualify dry-run evidence. Dry-run testing does not change General Access or pause automatic triggers.\n\n## Sources Of Truth\n\n- Metal MCP evidence includes workflow definitions, step snapshots, run lists, run steps, outputs, tool calls, transcripts, errors, artifacts, and run documents.\n- Workflow definition fields commonly needed for building are `id`, `version`, General Access (`visibility`), `deprecated`, trigger, `inputSchema`, `outputConfig`, `outcomeConfig`, step IDs, step types, and step inputs.\n- Run evidence carries its own `workflowVersion`, step IDs, timestamps, outputs, artifacts, and errors. Older runs can reflect older workflow-definition versions.\n- Iterator child steps and HITL steps often require both definition evidence and run-step evidence to understand their concrete runtime shape.\n\n## Building Surfaces\n\n| Surface | Typical contents |\n| --- | --- |\n| Workflow definition | Input schema, step ordering, step prompt, tool step input, `executeCode` config, output config, outcome contract, HITL review payload, iterator shape |\n| Data access | Workflow input resources, platform/Egnyte/SharePoint discovery, attached files, sandbox uploads, agent usable connections |\n\nSurface choice matters because prompts cannot reliably compensate for missing schema fields, missing persisted step outputs, or runtime limitations. File access also depends on the runtime path: workflow input file, attached data entity, prior artifact, and platform-discovered resource are separate paths.\n\n## Retired Template Workflows\n\nWork-product templates are retired. `generateDocument` steps, the `template_*`, `docx_automation_*`, `xlsx_automation_*`, and `pptx_automation_*` tools, the retired automation agents, and the `documentTemplates` building catalog kind are not authoring options. Agents no longer receive the `work_product` connection. Saved definitions, files, and run evidence stay readable. A write that adds a retired step, tool, or agent fails with a 403 and code `work_product_templates_retired`. `run_workflow` and `rerun_workflow_run_from_step` return the same error for a workflow that still contains one, even when `isExecutable` is true. That error is permanent; do not retry it or ask for more permissions. To make such a workflow runnable again, delete the retired step and produce the file another way, such as an `executeCode` step with `outputFiles` and `createOutput: true`, or an agent step that writes the file in the sandbox and calls `create_output`. A deprecated workflow rejects every edit with `workflow_deprecated`. Agent and `executeCode` sandbox artifacts are not affected.\n\n## Step Interface Surfaces\n\nStep interfaces form downstream contracts. Common contract fields include step type, agent selector, tool selector, prompt-like input, artifact filenames, top-level payload keys, structured output shape, template references, and human approval payload contract.\n\nExact downstream key paths are distinct:\n\n- `.Steps[\"x\"].text` is prior step text.\n- `.Steps[\"x\"].results.structured` is validated structured output from steps configured to emit it.\n- `.StepArtifacts[\"x\"]` holds workflow artifacts for step `x`. There is no `.Steps[\"x\"].artifacts`; artifacts are addressable only through the root `.StepArtifacts`.\n\nAgent steps without an `outputSchema` expose human-readable text by default. With an `outputSchema`, an Agent step's `.text` compatibility field contains the serialized validated payload, while a Completion step's text can differ from its validated payload after coercion or reissue. Durable machine-readable consumers should read `results.structured`, normally through `toJSON`. Structured data comes from a declared `outputSchema` on an `agent`, `completion`, or `executeCode` step or a tool result.\n\n## Building process\n\n1. Confirm the connected org, then read the workflow with `get_workflow`. Read each touched step with `get_workflow_step` before editing it.\n2. Classify the request by surface and load the relevant reference. Query `list_workflow_building_options` for every selector or target-aware expression the edit needs.\n3. Trace the touched inputs, outputs, artifacts, template expressions, and downstream consumers. Preserve every interface the user did not ask to change.\n4. Apply the smallest mutation to the user-selected Workflow. If it is an organization Workflow with enabled automatic triggers, explain before the first write that the next triggered run will use the edit, and ask before pausing any trigger. Provide full replacement content for a touched prompt-like field. For a same-type step config update, send only the fields the edit changes.\n5. Inspect the response warnings. If a step write returns `step: null`, do not resend it. Read the workflow and touched step to verify the committed state.\n6. Declare the workflow ready only after the user acknowledges any unresolved warnings.\n\n## Core Building Rules\n\n- Preserve the visible step interface unless the user asks to change it. Interface surfaces include step type, agent selector, tool selector, prompt-like input, artifact filenames, top-level payload keys, structured output shape, template references, and the human approval payload contract.\n- When the user asks for the exact prompt and nothing else, fetch it with `get_workflow_step` and return only the prompt text without preamble, explanatory bullets, or an outer code fence.\n- Prefer smaller responsibilities per step when a prompt is hard to reason about: separate decisioning from presentation, data validation from rendering, and safe write-plan generation from review-payload enrichment. Name the handoff contract between split steps.\n- When a prompt interpolates an id or a name, state the resource type in the surrounding text: \"the Company with id `{{ .Input.company.id }}`\", not a bare `{{ .Input.company.id }}`. Pair the id with a human-readable label in parentheses when the same source carries one. Rendered templates otherwise hand the agent an anonymous hex string with no type information, which agents misroute, such as passing an id as a name argument.\n- For new or changed model fields, call `list_workflow_building_options` with `models` and choose from the current catalog. Do not use any hard-coded or historical model as a default. Preserve existing workflow models unless the user asks for a model change or run evidence justifies it.\n- Do not set, echo, or clear completion tuning fields such as `temperature` or `maxTokens` unless the user asks for that tuning change. `update_workflow_step` merges: omitted fields keep their current values, so send only the fields the edit is about and tuning fields stay untouched.\n- Separate business inputs from runtime assets. Keep the visible input schema focused on user-provided business data, and model templates, fixtures, schemas, or other execution-only assets as explicit runtime file inputs or artifacts when the workflow needs them.\n- Avoid embedding large templates or binary-like assets inside prompts or scripts. Prefer input files, artifacts, or compact deterministic code so the workflow definition stays inspectable and debuggable.\n- Do not hide runtime files in encoded payloads inside prompts or scripts. This includes base64, gzip or zlib-compressed strings, hex blobs, marshal or pickle payloads, large string constants, and decoded `exec` or import patterns.\n- When porting a local validator, template, or script, mount the file through workflow inputs, data entities, artifacts, or `inputFiles`, or write readable equivalent source code. Do not decode an embedded copy at run time.\n- Keep debug data out of UI file outputs unless the user needs it as a deliverable. Prefer `results.structured` or execution evidence for intermediate reports, and use `outputFiles[].createOutput` only for files that should appear in the run Output tab.\n\n## Evidence Fields\n\n- Workflow ID, version, and step IDs.\n- Relevant `inputSchema` and `outputConfig` snippets.\n- Exact downstream template expression.\n- Completed-run evidence for the happy path.\n- Failed-run evidence for the failure mode.\n- MCP-visible reproduction evidence for non-obvious execution behavior, plus the exact evidence gap to send to Metal when the skill cannot explain it.\n- Compact contract shape: inputs, steps, produced fields, consumed fields, and failure modes.\n\n## References\n\n- `references/mcp-run-evidence.md`: read tools, views, the projection and paging interface, previews and expansion, result maps, provenance and iterator child state, versioning, and definition-drift comparison.\n- `references/building-tools.md`: building tool surface, write pipeline behavior, the warning severity model and full code list, error semantics, and the building catalog.\n- `references/step-types.md`: base step fields, per-step behavior, handoff surfaces, execute-code output, and iterator concurrency and error policy.\n- `references/execute-code-runtime.md`: execute-code sandbox runtime, installed libraries, helper scripts, runtime paths, file staging, output publishing, and UI Output-record behavior.\n- `references/template-syntax.md`: Go template mechanics, `index .Steps` versus `.Steps.<id>`, missing-key behavior, iterator source grammar, and the runtime-only iterator helpers.\n- `references/inputs-and-resources.md`: building workflow inputs, resolved resource field shapes, resolution rules, iterator item access, and step-output iterator sources.\n- `references/triggers.md`: manual, email, event, schedule, and webhook triggers, their config, provisioning side-effects, and input mappings.\n- `references/permissions-and-run-policy.md`: General Access, shares, authoring access, run visibility, and run policy.\n- `references/agents.md`: agent-native tools, the sandbox artifact lifecycle, the list read tools plus the one native list write, loadable skills, and agent step config fields.\n- `references/tools-and-connections.md`: Tool step behavior and output mapping, and connection mounting behavior.\n- `references/output-sections.md`: output schema rendering, output sections, citations, finalization, and completion notification conditions.\n- `references/human-review.md`: human approval, editable and field-level review, the approved-payload contract, and post-approval writes. Read before building any review step.\n- `references/retrieval-building.md`: source-backed retrieval, file inspection, evidence coverage, period/entity gates, and metric extraction.\n- `references/structured-output.md`: load when building workflow `step.OutputSchema` usage, schema-backed downstream contracts, or reasoning about runtime schema enforcement.\n- `references/data-analysis-orchestrator.md`: the `Data Analysis Orchestrator` agent's delegation contract and agent file attachments.\n- `references/domains/`: provider-specific batch import, validation, review, and writeback playbooks (Salesforce, Affinity, DealCloud). Load a pack only when the workflow targets that provider.\n"
}

SHA-256 of public snapshot: c856a47e61010b1572c904bee5c5757159c7333e798fe50ffa7558a7b59c1d05