feat: implement threading model declaration host function (US-118)#104
Merged
tervezo-ai[bot] merged 1 commit intomainfrom Mar 13, 2026
Conversation
Add ThreadingHost struct with immutability enforcement, parallel-required warning, cooperative logging, and queryable state. Update HostState impl to reject double declarations and emit appropriate log levels per model. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tervezo-ai bot
pushed a commit
that referenced
this pull request
Mar 13, 2026
Reviewed and merged 6 PRs, closed 1 as superseded: - PR #103: fix schedule script URL prefix and non-JSON responses - PR #1: wasmtime 41.0.3 → 41.0.4 security bump - PR #99: Postgres database proxy integration tests (US-114) - PR #101: signal handling integration tests (US-110) - PR #104: threading model declaration host function (US-118) - PR #102: MySQL and Redis Wasm integration tests (US-117) - PR #100: closed as superseded by #103 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tervezo-ai bot
pushed a commit
that referenced
this pull request
Mar 13, 2026
PRs #101 (signals) and #104 (threading) introduced a merge conflict that GitHub's auto-merge didn't catch: HostState's `signal_queue: Vec<_>` field was renamed to `signals: SignalsHost` by #101, but #104's tests still used the old field name, preventing compilation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
ThreadingHoststruct incrates/warpgrid-host/src/threading/host.rsfollowing the established shim pattern (signals, filesystem, dns)threading.rsstub to module directory (threading/mod.rs+threading/host.rs)HostStateHosttrait impl inengine.rswith:Err("threading model already declared")on double-calltracing::warn!whenParallelRequiredis declaredtracing::info!whenCooperativeis declaredThreadingHostprovides queryable state viathreading_model()getterTest coverage
threading/host.rs: construction, both enum variants, double-declaration error, model preservationengine.rs:threading_model_parallel_required_succeeds,threading_model_double_declaration_errorsTest plan
cargo check -p warpgrid-hostcompilescargo test -p warpgrid-host— 355 tests passcargo clippy -p warpgrid-host -- -D warnings— no warningsView implementation in Tervezo