Skip to content

docs: relabel built-in defaults as the firstmate repo - #688

Merged
kunchenguid merged 1 commit into
mainfrom
fm/fm-domain-relabel-firstmate-repo
Jul 18, 2026
Merged

kunchenguid merged 1 commit into
mainfrom
fm/fm-domain-relabel-firstmate-repo

Conversation

@kunchenguid

Copy link
Copy Markdown
Owner

Intent

The captain objects to calling this repo/domain a "template" as an identity label for built-in defaults; that is inaccurate. Relabel tracked uses of "template" that stand in for THIS repo's built-in defaults to "the firstmate repo" phrasing, while KEEPING design-tenet statements that firstmate IS a reusable OSS template (AGENTS.md "This repo is a shared template..." and CONTRIBUTING.md "This repo is a template for running a firstmate orchestrator agent."). Also keep all unrelated command/file "template" uses: launch_template / launch template (spawn, architecture, configuration, harness-adapters) and PR-poll TEMPLATE hashes/vars. Do not touch gitignored data/. Named spots: AGENTS.md "means template defaults" and "use this template's defaults"; bin/fm-session-start.sh "captain.md absent = template defaults"; plus any other same-sense domain label found by grep (e.g. secondmate-provisioning "Firstmate template path"). Wording only - no behavior change. Tight reviewable diff; one sentence per line in Markdown; plain dash; bin/fm-lint.sh green.

What Changed

  • Relabeled built-in default wording in AGENTS.md and bin/fm-session-start.sh from template-based identity language to firstmate repo phrasing.
  • Updated the secondmate provisioning skill to refer to the firstmate repo path instead of a Firstmate template path.
  • Preserved unrelated template terminology for reusable project guidance and command/file concepts.

Risk Assessment

✅ Low: Captain, risk is low because this is a tight wording-only change that preserves the required template identity statements and unrelated launch/PR-poll template uses while updating the named same-sense defaults references.

Testing

The pre-run full shell test baseline had already passed; I reran the session-start and instruction-owner suites, then captured a focused CLI transcript proving the relabel intent on the real tracked files plus isolated session-start behavior. All exercised tests passed, and the worktree was left clean; only bin/fm-lint.sh evidence is missing because this test prompt forbade linters.

Evidence: Domain relabel evidence transcript
Evidence generated: 2026-07-18T02:18:47Z
Worktree: /Users/kunchen/.no-mistakes/worktrees/016d88035d58/01KXSETK42BKTB4MTPTTPCN8SG
HEAD: 142829ba2bea061406c7a1b123baedee0cf5fea0

## Diff Under Test
diff --git a/.agents/skills/secondmate-provisioning/SKILL.md b/.agents/skills/secondmate-provisioning/SKILL.md
index bb614ff..81393e8 100644
--- a/.agents/skills/secondmate-provisioning/SKILL.md
+++ b/.agents/skills/secondmate-provisioning/SKILL.md
@@ -92,5 +92,5 @@ Never copy any secondmate `data/captain-shared.md` back into the primary.
 Keep each home's `data/captain.md` domain-local.
 After first propagation to an existing home, trim that home's local `data/captain.md` by hand to domain-specific content plus pointers to `data/captain-shared.md`; do not automate or silently delete private content.
-Keep every `data/learnings.md` fully local by captain decision; route fleet-general machinery facts into tracked documentation through the normal Firstmate template path rather than inventing shared learnings propagation.
+Keep every `data/learnings.md` fully local by captain decision; route fleet-general machinery facts into tracked documentation through the normal firstmate repo path rather than inventing shared learnings propagation.
 No reread nudge is needed at spawn or respawn because the agent reads `AGENTS.md` fresh on launch; only the bootstrap sweep's running-home instruction-surface advance needs one.
 Bootstrap reports successful sends as `BOOTSTRAP_INFO:` and only emits `NUDGE_SECONDMATES:` when that send fails and needs retry.
