Repository navigation
Conversation
Hermes can run as a firstmate primary, but fm-lock only matched claude/codex/opencode/grok/pi, so lock acquire failed with "cannot locate harness process in ancestry" and the session fell into false read-only mode even with a free lock. Add hermes to the lock holder regex only. This does not verify Hermes as a spawn/crew or supervision adapter; those paths still refuse unverified runtimes. Include behavior tests for bin and python-entrypoint shapes plus a regression check for existing holders.
Recognize Hermes for session lock and own-harness detection (HERMES_SESSION_ID + process ancestry), add a background-notify supervision protocol, and ship optional global shell-hook bridges for arm/continuity seatbelts plus first-turn session-start context injection. Hermes has no general Stop force-continue; document that residual gap and keep crew-spawn on the existing verified adapters. Include installer, behavior tests, and docs/hermes-primary.md evidence.
Point firstmate agents at the Hermes primary supervision recipe, hook installer, and residual no-Stop-force-continue gap without claiming crew-spawn support.
Bring the strong upstream Hermes patterns into this fleet fork while keeping proven background-notify primary supervision. - bin/fm-hermes-home.sh: isolated HERMES_HOME that never rewrites ~/.hermes - bin/fm-turnend-guard-hermes.sh: one-shot follow-up in a temp home - fm-spawn/teardown: hermes launch template, model -m, state id.hermes lifecycle - fm-harness: multi-marker detection with ancestry tie-break - busy regex: Ctrl+C cancel for Hermes composer footer - tests/fm-hermes-harness.test.sh from #853 with SESSION_ID test hygiene - docs/AGENTS/harness-adapters updated for full hermes verify
…ted) Hermes Agent v0.19 rejects positional prompts on 'hermes chat' and on 'hermes chat --cli "..."'. Use top-level hermes --yolo --accept-hooks --cli -z "$(cat brief)" so the brief is the first turn and the CLI stays multi-turn. Smoke: herdr tab fm-hermes-crew-smoke, isolated state/<id>.hermes, done.
|
Closing because this PR was opened unintentionally by a local no-mistakes validation run configured against the upstream repository. The intended review target is labsiqbal/firstmate#2. |
Review — vendoring the infra Terraform modules into
|
Intent
Independently validate the existing labsiqbal/firstmate fork PR #2 on branch fm/fm-codex-fastmode before it lands on fork main. The change must add --enable fast_mode to both codex launch templates in bin/fm-spawn.sh, including the plain secondmate variant and the turn-end notify ship/scout variant, with placeholder substitution and spacing preserved. The flag must affect only codex, and existing tests must prove it is present for both codex variants and absent for claude, opencode, pi, grok, and hermes. bin/fm-lint.sh and the relevant shell tests must pass. Reuse existing fork PR #2 and do not open any new PR, especially not against kunchenguid/firstmate.
What Changed
bin/fm-spawn.shrecognizeshermesas a bare adapter name, renders aHERMES_HOME=... hermes --yolo --accept-hooks --cli -m <model> -z "$(cat BRIEF)"launch template with__HERMES_HOME__placeholder substitution, and provisions a firstmate-owned isolatedHERMES_HOMEunderstate/<id>.hermes(newbin/fm-hermes-home.sh,bin/fm-hermes-install-primary-hooks.sh,bin/fm-hermes-primary-hook.sh,bin/fm-turnend-guard-hermes.sh) that installs turn-end hooks without touching the captain's real~/.hermes;bin/fm-lock.sh,bin/fm-watch.sh, andbin/fm-teardown.shwere updated to recognize and clean up Hermes sessions.--enable fast_modeinto both codex launch templates inbin/fm-spawn.sh- the plain secondmate variant and the turn-endnotifyship/scout variant - with placeholder substitution and spacing preserved, leaving claude, opencode, pi, grok, and hermes templates unchanged.docs/hermes-primary.md,docs/supervision-protocols/hermes.md,.agents/skills/harness-adapters/SKILL.md,AGENTS.md) and added test coverage (tests/fm-hermes-harness.test.sh,tests/fm-hermes-primary.test.sh,tests/fm-lock-harness.test.sh, and expandedtests/fm-spawn-dispatch-profile.test.sh) asserting fast_mode is present for both codex variants and absent for the other adapters.Risk Assessment
✅ Low: The change is a minimal, well-bounded two-line template edit that adds --enable fast_mode to both codex launch variants only, with matching test coverage proving presence for both codex variants and absence for all other harnesses, fully satisfying the stated intent.
Testing
Ran the two targeted shell tests that directly prove the intent (fm-spawn-dispatch-profile and fm-secondmate-harness) plus bin/fm-lint.sh; all pass. The dispatch-profile suite's test_fast_mode_is_codex_only exercises actual spawns and confirms
--enable fast_modeis present for both codex launch variants (plain secondmate + turn-end notify ship/scout) with placeholder substitution and spacing preserved, and absent for claude, opencode, pi, grok, and hermes. I also rendered the launch templates verbatim from bin/fm-spawn.sh as reviewer-visible evidence showing only the two codex variants contain the flag. fm-lint.sh exits 0 with pinned ShellCheck 0.11.0 and no findings. This is a CLI/shell launch-command change with no rendered UI surface, so evidence is CLI transcripts and rendered launch strings rather than screenshots. Worktree left clean; no new PR opened (read/test-only validation).Evidence: Rendered codex launch templates (only codex variants carry --enable fast_mode)
codex SECONDMATE (plain): codex MODELFLAG____EFFORTFLAG--enable fast_mode --dangerously-bypass-approvals-and-sandbox "$(cat BRIEF)" codex SHIP/SCOUT (notify): codex MODELFLAG____EFFORTFLAG--enable fast_mode --dangerously-bypass-approvals-and-sandbox -c "notify=[...]" "$(cat BRIEF)" claude/grok/hermes lines contain NO fast_modeEvidence: Test + lint transcript
ok - codex plain and notify launches enable fast_mode without affecting other harnesses # all fm-spawn-dispatch-profile tests passed # all fm-secondmate-harness tests passed fm-lint.sh: ShellCheck 0.11.0 (pinned 0.11.0) -> exit 0Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
bin/fm-lock.sh- merge conflict rebasing onto origin/main✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
bash tests/fm-spawn-dispatch-profile.test.sh— 18/18 pass includingtest_fast_mode_is_codex_only, which asserts real rendered launches containcodex --enable fast_mode --dangerously-bypass-approvals-and-sandboxfor both the notify (ship) and plain (secondmate) variants and asserts--enable fast_modeis absent for claude, opencode, pi, grok, and hermesbash tests/fm-secondmate-harness.test.sh— all pass; independently asserts the codex--enable fast_modelaunch string with correct model/effort omissionbash bin/fm-lint.sh— exit 0, ShellCheck 0.11.0 (pinned), no findingsRendered launch_template output verbatim from bin/fm-spawn.sh to confirm only the two codex variants carry fast_mode and spacing/placeholders are intact✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.