Repository navigation
Conversation
… wake queue Every pane-backed launch now unsets FM_WAKE_QUEUE, FM_WAKE_QUEUE_LOCK, the home path overrides, FM_SNAPSHOT_CACHE_DIR and the crew-state meta/status overrides before the worker starts, so a worker's own test runs cannot read or write the supervising home's live queue. FM_HOME and the task inbox are kept.
peterOC26
force-pushed
the
fm/fm-worker-env-wake-queue-leak-l1
branch
from
November 19, 2026 10:12
fc1a7c5 to
5c90d2d
Compare
Owner
Author
|
Replaced by #75 |
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
Q2249 B (2026-11-18, Jobs page): "Q2249 b" - use the leftover Claude allowance on, among other things, the small fix that stops worker test runs leaking fake notifications into this home's real wake queue.
Seen twice on 2026-11-18: a worker's test drain read /root/firstmate/state/.wake-queue because the worker shell inherited FM_WAKE_QUEUE; later four fake procevent wakes (example-file, flow-source, order-source, remote-source) landed in the real queue.
What Changed
FM_WAKE_QUEUE,FM_WAKE_QUEUE_LOCK,FM_ROOT_OVERRIDE, andFM_STATE_OVERRIDEfrom pane-backed worker launches while preservingFM_HOME.Risk Assessment
✅ Low: The change adds one portable
export NAME=statement to pane-backed launches, and the shell consumers read these names as${X:-default}(or as a truthy check in Python), so an empty value falls back to the default. The one consumer that checks set-versus-unset (fm-send.sh:670) still only prints an equivalent$FM_HOME/statepath. The scrub also runs after the allowlist'senv -iboundary, and the new test runs the actual emitted launch for both ship and secondmate, with and without the allowlist, under sh and (when installed) fish.Testing
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
⏭️ **Test** - skipped
Step was skipped.
✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.