Skip to content

Live DurableRunner crash proof (--live --force-crash) - #9

Merged
KMdotcom merged 1 commit into
mainfrom
cursor/live-durable-crash-demo-886c
Jul 22, 2026
Merged

Live DurableRunner crash proof (--live --force-crash)#9
KMdotcom merged 1 commit into
mainfrom
cursor/live-durable-crash-demo-886c

Conversation

@KMdotcom

Copy link
Copy Markdown
Owner

Summary

Closes the gap where demo_openai_adapter.py --live only exercised a happy path while the pitch is crash recovery via DurableRunner.

Changes

  • CrashOnceModel: wraps real gpt-4.1-mini via OpenAIProvider; first get_response raises ConnectionError (same as offline scripted model).
  • --force-crash (requires --live): documented end-to-end proof command.
  • Assertions in crash-proof mode: triage→resolver checkpoint RECOVERED, issue_refund called exactly once, RunAlreadyCompleted on second run.
  • README: demo matrix + note that tool-only failures may not escape Runner.run.

Verify locally

python3.11 demo/demo_openai_adapter.py
python3.11 demo/demo_openai_adapter.py --live --force-crash   # needs OPENAI_API_KEY
pytest -q

No PyPI bump (demo/docs only).

Open in Web Open in Cursor 

Wrap live resolver model in CrashOnceModel so Runner.run fails once after
VERIFIED handoff, matching offline behavior. Document proof command in README.

Co-authored-by: KMdotcom <KMdotcom@users.noreply.github.com>
@KMdotcom
KMdotcom marked this pull request as ready for review July 22, 2026 07:48
@KMdotcom
KMdotcom merged commit e67f5e2 into main Jul 22, 2026
2 checks passed
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.

2 participants