workflow-authoring
Author, inspect, validate, and troubleshoot Solace Agent Mesh workflow YAML/configs without starting live services.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- workflow-authoring
- license
- Apache 2.0
- metadata
- { "repo": "solace-agent-mesh", "package": "solace-agent-mesh", "disco-role": "operating" }
- description
- Author, inspect, validate, and troubleshoot Solace Agent Mesh workflow YAML/configs without starting live services.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/template-resolution.md7.2 KB
- 参考文档references/troubleshooting.md10.5 KB
- 参考文档references/workflow-schema.md14.7 KB
- 脚本scripts/validate_workflow_config.py32.6 KB
03 SKILL.md 正文
Workflow authoring
Use this sub-skill when the task is to author, inspect, dry-validate, or troubleshoot a Solace Agent Mesh (SAM) workflow configuration that uses app_module: solace_agent_mesh.workflow.app and an app_config.workflow DAG.
Do not use this sub-skill for:
- Creating a SAM project scaffold or generated app layout; route to
project-bootstrap. - Starting brokers, gateways, agents, or workflow executions; route to
runtime-operations. - Authoring or running
sam evalsuites; route toevaluation.
Fast path
-
Locate the workflow app config:
- Full SAM app files normally place workflows under
apps[]withapp_module: solace_agent_mesh.workflow.app. - The model-validated payload is the nested
app_configobject.
- Full SAM app files normally place workflows under
-
Check fields and examples in references/workflow-schema.md.
-
Check data/template behavior in references/template-resolution.md.
-
Run the bundled dry validator before any live run:
python sub-skills/workflow-authoring/scripts/validate_workflow_config.py path/to/workflow.yamlAdd
--jsonfor machine-readable output,--app WorkflowNameto select one workflow app in a multi-app file, or--self-testto exercise the validator on an embedded tiny fixture. -
If validation fails or behavior is confusing, use references/troubleshooting.md to map the symptom to a concrete config fix.
Safety boundaries
- The validator and guidance here only parse YAML and validate package/static schema. They must not start brokers, LLM providers, gateways, tasks, or workflow execution.
- Keep actual runtime service checks,
sam run, task submission, REST gateway checks, and UI verification outside this sub-skill. - SAM workflows are experimental; when source examples and installed package validation disagree, prefer the installed package schema and document the mismatch.
Minimal authoring checklist
app_config.nameis present; it becomes the workflow agent identity.app_config.namespaceis present for A2A topics.workflow.description,workflow.nodes, andworkflow.output_mappingare present.- Every node has a unique
idand one of the supportedtypevalues:agent,workflow,switch,map, orloop. - Every
depends_on/dependencies, switch branch, map target, loop target, and exit handler points to an existing node. - Switch branch target nodes list the switch node in
depends_on; otherwise branch handlers can run too early. - Map nodes set exactly one item source:
items,withParam, orwithItems. - Agent/workflow node timeouts use duration strings like
30s,5m,1h,1d, or numeric seconds. - Template paths used in
input,instruction, conditions, andoutput_mappingmatch the producing node outputs.
Provenance distilled
This sub-skill was distilled from SAM workflow documentation, example workflow YAML files, workflow implementation modules, workflow unit tests for Pydantic models, DAG logic, template resolution, safe conditional evaluation, and map/loop workflow target behavior. The runtime files are self-contained and do not require opening those source files.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).