Compare commits

...
2 Commits
Author SHA1 Message Date
Lap Tran 055c2eed91 no-mistakes(document): update crew-dispatch check description in readme 2026-11-15 23:05:29 -05:00
Lap Tran 0aa25b27f0 fix(firstmate): route documentation to Beam Free and guard the OpenCode 2 launcher
Add a documentation dispatch rule that uses opencode-go/beam-free while the
default workers stay on opencode-go/deepseek-v4.1-flash. Preserve the existing
UI rule and the Pi/GPT design exception.

Add live checks for the two operator-facing contracts:
- tests/fm-launcher.sh sources the zshrc that home-manager generates, runs fm
  with harmless pi and oc2 spies, and requires OpenCode 2 through oc2.
- tests/crew-dispatch.sh reads the dispatch config through firstmate's own
  bootstrap validator and asserts the default, documentation, UI, and design
  profiles.

Document the permanent fm decision, the no-mistakes model split, and the
minimal install procedure after merge.
2026-11-15 22:46:25 -05:00
7 changed files with 335 additions and 4 deletions

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ Deliberate decisions in this repo - do NOT silently revert them:
- Pi is managed the same way: `home/.pi/agent/{settings,models}.json`, `themes/`, and custom extensions (`terminal-status-title`, `calm`). Do not symlink the whole `~/.pi/agent` tree - sessions, auth, npm cache, and herdr's `extensions/herdr-agent-state.ts` stay live.
- herdr stores runtime state beside its config, so `~/.config/herdr` stays a real directory and only `config.toml` is symlinked; `home.activation.herdrConfigDir` migrates the old whole-directory symlink and clears leaked artifacts. Do not symlink the whole directory - rationale and artifact list are in `home.nix`.
- Codex runs on the OpenCode Go subscription. The ChatGPT app owns and rewrites the live `~/.codex/config.toml`, so it is NOT symlinked; `home.activation.codexOpenCodeGo` merges the repo fragment `home/.codex/config.toml` into it on every rebuild, and the app's own sections (`[desktop]`, `[plugins]`, `[mcp_servers]`, ...) survive. Auth is command-backed via `~/.local/bin/opencode-go-token` (prints the key from the opencode store), so `~/.codex/auth.json` stays in ChatGPT mode and ChatGPT sign-in coexists with Go. Only Go models that speak the Responses API work (`deepseek-v4.1-flash`, `gpt-6-luna`, `gpt-5.6-luna`, `grok-4.7/4.6`); GLM/Kimi/MiMo/LongCat are chat-completions-only and need a proxy. Desktop Codex is now the `chatgpt` cask - do not use the deprecated `codex-app` cask.
- firstmate lives at `~/Documents/firstmate` as a mutable git clone (not in the Nix store). `home.activation.firstmate` clones it if missing and seeds `config/backend=herdr` + `config/crew-harness=opencode` only when those files are absent. Crew routing is `home/.config/firstmate/crew-dispatch.json` (symlinked in): per the captain's order 2026-10-21, coding crewmates and scouts use `opencode` + `opencode-go/deepseek-v4.1-flash` through the OpenCode CLI. Design, architecture, and design-review tasks are the exception: the file's first rule sends them to Pi with `openai-codex/gpt-6.1-sol` at `xhigh`, and implementation tasks re-resolve their profile instead of keeping that model. The free `deepseek-v4.1-flash-free` order of 2026-10-20 resumes when that lane resets. The validation pipeline stays on Pi with `opencode-go/deepseek-v4.1-flash` steps and the `opencode-go/glm-5.3-flash` reviewer. Avoid the `muse-spark-*-contributor` models, which train on prompts, and the `exo-free`, `mimo-*-free`, and `nemotron-*-free` models, whose data may be used to improve the model. `cat-jam-free` retains for 30 days. Crews inherit the primary's OpenCode login through the spawn-owned symlink (the isolated worker data root links the primary `<XDG_DATA_HOME>/opencode/auth.json`; no `~/.pi/agent/auth.json` reliance). Launch with shell alias `fm` (`cd` + the `oc2` wrapper, so the primary runs OpenCode 2 on the OpenCode Go subscription and loads firstmate's `.opencode/plugins` by working directory), while crews run on the opencode harness unless a dispatch rule selects another harness. `oc2` remains the isolated-config OpenCode launcher, and `fm-pi` keeps the old Pi launch as a fallback until the OpenCode 2 launcher is confirmed on the captain's machine. Self-update via `/updatefirstmate`, not rebuild.
- firstmate lives at `~/Documents/firstmate` as a mutable git clone (not in the Nix store). `home.activation.firstmate` clones it if missing and seeds `config/backend=herdr` + `config/crew-harness=opencode` only when those files are absent. Crew routing is `home/.config/firstmate/crew-dispatch.json` (symlinked in): per the captain's order 2026-10-21, coding crewmates and scouts use `opencode` + `opencode-go/deepseek-v4.1-flash` through the OpenCode CLI. Design, architecture, and design-review tasks are the exception: the file's first rule sends them to Pi with `openai-codex/gpt-6.1-sol` at `xhigh`, and implementation tasks re-resolve their profile instead of keeping that model. The free `deepseek-v4.1-flash-free` order of 2026-10-20 resumes when that lane resets. The validation pipeline stays on Pi with `opencode-go/deepseek-v4.1-flash` steps and the `opencode-go/glm-5.3-flash` reviewer. Avoid the `muse-spark-*-contributor` models, which train on prompts, and the `exo-free`, `mimo-*-free`, and `nemotron-*-free` models, whose data may be used to improve the model. `cat-jam-free` retains for 30 days. Crews inherit the primary's OpenCode login through the spawn-owned symlink (the isolated worker data root links the primary `<XDG_DATA_HOME>/opencode/auth.json`; no `~/.pi/agent/auth.json` reliance). Launch with shell alias `fm` (`cd` + the `oc2` wrapper, so the primary runs OpenCode 2 on the OpenCode Go subscription and loads firstmate's `.opencode/plugins` by working directory), while crews run on the opencode harness unless a dispatch rule selects another harness. `oc2` remains the isolated-config OpenCode launcher, and `fm-pi` stays only as the explicit Pi fallback now that the OpenCode 2 launcher is the confirmed default. Self-update via `/updatefirstmate`, not rebuild.
- OpenCode is one install: the stable Homebrew `opencode` formula, linked so `/opt/homebrew/bin/opencode` is that build. It is both the firstmate crew harness and the `oc2` binary. `oc2` only isolates the config: `OPENCODE_CONFIG` stays at `home/.config/opencode2/opencode.json` and cannot rewrite `~/.config/opencode`, and `OPENCODE2_BIN` overrides the binary. firstmate harness detection matches `*opencode*`, so it still classifies as OpenCode.
- Shell aliases: `cc` (Claude skip-permissions), `co` (Codex full-auto), `gb` (Grok --yolo), `fm` (firstmate via OpenCode 2), `fm-pi` (firstmate via Pi fallback), `oc2` (OpenCode with isolated config). They are intentional high-agency shortcuts.
- OpenSuperWhisper is installed by the `opensuperwhisper` cask, and `home.activation.openSuperWhisper` downloads its Whisper model (`ggml-large-v3-turbo.bin` under the app's Application Support directory, never the Nix store) and seeds the model selection only when it is missing or dangling. All other app settings (trigger, language, paste behavior) belong to the app and must not be rewritten by a rebuild, so `modifierOnlyHotkey = rightOption` on this machine stays the effective trigger. Microphone/Accessibility/Input Monitoring grants stay manual because macOS TCC cannot be declarative; do not kill a running app to apply defaults. The model is local-only.
+2 -2
View File
@@ -82,8 +82,8 @@ in
gb = "grok --yolo";
# firstmate primary session in OpenCode 2 on the OpenCode Go subscription,
# launched through the isolated-config oc2 wrapper; crewmates = OpenCode by
# default. fm-pi keeps the old Pi launch until the OpenCode 2 launcher is
# confirmed on the captain's machine.
# default. Permanent since 2026-11-15: fm-pi stays only as the explicit Pi
# fallback, never as the default launcher.
fm = "cd ${firstmateHome} && exec ${home}/.local/bin/oc2";
fm-pi = "cd ${firstmateHome} && exec pi";
oc2 = "${home}/.local/bin/oc2";
@@ -20,6 +20,15 @@
}
],
"why": "Captain's order 2026-10-21: paid Go for every crewmate and scout after the free lane hit 'Free usage exceeded' with a 10.5 hour retry, which ended five sessions in forty minutes. The free deepseek-v4.1-flash-free order of 2026-10-20 resumes when that lane resets; paid Go had 5 percent of its monthly window left, projected empty 2026-10-22T05:43Z."
},
{
"when": "Documentation tasks: writing, updating, or reviewing documentation, docs, READMEs, or technical writing.",
"use": {
"harness": "opencode",
"model": "opencode-go/beam-free",
"provider": "opencode-go"
},
"why": "Captain's order 2026-11-15: documentation tasks use the free beam-free model to conserve paid quota."
}
],
"default": [
+59 -1
View File
@@ -13,7 +13,65 @@ The firstmate crew dispatch + Gitea PR helper are wired by `darwin-rebuild`, but
cd ~/Documents/investor-flow
git remote set-url origin http://unraid.local:3003/transnet/investor-flow
Verify: `fm` launches OpenCode 2 as the first mate and `fm-pi` is the Pi fallback until that launcher is confirmed; `oc2 --version` prints the Homebrew opencode version; `pi --list-models mimo` shows `opencode-go/mimo-v2.5-pro`; `tea pulls list --repo transnet/investor-flow` works.
Verify: `fm` launches OpenCode 2 as the first mate and `fm-pi` is the explicit Pi fallback; `oc2 --version` prints the Homebrew opencode version; `pi --list-models mimo` shows `opencode-go/mimo-v2.5-pro`; `tea pulls list --repo transnet/investor-flow` works.
## firstmate launcher and crew model routing
`fm` is the permanent firstmate launcher. It changes to `~/Documents/firstmate` and executes `~/.local/bin/oc2`, which runs the Homebrew OpenCode build with the isolated `~/.config/opencode2/opencode.json` config. `fm-pi` remains only as an explicit Pi fallback. Never make Pi the default launcher.
`home.nix` owns both aliases, so a rebuild regenerates them. The installed `~/.zshrc` changes only at the next activation.
Worker routing lives in `home/.config/firstmate/crew-dispatch.json`, which is symlinked to `~/Documents/firstmate/config/crew-dispatch.json`:
| Task | Harness | Model |
| --- | --- | --- |
| Default crewmates and scouts | opencode | opencode-go/deepseek-v4.1-flash |
| Documentation writing, updating, or review | opencode | opencode-go/beam-free |
| UI work with image context | opencode | opencode-go/deepseek-v4.1-flash |
| Design, architecture, and design review (preserved exception) | pi | openai-codex/gpt-6.1-sol at xhigh |
Firstmate matches the `when` text with judgment. It then passes concrete `--harness` and `--model` flags to `fm-spawn.sh`. The file has no Pi default.
`~/Documents/firstmate/config/crew-harness` stays `opencode`. `home.activation.firstmate` seeds it only when the file is absent, so a captain edit survives a rebuild.
The model IDs above were listed from a neutral directory with `OPENCODE_CONFIG=~/.config/opencode2/opencode.json opencode models`. Both `opencode-go/deepseek-v4.1-flash` and `opencode-go/beam-free` are exact IDs.
### no-mistakes pipeline models
The captain confirmed the split on 2026-11-15. Leave it unchanged:
- execution tool: Pi (`agent: [pi]`)
- general steps and fixers: `opencode-go/deepseek-v4.1-flash`
- reviewer: `opencode-go/glm-5.3-flash`
`home.activation.noMistakes` adds `agent_config` and `review_agents` only when those keys are absent. The live `~/.no-mistakes/config.yaml` also sets `agent_path_override.opencode`, which stays inactive while the execution tool is Pi. This repository has no `.no-mistakes.yaml`, so no repo-level override applies. Firstmate's own `.no-mistakes.yaml` applies only to the firstmate repository. Do not edit the live no-mistakes config by hand.
### Checks
```bash
./tests/fm-launcher.sh --live # installed zshrc; fails while it still launches Pi
./tests/fm-launcher.sh # generated zshrc; must pass
./tests/crew-dispatch.sh # routing via firstmate, model IDs via opencode models
./tests/run.sh # all checks
```
The launcher check sources the real generated zshrc in an interactive zsh. A `pi` spy on PATH and an `OPENCODE2_BIN` spy capture the launch, so no firstmate session starts.
### Install after merge
The Nix sources in this repository are the durable record. The live files are generated, so do not edit them.
1. Merge the reviewed branch into the default branch.
2. Confirm `readlink ~/.dotfiles` names the checkout that holds the merged commit.
3. Run `./rebuild.sh` from that checkout.
4. Run `./tests/fm-launcher.sh --live` and `./tests/crew-dispatch.sh`.
5. Open a fresh shell and run `alias fm`. It must show `exec /Users/laptran/.local/bin/oc2`.
### Checkout topology and safe installation
`rebuild.sh` points `~/.dotfiles` at its own directory and then builds `~/.dotfiles#lt-mbp`. On 2026-11-15, `~/.dotfiles` resolved to `/Users/laptran/Documents/firstmate/projects/dotfiles`. A second checkout at `/Users/laptran/Documents/dotfiles` carried an uncommitted `home.nix` that changed `fm` back to `pi` and seeded `crew-harness` as `pi`. A rebuild from that checkout would restore the Pi default. Do not run `rebuild.sh` from a checkout with that edit, and do not repoint `~/.dotfiles` by hand.
This follows the NIST SP 800-128 Rev. 1 (2019) Section 3.3 "Controlling Configuration Change" (CM-3) practice: route every change through review and approval, test it, record it in version control, and restrict who can change the operational configuration. The 2011 edition is withdrawn and superseded by Revision 1.
## security-audit skill (agent security reviews)
+120
View File
@@ -0,0 +1,120 @@
#!/usr/bin/env bash
# Behavior check: the dotfiles crew dispatch sends ordinary workers to
# DeepSeek v4.1 Flash on OpenCode, documentation tasks to Beam Free, and keeps
# the design exception. It reads the config through firstmate's own bootstrap
# validator and verbose facts, which is the supported surface that reports the
# effective dispatch profile.
#
# Firstmate matches the natural-language `when` text with its own judgment, so
# this check pins the declared routing and the schema, not a model call. It then
# confirms every OpenCode-harness model ID against OpenCode's own catalog, so a
# mistyped ID fails here instead of when a crew spawns.
# It skips the parts that need firstmate or OpenCode when they are not installed.
set -euo pipefail
ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)
CONFIG="$ROOT/home/.config/firstmate/crew-dispatch.json"
FM_ROOT=${FM_ROOT:-"$HOME/Documents/firstmate"}
BOOTSTRAP="$FM_ROOT/bin/fm-bootstrap.sh"
[ -f "$CONFIG" ] || { echo "FAIL: missing $CONFIG" >&2; exit 1; }
if [ ! -x "$BOOTSTRAP" ]; then
echo "SKIP: firstmate bootstrap not found at $BOOTSTRAP"
exit 0
fi
TMP=$(mktemp -d "${TMPDIR:-/tmp}/crew-dispatch.XXXXXX")
cleanup() { rm -rf "$TMP"; }
trap cleanup EXIT
mkdir -p "$TMP/home/config"
cp "$CONFIG" "$TMP/home/config/crew-dispatch.json"
printf 'manual\n' > "$TMP/home/config/backlog-backend"
out=$(FM_HOME="$TMP/home" FM_ROOT_OVERRIDE="$TMP/home" FM_BOOTSTRAP_VERBOSE_FACTS=1 \
"$BOOTSTRAP" 2>"$TMP/stderr")
fail() {
echo "FAIL: $1"
printf '%s\n' "$out" | sed 's/^/ /'
sed 's/^/ /' "$TMP/stderr"
exit 1
}
if printf '%s\n' "$out" | grep -q '^CREW_DISPATCH: invalid'; then
fail "firstmate rejected the crew dispatch config"
fi
default=$(printf '%s\n' "$out" | grep '^BOOTSTRAP_INFO: crew dispatch default: ' || true)
[ -n "$default" ] || fail "firstmate reported no default dispatch profile"
case "$default" in
*opencode/opencode-go/deepseek-v4.1-flash*) ;;
*) fail "default workers are not OpenCode + DeepSeek v4.1 Flash" ;;
esac
case "$default" in
*pi/*|*codex/*) fail "default workers still resolve to a Pi/Codex profile" ;;
esac
docs=$(printf '%s\n' "$out" | grep '^BOOTSTRAP_INFO: crew dispatch rule: Documentation tasks' || true)
[ -n "$docs" ] || fail "no documentation dispatch rule"
case "$docs" in
*'-> opencode/opencode-go/beam-free') ;;
*) fail "documentation tasks do not resolve to opencode/opencode-go/beam-free" ;;
esac
design=$(printf '%s\n' "$out" | grep '^BOOTSTRAP_INFO: crew dispatch rule: Design, architecture' || true)
[ -n "$design" ] || fail "the preserved design rule is missing"
case "$design" in
*'-> pi/openai-codex/gpt-6.1-sol/xhigh') ;;
*) fail "the design exception no longer resolves to Pi + GPT-6.1 Sol" ;;
esac
ui=$(printf '%s\n' "$out" | grep '^BOOTSTRAP_INFO: crew dispatch rule: UI work' || true)
[ -n "$ui" ] || fail "the UI image-context rule is missing"
case "$ui" in
*opencode-go/deepseek-v4.1-flash*) ;;
*) fail "the UI rule no longer resolves to DeepSeek v4.1 Flash" ;;
esac
# The model IDs above come from the same file the routing check reads, so a
# typo would still pass them. OpenCode's own catalog is the independent oracle:
# a model it does not list fails only when a crew spawns. Confirm each
# OpenCode-harness model against that catalog.
OPENCODE_JSON=${OPENCODE_CONFIG:-$HOME/.config/opencode2/opencode.json}
if ! command -v opencode >/dev/null 2>&1 || ! command -v python3 >/dev/null 2>&1; then
echo "SKIP: opencode or python3 not on PATH, cannot confirm the model IDs"
elif [ ! -e "$OPENCODE_JSON" ]; then
echo "SKIP: no isolated OpenCode config at $OPENCODE_JSON, cannot confirm the model IDs"
else
catalog=$(OPENCODE_CONFIG="$OPENCODE_JSON" timeout 120 opencode models 2>/dev/null || true)
if [ -z "$catalog" ]; then
echo "SKIP: opencode models printed nothing, cannot confirm the model IDs"
else
models=$(python3 - "$CONFIG" <<'PY'
import json, sys
config = json.load(open(sys.argv[1]))
uses = list(config.get("default") or [])
for rule in config.get("rules") or []:
use = rule.get("use")
uses.extend(use if isinstance(use, list) else [use])
for use in uses:
if isinstance(use, dict) and use.get("harness") == "opencode" and use.get("model"):
print(use["model"])
PY
)
# Deduplicate so a model named by two profiles is confirmed once.
models=$(printf '%s\n' "$models" | awk 'NF && !seen[$0]++')
while IFS= read -r model; do
[ -n "$model" ] || continue
printf '%s\n' "$catalog" | grep -qxF "$model" \
|| fail "$model is not in the OpenCode catalog (opencode models)"
echo "PASS: $model exists in the OpenCode catalog"
done <<< "$models"
fi
fi
echo "PASS: default workers -> opencode/opencode-go/deepseek-v4.1-flash"
echo "PASS: documentation -> opencode/opencode-go/beam-free"
echo "PASS: design exception preserved -> pi/openai-codex/gpt-6.1-sol/xhigh"
+129
View File
@@ -0,0 +1,129 @@
#!/usr/bin/env bash
# Behavior check: a fresh interactive zsh runs `fm` and the permanent launcher
# starts OpenCode 2 through ~/.local/bin/oc2, never Pi.
#
# The check reads the zshrc that the real home-manager configuration generates
# (the same file a rebuild installs), sources it in an interactive zsh, and runs
# `fm` with two harmless spies:
# - a `pi` spy first on PATH, which catches a Pi launch;
# - a spy named by OPENCODE2_BIN, which the real ~/.local/bin/oc2 wrapper
# execs instead of the OpenCode binary.
# Nothing here launches a real firstmate primary, Pi, or OpenCode, so no
# session lock is taken.
#
# Usage:
# tests/fm-launcher.sh # check the configuration source (default)
# tests/fm-launcher.sh --live # check the installed ~/.zshrc
# tests/fm-launcher.sh --zshrc F # check a specific generated zshrc
set -euo pipefail
ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)
MODE=source
ZSHRC=''
while [ $# -gt 0 ]; do
case "$1" in
--live) MODE=live; shift ;;
--zshrc)
[ $# -ge 2 ] || { echo "fm-launcher: --zshrc needs a path" >&2; exit 2; }
MODE="file"; ZSHRC=$2; shift 2 ;;
-h|--help)
awk 'NR == 1 { next } /^#/ { sub(/^# ?/, ""); print; next } { exit }' "$0"
exit 0 ;;
*) echo "fm-launcher: unknown argument $1" >&2; exit 2 ;;
esac
done
TMP=$(mktemp -d "${TMPDIR:-/tmp}/fm-launcher.XXXXXX")
cleanup() { rm -rf "$TMP"; }
trap cleanup EXIT
mkdir -p "$TMP/bin"
cat > "$TMP/bin/pi" <<'SH'
#!/usr/bin/env bash
printf 'pi' >> "$FM_TEST_SPY_LOG"
for arg in "$@"; do printf '|%s' "$arg" >> "$FM_TEST_SPY_LOG"; done
printf '\n' >> "$FM_TEST_SPY_LOG"
exit 0
SH
cat > "$TMP/bin/opencode2-spy" <<'SH'
#!/usr/bin/env bash
printf 'oc2' >> "$FM_TEST_SPY_LOG"
for arg in "$@"; do printf '|%s' "$arg" >> "$FM_TEST_SPY_LOG"; done
printf '\n' >> "$FM_TEST_SPY_LOG"
exit 0
SH
chmod +x "$TMP/bin/pi" "$TMP/bin/opencode2-spy"
printf '{}\n' > "$TMP/opencode.json"
case "$MODE" in
live)
ZSHRC="$HOME/.zshrc"
LABEL="installed ~/.zshrc"
;;
file)
LABEL="$ZSHRC"
;;
source)
command -v nix >/dev/null 2>&1 \
|| { echo "fm-launcher: nix is required to build the configured zshrc" >&2; exit 2; }
ZSHRC="$TMP/zshrc"
nix eval --raw --impure --expr \
"(builtins.getFlake (toString $ROOT)).darwinConfigurations.\"lt-mbp\".config.home-manager.users.laptran.home.file.\"./.zshrc\".text" \
> "$ZSHRC"
LABEL="home-manager zshrc generated from $ROOT"
;;
esac
[ -r "$ZSHRC" ] || { echo "fm-launcher: cannot read $ZSHRC" >&2; exit 2; }
: > "$TMP/spy.log"
: > "$TMP/stderr"
set +e
# shellcheck disable=SC2016 # the snippet expands inside the interactive zsh
FM_TEST_ZSHRC="$ZSHRC" \
FM_TEST_SPY_LOG="$TMP/spy.log" \
OPENCODE2_BIN="$TMP/bin/opencode2-spy" \
OPENCODE_CONFIG="$TMP/opencode.json" \
PATH="$TMP/bin:$PATH" \
timeout 60 zsh -f -i -c '
source "$FM_TEST_ZSHRC" || exit 4
if ! alias fm >/dev/null 2>&1; then
echo "fm-launcher: no fm alias in the sourced zshrc" >&2
exit 3
fi
eval fm
' >/dev/null 2>"$TMP/stderr"
status=$?
set -e
launched=''
[ -s "$TMP/spy.log" ] && launched=$(head -n 1 "$TMP/spy.log")
if [ "$status" -eq 3 ]; then
echo "FAIL: $LABEL does not define an fm alias"
exit 1
fi
if [ "$status" -ne 0 ]; then
echo "FAIL: fm launch from $LABEL exited $status"
sed 's/^/ /' "$TMP/stderr"
exit 1
fi
if [ -z "$launched" ]; then
echo "FAIL: fm from $LABEL launched nothing the spies could see"
sed 's/^/ /' "$TMP/stderr"
exit 1
fi
if [ "${launched%%|*}" != oc2 ]; then
echo "FAIL: fm from $LABEL launched ${launched%%|*} instead of OpenCode 2 (oc2)"
echo " recorded launch: $launched"
exit 1
fi
if grep -q '^pi' "$TMP/spy.log"; then
echo "FAIL: fm from $LABEL also launched Pi"
sed 's/^/ /' "$TMP/spy.log"
exit 1
fi
echo "PASS: fm from $LABEL launched OpenCode 2 via oc2 ($launched)"
Executable
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# Run the dotfiles configuration checks that need the live machine.
#
# The launcher check builds the zshrc from the home-manager configuration and
# runs `fm` with spies. The dispatch check reads the crew dispatch config through
# firstmate's bootstrap validator. Neither starts a real agent session.
set -euo pipefail
ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)
status=0
"$ROOT/tests/fm-launcher.sh" || status=1
"$ROOT/tests/crew-dispatch.sh" || status=1
exit "$status"