Skip to content

fix(headless): force durable deadline settlement - #1083

Merged
Astro-Han merged 3 commits into
mainfrom
fix/1078-durable-deadline-output
Jul 16, 2026
Merged

Astro-Han merged 3 commits into
mainfrom
fix/1078-durable-deadline-output

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

  • force-stop an active Harbor provider/tool step with immediate at the soft deadline instead of waiting indefinitely for after_step
  • atomically publish durable runtime events before using maka-cell-output.json as the final commit marker
  • persist explicit benchmark.deadline / immediate settlement provenance in the final cell output
  • cover non-cooperative steps through both the shared cell API and the host-side Harbor entrypoint

Closes #1078.

Verification

  • env -u OLLAMA_API_KEY -u ZAI_API_KEY HOME=/tmp/maka-headless-isolated-home npm --workspace @maka/headless test — 1005 passed, 0 failed, 1 existing clean-checkout-only skip
  • focused deadline, normal-completion race, continuation suppression, usage provenance, and host adapter tests passed
  • npm --workspace @maka/headless run typecheck passed
  • no live provider, Oracle, or benchmark rerun was performed

Root cause

The cell's only deadline action used after_step. That mode deliberately lets the active provider/tool step continue, so a non-cooperative step could outlive the entire Harbor settlement grace and be hard-killed before final artifacts were written.

@Astro-Han
Astro-Han merged commit 09f1686 into main Jul 16, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the fix/1078-durable-deadline-output branch July 16, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(headless): force Harbor deadline settlement and atomically persist final cell artifacts

1 participant