Skip to content

fix: keep idle watcher supervision silent - #10

Merged
kunchenguid merged 2 commits into
mainfrom
fm/watcher-silence
Jun 12, 2026
Merged

kunchenguid merged 2 commits into
mainfrom
fm/watcher-silence

Conversation

@kunchenguid

Copy link
Copy Markdown
Owner

Intent

The captain asked me to update firstmate's own instructions so future supervision through bin/fm-watch.sh does not waste user-facing turns with idle status messages. The change should clarify that waiting on the watcher is intentionally silent, empty polls and elapsed waiting time are internal tool bookkeeping, unchanged heartbeat reviews should not be reported, and watcher mechanics such as restart/poll/no-change confirmations do not reach the captain unless they reveal a captain-relevant issue.

What Changed

  • Clarifies firstmate supervision instructions so waiting on bin/fm-watch.sh, empty polls, elapsed waiting time, and no-change heartbeat reviews remain internal instead of user-facing updates.
  • Updates the README and watcher script wording to describe fm-watch.sh as waking when supervision work is due, including heartbeat reviews, not only when a crewmate needs attention.
  • Documents that routine watcher mechanics such as polling, restarting, and confirming no status changed should not reach the captain unless they surface a relevant issue.

Risk Assessment

✅ Low: The change only clarifies documentation for watcher communication behavior and does not alter executable code or operational mechanics.

Testing

I verified the documentation-only behavior change by inspecting the changed AGENTS.md supervision flow and producing an evidence transcript showing every intended watcher-silence rule present; no source tests were applicable, and the working tree remained clean.

Evidence: Watcher-silence instruction evidence

309:Waiting on the watcher is intentionally silent. 310:After starting or restarting it, do not send idle progress updates to the captain; wait until it returns signal, stale, check, or heartbeat, unless the captain asks for status. 311:Empty polls, elapsed waiting time, and "still no change" are tool bookkeeping, not conversational progress. 324: A heartbeat with no captain-relevant change is internal; do not report that the fleet is unchanged. 344:Silence is the correct state while a healthy background watcher is waiting. 366:Routine watcher mechanics include restarting the watcher, polling a waiting watcher, and confirming that no status changed.

Changed watcher-silence instructions in AGENTS.md:

309:Waiting on the watcher is intentionally silent.
310:After starting or restarting it, do not send idle progress updates to the captain; wait until it returns `signal`, `stale`, `check`, or `heartbeat`, unless the captain asks for status.
311:Empty polls, elapsed waiting time, and "still no change" are tool bookkeeping, not conversational progress.
324:   A heartbeat with no captain-relevant change is internal; do not report that the fleet is unchanged.
344:Silence is the correct state while a healthy background watcher is waiting.
366:Routine watcher mechanics include restarting the watcher, polling a waiting watcher, and confirming that no status changed.

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Reviewed git diff f3958097383870fbc9be46365016a5252a73beff..HEAD -- AGENTS.md to confirm the change scope is limited to watcher-silence instructions.
  • Read AGENTS.md section 8 and section 9 around lines 304-366 to evaluate the end-user supervision instructions in context.
  • Ran rg -n 'Waiting on the watcher|idle progress|Empty polls|heartbeat.*captain-relevant|Silence is the correct state|Routine watcher mechanics' AGENTS.md and saved the matching instruction lines as evidence.
  • Ran git status --short after testing to confirm no working-tree artifacts were created.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@kunchenguid
kunchenguid merged commit a5ffb9f into main Jun 12, 2026
3 checks passed
@kunchenguid
kunchenguid deleted the fm/watcher-silence branch June 12, 2026 22:26
@OCPdev25

OCPdev25 commented Jul 6, 2026

Copy link
Copy Markdown

Superseded by pipeline PR.

vipentti pushed a commit to vipentti/firstmate that referenced this pull request Aug 5, 2026
* Clarify watcher silence protocol

* no-mistakes(document): Sync watcher silence documentation
NewAiCoder referenced this pull request in NewAiCoder/firstmate Sep 26, 2026
)

* feat(spawn): minimal worker tool surface with brief-declared extras

Crewmates and scouts now launch with --strict-mcp-config, an empty
per-task --mcp-config, and --setting-sources project,local, dropping
the plugin skill catalog that was most of a 135k-145k token cold
prefix re-read across an average of 280 turns per seat (spec D6,
docs/superpowers/specs/2026-09-05-token-telemetry-design.md).

bin/fm-dod-lib.sh's fm_brief_tools reads the brief's ## Firstmate spec
tools: line and drops anything not in browser/context7/mockup/lavish/
none with a warning, so a typo narrows the surface instead of widening
it. bin/fm-spawn.sh writes the resolved MCP config into the task tmp
dir at 0600 and wires it into the claude launch template.

fm-brief.sh scaffolds tools: none into every new brief. That appends
a fixed line after the {FIRSTMATE_SPEC} placeholder, so
fm_brief_task_placeholders_present also had to recognize the new
unfilled-scaffold shape alongside the legacy bare placeholder, or an
unfilled brief would have spawned as though it were filled.

