exec-map-reduce
Operate Harbor's experimental `harbor exec` map/reduce workflow: choose flags or ExecConfig mode, compile paths into tasks, inspect inferred or explicit artifacts, run map jobs, stage map artifacts into a reducer, and troubleshoot configuration and output failures.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- exec-map-reduce
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Operate Harbor's experimental `harbor exec` map/reduce workflow: choose flags or ExecConfig mode, compile paths into tasks, inspect inferred or explicit artifacts, run map jobs, stage map artifacts into a reducer, and troubleshoot configuration and output failures.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/cli-reference.md7.7 KB
- 参考文档references/config-schema.md8.3 KB
- 参考文档references/map-reduce-recipes.md5.7 KB
- 参考文档references/troubleshooting.md9.6 KB
03 SKILL.md 正文
Harbor exec: map and reduce
Use this skill only for Harbor's experimental harbor exec command. It is a
small compile → map-job → optional-reduce-job workflow, not a general
harbor run job configuration guide. Keep the run inspectable and avoid
starting an agent/model job until the resolved configuration and artifact
contract are clear.
Route by intent
- One-off invocation: use references/cli-reference.md for flags, scan semantics, defaults, and aliases.
- Repeatable workflow: write a complete YAML, JSON, or TOML
ExecConfig; use references/config-schema.md for the model fields and map/reduce invariant. - Aggregation: use references/map-reduce-recipes.md for the map artifact contract, reducer input layout, and reward-artifact examples.
- Failure or surprising output: start with
references/troubleshooting.md, then run
--print-configrather than launching another trial.
Safe operating sequence
- Check the installed surface before making version-sensitive claims:
harbor --versionandharbor exec --help. The command is explicitly experimental; the verified help surface includes--print-configfor resolving config and inferred artifacts without executing a job. - Select exactly one input mode:
- Flags mode: supply compilation and job options directly. A reducer is created when any reducer option is passed, but it still requires a reducer instruction source.
- Config mode: pass
--config FILE, where the suffix is.yaml,.yml,.json, or.toml. Put the complete workflow undermapand optionalreduce; do not mix it with flags-mode options.--print-configremains useful with either mode.
- Make the input cardinality explicit when it matters. A single directory or
glob scans by default; multiple paths are grouped into one environment by
default. Use
--scanor--no-scandeliberately and use--limitonly for scanning. - Define the output contract. Prefer
-f/--artifactand--reduce-artifactover prompt inference. If scoring is needed, configure a reward artifact that is a non-empty JSON object whose values are numbers; do not combine reward-artifact options with--disable-verification. - Run
--print-configand inspect the JSON: paths, instructions, workdirs, task output directory, artifact list, generated verifiers, agents/models, attempts, concurrency, retry settings, provider, and job names. This is a read-only preflight; it does not compile tasks or run agents. - Only after preflight approval run the same command without
--print-config. Record the printed map/reduce job directories. Omitted task output is temporary in flags mode and is cleaned up after execution; jobs default tojobsand persist unless a caller chooses another--jobs-dir.
Boundaries and cautions
- A reducer requires non-empty
map.compile.artifacts. Those map artifacts are staged into the reducer as implicit inputs; the reducer has no path-scan option for them. - Auto-inference is conservative and is based on inline instruction text. It does not inspect an instruction file's contents. Explicit artifact paths are safer for correctness and for reducer eligibility.
- Auto-verification checks artifact existence. A reward artifact adds a JSON promotion step; it is not a substitute for a domain verifier.
- Do not claim a live agent/model, Docker, cloud provider, or external API was verified merely because a config parsed. This skill's checks are config/help checks only unless the caller separately authorizes a real execution.
- For ordinary evaluation jobs, route to the Harbor evaluation workflow rather than expanding this skill.
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).