This repository was archived by the owner on Nov 15, 2026. It is now read-only.
Repository navigation
fix: hold only writable properties, unblock management and build off the loop (SIM-06) - #33
Merged
Merged
Conversation
A write re-decodes every property sharing the written cells. Recording all of them in held froze the generators of read-only aliases the client never wrote. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e event loop (SIM-06) An idle control connection held the manager lock for up to 5 seconds while it waited for a request line, delaying every other command including down. Build validates schemas and executes behavior scripts, which stalled Modbus service for all devices while it ran on the event loop. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…log debug (SIM-06) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…SIM-06) The control socket only accepts the path the deployment started with, so the README command with /app/examples/deployment.yaml was rejected. The Compose example also no longer passes --allow-scripts: its deployment uses no scripts. Co-Authored-By: Claude Sonnet 5.5 <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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
First batch of SIM-06, from a verified review of modsim 2.0.0a8.
held, which froze the generators of read-only aliases the client never wrote (contradictinghold stops a generator for a property after a valid client write). Only writable properties are held now. Regression test included.down) for up to 5 seconds. The request is read first and the lock covers only the action.RuntimeManager.applybuilt devices (schema validation and behavior script execution) on the event loop, stalling Modbus service for all devices. It usesasyncio.to_thread, asload_deploymentalready did.certificates/pymodbus.*now reports which files are needed instead of a bare[Errno 2]; asyncio debug mode is enabled only with--log debuginstead of always./app/examples/deployment.yaml, which the control socket rejects; it now uses/app/deployment.yaml. The Compose example no longer passes--allow-scripts(its deployment uses no scripts).Deliberately not changed:
bind: 0.0.0.0inexamples/deployment.yamlis required inside the container (Compose publishes the port to host127.0.0.1only), and a non-rootUSERneeds a plan for the bind-mounted./tdexport directory first.Verification:
uv run pytestpasses (117 passed, 3 skipped),uv run mypyand black 24.4.2 are clean. The held, lock and thread tests fail without their fixes.🤖 Generated with Claude Code