From 5210ef4baaea6dfe76cf02525812d4039e2324e3 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Feb 2026 06:21:53 +0000 Subject: [PATCH] fix: Update configure_csi_collection to use MockCSIGenerator from testing module The configure_csi_collection method was still referencing the old mock_data_generator dict directly instead of delegating to the MockCSIGenerator instance from the testing module. This completes the ADR-011 mock isolation by ensuring all mock CSI configuration flows through v1/src/testing/mock_csi_generator.py. https://claude.ai/code/session_01Ki7pvEZtJDvqJkmyn6B714 --- v1/src/core/router_interface.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/v1/src/core/router_interface.py b/v1/src/core/router_interface.py index 5865fd6..ee1ca3f 100644 --- a/v1/src/core/router_interface.py +++ b/v1/src/core/router_interface.py @@ -248,13 +248,9 @@ class RouterInterface: """ try: if self.mock_mode: - # Update mock generator parameters - if 'sampling_rate' in config: - self.mock_data_generator['frequency'] = config['sampling_rate'] / 1000.0 - - if 'noise_level' in config: - self.mock_data_generator['noise_level'] = config['noise_level'] - + if self._mock_csi_generator is None: + self._initialize_mock_generator() + self._mock_csi_generator.configure(config) self.logger.info(f"Mock CSI collection configured for router {self.router_id}") return True