Skip to content

fix(executor): let interrupt() inside an action pause the graph - #90

Merged
bsbodden merged 1 commit into
mainfrom
fix/interrupt-inside-actions
Nov 17, 2026
Merged

bsbodden merged 1 commit into
mainfrom
fix/interrupt-inside-actions

Conversation

@bsbodden

Copy link
Copy Markdown
Contributor

See #89. Executors let GraphBubbleUp propagate so interrupt() inside an action pauses the graph; tests in tests/test_interrupt_inside_actions.py. Fixes #89

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
@github-actions github-actions Bot added the bug Something isn't working label Nov 17, 2026
@github-actions

Copy link
Copy Markdown

✅ Code Quality Report

Metric Score Status
MFCQI Score 0.8118477438645103 ✅ Good
Test Coverage 94% ✅ Good
Security Issues 0 ✅ Clean

Quality Gates

  • MFCQI Score: ✅ Minimum 0.75 (Current: 0.8118477438645103)
  • Test Coverage: ✅ Minimum 80% (Current: 94%)
  • Security: ✅ Zero vulnerabilities (Current: 0)

🎉 All quality gates passed! This PR maintains high code quality standards.

📊 View detailed MFCQI breakdown

Run uv run python -m mfcqi analyze langgoap locally to see detailed metrics breakdown.

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
bsbodden merged commit f91882e into main Nov 17, 2026
20 checks passed
@bsbodden bsbodden mentioned this pull request Nov 17, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

interrupt() inside an action's execute is reported as a failed action

1 participant