ralph-loop: detect oracle VERIFIED tool results
This commit is contained in:
@@ -78,5 +78,22 @@ describe("detectCompletionInTranscript", () => {
|
||||
// #then
|
||||
expect(detected).toBe(false)
|
||||
})
|
||||
|
||||
test("#when oracle tool output contains VERIFIED promise #then should detect verification completion", () => {
|
||||
// #given
|
||||
const transcriptPath = createTranscriptFile([
|
||||
JSON.stringify({
|
||||
type: "tool_result",
|
||||
timestamp: "2026-03-28T10:01:00.000Z",
|
||||
tool_output: "Task completed.\n\nAgent: oracle\n\n<promise>VERIFIED</promise>\n\n<task_metadata>\nsession_id: ses_oracle_123\n</task_metadata>",
|
||||
}),
|
||||
])
|
||||
|
||||
// #when
|
||||
const detected = detectCompletionInTranscript(transcriptPath, "VERIFIED")
|
||||
|
||||
// #then
|
||||
expect(detected).toBe(true)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user