Repository navigation
fix(executor): let interrupt() inside an action pause the graph - #90
Merged
Merged
Conversation
An interrupt() call inside an action's execute or aexecute raised GraphInterrupt, which every executor handler caught as Exception: the action was recorded as failed and blacklisted, and the planner replanned instead of the graph pausing. The sequential and parallel executors, sync and async, with and without ActionQos retries, now let GraphBubbleUp propagate, so an action can wait for an external event and Command(resume=...) resumes it with its return value applied as usual. Fixes #89
✅ Code Quality Report
Quality Gates
🎉 All quality gates passed! This PR maintains high code quality standards. 📊 View detailed MFCQI breakdownRun |
bsbodden
added a commit
to LangGOAP/foood
that referenced
this pull request
Nov 17, 2026
…e forks One GOAP thread per customer order. A sensor derives the world from the platform before every plan; the platform's recovery tools are actions with preconditions, effects and costs; the waits interrupt until the platform publishes an event and return what they observe, so a surprise re-plans from the real state and no route left means refund and cancel with the reason. A substitution outside the customer's policy asks support as a typed form. Plans, re-plans and executed actions are the order's decisions; no model is called after intake. Depends on LangGOAP's fix for interrupt() inside an action (LangGOAP/LangGOAP#90) until released. Adds the langgoap bench rows: every bundled failure recovered with zero model calls. Fixes #27
bsbodden
added a commit
to LangGOAP/foood
that referenced
this pull request
Nov 17, 2026
…e forks One GOAP thread per customer order. A sensor derives the world from the platform before every plan; the platform's recovery tools are actions with preconditions, effects and costs; the waits interrupt until the platform publishes an event and return what they observe, so a surprise re-plans from the real state and no route left means refund and cancel with the reason. A substitution outside the customer's policy asks support as a typed form. Plans, re-plans and executed actions are the order's decisions; no model is called after intake. Depends on LangGOAP's fix for interrupt() inside an action (LangGOAP/LangGOAP#90) until released. Adds the langgoap bench rows: every bundled failure recovered with zero model calls. Fixes #27
Merged
bsbodden
added a commit
to LangGOAP/foood
that referenced
this pull request
Nov 17, 2026
…e forks One GOAP thread per customer order. A sensor derives the world from the platform before every plan; the platform's recovery tools are actions with preconditions, effects and costs; the waits interrupt until the platform publishes an event and return what they observe, so a surprise re-plans from the real state and no route left means refund and cancel with the reason. A substitution outside the customer's policy asks support as a typed form. Plans, re-plans and executed actions are the order's decisions; no model is called after intake. Depends on LangGOAP's fix for interrupt() inside an action (LangGOAP/LangGOAP#90) until released. Adds the langgoap bench rows: every bundled failure recovered with zero model calls. Fixes #27
bsbodden
added a commit
to LangGOAP/foood
that referenced
this pull request
Nov 17, 2026
…e forks One GOAP thread per customer order. A sensor derives the world from the platform before every plan; the platform's recovery tools are actions with preconditions, effects and costs; the waits interrupt until the platform publishes an event and return what they observe, so a surprise re-plans from the real state and no route left means refund and cancel with the reason. A substitution outside the customer's policy asks support as a typed form. Plans, re-plans and executed actions are the order's decisions; no model is called after intake. Depends on LangGOAP's fix for interrupt() inside an action (LangGOAP/LangGOAP#90) until released. Adds the langgoap bench rows: every bundled failure recovered with zero model calls. Fixes #27
bsbodden
added a commit
to LangGOAP/foood
that referenced
this pull request
Nov 17, 2026
…e forks One GOAP thread per customer order. A sensor derives the world from the platform before every plan; the platform's recovery tools are actions with preconditions, effects and costs; the waits interrupt until the platform publishes an event and return what they observe, so a surprise re-plans from the real state and no route left means refund and cancel with the reason. A substitution outside the customer's policy asks support as a typed form. Plans, re-plans and executed actions are the order's decisions; no model is called after intake. Depends on LangGOAP's fix for interrupt() inside an action (LangGOAP/LangGOAP#90) until released. Adds the langgoap bench rows: every bundled failure recovered with zero model calls. Fixes #27
bsbodden
added a commit
to LangGOAP/foood
that referenced
this pull request
Nov 17, 2026
…e forks One GOAP thread per customer order. A sensor derives the world from the platform before every plan; the platform's recovery tools are actions with preconditions, effects and costs; the waits interrupt until the platform publishes an event and return what they observe, so a surprise re-plans from the real state and no route left means refund and cancel with the reason. A substitution outside the customer's policy asks support as a typed form. Plans, re-plans and executed actions are the order's decisions; no model is called after intake. Depends on LangGOAP's fix for interrupt() inside an action (LangGOAP/LangGOAP#90) until released. Adds the langgoap bench rows: every bundled failure recovered with zero model calls. Fixes #27
bsbodden
added a commit
to LangGOAP/foood
that referenced
this pull request
Nov 17, 2026
…e forks One GOAP thread per customer order. A sensor derives the world from the platform before every plan; the platform's recovery tools are actions with preconditions, effects and costs; the waits interrupt until the platform publishes an event and return what they observe, so a surprise re-plans from the real state and no route left means refund and cancel with the reason. A substitution outside the customer's policy asks support as a typed form. Plans, re-plans and executed actions are the order's decisions; no model is called after intake. Depends on LangGOAP's fix for interrupt() inside an action (LangGOAP/LangGOAP#90) until released. Adds the langgoap bench rows: every bundled failure recovered with zero model calls. Fixes #27
bsbodden
added a commit
to LangGOAP/foood
that referenced
this pull request
Nov 17, 2026
…e forks One GOAP thread per customer order. A sensor derives the world from the platform before every plan; the platform's recovery tools are actions with preconditions, effects and costs; the waits interrupt until the platform publishes an event and return what they observe, so a surprise re-plans from the real state and no route left means refund and cancel with the reason. A substitution outside the customer's policy asks support as a typed form. Plans, re-plans and executed actions are the order's decisions; no model is called after intake. Depends on LangGOAP's fix for interrupt() inside an action (LangGOAP/LangGOAP#90) until released. Adds the langgoap bench rows: every bundled failure recovered with zero model calls. Fixes #27
bsbodden
added a commit
to LangGOAP/foood
that referenced
this pull request
Nov 17, 2026
…e forks One GOAP thread per customer order. A sensor derives the world from the platform before every plan; the platform's recovery tools are actions with preconditions, effects and costs; the waits interrupt until the platform publishes an event and return what they observe, so a surprise re-plans from the real state and no route left means refund and cancel with the reason. A substitution outside the customer's policy asks support as a typed form. Plans, re-plans and executed actions are the order's decisions; no model is called after intake. Depends on LangGOAP's fix for interrupt() inside an action (LangGOAP/LangGOAP#90) until released. Adds the langgoap bench rows: every bundled failure recovered with zero model calls. Fixes #27
bsbodden
added a commit
to LangGOAP/foood
that referenced
this pull request
Nov 18, 2026
…e forks One GOAP thread per customer order. A sensor derives the world from the platform before every plan; the platform's recovery tools are actions with preconditions, effects and costs; the waits interrupt until the platform publishes an event and return what they observe, so a surprise re-plans from the real state and no route left means refund and cancel with the reason. A substitution outside the customer's policy asks support as a typed form. Plans, re-plans and executed actions are the order's decisions; no model is called after intake. Depends on LangGOAP's fix for interrupt() inside an action (LangGOAP/LangGOAP#90) until released. Adds the langgoap bench rows: every bundled failure recovered with zero model calls. Fixes #27
bsbodden
added a commit
to LangGOAP/foood
that referenced
this pull request
Nov 18, 2026
…e forks One GOAP thread per customer order. A sensor derives the world from the platform before every plan; the platform's recovery tools are actions with preconditions, effects and costs; the waits interrupt until the platform publishes an event and return what they observe, so a surprise re-plans from the real state and no route left means refund and cancel with the reason. A substitution outside the customer's policy asks support as a typed form. Plans, re-plans and executed actions are the order's decisions; no model is called after intake. Depends on LangGOAP's fix for interrupt() inside an action (LangGOAP/LangGOAP#90) until released. Adds the langgoap bench rows: every bundled failure recovered with zero model calls. Fixes #27
bsbodden
added a commit
to LangGOAP/foood
that referenced
this pull request
Nov 18, 2026
…e forks One GOAP thread per customer order. A sensor derives the world from the platform before every plan; the platform's recovery tools are actions with preconditions, effects and costs; the waits interrupt until the platform publishes an event and return what they observe, so a surprise re-plans from the real state and no route left means refund and cancel with the reason. A substitution outside the customer's policy asks support as a typed form. Plans, re-plans and executed actions are the order's decisions; no model is called after intake. Depends on LangGOAP's fix for interrupt() inside an action (LangGOAP/LangGOAP#90) until released. Adds the langgoap bench rows: every bundled failure recovered with zero model calls. Fixes #27
bsbodden
added a commit
to LangGOAP/foood
that referenced
this pull request
Nov 19, 2026
…e forks One GOAP thread per customer order. A sensor derives the world from the platform before every plan; the platform's recovery tools are actions with preconditions, effects and costs; the waits interrupt until the platform publishes an event and return what they observe, so a surprise re-plans from the real state and no route left means refund and cancel with the reason. A substitution outside the customer's policy asks support as a typed form. Plans, re-plans and executed actions are the order's decisions; no model is called after intake. Depends on LangGOAP's fix for interrupt() inside an action (LangGOAP/LangGOAP#90) until released. Adds the langgoap bench rows: every bundled failure recovered with zero model calls. Fixes #27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See #89. Executors let GraphBubbleUp propagate so interrupt() inside an action pauses the graph; tests in tests/test_interrupt_inside_actions.py. Fixes #89