feat(system): feat(windows): cherry-pick Windows parity fixes from #328 — watchdog ctypes (#323), dispatch monitor projects dir encoding (#324), prax atomic_write retry on PermissionError (#325), prax _WindowsSafeRotatingHandler (#318), branch_detector forward-slash normalize, memory_bank config seed (#322), PS profile wrapper (#319/#340). All Windows-only branches or no-op on Linux. 3146 tests pass, ruff zero. Closes #328 scope. Input-X credit preserved. (#342)

Co-authored-by: @devpulse <devpulse@aipass>
This commit is contained in:
AIPass
2026-04-16 13:41:31 -07:00
committed by GitHub
co-authored by @devpulse
parent fd033672af
commit e4a42f2186
9 changed files with 164 additions and 20 deletions
+9 -3
View File
@@ -41,7 +41,9 @@ def clean_bridge():
class TestBridge:
def test_register_and_resolve(self):
"""register() then resolve() returns the same callable."""
fn = lambda: "result"
def fn():
"""Test fixture."""
return "result"
bridge.register("my_contract", fn)
assert bridge.resolve("my_contract") is fn
@@ -62,8 +64,12 @@ class TestBridge:
def test_register_overwrites(self):
"""Registering same name twice replaces the driver."""
fn1 = lambda: "first"
fn2 = lambda: "second"
def fn1():
"""First test fixture."""
return "first"
def fn2():
"""Second test fixture."""
return "second"
bridge.register("dup", fn1)
bridge.register("dup", fn2)
assert bridge.resolve("dup") is fn2