BDI Agent Interpreters
Use this skill when a BDI design needs executable semantics. Specify the cycle so that two implementations would make the same transition given the same events and policy inputs.
Interpreter contract
- Define an event vocabulary: external observations, goal adoption/drop, action results, and failure.
- Define the belief store and any observation-update adapter, including contradiction handling and whether absence means false or unknown. Name when an imported paper leaves belief update outside its model.
- Give plans a trigger, context guard, and body. A plan is applicable only if its guard is satisfied under the current belief semantics.
- Make selection functions explicit: event selection, applicable-plan choice, and intention scheduling. Record whether policy must be deterministic, fair, or priority based.
- Define intention lifecycle: adopt, suspend, resume, succeed, fail, and abandon. Test a failed subgoal and a changed context mid-plan.
- Keep a trace of each selected event, plan, and transition so that an unexpected action can be reconstructed.
flowchart LR
E[Event queue] --> S[Select event]
S --> M[Match plans]
M --> G[Evaluate context guards]
G --> C[Select plan]
C --> I[Update intention stack]
I --> X[Execute one step]
X --> E
Design boundaries
bdi-agent-architecture owns the choice to use beliefs, desires, intentions, and the reconsideration policy at the model level.
- AgentSpeak-style plans are context-sensitive recipes; they do not themselves prove achievement. Name the interpreter, selection functions, and environment adapter. A local transition does not establish message delivery, distributed agreement, authority, or an external effect.
- For Móra et al. conformance, keep paper-defined explicit negation, Event Calculus, abductive feasibility, and preference-guided intention revision separate from a locally designed observation-update adapter and effect enforcement.
- Belief revision with inconsistent information is a separate policy choice. Do not assume an imported paraconsistent or abductive method is required for every implementation.
- For organizational accommodation use
bdi-organizational-modeling; for obligations and prohibitions use bdi-normative-reasoning.
Source-bound checks
- Read
sources/agentspeak-l-bdi-agents-speak-out-in-a-logical-computable/references/evidence-scope.md and its transition/environment diagrams when tracing a running interpreter.
- Read
sources/agentspeak-l-bdi-architecture/references/evidence-scope.md and its interpreter/protocol diagrams when a local agent interacts with other services.
- Read
sources/bdi-models-and-systems-reducing-the-gap-paper/references/paper-scope-and-conformance.md before claiming conformance to the cited BDI paper.
- Read
sources/bdi-agent-design-mora/references/evidence-scope.md before applying paraconsistent revision to policy or authorization decisions.
Source bundles
All original files remain under sources/<original-name>/. Read sources/agentspeak-bdi/ and sources/agentspeak-l-bdi-architecture/ for AgentSpeak design; sources/agentspeak-l-bdi-agents-speak-out-in-a-logical-computable/ for the second literature import; sources/bdi-models-and-systems-reducing-the-gap/, sources/bdi-models-and-systems-reducing-the-gap-paper/, and sources/bdi-agent-design-mora/ for operational revision variants. Compare duplicate claims before reuse; verify source-dependent results against the primary papers.
1---2name: bdi-agent-interpreters3description: Implement an executable BDI agent cycle with events, context-guarded plans, intention stacks, selection functions, and belief revision. Use when designing or debugging AgentSpeak-style runtimes or concrete BDI program semantics. NOT for high-level BDI adoption, organizational modeling, norms, or hypertree team planning.4license: Apache-2.05metadata:6 source: https://skillmd.com/skills/curiositech/bdi-agent-interpreters7 provenance:8 kind: semantic-merge9 sources: [bdi-agent-design-mora, bdi-models-and-systems-reducing-the-gap, bdi-models-and-systems-reducing-the-gap-paper, agentspeak-bdi, agentspeak-l-bdi-agents-speak-out-in-a-logical-computable, agentspeak-l-bdi-architecture]10---1112# BDI Agent Interpreters1314Use this skill when a BDI design needs executable semantics. Specify the cycle so that two implementations would make the same transition given the same events and policy inputs.1516## Interpreter contract17181. Define an event vocabulary: external observations, goal adoption/drop, action results, and failure.192. Define the belief store and any observation-update adapter, including contradiction handling and whether absence means false or unknown. Name when an imported paper leaves belief update outside its model.203. Give plans a trigger, context guard, and body. A plan is applicable only if its guard is satisfied under the current belief semantics.214. Make selection functions explicit: event selection, applicable-plan choice, and intention scheduling. Record whether policy must be deterministic, fair, or priority based.225. Define intention lifecycle: adopt, suspend, resume, succeed, fail, and abandon. Test a failed subgoal and a changed context mid-plan.236. Keep a trace of each selected event, plan, and transition so that an unexpected action can be reconstructed.2425```mermaid26flowchart LR27 E[Event queue] --> S[Select event]28 S --> M[Match plans]29 M --> G[Evaluate context guards]30 G --> C[Select plan]31 C --> I[Update intention stack]32 I --> X[Execute one step]33 X --> E34```3536## Design boundaries3738- `bdi-agent-architecture` owns the choice to use beliefs, desires, intentions, and the reconsideration policy at the model level.39- AgentSpeak-style plans are context-sensitive recipes; they do not themselves prove achievement. Name the interpreter, selection functions, and environment adapter. A local transition does not establish message delivery, distributed agreement, authority, or an external effect.40- For Móra et al. conformance, keep paper-defined explicit negation, Event Calculus, abductive feasibility, and preference-guided intention revision separate from a locally designed observation-update adapter and effect enforcement.41- Belief revision with inconsistent information is a separate policy choice. Do not assume an imported paraconsistent or abductive method is required for every implementation.42- For organizational accommodation use `bdi-organizational-modeling`; for obligations and prohibitions use `bdi-normative-reasoning`.4344## Source-bound checks4546- Read `sources/agentspeak-l-bdi-agents-speak-out-in-a-logical-computable/references/evidence-scope.md` and its transition/environment diagrams when tracing a running interpreter.47- Read `sources/agentspeak-l-bdi-architecture/references/evidence-scope.md` and its interpreter/protocol diagrams when a local agent interacts with other services.48- Read `sources/bdi-models-and-systems-reducing-the-gap-paper/references/paper-scope-and-conformance.md` before claiming conformance to the cited BDI paper.49- Read `sources/bdi-agent-design-mora/references/evidence-scope.md` before applying paraconsistent revision to policy or authorization decisions.5051## Source bundles5253All original files remain under `sources/<original-name>/`. Read `sources/agentspeak-bdi/` and `sources/agentspeak-l-bdi-architecture/` for AgentSpeak design; `sources/agentspeak-l-bdi-agents-speak-out-in-a-logical-computable/` for the second literature import; `sources/bdi-models-and-systems-reducing-the-gap/`, `sources/bdi-models-and-systems-reducing-the-gap-paper/`, and `sources/bdi-agent-design-mora/` for operational revision variants. Compare duplicate claims before reuse; verify source-dependent results against the primary papers.