Repository navigation
upstream sync 2026-11-30 - #27
Merged
Merged
Conversation
… lavish board (kunchenguid#6357) * fix(bearings): show full Charted Next titles and reasons on the lavish board Charted Next rows on the board clipped their title and reason with an ellipsis, and the snapshot shortened gate titles before the board saw them. Charted Next rows now wrap their full text, and the snapshot's new --fields gate-text opt-in carries untruncated title_full and reason_full for the board while the chat digest keeps its compact bounds. * fix(bearings): keep secondmate Charted Next text whole across the home summary A secondmate's home summary shortened queued titles to 120 characters and hold or blocked reasons to 160 before the bearings projection saw them, so --fields gate-text still handed the lavish board clipped text for secondmate gates. The summary now keeps up to 500 characters for those fields, which covers any realistic backlog item while 20 bounded rows stay far inside the summary byte cap. The stock macOS Bash CI lane's pinned Bearings test count moves to 61 for the gate-text regression. * no-mistakes(review): Pass secondmate queued title and reasons untruncated * test(bearings): expect untruncated queued text in the secondmate home summary
…ancels it (kunchenguid#8779) * fix(bin): exec the herdr lab server launch so a timed-out provision cancels it On bash builds that keep a subshell for an async function (macOS /bin/bash 3.2, the Linux CI bash), $! of the backgrounded launch was that subshell, so fm_herdr_lab_cancel_provision left the herdr server running after a timed-out provision. The launch now execs herdr through fm_herdr_lab_raw_exec, making $! the server process on every bash; the cancel is unchanged. The timed-out provision test now asserts, right after the provision returns, that the launch process is gone, synchronized on the launch recording its pid instead of a fixed sleep. Fixes kunchenguid#8775 * no-mistakes(document): Document lab provision timeout cleanup --------- Co-authored-by: Kun Chen <[email protected]>
…ist (kunchenguid#8457) * feat(bin): choose a codex account per ship or scout from a declared list Add config/codex-accounts, the Codex counterpart of config/claude-accounts: one Codex home per line (ordinary for the default ~/.codex, or an absolute CODEX_HOME). While the list exists, every Codex ship or scout spawn names one declared entry with --account, chosen at intake by the quota-array-dispatch procedure from bin/fm-codex-account-quota.sh rows. The entry is checked with codex login status in a stripped environment, launched with CODEX_HOME set (or unset for ordinary) and CODEX_API_KEY and CODEX_ACCESS_TOKEN unset, recorded as account=, and reused by relaunch unless --account moves it. Without the list every Codex launch is unchanged and --account refuses. bin/fm-worker-account-lib.sh now keys the declared list, its root variable, and its shed credentials by runner, and the per-account quota read moves into bin/fm-account-quota-lib.sh shared by the Claude and Codex entry points. * no-mistakes(ci): I fixed both Greptile findings, and the new tests for each fail before the fix and pass after it. ci-1, Codex secondmates (`bin/fm-worker-account-lib.sh`). The rule: a secondmate without its own account pin file (Codex) must never read `config/codex-accounts`. `fm_worker_account_select` now returns early for such a secondmate, right after it refuses an explicit `--account`, and before the list is parsed. So an empty, malformed or unreadable list no longer blocks the launch or a relaunch. I checked the other place that reads the list, `fm_worker_account_relaunch_request`: it already returns before the read when given a secondmate. Ships, scouts, Claude and Pi follow the same path as before. New test: `test_codex_account_list_leaves_secondmates_alone` in `tests/fm-worker-account.test.sh` now writes a malformed `config/codex-accounts` and checks that a Codex secondmate still launches unchanged (exit 0, no `account=`). Before the fix it was refused with "config/codex-accounts must hold one account per line". ci-2, quota timeout (`bin/fm-account-quota-lib.sh`). The rule: each Claude account read must still honor the old `FM_CLAUDE_ACCOUNT_QUOTA_SECONDS`. `fm_account_quota_report` now picks the per-read limit once: `FM_ACCOUNT_QUOTA_SECONDS` first, then `FM_CLAUDE_ACCOUNT_QUOTA_SECONDS` for Claude only, then 60. The old variable is documented in the lib header. New test: `test_the_claude_read_timeout_is_honored` in `tests/fm-claude-account-quota.test.sh` uses a fake quota-axi that takes 3 seconds. With `FM_CLAUDE_ACCOUNT_QUOTA_SECONDS=1` the account is reported unreadable. Adding `FM_ACCOUNT_QUOTA_SECONDS=10` overrides it and the account is measured. Checks: `tests/fm-worker-account.test.sh`, `tests/fm-claude-account-quota.test.sh` and `tests/fm-codex-account-quota.test.sh` all pass, and `shellcheck -x` is clean on the four changed files. I did not reply to or resolve any PR comment
kunchenguid#8708) * feat(watch): opt-in absorb of turn-ends after an aborted run An aborted no-mistakes run keeps current state at failed until a fresh run starts, so every turn-end of a worker that kept working surfaced. config/turnend-abort-absorb absorbs it only when the run store records an abort and an exact busy verdict is newer than the run's end. Fixes kunchenguid#8675 * no-mistakes(document): Document turnend-abort-absorb flag * fix(watch): match the exact abort errors no-mistakes records A gate abort fails the run with 'step <name>: aborted by user[: <reason>]' and 'axi abort' cancels it with 'cancelled: aborted by user'. Match those errors exactly and no longer treat a run cancelled by a new push as aborted. * no-mistakes(review): Fix abort-absorb docs for cancelled runs * fix(watch): take the abort-absorb busy state from the busy-state verdict * fix(lint): clear ShellCheck findings the new classify sources expose
…guid#8565) Claude Code 2.1.323+ type-checks the Calm mod without allowImportingTsExtensions and ignores a plugin tsconfig, so `claude plugin validate --strict` refused the mod (TS5097 on the .ts import specifiers) and the mod's test fixtures drifted from the engine's declarations. Keep the .ts specifiers Node needs behind @ts-ignore TS5097, update the fixtures (Spinner suffix, UserMessage isExpanded, fs.stat isLink, ui.blit cells variant), and record the 2.1.326 verification. Runtime behavior is unchanged. Closes kunchenguid#8558
…d#8174) * fix(codex): admit Stop-park releases from 0.163.0 * no-mistakes(document): Remove stale Codex version selection claim * fix(bin): reach a Codex primary from its SessionStart hook depth Codex publishes no harness marker, so the session start digest identifies a Codex primary only through the ancestry walk in bin/fm-harness.sh. That walk examined eight processes, while the installed Codex runs the tracked SessionStart wrapper nine parents above the digest's harness probe (eleven and thirteen for the wake drain and guard probes). The digest therefore reported harness unknown and rendered the generic supervision block, while the session lock walker, which examines sixteen processes, still named the Codex session. The harness walks now share one sixteen-process reach matching fm_harness_ancestry_pids, so the digest verdict and the lock owner come from walks of the same reach. Marker and ancestry precedence is unchanged. The Pi rebuild cases in the session-open suite set only the Pi marker beneath the suite's long-lived codex fixture, which the shorter walk never reached; they now run beneath a pi-named process, as a real Pi session's hooks do. Adds a portable depth regression, a composed SessionStart regression under a renamed codex process, and a token-free live SessionStart case for the installed Codex. * docs(codex): align version policy and ancestry trial scope * no-mistakes(document): Clarify Codex SessionStart release coverage * no-mistakes(document): Correct Stop park script reference * no-mistakes(document): Clarify Codex Stop park and startup coverage
* fix: read a wrapped typed line in a named Claude composer In a Claude session started with a name, the session title is drawn into the composer's top rule. A titled top rule was accepted only when the prompt glyph row sat directly on the closing rule, so typed text that wrapped onto a second row read unknown and could not be extracted. A backend that reads back its typed payload before pressing Enter then withheld Enter: on a pane narrower than the text, the send failed, or the text stayed in the composer and blocked every later send. Accept the wrap rows between the glyph row and the closing rule when they are contiguous, non-blank, edge-free and within FM_COMPOSER_PI_MAX_LINES. A glyph followed by a blank row or a longer region before the next rule still reads unknown. * no-mistakes(document): Document wrapped named Claude composer reads
…guid#8786) * fix(bin): read the PR scan past a review wait on the same PR A worker may declare its review wait with a paused: line right after its ready done: line. The scan treated that wait as a later crew line and never recorded the PR or armed its merge poll. The scan now reads back over paused: lines whose every PR URL is the ready PR, while a paused: line naming no PR or another PR, and any working:, blocked: or failed: line, still stop it. Fixes kunchenguid#8762 * no-mistakes(review): ignore punctuation around a PR URL in a paused line
…ng home's state (kunchenguid#8785) fm-teardown.sh ran the retiring home's fm-procevent.sh with only FM_HOME and FM_ROOT_OVERRIDE, so an inherited FM_STATE_OVERRIDE sent preflight, sweep, and reconcile to the parent's state root. Retirement then refused on the parent's directory mode, or swept the parent's own registrations and left the child's. Pass FM_STATE_OVERRIDE="$home/state" on all three calls, match the docs and recovery command, and replace the fake sweep test with the real fm-procevent.sh under a parent override at modes 775 and 700, checking the parent's source and directory mode stay unchanged.
…d#8769) * feat(calm): selectable spaceship working presentation via config/calm-ship Add an optional spaceship variant for Calm's animated working row on Pi, selected by the local config/calm-ship file. - Add .pi/extensions/lib/fm-calm-working-spaceship.ts: a persistent banner under its own firstmate-calm-working-spaceship widget key, with an idle two-row saucer-over-hull rest pose drifting left to right, a single-row `=( * )` warp sprite while a run is thinking, a bounded settle ease back into the drift, freeze/resume continuity across hide and show, resize clamping, narrow fallbacks, and idle crew markers read from the home's state records on a slow tick. - .pi/extensions/fm-calm.ts resolves config/calm-ship with the same effective-home and FM_CONFIG_OVERRIDE rules as config/calm, at extension load and again on session_start and /calm. Anything other than "spaceship", including an absent file, keeps the boat, which stays the default. The boat's own presentation path and its shared widget slot with standalone Pi Calm are unchanged; the spaceship is dispatched as a separate banner that owns its own slot, and a selection switch tears down the replaced variant before installing the new one. - Document the variant in docs/calm.md and the config/calm-ship schema in docs/configuration.md. - Cover selection, rendering, mode, settle, and freeze/resume in tests/fm-calm-pi-extension.test.sh, and add the new module to the typecheck fixture in tests/fm-pi-primary-types.test.sh. Supersedes the earlier attempt in kunchenguid#5567, which was closed unmerged on 2026-10-18 with a branch that had conflicted. This is a fresh port onto current main, not a revival of that branch. * no-mistakes(review): Remove crew markers, dead saucer code, fix doc * no-mistakes(review): Document calm-ship Pi-only scope and trim rule * no-mistakes(review): Copy spaceship into live e2e; poll drift check * no-mistakes(review): Tear down spaceship banner on shutdown; map module * no-mistakes(review): Gate spaceship banner to one agent run * no-mistakes(review): Share working slot; drop dead spaceship code * no-mistakes(review): Name both presentation modules in file header * no-mistakes(document): Align Calm docs with selectable spaceship variant * feat(pi): keep the spaceship banner for the whole session with idle drift The selectable spaceship working presentation was scoped to one agent run, which left Pi's stock working row in place the rest of the session. Make it ambient: while Calm is active and config/calm-ship selects it, the banner is installed at session_start and lives until session_shutdown, and the run signal drives its mode instead of its visibility. Idle shows the two-row resting pose, a three-cell (|) saucer directly over a three-cell |^| hull, drifting one column every ~1.5s with a starfield streaming left past it. A run switches the same banner into the single-row compact =( * ) warp; the settle relaxes the pose, returns the starfield to the idle cadence immediately, and eases the pace back into the drift over a bounded handful of graduated moves. The boat is unchanged and stays run-scoped. Both presentations still share the one working-row slot, so a dual Calm install renders one animation and a presentation another extension installed is left alone. * no-mistakes(review): Document dual-Calm spaceship exception and tests * no-mistakes(document): Correct Calm spaceship narrow-fallback wording * no-mistakes(document): Remove stale spaceship widget-key export * no-mistakes(document): Align Calm spaceship docs with ambient banner * test(calm): keep the spaceship harness out of a Bash 3.2 command substitution Stock macOS Bash 3.2 lexes a heredoc body nested in $(...) as shell text, so a prose apostrophe inside the JS harness opened shell quoting there and an unbalanced parenthesis ended the substitution early. The macOS parse sweep then reported an unrelated later line as an unmatched backtick. Attach the harness to a group command that redirects to an output file, the shape every other node harness in this file already uses, and read the captured output back afterwards. The fixture, the JS harness, and every assertion are unchanged. * no-mistakes(review): Narrow dual-install docs; test Calm toggle * no-mistakes(document): Scope Calm spaceship lifetime claims to calm.md * no-mistakes(ci): Addressed Greptile finding ci-1 in tests/fm-calm-pi-extension.test.sh. The "absent config/calm-ship" case previously wrote an empty file, so readFileSync still succeeded and the missing-file fallback was never exercised. It now removes the file with `rmSync(..., { force: true })` (imported alongside writeFileSync), and the existing boat assertions are unchanged (no stale widget after session_start, boat hull during the run, clean settle on agent_settled). No product code touched, and no sibling sites write an empty calm-ship file. Verified by running the suite directly with FM_PI_PACKAGE_DIR pointing at the Pi 1.6.1 package-layout shim: all cases pass, including the "working-spaceship modes and selection" case; the four tmux/pi interactive E2E cases skip because tmux is absent, as expected
…id#8823) * fix(bin): refresh watcher beacon at progress checkpoints * fix(watch): reject zero checkpoint interval * no-mistakes(document): Align beacon comments with checkpoint behavior * fix(watch): checkpoint signal triage progress * no-mistakes(review): Checkpoint turn-end worker classification * no-mistakes(document): Document watcher beacon checkpoint behavior --------- Co-authored-by: Pitch Perfekt Collective <[email protected]>
…chenguid#8711) omp joins several queued follow-ups into one prompt or one text part separated by a blank line. consumeWake only finished a pending wake when the whole text equalled its content, so merged wakes were never finished and the same replacement handoff was replayed in every later session. Each pending wake whose full content the text carries is now consumed, once per occurrence.
…chenguid#8778) * feat(bin): reclaim a returned Treehouse pool slot's disk at teardown A returned pool slot keeps every git-ignored build artifact behind (node_modules, .next, dist, Electron builds), so pools only ever grow across finished tasks. Teardown now destroys a ship or scout task's own returned slot by default, relying on treehouse destroy's safe-by-default behavior so unlanded, dirty, or otherwise disposable-ineligible slots are only skipped with a warning, never a teardown failure. Opt out home-wide with config/keep-pool-slots. * no-mistakes(review): Release slot owner claim before pool slot destroy * no-mistakes(document): Document keep-pool-slots flag in home layout * feat(bin): make pool-slot reclaim opt-in (config/reclaim-pool-slots) Per maintainer review on the PR: invert the flag so destroying a returned pool slot only happens when a home explicitly opts in, never by default. An unconfigured teardown behaves exactly as before this feature existed. * no-mistakes(review): Fix home-layout skill reclaim flag name
* fix(rex): resolve the launcher session from REX_BLOCK * no-mistakes(document): Drop stale REX_SESSION from comments * no-mistakes(lint): Fix ShellCheck warnings in Rex tests
…id#8631) An idle watcher poll starts many short-lived programs whose answers bash can give itself. Replace them with builtins on the per-poll path, keeping every result and error word the same: - sign each status file once per scan and pass that signature to the seen check instead of signing it again - on Darwin, read path state, size and identity with one stat instead of four or five, with the same fields and error words - hex-encode plain-ASCII signature fields with printf -v instead of od | tr; any other byte keeps the od encoding - read the presentation marker, turn-ended markers and the pane capture file with $(<file) instead of cat, and strip the pgid without tr - read kind/backend/harness from a window's meta with one builtin loop instead of grep | cut, keeping every value of a repeated key - skip rm for per-window markers that do not exist (fm_rm_present, same exit status as rm -f; a dangling symlink still counts as present) - skip mkdir of an existing state dir and dirname at library load Measured with one method: a PATH-shim tracer that logs every program start (absolute-path calls routed through the shims via BASH_ENV), on macOS with /bin/bash 3.2, against a synthetic idle home (10 already-reported status files, tmux panes printing a clock, FM_POLL=3). Each figure is the start count of one steady idle poll (polls after the first two, between watcher beacon touches) in a 40-second traced run; every steady poll in a run had the same count. Base is 427056c, the other side is this commit, both exported from git: - no task windows: 195 -> 86 starts per poll (-56%) - four task windows: 291 -> 130 starts per poll (-55%) An earlier measurement of part of this work reported 102 -> 72 and 170 -> 116 with the same tracer; those pairs differ because they measured a different baseline - a tree that already had the first half of these changes - and only the second half on top of it, so they are not quoted here. status_observed_signature output is byte-identical before and after on 72 fixture cases (regular, empty, symlinked, dangling, non-ASCII and invalid-byte targets, directory, unreadable, FIFO, missing; LC_ALL=C and UTF-8) under bash 3.2 and 5.3. Not measured: Herdr panes, Linux, wake/drain/ack turns, the periodic check and home-summary runs, and forks that do not exec. The inactive-reconcile per-poll fast path and the procevent uname/id caching are left to kunchenguid#7329 and kunchenguid#7349, which already propose them. Refs kunchenguid#7330
…d#8469) * feat(watch): wake on an arrived captain-hold --until date (kunchenguid#8444) Behind the existing opt-in config/open-decision-reminders flag, queue one check wake per main-home captain hold and --until date when the date arrives. A durable ledger keeps a watcher restart from refiring a recorded pair. * no-mistakes(review): Skip Done rows in captain hold wake * no-mistakes(document): Document captain-hold date wake skips Done rows * no-mistakes(ci): Throttle failed captain-hold reads and bound them * docs(watch): list captain hold date wake in the header reason index (kunchenguid#8444)
…nguid#7901) * test: retry removal of a lock directory the waiter still writes The waiter creates owner directories inside the state directory while it waits. One rm -rf can lose that race, leave the directory in place, and let the waiter return 0. On origin/main the test matches the copy that failed in CI run https://github.com/kunchenguid/firstmate/actions/runs/40652730373 (job "Behavior portable serial 3"): rm: cannot remove '/tmp/fm-wake-tests.ckX5w2/lock-dir-removed/state': Directory not empty not ok - the lock wait over a removed directory returned 0, not 1 Locally, fm_lock_owner_dir against rm -rf printed "Directory not empty" 3 times in 300 tries. The unfixed test passed 40/40 because the race did not land. The fixed test passed 20/20. A removal that never succeeds fails with "the lock directory survived 50 removal retries". * test(wake-queue): rename the lock directory before the bounded removal retry
…8855) * fix(rex): resolve the launcher session on Rex 0.1.0 Rex 0.1.0 rejects a block id as a session.view target, so a Firstmate running directly in a Rex terminal could not spawn any task and skipped per-home session cleanup. Resolve the launcher from REX_SESSION when set, refusing when that session does not hold REX_BLOCK exactly once; otherwise walk the session list for the single session holding the block, and keep the block-target call only as a fallback when the list cannot be read. The refusal now names its reason and the next step. Fixes kunchenguid#8842 * no-mistakes(review): Make real-Rex smoke no-walk assertion detect flagged ls calls * no-mistakes(review): Require a matching session_id before confirming the Rex launcher block * no-mistakes(review): Warn when secondmate placement skips an unresolved Rex launcher * no-mistakes(review): Stop blaming Rex build in inventory-unreadable refusal * no-mistakes(review): Restore test coverage for retirement's launcher-session exclusion * no-mistakes(test): Document Rex launcher behaviour for builds 1758 and 2181 * no-mistakes(document): Clarify Rex per-home session fallback wording * no-mistakes(ci): I fixed ci-2 (Greptile: unreadable session views were silently skipped). The rule being broken: before placing anything, Firstmate must confirm that REX_BLOCK appears exactly once inside the chosen session, so a session whose view can't be read must never count as "no match". There are three places that read a view, and two already followed this rule. The REX_SESSION path refuses when fm_backend_rex_view_holds_block fails, and the legacy block-target fallback refuses when it can't parse the view. Only the session-list walk in fm_backend_rex_sessions_holding_block treated an exit-0 view it couldn't parse as a non-match and moved on. Fix (bin/backends/rex.sh): in the walk, after a session.view exits 0, the response must be valid JSON whose `.session_id` matches the listed session before the exactly-once check runs. If it isn't, the walk returns 1, and fm_backend_rex_launcher_session refuses with "a live session's view could not be read". I updated the function comment to match. I added no new helpers or branches. Tests: - The fake fixture (tests/rex-fake-fixture.sh) has a new `view-garbled` switch. It holds a session id, and that session's view exits 0 with truncated JSON. - tests/fm-backend-rex.test.sh has a new case where the other session's view is garbled. Resolution must refuse with that reason. Without the fix, the walk would skip the garbled session and resolve to the launcher session. - The existing walked-view-without-session_id case now expects that same unreadable-view refusal, in line with the earlier decision that a view without session_id is unresolved on every path. When I removed the fix temporarily, that assertion failed, and the whole file passed again once I put it back. Results: tests/fm-backend-rex.test.sh passes with exit code 0 (42 tests ok). `/opt/homebrew/bin/shellcheck -x` is clean on all three changed files. I ran no other suites. I replied on the Greptile thread that it is fixed: kunchenguid#8855 (comment). The fix is not committed or pushed yet, so the thread will show it only once the pipeline pushes. As you asked, I changed nothing for ci-1 (Full suite waiting on the full-ci label) and did not comment asking for the label
…nchenguid#7789) * test: wait on arm signals instead of fixed budgets in the Pi watch extension suite * test: rerun unretired-successor scenarios lost to starved startup and bound hung-successor row counts * no-mistakes(review): Bound Pi watch test polls and count hung-successor arm spawns * test: rerun the unretired-successor scenario only when the successor never started * no-mistakes(review): Rerun unretired-successor scenarios only after a delivered wake * no-mistakes(ci): Stock macOS Bash snapshot compatibility (caused by this PR): stock Bash 3.2 failed to parse tests/fm-pi-watch-extension.test.sh ("line 2623: unexpected EOF while looking for matching `)'"). The PR added a comment with an unpaired apostrophe ("successor's") at two places, lines 2653 (Pi) and 5307 (OpenCode). Both are inside an out=$(... node <<'EOF' ... EOF) block. Bash 3.2 checks quotes inside $( ... ) even in a quoted heredoc, so it cannot find the closing parenthesis. Rule broken: text in a heredoc nested in $(...) must not contain an unpaired apostrophe. These were the only two lines the PR added with an apostrophe. Fix: both comments now say "arm row of the successor". The meaning is the same and no code or assertion changed. Checks run: bash -n (Bash 5.2) parses the file, and the full suite passes (exit 0, 69 ok lines, no "not ok"). Bash 3.2 is not available locally, so the macOS parse check could not be repeated here. A heredoc scan found three heredocs with odd apostrophe counts, and the same three are in the base commit, which passed this check, so the change adds no new cases. Only the macOS CI run can fully confirm the fix. Serial shards 1, 3, 4, 5, 6, 7 and 9 (not caused by this PR): the PR changes only tests/fm-pi-watch-extension.test.sh, which passed in shard 3 (exit=0). Each shard failed in a different unrelated script: fm-remote-secondmate-lifecycle-e2e, fm-public-followup, fm-record-export, fm-watch-checkpoint, fm-supervision-host, fm-remote-transport-lanes, fm-backend-rex, fm-pr-health, fm-contributions, fm-fleet-ledger and fm-herdr-groups. These are timing failures on a loaded runner and need a rerun, not a code change * no-mistakes(test): Rerun late unretired-close cases when a starved successor is killed * no-mistakes(test): Use shared wait deadline for remaining Pi test polls * no-mistakes(ci): I fixed Greptile finding ci-2 in tests/fm-pi-watch-extension.test.sh. No product code or workflows changed. Two scratch files I made for the before/after check are still untracked: tests/.tmp-rerun-old.test.sh and tests/.tmp-rerun-regress.test.sh. My attempts to delete them were denied, so they must be deleted (or left out of the commit) before committing. Invariant: a retry attempt must not be able to see or keep alive a child left over from an earlier attempt. Where it applies: the retry loops in the Pi and OpenCode unretired-successor tests. Both reused one `log` and `release` file across attempts, so a TERM-ignoring successor from an attempt that exited 75 could write into the next attempt's log and throw off its row counts. The Pi and OpenCode late-close cases already gave each attempt its own files, so I left them alone. Fix: both unretired-successor tests now run their scenario through one new helper, `pi_rerun_until_started`. For each of up to five attempts it: - sets fresh files, `<prefix>-<attempt>.log` and `<prefix>-<attempt>.release`; - runs the scenario; - after an exit 75, sends SIGKILL to that attempt's node process group before retrying. The suite's per-node-run group is used for this, and the kill is guarded by the existing `pi_owned_group_live` check. This works because the plugins spawn arms without `detached`, so a surviving successor stays in that group. Regression test: `test_pi_rerun_stops_a_term_ignoring_successor_before_retrying` runs the helper itself. - Attempt 1 spawns a child that ignores TERM and keeps appending arm rows, then exits 75. - Attempt 2 fails if its own log gets any row, or if the attempt-1 child is still alive (not gone or a zombie) when the shared deadline runs out. - The oracle is the requirement itself: the next attempt starts with an empty log and no leftover child. - Run against a copy of the old pattern (shared files, no kill), it fails: "expected exit 0, got 1", because rows from attempt 1 leak into attempt 2's log. With the fix it passes. Verification: - `bash -n` and `shellcheck -x` on the file are clean. - The full suite, `bash tests/fm-pi-watch-extension.test.sh`, exits 0 with all 77 cases ok, including the check that the suite leaves no orphaned processes. ci-1 (the full-ci label guard) is outside the source, so I left it alone this round as instructed * test: remove scratch copies of the Pi watch extension suite
…enguid#8859) test_signal_paths_checkpoint_between_workers sources bin/fm-watch.sh in a subshell without a source directive. ShellCheck follows the whole watcher there and reports its assignments as subshell-local for the rest of the file: 78 SC2031 notes and 1 SC2030 note, all false positives. Use source=/dev/null, as the other tests do for production imports. The watcher stays covered as its own lint root. ShellCheck then no longer sees the code that uses this test's stubs and overrides, so it reports 5 SC2329 and 2 SC2034 findings. Suppress each at its definition. Comments only; test behavior does not change. Refs kunchenguid#8850
… on PATH (kunchenguid#8863) file_mode() calls /usr/bin/stat on Darwin, and tests/lib.sh clears an inherited FM_CONTRIBUTIONS_REPLY_AGE.
…nguid#8517) * feat(brief): carry a linked issue as an explicit --closes field A no-mistakes ship worker drove the pipeline with plain `no-mistakes axi run`, so the pipeline-written PR body named a fixed issue only as code and GitHub recorded no closing reference. Add an opt-in --closes <issue> to fm-brief, fm-spawn and fm-promote. The brief records closes=<n> on the Delivery contract line, spawn records it in task meta for relaunch, and the drive instructions pass --closes <n> on every run that starts a run. Under pr=manual the worker also writes a plain Closes #<n> line into the PR body. With the flag unset every generated brief and command is unchanged. * fix(brief): drop --closes from the pr=manual drive instructions no-mistakes refuses --closes together with --skip pr, and pr=manual skips pr, so the instruction made every run on that path fail to start. The pr=manual brief now names only the plain Closes line for the PR body the worker writes.
…ng names (kunchenguid#8783) Add fm_backend_capability <backend> <cap> to bin/fm-backend.sh. Every built-in backend answers it from one table, one row per backend. The answers are static. An unknown backend, an unknown capability, or a missing or malformed answer is refused with an error and no answer. The capabilities are the ones core already branched on by name: visible-capture, push, keys, state-verified, exit, relaunch, secondmate, remote-secondmate, supervisor, and required-tools. The per-name lists in fm-backend.sh, fm-control-lib.sh, fm-crew-state.sh, fm-spawn.sh, fm-remote-secondmate-control.sh, fm-secondmate-liveness-lib.sh, and fm-supervise-daemon.sh now ask the table. Every built-in backend gets the same answer as before. Tests in tests/fm-backend.test.sh pin the table to the old lists and check the refusals.
* fix(agy): block native swarm delegation tool in subagent pretool guard * no-mistakes(document): Update delegation guard documentation * docs(agy): cite agy 1.5.18/1.5.19 native swarm tool in delegation guard * no-mistakes(document): Document Antigravity swarm delegation guard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security-relevant upstream commits - this PR waits for the owner
4e042b6a(guard Antigravity swarm delegation): addsswarmtoDELEGATION_STEMSinbin/fm-subagent-pretool-check.sh, so the subagent guard now also blocks the nativeswarmdelegation tool in firstmate sessions (docs/subagent-guard.md and the classifier test updated to match). This is the 25th upstream commit; the original request named 24 ending at37c0007e. It was kept on firstmate's decision.b119e422(choose a codex account per ship or scout from a declared list): addsconfig/codex-accounts, a captain-declared list of Codex accounts, with per-spawn selection and a login check inbin/fm-worker-account-lib.sh. It touches account and credential handling for Codex workers.f19c2f36(classify Pi credential-less launch rejection): changes how a Pi launch refused for missing credentials is recognised and reported.What this merges
Merges kunchenguid/firstmate main (
37c0007eplus4e042b6a) into main with a merge commit, 25 upstream commits.Conflicts and how each was settled
bin/fm-harness.sh: kept ours. Ourps -wwwidth fix is deliberate; upstream has the older narrow read.bin/fm-watch.sh: kept ours. Our inline removal also clears.wedge-raised-<key>, which upstream'sfm_rm_presenthelper call does not.docs/configuration.md: kept ours. Our table rows (base branch, worktree pool, task output folder, Claude worker tool scope) are fork additions.bin/fm-spawn.sh: merged both. Usage lines carry our--fastand upstream's--closes; our fast-mode wording kept; the relaunch-preserved key list has bothfastandcloses.docs/architecture.md: kept our base-branch,base=andworktree-root=text, and added upstream's linked-issue (--closes) paragraphs.tests/fm-watch-triage.test.sh: took upstream's version, which only adds ShellCheck directives around the same code.tests/lib.sh: kept both added lines (ourFM_TASK_OUTPUT_NO_STORE, upstream'sunset FM_CONTRIBUTIONS_REPLY_AGE).Running pieces changed
Upstream changes
AGENTS.md,bin/,.agents/skills/and hook-related files. Running firstmates will probably need a restart to load them. Not restarted by this work.Test result
Full suite on this branch: 351 scripts, 60 failed. The same scripts fail on the previous main in this environment (59 on a clean copy;
fm-remote-jobpassed once there, then failed on 3 repeat runs of that clean copy), so none is a regression from the merge. The logs read show/tmp/fm-*directories owned by another user on this shared box. Logs:full-suite.log,baseline-main.log,failures.txtunder the task proof folder.Known upstream issues, deliberately not fixed here (kept identical to upstream)
bin/fm-dod-lib.sh: a ship targeting a non-default base branch with--closesis promised an issue close that GitHub ignores.tests/fm-pi-watch-extension.test.sh: the late-close retry fixture can leave a poller process running until suite teardown.tests/fm-self-repo-role.test.sh: the matchingcloses=8504case only checks thatcloses mismatchis absent.tests/fm-backend.test.sh: the key-membership assertion uses the same helper it tests.Lint
The lint step reported ShellCheck warnings in code unchanged by this merge, also present on the previous main: SC2034 in
bin/fm-supervision-host-away-lib.sh, SC2100 atbin/fm-watch.shline 816, and a finding intests/fm-teardown.test.sh. Not rewritten in this sync. Four lint processes (bin/fm-spawn.sh,tests/fm-pending-reply.test.sh,tests/fm-daemon.test.sh,tests/fm-stat-shadowing.test.sh) were killed by the host under load, so that lint pass was incomplete; CI lint decides.