mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-05 10:08:06 +01:00
The run-grader reads a handoff against the project's definition_of_done and
downgrades to `partial` when the bar is not evidenced. It sees only what the
agent wrote — so a bar phrased as a property of the FINISHED PRODUCT can never
be met by one turn, no matter how good the work was.
On 2026-08-04 that was 10 of 19 projects ("outcomes are tracked to improve
future recommendations", "money is not a float", one that literally began "Not
explicitly defined"). The fleet closed 26 partial / 10 timeout / 3 success over
seven days and it read like an agent-quality problem. It was a bar problem.
The bars themselves are rewritten in the DB, delegating to each repo's own
`verify`. This is the part that stops them coming back:
- the brief-extraction prompt taught the vague phrasing — its example was
"tsc + lint clean, tests pass, deploys green" with no rule against describing
the product. It now demands one-turn, handoff-checkable actions and names the
three real bars that failed as counter-examples.
- `isCheckableDoneBar` — present is no longer the same as usable. The health
check fails a bar with no runnable action in it and says why, so an
ungradeable bar shows up on the project card instead of silently costing
every run.
- the GoalEditor placeholder and label match the same standard.
Deliberately a keyword heuristic, not an LLM call: it renders on every project
card, and catching "money is not a float" cheaply beats a perfect judgment
nobody can afford to run.
Covered in scripts/test/dod-gate.ts with the five real ungradeable bars and the
four real replacements, plus a case through computeProjectHealth.
Co-authored-by: test <test@test>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>