MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / test_state_restore

Function test_state_restore

tests/test_shadow.py:94–100  ·  view source on GitHub ↗

Persistence is via v2_lifecycle/LearnedState; verify direct state setting works.

()

Source from the content-addressed store, hash-verified

92
93
94def test_state_restore():
95 """Persistence is via v2_lifecycle/LearnedState; verify direct state setting works."""
96 tracker = ShadowTracker(eval_window=100, promote_after=3)
97 tracker._consecutive_wins = 2
98 tracker._promoted = False
99 assert tracker.consecutive_wins == 2
100 assert not tracker.promoted
101
102
103def test_no_eval_without_labels():

Callers

nothing calls this directly

Calls 1

ShadowTrackerClass · 0.90

Tested by

no test coverage detected