feat(wave): wave_wait_for_signal MCP tool — sanctioned anxiety outlet#419
Merged
Merged
Conversation
Sanctioned idle-wait tool for wave-pattern Orchestrators (and Primes)
blocking on filesystem-bus completion artifacts. Polls signal_path
every 5s until min_count matches exist or timeout_sec elapses. Accepts
literal paths or Bun.Glob patterns. Returns matched paths + elapsed_sec
on success, or timed_out + partial_matches on timeout.
Replaces ad-hoc Bash(sleep) loops and the agent-anxiety failure mode
where idle loops are exited prematurely (pattern_sanctioned_fidget_tool).
- handlers/wave_wait_for_signal.ts — handler with __runWithDeps test seam
- tests/wave_wait_for_signal.test.ts — schema + matchSignal + loop semantics
- tests/integration/orchestrator-wait-on-flights.test.ts — real-fs scenario
- docs/tools.md — per-tool reference (seeded)
- docs/wave-pattern-orchestration.md — canonical Orchestrator-wait example
Implementation uses Bun.Glob (not node:fs) to remain immune to
mock.module('fs') leakage from sibling tests
(lesson_bun_native_apis.md).
Closes #414
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.
Implements
wave_wait_for_signalMCP tool per mcp-server-sdlc#414.Sanctioned-fidget tool for idle wave-pattern Orchestrators waiting on filesystem-bus artifacts. Polls signal_path with 5s sleep, returns when min_count matches reached or timeout fires.
Closes #414
Wave 4a / Flight 1 of Plan #607 (Beta).