diff --git a/AGENTS.md b/AGENTS.md
index b47d686..cdf7b16 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -121,5 +121,5 @@ Tracked native session-open adapters only nudge this command; `docs/sessionstart
 Read the complete digest once and trust it as this turn's startup and recovery input.
 Do not separately re-read the context, backlog, metadata, or bulk status inputs it just printed unless a source was reported absent or corrupt, older history is specifically needed, or a targeted workflow must inspect before writing.
-An `ABSENT` captain, shared-captain, secondmate, or learnings file means template defaults, no shared captain preferences, no registered secondmates, or no captured learnings; rebuild an absent or stale project registry from the clones before dispatch.
+An `ABSENT` captain, shared-captain, secondmate, or learnings file means the firstmate repo's built-in defaults, no shared captain preferences, no registered secondmates, or no captured learnings; rebuild an absent or stale project registry from the clones before dispatch.
 
 If the session lock is refused, tell the captain another active session is managing the fleet and remain read-only.
@@ -134,5 +134,5 @@ A lock-refused session must not spawn, steer, merge, drain the wake queue, repai
    When the lock could not be acquired, the queue is left untouched because another session owns it, and the guard's tangle/watcher-liveness alarms still print in read-only advisory mode without drain, supervision repair, or checkout repair commands.
 4. **Context digest** - the full contents of `data/projects.md`, `data/secondmates.md`, `data/captain.md`, `data/captain-shared.md`, and `data/learnings.md`, each clearly delimited.
-   A file that does not exist prints an explicit `ABSENT` marker, never confused with an empty-but-present file: absence is meaningful (`captain.md` absent means use this template's defaults, `projects.md` absent means rebuild it from the clones under `projects/`, etc.).
+   A file that does not exist prints an explicit `ABSENT` marker, never confused with an empty-but-present file: absence is meaningful (`captain.md` absent means use the firstmate repo's built-in defaults, `projects.md` absent means rebuild it from the clones under `projects/`, etc.).
 5. **Fleet-state digest** - the compact backlog listing owned by `bin/fm-session-start.sh`; every `state/<id>.meta`; a bounded tail of each task's `state/<id>.status` (labeled as wake-EVENT history, not current state, with the full log path printed for a deeper read); the `state/.afk` flag; and one cheap alive/dead read of each task's recorded backend endpoint.
    That liveness line is a fast presence check only, not a full state read - when you need a crew's actual current state (a run-step, not just "is the pane there"), read it with `bin/fm-crew-state.sh <id>` as before; the digest deliberately skips that deeper, slower read for every task so it stays fast and bounded.
diff --git a/bin/fm-session-start.sh b/bin/fm-session-start.sh
index c266dfc..cdeb03f 100755
--- a/bin/fm-session-start.sh
+++ b/bin/fm-session-start.sh
@@ -115,8 +115,8 @@ subsection() { printf '\n%s\n%s\n' "$1" "$SUBRULE"; }
 # print_file_or_absent <path> <label>: full contents under a labeled
 # subsection, or an explicit ABSENT marker. Absence is semantically
-# meaningful for every one of these files (captain.md absent = template
-# defaults, projects.md absent = rebuild from clones, etc. - AGENTS.md
-# section 3) and must never be confused with an empty-but-present file, so
-# the two cases print differently.
+# meaningful for every one of these files (captain.md absent = firstmate
+# repo built-in defaults, projects.md absent = rebuild from clones, etc. -
+# AGENTS.md section 3) and must never be confused with an empty-but-present
+# file, so the two cases print differently.
 print_file_or_absent() {
   local path=$1 label=$2

## Required firstmate repo wording now present
.agents/skills/secondmate-provisioning/SKILL.md:94:Keep every `data/learnings.md` fully local by captain decision; route fleet-general machinery facts into tracked documentation through the normal firstmate repo path rather than inventing shared learnings propagation.
bin/fm-session-start.sh:117:# meaningful for every one of these files (captain.md absent = firstmate
AGENTS.md:123:An `ABSENT` captain, shared-captain, secondmate, or learnings file means the firstmate repo's built-in defaults, no shared captain preferences, no registered secondmates, or no captured learnings; rebuild an absent or stale project registry from the clones before dispatch.
AGENTS.md:136:   A file that does not exist prints an explicit `ABSENT` marker, never confused with an empty-but-present file: absence is meaningful (`captain.md` absent means use the firstmate repo's built-in defaults, `projects.md` absent means rebuild it from the clones under `projects/`, etc.).

## Protected OSS-template statements still present
AGENTS.md:42:This repo is a shared template, while `.env`, `data/`, `state/`, `config/`, `projects/`, and `.no-mistakes/` are captain-private and gitignored.
CONTRIBUTING.md:35:- This repo is a template for running a firstmate orchestrator agent.

## Forbidden domain-label phrases absent
No matches for forbidden domain-label phrases outside gitignored data/.

## Unrelated template uses still present
bin/fm-pr-check-migrate.sh:15:TEMPLATE="$SCRIPT_DIR/fm-pr-poll.sh"
bin/fm-pr-check-migrate.sh:88:    fm_pr_poll_artifacts_valid "$STATE" "$id" "$TEMPLATE" || return 1
bin/fm-pr-check-migrate.sh:378:    if ! fm_pr_poll_artifacts_valid "$STATE" "$id" "$TEMPLATE"; then
bin/fm-pr-check-migrate.sh:395:    fm_pr_poll_artifacts_valid "$STATE" "$id" "$TEMPLATE" || return 1
bin/fm-pr-check-migrate.sh:716:  fm_pr_poll_artifacts_valid "$STATE" "$id" "$TEMPLATE" \
bin/fm-pr-check-migrate.sh:793:  fm_pr_poll_prepare "$STATE" "$id" "$url" "$owner" "$repo" "$number" "$TEMPLATE" || return 1
bin/fm-pr-check-migrate.sh:1023:    fm_pr_poll_artifacts_valid "$STATE" "$id" "$TEMPLATE" && continue
bin/fm-pr-check-migrate.sh:1045:          && fm_pr_poll_prepare "$STATE" "$id" "$url" "$owner" "$repo" "$number" "$TEMPLATE" \
.agents/skills/harness-adapters/SKILL.md:216:Multiple positional args become separate queued messages; `fm-spawn`'s template already does this correctly.
bin/fm-spawn.sh:68:#   Launch templates live in launch_template() below; placeholders replaced before launch:
bin/fm-spawn.sh:314:launch_template() {
bin/fm-spawn.sh:370:    # The launch_template lookup below is the unverified-adapter guard for both
bin/fm-spawn.sh:383:    LAUNCH=$(launch_template "$HARNESS" "$KIND") || { echo "error: no launch template for harness '$HARNESS' (from $harness_src or detection); pass a raw launch command to use an unverified adapter" >&2; exit 1; }
bin/fm-spawn.sh:387:    LAUNCH=$(launch_template "$HARNESS" "$KIND") || { echo "error: unknown harness '$HARNESS'; pass a raw launch command to use an unverified adapter" >&2; exit 1; }
bin/fm-pr-lib.sh:24:FM_PR_REG_TEMPLATE_HASH=
bin/fm-pr-lib.sh:39:FM_PR_POLL_EXPECT_TEMPLATE_HASH=
bin/fm-pr-lib.sh:42:FM_PR_POLL_TEMPLATE=
bin/fm-pr-lib.sh:227:  local file=$1 version id url owner repo number data_hash template_hash data_identity check_identity
bin/fm-pr-lib.sh:234:  FM_PR_REG_TEMPLATE_HASH=
bin/fm-pr-lib.sh:246:  IFS= read -r template_hash <&7 || { exec 7<&-; return 1; }
bin/fm-pr-lib.sh:261:  [[ "$template_hash" =~ ^[0-9a-f]{64}$ ]] || return 1
bin/fm-pr-lib.sh:270:  FM_PR_REG_TEMPLATE_HASH=$template_hash
bin/fm-pr-lib.sh:324:  FM_PR_POLL_TEMPLATE=$template
bin/fm-pr-lib.sh:353:  FM_PR_POLL_EXPECT_TEMPLATE_HASH=$(fm_pr_sha256 "$FM_PR_POLL_CHECK_TMP") || { fm_pr_poll_cleanup; return 1; }
bin/fm-pr-lib.sh:358:      "$FM_PR_POLL_EXPECT_DATA_HASH" "$FM_PR_POLL_EXPECT_TEMPLATE_HASH" \
bin/fm-pr-lib.sh:366:    || [ "$FM_PR_REG_TEMPLATE_HASH" != "$FM_PR_POLL_EXPECT_TEMPLATE_HASH" ]; then
bin/fm-pr-lib.sh:409:    || [ "$FM_PR_REG_TEMPLATE_HASH" != "$FM_PR_POLL_EXPECT_TEMPLATE_HASH" ] \
bin/fm-pr-lib.sh:422:  if ! fm_pr_poll_artifacts_valid "${FM_PR_POLL_CHECK_DEST%/*}" "$FM_PR_POLL_EXPECT_ID" "$FM_PR_POLL_TEMPLATE"; then
bin/fm-pr-lib.sh:429:  local state=$1 id=$2 template=$3 state_device check data registration meta data_hash template_hash data_identity check_identity
bin/fm-pr-lib.sh:445:  template_hash=$(fm_pr_sha256 "$check") || return 1
bin/fm-pr-lib.sh:455:  [ "$FM_PR_REG_TEMPLATE_HASH" = "$template_hash" ] || return 1

## Isolated session-start digest excerpt
SESSION START - /var/folders/5x/4nqprlbx0518k3ybcb1sz6gr0000gn/T/no-mistakes-evidence/01KXSETK42BKTB4MTPTTPCN8SG/session-home
LOCK
lock acquired: harness pid 82438
CONTEXT
data/projects.md
ABSENT
data/secondmates.md
ABSENT
data/captain.md
ABSENT
data/captain-shared.md (shared, main-authoritative, read-only in secondmate homes)
ABSENT
data/learnings.md
ABSENT
- Outcome: ⚠️ 1 warning across 1 run (25m14s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

⚠️ **Test** - 1 warning
  • ⚠️ Author intent asks for bin/fm-lint.sh to be green, but this testing prompt explicitly prohibited running linters or static analysis, so I did not run bin/fm-lint.sh. Lint evidence remains uncollected in this test step unless that rule is overridden or a later lint step runs it.
  • command -v tmux >/dev/null || { echo "tmux is required for e2e tests" >&2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo "== $t =="; bash "$t" || rc=1; done; exit "$rc"
  • Baseline already ran successfully before this step: command -v tmux &gt;/dev/null || { echo &#34;tmux is required for e2e tests&#34; &gt;&amp;2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo &#34;== $t ==&#34;; bash &#34;$t&#34; || rc=1; done; exit &#34;$rc&#34;
  • bash tests/fm-session-start.test.sh
  • bash tests/fm-instruction-owners.test.sh
  • Generated reviewer evidence with git diff, rg checks for required/protected/forbidden template wording, and an isolated FM_HOME=... bin/fm-session-start.sh digest excerpt into /var/folders/5x/4nqprlbx0518k3ybcb1sz6gr0000gn/T/no-mistakes-evidence/01KXSETK42BKTB4MTPTTPCN8SG/fm-domain-relabel-evidence.txt
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

Relabel absent-captain and related domain defaults wording so it names
the firstmate repo rather than treating "template" as this domain's
identity label. Keep the design-tenet "shared template" statements and
unrelated launch/PR-poll template uses unchanged.
@kunchenguid
kunchenguid merged commit 6bdeb3a into main Jul 18, 2026
5 checks passed
@kunchenguid
kunchenguid deleted the fm/fm-domain-relabel-firstmate-repo branch July 18, 2026 02:43
LoneExile added a commit to LoneExile/firstmate that referenced this pull request Jul 19, 2026
kunchenguid#688)

"template" is overloaded in this repo (launch templates, PR-poll templates, and
the design-tenet shared template), so the absent-captain/absent-file defaults
wording the captain reads in AGENTS.md section 3, the fm-session-start.sh digest
comment, and secondmate-provisioning now names the firstmate repo's built-in
defaults instead. Captain-read clarity only; no behavior change. Contract tests
(fm-instruction-owners, fm-captain-translation-contract, fm-stow-contract,
fm-supervision-instructions, fm-bootstrap, fm-ensure-agents-md) green.
kirubeltadesse added a commit to kirubeltadesse/firstmate that referenced this pull request Jul 20, 2026
* fix: restore fleet snapshots on stock macOS Bash (kunchenguid#578)

* fix: restore stock macOS snapshot parsing

* no-mistakes(document): Clarify Linux gate and macOS CI coverage

* fix(afk): make Pi escalation and return catch-up reliable (kunchenguid#587)

* fix: close away-mode blocker supervision gap

* no-mistakes(review): Gate teardown retries and verify U+2063 dedupe

* no-mistakes(test): Fail closed on incomplete Pi composer separators

* no-mistakes(document): Document Pi composer recognition and return gating

* feat: support Pi max reasoning profiles (kunchenguid#537)

* support Pi max thinking profiles

* no-mistakes(review): Captain, allow Pi max dispatch profiles

* chore: no-mistakes(document): Clarify yolo response ownership (kunchenguid#595)

* Clarify validation response ownership

* no-mistakes(document): Clarify yolo response ownership

* feat: establish instruction ownership foundation (kunchenguid#619)

* Add instruction owners foundation

* no-mistakes(document): Refresh project-management owner pointers

* fix: compress Firstmate contract and enforce delivery rigor ownership (kunchenguid#626)

* docs: compress firstmate operating contract

* docs: make delivery rigor single-owner

PR B already removed personal and stacked review requirements, but it did not explicitly assign rigor to the selected delivery path or forbid risk-based manual clean gates. That gap still permitted the Hi Bit inversion.

* no-mistakes(review): Honor configured merge authority across faster delivery paths

* no-mistakes(document): Align docs with compressed operating contract

* feat: add durable captain decision holds (kunchenguid#593)

* Add durable captain decision holds

* no-mistakes(review): Validate decision hold retries and origin paths

* no-mistakes(review): Enforce durable decision lifecycle boundaries

* no-mistakes(review): Harden decision display and partial retry recovery

* no-mistakes(test): Update scout teardown fixtures for decision inventory

* no-mistakes(document): Align decision lifecycle and scout teardown documentation

* no-mistakes: apply CI fixes

* no-mistakes(review): Reconcile terminal decision holds

* no-mistakes(document): Align captain decision-hold documentation

* fix(bin): harden PR check artifacts (kunchenguid#556)

* fix: harden PR check artifacts

* fix: close PR check migration gaps

* fix: close PR check retry gaps

* fix: clarify migration outcomes and ESM boundary

* fix: keep failed migrations authoritative

* test: use inert PR validation fixtures

* no-mistakes(review): Reserve noncanonical PR quarantine namespace

* no-mistakes(review): Prevalidate final PR-check teardown artifacts

* no-mistakes(review): Preserve X metadata and validate teardown IDs

* no-mistakes(review): Initialize migration state before watcher exclusion

* no-mistakes(review): Isolate failed poll migrations from bootstrap recovery

* no-mistakes(review): Allow safe polling during incomplete private repairs

* no-mistakes(review): Authenticate watcher checks at execution time

* no-mistakes(review): Preserve custom checks with hash-bound registration

* no-mistakes(review): Clean custom check snapshots on watcher signals

* no-mistakes(review): Stop watcher checks promptly on signals

* no-mistakes(review): Terminate watcher check groups before cleanup

* no-mistakes(document): Correct stale X-mode watcher documentation

* fix: drain returned watcher check groups

* no-mistakes(review): Harden quarantine links and recover validated replacement polls

* no-mistakes(review): Preserve X mode across shim version transitions

* no-mistakes(review): Refresh legacy X shims before marker short-circuits

* no-mistakes(document): Correct persisted PR-check artifact documentation

* no-mistakes(document): Correct stale PR-check documentation

* fix: bind PR poll repair provenance

* no-mistakes(review): Enforce single-link ownership for custom check artifacts

* no-mistakes(review): Preserve private checks, X polling, and lifecycle IDs

* no-mistakes(review): Separate task creation and legacy teardown validation

* no-mistakes(review): Restore safe legacy operations and teardown validation

* no-mistakes(review): Disambiguate migration obligations and preserve legacy retries

* no-mistakes(review): Preserve fail-closed diagnostics and legacy quarantine evidence

* no-mistakes(review): Reconcile legacy migration retries and teardown collisions

* no-mistakes(review): Force legacy namespace reconciliation before marker short-circuits

* no-mistakes(document): Document private poll artifact safety contracts

* no-mistakes(lint): Suppress intentional literal-dollar lint finding

* fix: migrate historical X poll identity

* fix: harden PR check artifacts

* no-mistakes(review): Preserve fail-closed diagnostics and legacy quarantine evidence

* no-mistakes(review): Reconcile legacy migration retries and teardown collisions

* fix: migrate historical X poll identity

* no-mistakes(review): Harden X-mode artifact publication against symlink corruption

* no-mistakes(review): Guard X artifact publication

* no-mistakes(review): Enforce private X artifact reads

* no-mistakes(test): Fix backend compatibility fixture dependencies

* no-mistakes(document): Refresh PR-check documentation

* no-mistakes(lint): Remove unused x-mode test locals

* no-mistakes: apply CI fixes

* fix(bin): compact session-start backlog digest (kunchenguid#636)

* fix: compact session-start backlog digest

* no-mistakes(test): Fix legacy backend fixture helper

* no-mistakes(test): Fix watcher exit wait helper

* no-mistakes(document): Document compact backlog digest

* fix: dedupe stale watcher guard banners (kunchenguid#637)

* fix: dedupe stale watcher guard banner

* no-mistakes(review): Keep read-only guard state nonmutating

* no-mistakes(document): Clarify stale watcher docs

* fix(bin): balance bearings landed baseline (kunchenguid#640)

* fix: balance bearings landed defaults

* no-mistakes(document): Document balanced landed baseline

* no-mistakes: apply CI fixes

* fix: clarify captain-facing translation contract (kunchenguid#644)

* docs: clarify captain-facing translation contract

* no-mistakes(review): Restore runtime fallback mandate

* no-mistakes(document): Align Bearings translation wording

* fix(bin): make bootstrap output and nudges deterministic (kunchenguid#646)

* fix: make bootstrap nudges deterministic

* no-mistakes(review): Honor state override for bootstrap nudges

* no-mistakes(review): Update benign bootstrap documentation labels

* no-mistakes(review): Validate bootstrap nudge retry markers

* no-mistakes(document): Align bootstrap nudge documentation

* no-mistakes: apply CI fixes

* docs(secondmate-provisioning): clarify concise registry ownership (kunchenguid#649)

* Clarify concise secondmate registry contract

* no-mistakes(review): Expand secondmate registry boilerplate coverage

* no-mistakes(document): Point route docs to owner

* fix(bin): strip quoted blocked_by values during decision hold resolve (kunchenguid#654)

* fix(bin): strip quotes on blocked_by in decision-hold resolve

tasks-axi quotes multi-entry blocked_by as "a,b,c", so the comma-boundary
membership test only matched middle elements. Strip surrounding quotes
before matching so first and last hold ids resolve correctly.

* no-mistakes(document): Refresh decision-hold regression evidence

* feat(secondmate): inherit shared captain preferences (kunchenguid#656)

* feat(secondmate): inherit shared captain preferences

* no-mistakes(review): Honor shared captain data overrides

* no-mistakes(review): Honor bootstrap data override registry

* no-mistakes(document): Refresh shared inheritance docs

* no-mistakes(document): Clarify inherited local-material docs

* feat: gate local agent secret injection (kunchenguid#658)

* feat(spawn): gate local agent secret injection

* fix(spawn): align final Keychain slot

* no-mistakes: apply CI fixes

* test: isolate Herdr autodetect smoke sessions (kunchenguid#662)

* test: isolate herdr autodetect smoke session

* no-mistakes(review): Restored autodetect smoke gate bypass

* no-mistakes(test): Harden Herdr lab provisioning

* no-mistakes(document): Refresh Herdr lab docs

* docs: adopt under way for active work (kunchenguid#666)

* Revert "feat: gate local agent secret injection (kunchenguid#658)" (kunchenguid#668)

This reverts commit c27135c.

* fix(pi): distinguish stale locks when arming watcher (kunchenguid#681)

* fix(pi): distinguish stale locks when arming watcher

* no-mistakes(test): Stabilize watcher extension async waits

* no-mistakes(document): Document Pi lock recovery

* fix: accept secondmate house vocabulary (kunchenguid#685)

* fix: accept secondmate as house vocabulary

* no-mistakes(test): Update captain vocabulary contract test

* no-mistakes(document): Align secondmate documentation vocabulary

* fix(bin): parse handoff homes after registry parentheticals (kunchenguid#686)

* fix: parse secondmate home after pre-field parentheses

Registry summaries often include parentheticals before the structured
(home: ...) field. Match that field with a greedy prefix so handoff
no longer reports "has no home" for those entries.

* no-mistakes(document): Refresh handoff test comments

* feat: add native session-start nudges (kunchenguid#687)

* feat: add native session-start nudges

* no-mistakes(document): Document nudge script inventory

* docs: call built-in defaults the firstmate repo, not template (kunchenguid#688)

Relabel absent-captain and related domain defaults wording so it names
the firstmate repo rather than treating "template" as this domain's
identity label. Keep the design-tenet "shared template" statements and
unrelated launch/PR-poll template uses unchanged.

* fix(bin): repair fm-brief.sh parse error and harden set -u array expansion (kunchenguid#205)

* fix(bin): use set -u-safe empty-array expansion in pr-merge and spawn

Expanding "${arr[@]}" on an empty array under set -u fails on bash < 4.4
(notably macOS bash 3.2). Quote the portable "${arr[@]+"${arr[@]}"}" idiom
in fm-pr-merge and fm-spawn batch dispatch so empty arrays expand to nothing.

Co-authored-by: Cursor <[email protected]>

* test(brief): harden fm-brief regression coverage for parse and scaffolds

Tighten bash -n checking, pin literal backtick rendering in the no-mistakes
DOD wording assertion, and keep a scout/secondmate scaffold smoke test so the

Co-authored-by: Cursor <[email protected]>
kunchenguid#166 apostrophe regression cannot return unnoticed.

---------

Co-authored-by: Cursor <[email protected]>

* fix(bin): keep watcher supervision continuous across child cycles (kunchenguid#693)

* fix: make watcher supervision continuous

* no-mistakes(review): Bound watcher retries and log attached signals

* no-mistakes(review): Add bounded successor-recovery wake fallbacks

* no-mistakes(review): Prevent overlapping successor-arm retries

* no-mistakes(review): Resume supervision after late arm closes

* no-mistakes(review): Bind OpenCode recovery to attempted arm

* no-mistakes(test): Synchronize peer beacon regression fixture

* no-mistakes(test): Synchronize Pi and OpenCode late-close lifecycle fixtures

* no-mistakes(document): Captain: document watcher successor protocol behavior

* no-mistakes: apply CI fixes

* no-mistakes: apply CI fixes

* no-mistakes: apply CI fixes

* no-mistakes: apply CI fixes

* no-mistakes: apply CI fixes

* no-mistakes: apply CI fixes

* no-mistakes: apply CI fixes

* no-mistakes: apply CI fixes

* no-mistakes: apply CI fixes

* no-mistakes: apply CI fixes

* fix: fetch current PR head for review diffs (kunchenguid#722)

* fix: always fetch PR head for review diffs

Prefer a freshly fetched refs/pull/<n>/head over a reachable recorded
pr_head= so reviewers never hold a merge over a "missing" fix that already
landed on the remote PR. Recorded SHA is offline fallback only; local branch
is last resort with a warning. Store the tip under refs/fm-review/ so a later
base-branch fetch cannot clobber the compare tip via FETCH_HEAD.

* no-mistakes(test): Isolate session-start nudge tests from gate state

* no-mistakes(document): Correct review-diff documentation

* docs: resolve five contract contradictions across AGENTS.md, README, and skills (kunchenguid#736)

* docs: resolve five contract contradictions

* no-mistakes(test): align owner-pointer assertions with reworded docs; skip absent shellcheck

* docs(harness): correct Grok exit guidance (kunchenguid#742)

* docs(harness): reverify grok exit command

* no-mistakes(test): Correct Grok exit resume attribution

* fix(watcher): bound stale wakes for parked crew (kunchenguid#743)

* fix(watcher): bound stale wakes for exited paused crew

* no-mistakes(review): Gate pause suppression on confirmed agent death

* no-mistakes(test): Fixed stale pause cadence

* no-mistakes(document): Document dead-agent hold cadence

* fix(supervision): distinguish ordinary wakes from recovery (kunchenguid#744)

* fix(supervision): distinguish ordinary wakes from repair

* no-mistakes(review): Make passive guard follow-ups recovery-only

* no-mistakes(document): Clarify recovery-only turn-end guard documentation

* fix(x-mode): dedupe pending mention wakes (kunchenguid#745)

* fix(x-mode): dedupe pending mention wakes

* no-mistakes(review): fix x-poll claim error deduplication

* no-mistakes(review): separate claim diagnostics from relay recovery

* no-mistakes(document): Document X-mode once-only mention wakes

* refactor: slim AGENTS.md to ~200 lines, reference files for details

* docs: use canonical expanded reference files from main repo

---------

Co-authored-by: Kun Chen <[email protected]>
Co-authored-by: Korallis <[email protected]>
Co-authored-by: Johans Ballestar <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Israel Wilson <[email protected]>
vitalNohj added a commit to vitalNohj/firstmate that referenced this pull request Jul 24, 2026