feat(navigation): Implement 100% autonomous Blank Start architecture; purge heuristics

This commit is contained in:
2026-04-22 00:05:03 +02:00
parent fff9ec5b0a
commit 75009d91a2
41 changed files with 1875 additions and 231 deletions

View File

@@ -41,7 +41,7 @@ def create_mock_telepathic_engine():
mock = create_autospec(TelepathicEngine, instance=True)
mock.find_best_node.return_value = {"x": 500, "y": 500, "confidence": 0.9}
mock.evaluate_profile_vibe.return_value = {"quality_score": 8, "matches_niche": True, "reason": "Mocked positive vibe"}
mock.evaluate_grid_visuals.return_value = [0.9] * 6
mock.evaluate_grid_visuals.return_value = {"x": 500, "y": 500, "score": 0.99, "semantic": "Mocked matching grid cell", "source": "vlm_grid"}
mock._extract_semantic_nodes.return_value = [{"x": 500, "y": 500, "semantic_string": "dummy node"}]
return mock
@@ -53,7 +53,25 @@ def mock_logger():
def device(request):
if request.config.getoption("--live"):
from GramAddict.core.device_facade import create_device
return create_device("emulator-5554", "com.instagram.android")
import yaml
import os
device_id = "emulator-5554"
app_id = "com.instagram.android"
config_path = "test_config.yml"
if os.path.exists(config_path):
try:
with open(config_path, 'r', encoding='utf-8') as f:
config = yaml.safe_load(f)
if config:
device_id = config.get("device", device_id)
app_id = config.get("app-id", app_id)
except Exception as e:
print(f"⚠️ Warning: Could not load {config_path}: {e}")
print(f"🚀 Connecting to live device: {device_id} (App: {app_id})")
return create_device(device_id, app_id)
return create_mock_device()
@pytest.fixture(autouse=True)