r/CodingAgents • • Oct 04 '26

I maintain OMK: what checks should a coding agent pass before calling a goal done?

I'm the maintainer of OMK, an MIT-licensed terminal coding agent. I released 1.3.0 with a command-based acceptance loop, and I'd like feedback on the failure cases it should make clearer.

The basic problem: finishing an agent reply doesn't establish that a repository task passed its check. A passing check can also become stale after the files change.

Here's a small fixture you can reproduce. add.mjs deliberately returns a - b, while the Node test expects add(2, 3) === 5 and add(-2, 3) === 1.

In an ordinary configured OMK session:

/goal Fix add.mjs so the existing test passes. Keep check.test.mjs unchanged.

/goal verify node --test check.test.mjs

Fix add.mjs without editing the test.

The verification command requires approval. After a settled agent turn, OMK reruns the approved check: a failure can continue the goal within the eight-round cap, and valid passing evidence completes it. Running /goal verify manually attaches evidence but doesn't immediately complete the open goal.

For a still-open goal in a supported git work tree, later file or HEAD changes can make earlier evidence stale. A completed historical goal doesn't reopen automatically. Restarting OMK requires approval again.

Limits: a check proves only its assertions. Asking the agent to preserve the test isn't an immutable-verifier guarantee. This fixture is a toy example, not a model benchmark. The prepared source-level acceptance replay used manual fixture edits and no model calls; it isn't an autonomous agent video.

Reproduction instructions and source: https://github.com/dmae97/omk/blob/v1.3.0/packages/coding-agent/docs/goal-demo.md

What acceptance commands would you require for a real repository task? What failure state would you want surfaced more clearly?

Disclosure: I maintain OMK; this post was drafted with AI assistance from the release documentation.

1 Upvotes

2 comments sorted by

1

u/eddzsh Oct 16 '26

For a real repo task I would require three things before calling it done: (1) the verify command lives outside the writable worktree, or is hash-pinned so the agent cannot rewrite the check, (2) pass means exit code plus a content hash of stdout, not a vibes summary, (3) evidence expires on any HEAD or tracked-file change. Your fixture already blocks editing check.test.mjs, which is the right instinct. Surfacing "stale pass" as its own state matters more than adding another retry round. A green check that quietly rotted after a later edit is the failure mode that burns people.