Also updates tests/fm-spawn-dispatch-profile.test.sh and
tests/fm-secondmate-harness.test.sh, whose assertions pinned the
exact claude launch string, for the new flags.

Out of scope for this repo: the no-mistakes pipeline-seat config
template and the before/after cold-prefix measurement both live in
the operator's private config repo, a separate repo from this worktree.

* no-mistakes(review): mirror captain's user-scope hooks and exempt secondmate from minimal claude surface

* no-mistakes(lint): Fix SC2015 A&&B||C guard shape in fm-spawn-tool-surface test

---------

Co-authored-by: NewAiCoder <170579485+NewAiCoder@users.noreply.github.com>
VasanthAmana added a commit to VasanthAmana/firstmate that referenced this pull request Oct 5, 2026
…nguid#10)

* test: stop each supervision-host case's fixture processes when it ends

tests/fm-supervision-host.test.sh left every case's parked host, watcher
arm, watcher, and fake harness session running until suite cleanup. More
than 80 of them were alive by the last cases, each polling once or twice a
second, so on a CI runner's few processors every later case ran two to four
times slower than the same case run early. The script measured between
737269 ms and 1567419 ms on unchanged code across upstream's own runs, and
1555533 ms in the run that cancelled portable serial shard 2 at its
30-minute cap.

Each case now runs through run_case, which stops the homes that case
registered before the next case starts. No case, assertion, wait bound, or
timeout changes.

* no-mistakes(review): Refresh supervision-host runtime hint to measured 491100 ms

