mission-loop-change
БесплатноБез исполняемых скриптовНе проверенChange or add a mission loop safely — routing/lanes, schedule and cadence, driver code, plists, and adding a whole new mission. Use when editing…
от sunholo-data★ 39 звёзд на GitHubОб этом скилле
Changing a Mission Loop
The mission loops are four long-running agents on the rig. They are easy to edit and easy to edit without effect — the recurring failure is not a broken change, it is a change that lands somewhere nothing reads. Every rule here is a measured incident.
Read this first: the friction is catalogued, with counts, in
design_docs/planned/v0_36_0/m-mission-loop-workbench.md. Once that ships, most of this file collapses intoailang mission install|doctor. Until then the procedure below is the control.
Gate 0 — Which surface actually runs?
There are six places a mission's behaviour can be declared, and they are not kept in sync by anything. Before editing, decide which one you need:
| Want to change | Edit | Reaches the fleet via |
|---|---|---|
| Driver logic (probes, gates, chains) | tools/launchd/mission-control.sh in the ailang repo |
the driver pin — committed origin/dev, so it must be pushed |
| A mission's models / lanes / allowlist | ~/.config/ailang/mission-<name>.env |
sourced per fire. The repo copy under tools/launchd/mission-env/ is reviewable, not deployed |
| Schedule / PATH / env | ~/Library/LaunchAgents/dev.ailang.mission-<name>.plist |
requires copy + reload. Installed plists are copies, not symlinks |
Driver changes for world |
tools/launchd/mission-control.sh in the ailang repo |
World runs the shared driver via the driver pin (de-forked 2026-09-06, rechecked 2026-11-03); no separate port — see Gate 2 |
The trap, measured 2026-09-05: the versioned mission-docs.env widened the planner
allowlist and its own comment declared itself "the sprint's only deployment surface". It was
never copied to ~/.config. The docs mission has been routing that work to opus instead of
codex ever since, with a green CI arm — because the test asserts against the repo copy.
# ALWAYS check before and after editing an env file:
for m in v1 docs motoko world; do
cmp -s tools/launchd/mission-env/mission-$m.env ~/.config/ailang/mission-$m.env \
&& echo "$m: in sync" || echo "$m: *** DIVERGED — the repo copy is not what runs"
done
Gate 1 — Does the change reach the mission you mean?
A mission runs the driver its installed plist's ProgramArguments points at. Inspect each
installed plist and that driver's pin helper source line rather than keeping a clone map.
for p in ~/Library/LaunchAgents/dev.ailang.mission-*.plist; do
P=$(plutil -extract ProgramArguments.1 raw "$p" 2>/dev/null) || continue
case "$P" in */mission-control.sh) ;; *) continue ;; esac
printf "%-34s %s re-execs-from-pin=%s\n" "$(basename "$p" .plist)" "$P" \
"$(grep -cE '^:space:*\. "\$(MC_DRIVER_ROOT|REPO)/tools/launchd/lib/pin-root\.sh"' "$P" 2>/dev/null | sed 's/^0$/NO/;s/^[1-9].*/YES/')"
done
YES→ the clone's own contents are irrelevant; it runs committedorigin/dev. Push or it does not ship. A "N behind" line about the source clone is expected and harmless.NO→ a driver that does not sourcepin-root.shruns its working tree directly. Committing is not enough and not required; the file on disk is what executes.
Use ailang mission list and ailang mission doctor to inspect the registry and driver reach.
Gate 2 — World runs the shared driver (de-forked 2026-09-06)
World works in sunholo-data/ailang-world, but its installed plist runs the shared driver in
sunholo-data/ailang through the origin/dev pin (rechecked 2026-11-03). A driver change ships to
World like any other mission and needs no separate port. The de-fork is recorded in
internal/mission/golden_live_test.go:367; internal/mission/doctor.go:281 sets fork status from
an explicit driver key. missions/world.toml has no such key, so doctor reports no fork.
Gate 3 — Never edit a driver that is executing
For any driver running from a working tree rather than the pin, bash reads a script incrementally — truncating it under a live interpreter feeds it garbage mid-iteration.
for f in ~/.ailang/state/mission-*.pid; do
[ -f "$f" ] || continue; p=$(cat "$f")
kill -0 "$p" 2>/dev/null && echo "RUNNING: $(basename $f) pid=$p"
done
If it is running, either wait, or write via atomic replace so the running process keeps its
inode (python3 -c "..." with tempfile + os.replace, or sed > tmp && mv tmp file).
open(w) and in-place sed -i are unsafe. The pinned missions are exempt — the pin runs from a
separate worktree.
Gate 4 — Prove it, before it fires for real
Nothing here spends tokens except where noted. MISSION_DRY_RUN=1 exits before the
iteration but after the probes, so it reports real resolved lanes.
# Working tree instead of the pinned copy — REQUIRED or you are testing the old driver.
# Use AILANG_DRIVER_PINNED, NOT AILANG_DRIVER_PIN=0: an env file that runs `export
# AILANG_DRIVER_PIN=1`
Установить mission-loop-change в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mission-loop-change?
Change or add a mission loop safely — routing/lanes, schedule and cadence, driver code, plists, and adding a whole new mission. Use when editing tools/launchd/mission-control.sh, any dev.ailang.mission-* plist or mission-*.env, changing a mission's models/fallbacks/interval, checking which driver a mission's plist runs, bootstrapping a new mission loop (e.g. for ailang-parse), or when asked why a mission-loop change "didn't take". Covers reach, live-edit hazards, drought simulation and reload.
Как установить скилл mission-loop-change?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mission-loop-change запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic