Fix progression stalls and add normal class trainer visits
Core tests / core (push) Successful in 29s

This commit is contained in:
Codex
2026-09-24 09:24:57 +12:00
parent d57d793a84
commit 132bf75f9d
24 changed files with 343 additions and 31 deletions
+7 -1
View File
@@ -8,7 +8,7 @@ test('inference preserves intervening observations and cancels after retirement'
const now=Date.now();
const bot={id:'hero',name:'Zaku',status:'online',tier:'hero',decisions:0,
personality:{activities:['explore']},autonomy:{managed:true},level:5,zone:'Old zone'};
let state={revision:1,bots:[bot],events:[],sequence:0,settings:{}};
let state={revision:1,bots:[bot],events:[],sequence:0,settings:{hardcore:{enabled:false}}};
const store={load:async()=>structuredClone(state),save:async(s,revision)=>{
assert.equal(revision,state.revision);state=s;
}};
@@ -29,3 +29,9 @@ test('inference preserves intervening observations and cancels after retirement'
assert.equal((await runLiveAutonomyTick(store,{}, {},{now,forceBotId:'hero'})).ran,false);
assert.equal(queued,1);
});
test('rest requests never enable indefinite stay',()=>{
const {compileLivePlayerbotIntent}=require('../.test-build/autonomy.js');
const source=compileLivePlayerbotIntent('A',{action:'rest',goal:'Recover',reason:'Tired'});
assert.doesNotMatch(source,/\+stay/);assert.match(source,/-stay/);assert.match(source,/GetHealthPct/);assert.match(source,/AzerothAITrainingOverride/);
});