From 1bd1d57fb3949dde2759f2697a75fa48b60aaf8a Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Wed, 21 Oct 2026 20:55:20 +0200 Subject: [PATCH] agent_control_e2e survival: a tree whose log is hidden is skipped Low leaves can hide every face of the trunk's bottom log from where the walk stops ("no face of block ... is visible from here"). The scenario now breaks inside the tree loop and moves on to the next tree, as it already did for one it cannot reach. Co-Authored-By: Claude Opus 5.5 --- tools/agent_control_e2e.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tools/agent_control_e2e.py b/tools/agent_control_e2e.py index c76a4f63f..4edc7ae55 100644 --- a/tools/agent_control_e2e.py +++ b/tools/agent_control_e2e.py @@ -206,19 +206,25 @@ def scenario(d, out): d('command', command=f'tp @s {x + 0.5} {ground + 1} {z + 0.5}') d('wait', ticks=5) - # 2. Walk to a tree: the nearest trunk the path finder can reach. + # 2. Walk to a tree, the nearest trunk the path finder can reach, and 3. break the log at the + # bottom of the trunk (it must end up in the inventory). Low leaves can hide every face of that + # log from where the walk stops: then the next tree. for _, base, log_id in trunk_bases(d)[:8]: x, y, z = base try: d('goto', x=x + 0.5, y=y, z=z + 0.5, near=2.5, timeout=60) - break except Failed as e: print(f' cannot reach {log_id} at {base}: {e}') + continue + try: + broke = d('break', x=x, y=y, z=z) + break + except Failed as e: + if 'no face' not in str(e): + raise + print(f' {log_id} at {base} is hidden: {e}') else: raise Failed('no reachable tree near spawn') - - # 3. Break the log at the bottom of the trunk; it must end up in the inventory. - broke = d('break', x=x, y=y, z=z) assert broke['block_before'].startswith(log_id), broke assert broke['drops'].get(log_id, 0) >= 1, broke if broke['picked_up'].get(log_id, 0) < 1: