test(curiosity): force CHECK_CURIOSITY triggering and harden HD Map routing

This commit is contained in:
2026-05-03 16:20:18 +02:00
parent f46b0b7bcb
commit 6cd068f951
5 changed files with 33 additions and 44 deletions

View File

@@ -72,28 +72,26 @@ def test_curiosity_navigates_to_homefeed_before_checking(
nav_graph = cognitive_stack["nav_graph"]
zero_engine = cognitive_stack["zero_engine"]
dopamine = cognitive_stack["dopamine"]
growth = cognitive_stack["growth_brain"]
# Force CHECK_CURIOSITY
monkeypatch.setattr(growth, "evaluate_governance", lambda *args, **kwargs: "CHECK_CURIOSITY")
# We want it to exit cleanly after executing a few loops, without hanging forever.
dopamine.session_limit_seconds = 0.1
dopamine.session_start = time.time()
# 5. Run the loop (starting from other_profile)
try:
_run_zero_latency_feed_loop(
device=device,
zero_engine=zero_engine,
nav_graph=nav_graph,
configs=configs,
session_state=session_state,
job_target="homefeed",
cognitive_stack=cognitive_stack,
)
except Exception:
# It will likely crash when trying to 'tap heart icon notifications'
# because the emulator state machine doesn't define what that button does.
# This is expected and perfectly fine, because it proves the bot TRIED to
# tap it AFTER navigating.
pass
# 5. Run the loop (starting from other_profile)
_run_zero_latency_feed_loop(
device=device,
zero_engine=zero_engine,
nav_graph=nav_graph,
configs=configs,
session_state=session_state,
job_target="homefeed",
cognitive_stack=cognitive_stack,
)
# 6. Assertions: Must navigate to HomeFeed FIRST
assert emulator.current_state == "home_feed", (