What OMA returns when its test gate fails
Description and use
Fixing the expiry check in oh-my-agent (OMA) allowed all tests to pass and the workflow to complete successfully.
Problem
A test gate in oh-my-agent (OMA) incorrectly failed due to a boundary condition in the expiry check, causing the workflow to block.
Outcome
Fixing the expiry comparison from > to >= resolved the test gate failure, allowing all tests to pass and the workflow to complete successfully.
Workflow
- 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.
Evidence
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
- Record date: 2026-10-03T03:40:43.062Z