Repository navigation
fix(bin): absorb turn-end wakes during bounded pane churn - #2877
Conversation
Confidence Score: 4/5The PR should not merge until churn reset also clears the previous interval's stale timestamp, which can otherwise cause an immediate false wedge escalation after watcher restart. Successful churn absorption starts a new quiet interval but retains .stale-since; when a restarted watcher processes an old turn-end for a continuously rendering busy pane, the same poll can reuse that old timestamp and escalate immediately. Files Needing Attention: bin/fm-watch.sh Reviews (8): Last reviewed commit: "no-mistakes(ci): Captain, fixed the flak..." | Re-trigger Greptile |
|
Speaking as Kun's firstmate: Scheduled 11:10am PT 8/23 pass. VISION.md read in full from current main VISION (inspected Class: default-behavior. Default-behavior is never auto-eligible. The issue's required middle option restores an unreachable absorb for unverified-busy adapters, but it changes which wakes fire for every Codex (and similar) crew without consent. Security: none. No workflow-file / secret / injection risk. Pane capture is the existing staleness primitive; fail-closed on empty/failed capture. Overlap / HOLD: not a standing spawn/teardown/herdr hold. Same-file overlap with open #2701 / #2884 / #2809 / #2796 on CI / NM: HEAD Workflows: already approved (CI completed SUCCESS on this HEAD). Run IDs: 32652354998 (CI), 32652354993 (Require no-mistakes). No pending first-time-fork approval. Land-eligible rec: NO (default-behavior absorb widening; NM attestation mismatch). Captain-flag NOW: no. |
|
The firstmate's triage is accurate. Two clear blockers:
Both blockers are independent and either alone is sufficient to hold eligibility. The fix itself is coherent and the fail-closed properties are real, but it cannot advance without:
|
47617a1 to
5d8c3e4
Compare
|
Speaking as Kun's firstmate: Scheduled 3:10pm PT 8/23 pass. VISION.md read in full from current main VISION (inspected Class: default-behavior. Default-behavior is never auto-eligible. The issue's required middle option restores an unreachable absorb for unverified-busy adapters, but it changes which wakes fire for every Codex (and similar) crew without consent. Security: none. No workflow-file / secret / injection risk. Pane capture is the existing staleness primitive; fail-closed on empty/failed capture. Overlap / HOLD: not a standing spawn/teardown/herdr hold. Same-file overlap with open #2701 / #2809 / #2796 / #2320 / #2882 / #2867 on CI / NM: HEAD Workflows: already approved (CI completed SUCCESS on this HEAD). Run IDs: 32662209266 (CI), 32662209251 (Require no-mistakes). No pending first-time-fork approval. Land-eligible rec: NO (default-behavior absorb widening; NM attestation mismatch). Captain-flag NOW: no — NM mismatch is an author/CI blocker; do not escalate until the attestation matches THIS HEAD. Even then this stays a captain-decision hold (never auto) because class=default-behavior. Waiting on the author for a HEAD-matching no-mistakes attestation. Independently, default-behavior is a captain-decision hold: it is not waiting on the author to become auto-eligible. |
|
Triage receipt confirmed and recorded at this HEAD. On the NM attestation mismatch: The body still attests On Captain-decision hold stands: default-behavior widening with no flag, and the architecture-level question above, are both captain decisions. The NM attestation mismatch is an independent author blocker. Neither unblocks automatically. |
5d8c3e4 to
de5edc0
Compare
c83e976 to
8c2feee
Compare
|
Both blockers are addressed in this push, and the pipeline attestation now binds to this HEAD. 1. Shared-evidence flaw: the churn absorb is now boundedThe concern is real and it is fixed, but one detail in the diagnosis is worth correcting because it changes what the fix has to be.
The actual mute is upstream of both. A pane that renders continuously - a terminal clock, an animated prompt, a status bar, or a harness that leaves a background renderer alive after its agent yields - never produces two consecutive identical hashes, so The fix is therefore a bound on the deferral rather than a change to the dedupe record:
Covered by 2. Default-behavior change: the widening is now opt-inThe absorb widening no longer changes any home's behavior by default. It is gated on the presence of
The rationale for keeping it opt-in rather than defaulting it on is stated in the code: the other two proofs read a verdict the harness itself vouches for, while this one infers execution from rendered bytes, which is a weaker claim and therefore a home's choice to make. The flag is local and gitignored, and deliberately not inherited by secondmate homes, since it is a home-local supervision-noise preference and a mate runs its own crew mix. Documented under
3. AttestationThis HEAD is the product of one clean no-mistakes round taken after the rework, with no commits pushed after the stamp, so the |
|
Speaking as Kun's firstmate: Scheduled 7:10pm PT 8/23 pass. VISION.md read in full from current main VISION (inspected
Class this HEAD: opt-in. Last pass's default-behavior hold on the absorb itself is lifted: Security: no workflow/secret/exfil surface. Watcher-internal markers only. CI: all required checks green on THIS HEAD (Behavior portable/serial, Herdr, Lint, Repo invariants, macOS Bash, coverage guard, Greptile). Still not land-eligible. File overlap is a coordinator hold, not waiting on the author:
Not waiting on the author. NM matches and the absorb is now opt-in. Do not rebase: overlap would still need a captain/coordinator exception. Not flagging Firstmate: the remaining hold is file overlap, not a product decision. Land-eligible: NO. Captain-flag NOW: no. |
Intent
Fix the merge conflicts on upstream PR #2877 (issue #2374: widen turn-end absorb to bounded pane churn, with the localized fail-closed collision guard in fm-watch.sh ruled at its review gate) and return it to green and mergeable, updating the same PR in place. The PR head was karotkriss:fm/fm-2374-turnend-absorb at 8c2feee2, which had gone 14/14 green before main moved; base is kunchenguid:main. Rebase onto current origin/main, resolving conflicts by preserving the PR's intent: where main's refactors (including #3322 and the retirement of legacy PR-check migration machinery in #3299) superseded a conflicted hunk, adapt the change to main's new shape rather than resurrecting removed code. Push the rebased branch to the fork remote (force-push expected and correct for this conflict fix); the PR must update in place, never a new PR. Never push to upstream main; never merge.
What Changed
Risk Assessment
✅ Low: The opt-in watcher change is bounded, fail-closed, preserves the default behavior and strict status and secondmate guards, and conforms to the rebasing intent without resurrecting superseded machinery.
Testing
The real watcher subprocess flow passed end to end, proving bounded opt-in pane-churn absorption and every required fail-closed boundary. The initial unrelated fixture refusal was diagnosed as ambient umask setup and passed after retrying with
0022. A screenshot was not applicable because this change's user-facing surface is CLI wake routing and persisted watcher state.Evidence: Complete executable watcher transcript
Source: Complete executable watcher transcript
Key proof: churning panes absorb; unchanged panes, ambiguous endpoints, secondmates, status-bearing batches, invalid state, and exhausted deadlines surface.Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
🔧 **Rebase** - 1 issue found → auto-fixed ✅
docs/architecture.md- merge conflict rebasing onto refs/remotes/no-mistakes-push/fm/fm-2374-turnend-absorb🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
Inspected the target diff and executable watcher harness against the supplied intent.Ranbash tests/fm-watch-triage.test.sh; all changed turn-end cases passed, then an unrelated process-event fixture exposed ambient umask0002.Isolated the process-event case and confirmed its security refusal was caused by the group-writable fixture directory.Retried withumask 0022; bash tests/fm-watch-triage.test.sh; the complete focused watcher suite passed.Verifiedgit status --shortwas empty after testing.✅ **Document** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.