Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

What OMA returns when its test gate fails

说明与用途

修复 oh-my-agent (OMA) 中的过期检查条件,使所有测试通过并成功完成工作流程。

问题

A test gate in oh-my-agent (OMA) incorrectly failed due to a boundary condition in the expiry check, causing the workflow to block.

结果

Fixing the expiry comparison from > to >= resolved the test gate failure, allowing all tests to pass and the workflow to complete successfully.

工作流

  • 1. Define fixture with expiry check using now > expiresAt.
  • 2. Run OMA workflow with a test completion gate.
  • 3. Manually invoke OMA Stop hook to rerun the test script.
  • 4. Observe failure and block decision.
  • 5. Modify code to now >= expiresAt and commit change.
  • 6. Rerun tests via oma hook run and verify all pass.
  • 7. Invoke Stop again to confirm workflow state is cleared and session ends successfully.

证据

The fixture defines an item as expired at now === expiresAt. Its implementation used >, so the boundary test failed.

来源

Stop gate 'test' FAILED (reinforcement 1/5).

来源

return now > expiresAt; return now >= expiresAt;

来源

pass 3 # fail 0

来源

  • 记录日期: 2026-10-03T03:40:43.062Z