// 원래 관측의 대사 결과를 반환하되 실행권·checkpoint·알림을 수정하지 않는다. // 설명 문서: docs/specs/batch-loop-observations.md v0.4.0 const{load,hash}=require('./batch-observation-proof-common'); function verify(db,runId,eventKey){return db.runInTransaction(()=>{ const state=load(db,runId,eventKey),result=state.event.phase==='evaluation_intent'?require('./batch-goal-observation-proof').verify(db,state):state.event.phase==='analysis_intent'?require('./batch-analysis-observation-proof').verify(db,state):require('./batch-settlement-observation-proof').verify(db,state); return{version:1,runId,eventKey,eventHash:state.event.eventHash,observationsHash:state.observations.hash,...result,fingerprint:hash([state.parent.row,state.parent.checkpoint,state.parent.usage,state.observations,result]),canResume:false}; });} module.exports={verify};