Skip to content

fix(watcher): keep same-hash stale suppressor across busy flicker - #746

Closed
RooseveltAdvisors wants to merge 1 commit into
kunchenguid:mainfrom
RooseveltAdvisors:fm/firstmate-duplicate-stale-injection
Closed

RooseveltAdvisors wants to merge 1 commit into
kunchenguid:mainfrom
RooseveltAdvisors:fm/firstmate-duplicate-stale-injection

Conversation

@RooseveltAdvisors

Copy link
Copy Markdown
Contributor

Summary

  • On the same-hash busy path, stop calling clear_pause_tracking (which wiped .stale-<key>). Call clear_pause_state only so pause-cadence markers drop while the same-hash stale suppressor remains.
  • After fix(watcher): bound stale wakes for parked crew #743, a bare live captain-held/paused surface sets .paused-<key>. A later busy observation (herdr agent working without pane-text change) was clearing the suppressor and re-arming first-sight every poll, spamming bare stale: <window> wakes.
  • Hash-change paths still clear the suppressor so a genuinely changed pane can surface again. fix(watcher): bound stale wakes for parked crew #743 once-only live gate, dead-agent cadence, and working absorb are preserved.

Test plan

  • tests/fm-watch-triage.test.sh full suite including new test_same_hash_busy_does_not_resurface_live_gate
  • Regression: idle bare surface → same-hash busy → idle again emits exactly one bare stale inside PAUSE_RESURFACE_SECS
  • Existing dead-agent, live-gate once-only, working/run-step, and pause cadence tests still pass
  • bin/fm-lint.sh with ShellCheck 0.11.0

Diagnostic evidence: data/firstmate-duplicate-stale-injection/report.md (scout).

A bare live captain-held/paused surface sets .paused-<key> (#743). The
same-hash busy branch then called clear_pause_tracking, which wiped
.stale-<key> even when pane text was unchanged. The next idle poll
re-armed first-sight and emitted another bare stale wake every arm
cycle.

Split pause-cadence cleanup from suppressor identity on that path:
clear_pause_state only. Hash changes still clear the suppressor.
Regression: idle bare surface -> same-hash busy -> idle again must not
emit a second bare stale inside PAUSE_RESURFACE_SECS.
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.

1 participant