* no-mistakes(ci): I fixed the timing race in the failing case. I did not update the PR body, so that is still to do. - **Test fix:** In `tests/fm-supervision-host.test.sh` I added the `hook_saw_first_cycle` helper next to `hook_exited`. `test_claude_stop_hook_notifies_when_at_turn_downtime_write_fails` now waits on it before `append_status`, so the first cycle's status line reaches the Stop hook before the close. No other case, assertion or wait bound changed. - **Hint:** The hint in `bin/fm-test-run.sh` is now `tests/fm-supervision-host.test.sh 498629`, taken from the CI timing artifact. Nothing else under `bin/` changed. - **Doc:** In `docs/fm-test-portable-shards.md` I replaced the four hint sentences with the current-facts version you specified. The "local macOS measurement" and "will be corrected" sentences are gone. - **Local checks:** `bash tests/fm-supervision-host.test.sh` printed only `ok` lines in its last three lines of output. I did not count the 73 cases. I did not reproduce the original failure after the fix. `--check-coverage` is ok at 1074843 ms against its 1200000 ms per-shard budget. `tests/fm-test-run.test.sh`, `tests/fm-ci-workflow.test.sh` and `bin/fm-doc-audience-check.sh` all passed. - **PR body:** I didn't edit it. It still needs the CI before/after numbers and the failed-attempt explanation. I'm leaving it to the outer executor because it is outward-facing
jroethel referenced this pull request in jroethel/firstmate Oct 9, 2026
…g LCARS and Restrained (#10)

* chore(docs): add loop pointer and conventions

* docs(briefs): theming surface brief for the look-and-voice retheme

Refs #1

* docs(briefs): fold the single-seat review into the theming brief

Refs #1

* docs(plans): theming surface implementation plan

Plan for the brief in docs/briefs, revised after a two-lens review whose triage is journaled in docs/reviews; the loop pointer now runs that review by default.

Refs #1

* Journal #1: open the drive stage and commit the orchestration plan

Refs #1

* fix(bearings): keep hidden board controls hidden

The stack navigator and dispatch bar set the hidden attribute, but their display: flex rules overrode it, so an empty Captain's Call showed dead previous and next buttons and a board with nothing dispatchable showed a dead dispatch button.

Refs #1

* fix(tests): accept orphan adoption by a subreaper in the lock ancestry test

Refs #1

* docs: classify the loop brief, plan, and pointer docs

Refs #1

* feat(bin): resolve a per-home board theme into one self-contained stylesheet

Refs #1

* docs(reviews): journal the wave 1 gate

Refs #1

* feat(bearings): apply the home's theme selection to the fleet board

Refs #1

* feat(bin): name the theme's no-op reply in the session digest

Refs #1

* docs(reviews): journal the wave 2 gate

Refs #1

* fix(bin): map board assets and the render harness to their suites

Refs #1

* feat(bearings): add layout and mode rules, frame hooks, and in-page switches

Refs #1

* docs(reviews): journal the wave 3 gate

Refs #1

* feat(bearings): ship the Restrained board theme

Fonts are IBM's unmodified Latin1 split woff2 files from @ibm/plex-sans@1.1.0, @ibm/plex-sans-condensed@2.0.0, and @ibm/plex-mono@2.5.0 under the SIL Open Font License 1.1.

b7acd05041ab65f3b7039e218ddd893065e11a07e85ea85019473152a51b6b7d  ./IBMPlexMono-SemiBold-Latin1.woff2
b5ad7bd39f996144915f0ad9849a90183b27d8c28ad97ed98af5b1bebc51f6b1  ./IBMPlexSans-Regular-Latin1.woff2
fff0ab3a88b0b4aa0b693e4f0201359a15183b08e3fa5696d1918d8f0ade8ad5  ./IBMPlexSans-SemiBold-Latin1.woff2
6738b1096fd433204a070db0b4a9b1172ad3e6bdff8aad5f05f7351e7c157d06  ./IBMPlexSansCondensed-SemiBold-Latin1.woff2

Refs #1

* docs(reviews): journal the wave 4 gate

Refs #1

* feat(bearings): ship the first LCARS board theme

The stylesheet ships as first written apart from font localization and one reworded comment; Antonio comes from Google Fonts' latin subset under the SIL Open Font License 1.1.

36f69209fa73db22731b8ba05121df80fcb25322a3ddf5f2e80f9098cbfaad8b  ./antonio-latin.woff2

Refs #1

* docs(reviews): journal the wave 5 gate

Refs #1

* fix(bearings): let the muted section sign wrap on narrow screens

The Captain's Call count sign never wrapped, so on a phone-width screen the unthemed board and every theme scrolled sideways (82 pixels at 390 wide); wide layouts are unchanged.

Refs #1

* docs(reviews): journal the wave 6 gate

Refs #1

* fix(bearings): join the Restrained frame's elbow and rail

A 6-pixel seam cut the frame below the elbow and the bar met the rail at a square corner; the rail now starts flush with the bar and a concave inner corner joins them.

Refs #1

* docs(reviews): journal the wave 7 gate

Refs #1

* docs(reviews): journal the wave 8 gate

Refs #1

* docs(reviews): journal the final loop-review and close the drive stage

Refs #1

* feat(bearings): give both board themes the reference elbow-and-pill frame

Restrained and LCARS now share one frame block, copied verbatim into each
theme folder and driven only by --th-* properties: an elbow and lead block
joining the top bar, the counts as pills on a side rail (full) or a row of
outlined pills (compact), pill section labels with a rule, and cards with a
left accent edge. The frame drops away at 900px and below.

LCARS moves to the scout's Canon palette with a light and a dark value for
every role, so its mode switch works; it adds Atkinson Hyperlegible Next for
body text (OFL, license appended to fonts/LICENSE) and drops the SITREP
wordmark swap.

The template changes only the frame sizes for full and compact; the board
with no theme selected is pixel-identical at 1280 and 390.

---------

Co-authored-by: Jeremy Roethel <jjrdar@rit.edu>
@c6aw

c6aw commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Pushed: the Stop section step 3 now uses systemctl, and the Update block pauses the scheduled jobs, waits until nothing runs, restarts, then resumes exactly the jobs it paused.

fritznoff pushed a commit to fritznoff/starship that referenced this pull request Nov 2, 2026
Keep startup dispatch validation and secondmate liveness aligned with the verified worker adapter set, including Cursor's model-suffixed effort range.

Co-authored-by: Cursor <cursoragent@cursor.com>
fritznoff pushed a commit to fritznoff/starship that referenced this pull request Nov 2, 2026
…unchenguid#10)

* feat(update): add a named monthly release channel with step back and a maintainer release cut

* no-mistakes(review): Move release-channel homes onto their release, flag local commits

* no-mistakes(review): Restrict fm-update --channel to release names only

* no-mistakes(document): Note handbook step back needs a home without second mates

* no-mistakes(ci): The failing test was tests/fm-remote-transport-lanes.test.sh ("the control-state call did not complete through the worker"). The test builds a fake remote home by copying a fixed list of bin/ files. This PR made bin/fm-ff-lib.sh load the new bin/fm-release-lib.sh at startup, but that file was not on the list, so the copied fm-ff-lib.sh failed with "fm-release-lib.sh: No such file or directory". Rule that must hold: a test that copies fm-ff-lib.sh on its own must also copy every file it loads (fm-secondmate-registry-lib.sh and now fm-release-lib.sh, which loads nothing else). A search of tests/ found no other test that copies or links fm-ff-lib.sh or the scripts that load it; the rest use a full copy of the repo. Fix: added "$ROOT/bin/fm-release-lib.sh" to the copy list in tests/fm-remote-transport-lanes.test.sh. No product code changed. Verified locally: bash tests/fm-remote-transport-lanes.test.sh passed every test (ALL TESTS PASSED). The change is in the worktree and not committed

* no-mistakes(review): Make remote code root follow parent's main channel

* no-mistakes(document): Align architecture self-update notes with release channel
@ardaatahan

Copy link
Copy Markdown

Live test against a real Slack workspace (app, then this service, then Slack; no invitation sent):

Case Result
Payment through the app (account has a first name) -> grant carries first_name -> member added to a community channel -> welcome DM greets them by name, channels are links, events URL plain pass
Direct grant without first_name -> welcome DM reads "Hey, welcome to 1%." and the rest is unchanged pass
No invitation sent in either case (browser job not running) n/a

The welcome DMs were read back in Slack: the name greeting, the three channel links and the plain events URL render as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants