feat(firstmate): add explicit fm-oc2 launcher alias #22

Merged
hermes merged 2 commits from fm/dotfiles-firstmate-explicit-aliases into main 2026-11-16 09:30:52 -05:00
Owner

What changed

  • home.nix: adds fm-oc2, byte-identical to fm (cd /Users/laptran/Documents/firstmate && exec /Users/laptran/.local/bin/oc2). fm and fm-pi are unchanged. Nix owns all three aliases.
  • tests/fm-launcher.sh: the launcher check now sources the home-manager-generated zshrc and runs fm, fm-oc2, and fm-pi in an interactive zsh against spies. It asserts the launched tool and the working directory, and that fm and fm-oc2 record an identical launch. Nothing starts a real primary.
  • readme.md: documents the three aliases, that they share one firstmate home and its task records but keep separate chat histories, and that the running primary must be quit before starting the other.
  • AGENTS.md (pipeline document step): the alias list now names fm / fm-oc2.

Evidence

The new check failed before the source change:

FAIL: home-manager zshrc generated from ... does not define a fm-oc2 alias

It passes after:

PASS: fm from ... launched oc2 in /Users/laptran/Documents/firstmate (oc2|/Users/laptran/Documents/firstmate)
PASS: fm-oc2 from ... launched oc2 in /Users/laptran/Documents/firstmate (oc2|/Users/laptran/Documents/firstmate)
PASS: fm-pi from ... launched pi in /Users/laptran/Documents/firstmate (pi|/Users/laptran/Documents/firstmate)
PASS: fm and fm-oc2 are identical launchers

./tests/run.sh also passes the crew dispatch check.

no-mistakes run 01M7JBS42WA7J899DN5K00P7ZC: intent, rebase, review, test, document, lint, and push completed. pr and ci skipped because this repository is Gitea. Outcome passed.

Installation

The live ~/.zshrc already carries the three aliases, so current shells keep working. Persisting the aliases across a rebuild needs a home-manager activation, because shellAliases generate ~/.zshrc.

  1. Merge this pull request into the default branch.
  2. ~/.dotfiles points to /Users/laptran/Documents/firstmate/projects/dotfiles. That clone is behind the default branch and holds uncommitted edits. Do not run rebuild.sh from it until those edits are reconciled.
  3. From a checkout of the merged default branch, run ./rebuild.sh, then ./tests/fm-launcher.sh --live.
  4. In a fresh shell, alias fm fm-oc2 fm-pi must show fm and fm-oc2 as cd /Users/laptran/Documents/firstmate && exec /Users/laptran/.local/bin/oc2, and fm-pi as cd /Users/laptran/Documents/firstmate && exec pi.

No activation or rebuild ran while producing this change.

Note

Review raised one info-level suggestion: bind the shared oc2 launcher string once instead of repeating it. The values stay byte-identical in the source on purpose, and the test enforces behavioral identity, so the change leaves the layout as is.

## What changed - `home.nix`: adds `fm-oc2`, byte-identical to `fm` (`cd /Users/laptran/Documents/firstmate && exec /Users/laptran/.local/bin/oc2`). `fm` and `fm-pi` are unchanged. Nix owns all three aliases. - `tests/fm-launcher.sh`: the launcher check now sources the home-manager-generated zshrc and runs `fm`, `fm-oc2`, and `fm-pi` in an interactive zsh against spies. It asserts the launched tool and the working directory, and that `fm` and `fm-oc2` record an identical launch. Nothing starts a real primary. - `readme.md`: documents the three aliases, that they share one firstmate home and its task records but keep separate chat histories, and that the running primary must be quit before starting the other. - `AGENTS.md` (pipeline document step): the alias list now names `fm` / `fm-oc2`. ## Evidence The new check failed before the source change: ``` FAIL: home-manager zshrc generated from ... does not define a fm-oc2 alias ``` It passes after: ``` PASS: fm from ... launched oc2 in /Users/laptran/Documents/firstmate (oc2|/Users/laptran/Documents/firstmate) PASS: fm-oc2 from ... launched oc2 in /Users/laptran/Documents/firstmate (oc2|/Users/laptran/Documents/firstmate) PASS: fm-pi from ... launched pi in /Users/laptran/Documents/firstmate (pi|/Users/laptran/Documents/firstmate) PASS: fm and fm-oc2 are identical launchers ``` `./tests/run.sh` also passes the crew dispatch check. no-mistakes run `01M7JBS42WA7J899DN5K00P7ZC`: intent, rebase, review, test, document, lint, and push completed. `pr` and `ci` skipped because this repository is Gitea. Outcome passed. ## Installation The live `~/.zshrc` already carries the three aliases, so current shells keep working. Persisting the aliases across a rebuild needs a home-manager activation, because `shellAliases` generate `~/.zshrc`. 1. Merge this pull request into the default branch. 2. `~/.dotfiles` points to `/Users/laptran/Documents/firstmate/projects/dotfiles`. That clone is behind the default branch and holds uncommitted edits. Do not run `rebuild.sh` from it until those edits are reconciled. 3. From a checkout of the merged default branch, run `./rebuild.sh`, then `./tests/fm-launcher.sh --live`. 4. In a fresh shell, `alias fm fm-oc2 fm-pi` must show `fm` and `fm-oc2` as `cd /Users/laptran/Documents/firstmate && exec /Users/laptran/.local/bin/oc2`, and `fm-pi` as `cd /Users/laptran/Documents/firstmate && exec pi`. No activation or rebuild ran while producing this change. ## Note Review raised one info-level suggestion: bind the shared `oc2` launcher string once instead of repeating it. The values stay byte-identical in the source on purpose, and the test enforces behavioral identity, so the change leaves the layout as is.
hermes added 2 commits 2026-11-16 09:29:22 -05:00
fm and fm-oc2 both run oc2 from the firstmate home. fm-pi stays the
explicit Pi fallback. The launcher check now sources the generated
zshrc, runs each alias against spies, and asserts the working directory
and that fm and fm-oc2 launch identically.

The readme records that the aliases share one firstmate home and its
task records but keep separate chat histories, so the running primary
must be quit before starting the other.
hermes merged commit cff3c8873e into main 2026-11-16 09:30:52 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: transnet/dotfiles#22