Download src/services/batch-loop-observation-proof.js from VanyaJ/bada-terminal: direct link, hf CLI and curl.
- Browser
- Download file 880 Bytes
-
https://huggingface.co/VanyaJ/bada-terminal/resolve/main/src/services/batch-loop-observation-proof.js
- Command line
-
hf download hf://VanyaJ/bada-terminal/src/services/batch-loop-observation-proof.js
-
curl -L -o batch-loop-observation-proof.js https://huggingface.co/VanyaJ/bada-terminal/resolve/main/src/services/batch-loop-observation-proof.js
880 Bytes
| // 원래 관측의 대사 결과를 반환하되 실행권·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}; | |