mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-05 06:48:10 +01:00
* feat(control): capture per-run commit SHA — truthful "did it ship?" state Run outcomes recorded status/done/tests/health but never the commit a run produced, so a self-reported "done" with no git trace looked identical to one that actually landed code. Add `commit` to the orchestration summary contract (SSOT), parse it from both the on-disk handoff and the finish API, and ask the agent to emit `git rev-parse --short HEAD` in its handoff. The Previous-run panel now shows the SHA, and flags a finished+done run that recorded no commit with a "no commit" warning chip — surfacing the untruthful-state failure mode the control loop must catch instead of trust. Summary is JSONB, so no schema migration. block-reason/no-op-count remain dropped by the two hand-written summary literals (separate follow-up). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * refactor(orchestration): build run summary from the SSOT field array parseOrchestrationSummary and the /finish route each hand-wrote the summary object, so block-reason and no-op-count — both in ORCHESTRATION_TASK_SUMMARY_FIELDS — were silently dropped when a summary was persisted via the finish API (they survived only on the session.md path, which builds generically). A self-throttled agent reporting block-reason: awaiting_user would have that loop-control signal thrown away on the cloud dispatch path. Add buildOrchestrationSummary(fields) — Object.fromEntries over the SSOT array — and use it in both places. Adding a field to the contract array now persists it everywhere; no literal can drop one again. New test covers the previously-lost fields. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>