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 >= expiresAtand commit change. - 6. Rerun tests via
oma hook runand 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