chore: snapshot pre-v0.2.0 WIP (pathfinder/reflex/metrics/skills improvements)

Baseline for the v0.2.0 self-learning iteration. All 205 tests pass on this
state. Subsequent commits in this branch layer the knowledge base,
post-mortem coach, and persona narration on top.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-27 13:05:12 +03:00
co-authored by Claude Opus 4.7
parent 3ee2ab886e
commit 86e5294bb8
30 changed files with 1023 additions and 130 deletions
+5
View File
@@ -67,6 +67,10 @@ function forceStopCollectBlock(bot) {
try { bot.pathfinder?.stop?.(); } catch {}
}
function clearPathfinderGoal(bot) {
try { bot.pathfinder?.setGoal?.(null); } catch {}
}
// Each action that uses pathfinder should set its own Movements profile
// before calling goto — otherwise it inherits whatever the previous caller
// left set, which has caused live regressions (e.g. flee setting canDig=false,
@@ -476,6 +480,7 @@ export async function wander(bot, radius = 12) {
return { ok: true, detail: { to: { x: tx, y: ty, z: tz }, via: best.name } };
} catch (e) {
warn("action", `wander pathfinder failed: ${e.message} — continuing blind in ${best.name}`);
clearPathfinderGoal(bot);
const beforeBlind = clonePos(bot.entity.position);
try { await bot.look(best.yaw, 0, true); } catch {}
bot.setControlState("forward", true);