Repository navigation
fix(pi): suppress routine supervision wake noise - #87
Merged
Merged
Conversation
Follow-up: Pi 0.84.2's installed-SDK no-model fallback guard fails unchanged on origin/main. Upstream fixes kunchenguid#3158 and kunchenguid#3261 are expected through the weekly sync.
withally
force-pushed
the
fm/fm-pi-idle-note-absorb-f1
branch
from
August 30, 2026 03:05
aac1e3c to
4dc2472
Compare
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.
Intent
Stop idle and stale Pi supervision notes from costing model turns. Unsolicited routine outcomes must remain in the durable branch outcome store, never render on MAIN, and never start a captain-facing turn. Captain outcomes remain for PR-ready work, decisions, failures, blockers, credentials, destructive actions, and security matters. Implement bounded pre-prompt wake coalescing with urgent bypass so one idle-repeat flood produces at most one branch turn, not one per note. For a given window and text, the first stale wake is urgent and bypasses coalescing; an identical same-text stale repeat while that text remains the last-delivered stale for that window is store-only with no branch turn and no re-prompt. Accept routine outcomes carrying silent:true durably and silently. Treat every first stale payload as urgent, and classify validated status tails as urgent for blocked, failed, done, or needs-decision prefixes plus login, credential, credentials, PR ready, ready for review, and checks green. Keep status-tail reads bounded, direct-child only, no-follow, nonblocking, and aligned with the shared task-id grammar; do not add watcher-boundary urgency metadata in this task. Preserve pending wakes safely across shutdown and suppress stale-generation fallback to replacement MAIN. Do not solve this only by pinning a cheaper branch model. This is fork-local for withally/firstmate. Weekly overlay PR 83 is already merged as f6600b7 on withally/main, so rebase normally and do not add a keep-list entry. Origin and any PR must be withally/firstmate, never kunchenguid/firstmate. Use one sentence per line in Markdown, plain dash style, no agent co-author, and colocated behavioral tests. Preserve the documented Pi 0.84.2 no-model live-guard limitation as upstream follow-up for fixes 3158 and 3261 through weekly sync. Record coalesced-offer-not-reserved and suppressed-stale-row-replayed as PR follow-up rather than fixing them in this task, per Firstmate final-round ruling.
What Changed
Risk Assessment
Testing
Targeted behavioral, integration, documentation, and real Pi SDK validation passed with a reviewer-visible transcript captured; the broader backlog-handoff run is partial due an unrelated unchanged fixture failure at bin/fm-public-followup.sh:142.
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
.pi/extensions/fm-branch-supervision.ts:232- The required criterion is to classify validated status tails as urgent for blocked, failed, done, or needs-decision prefixes. The regex at line 232 permits only one bracketed tag before the colon, but the shared status grammar and existing rows allow multiple tags such asneeds-decision [corr=...] [key=...]: ...; that signal tail returns false fromstatusTailIsUrgent, sourgentWakeapplies the coalescing delay instead of the urgent bypass. Reuse the shared status parser or accept repeated bracketed tags.🔧 Fix: Accept repeated status tags in Pi urgency classifier
1 error still open:
.pi/extensions/fm-branch-supervision.ts:232- The required criterion is “classify validated status tails as urgent for blocked, failed, done, or needs-decision prefixes.” The added line 232 permits repeated bracketed tags via(?:\s+\[[^\]]+\])*, but misses the shared grammar’s valid unbracketed correlation token. A tail such asneeds-decision corr=0123456789abcdef [key=release]: chooseis reduced toneeds-decisionby the shared parser, yet this classifier returns false and applies the coalescing delay instead of the urgent bypass. Align this classifier with the sharedcorr=...grammar; the colocated test currently covers only bracketed correlation tags.bin/fm-public-followup.sh:142- The changed backlog crash checks passed, but a later unrelated public-followup fixture failed because PF_REGISTRY_LOCK_IDS[@] was unbound under set -u at unchanged bin/fm-public-followup.sh:142.bash tests/fm-pi-branch-extension.test.shbash tests/fm-branch-supervision.test.shFM_PI_BRANCH_LIVE_E2E=1 bash tests/fm-pi-branch-live-e2e.test.shbash tests/fm-supervision-instructions.test.shbash tests/fm-pi-watch-extension.test.shbash tests/fm-backlog-handoff.test.sh(partial; changed crash checks passed)git status --short --untracked-files=all && git diff --quiet✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.