Skip to content

feat(mcp): typed condition waits and bounded start auto-wait - #4454

Merged
zackees merged 18 commits into
masterfrom
infra/control-api-wait
Nov 10, 2026
Merged

zackees merged 18 commits into
masterfrom
infra/control-api-wait

Conversation

@zackees

@zackees zackees commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Closes #4447; parent #4444. Adds wait_for with typed output/source/media/metric conditions, typed last observations, immediate checks, bounded monotonic deadlines and shutdown cancellation. Missing metrics never satisfy thresholds. Record/stream/Virtual Camera starts accept optional wait and timeout fields while preserving existing calls.

RED 861014e: two deterministic shared-core tests panic at the production wait stub. GREEN: 70 MCP tests pass, including zero timeout, transitions, last values, cancellation, maximum deadlines, unknown/non-finite metrics and schema drift. Tests use fake clocks with no sleeps or test-owned threads; no new binaries, public headers, C tests or workflows.

Merged current origin/master after the queue ejected this PR when #4452 landed. Resolved the squash-related conflicts by preserving the waiting additions on top of the merged domain implementation. Required PR/queue CI remains authoritative; no device runs were performed on the host.

@zackees
zackees marked this pull request as draft November 9, 2026 23:06
@zackees zackees changed the title test(mcp): RED deterministic condition waits and deadlines (#4447) feat(mcp): typed condition waits and bounded start auto-wait Nov 9, 2026
@zackees

zackees commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

All 71 wait/core MCP tests passed before transport was added, including oversleep deadline rejection; native Clippy passed. Latest push carries master repair #4453 and the calldata dependency/link fix from #4452. No timeout or cancellation assertions were relaxed. CI is running on the repaired stack.

…omains

# Conflicts:
#	docs/features.md
#	docs/rust-port/control-api.schema.json
#	rust/obs-mcp/src/tools/mod.rs
#	rust/obs-mcp/tests/mcp/main.rs
@zackees
zackees marked this pull request as ready for review November 10, 2026 01:28
@zackees
zackees added this pull request to the merge queue Nov 10, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 10, 2026
# Conflicts:
#	docs/features.md
#	docs/rust-port/control-api.schema.json
#	rust/obs-mcp/src/backend/control.rs
#	rust/obs-mcp/src/backend/mod.rs
#	rust/obs-mcp/src/ffi/control.rs
#	rust/obs-mcp/src/tools/control.rs
#	rust/obs-mcp/src/tools/mod.rs
#	rust/obs-mcp/tests/mcp/main.rs
@zackees
zackees enabled auto-merge November 10, 2026 02:27
@zackees
zackees added this pull request to the merge queue Nov 10, 2026
Merged via the queue into master with commit 4ea33bc Nov 10, 2026
40 checks passed
@zackees
zackees deleted the infra/control-api-wait branch November 10, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

obs-mcp: typed wait_for and start auto-wait

1 participant