Skip to content
PT

Static copy

Copied from docs/en/decisions/adp-003.md in https://github.com/poppy-team/aipo-lang (MIT). Pinned to revision ce47c4e070404fc41722ccd8e2b7b808b99062a8, blob c90c836f34a0d6b0c759d8036e9a3aa3608d7d42. The source repository remains canonical; this copy is refreshed through a sync pull request, not live.

ADP-003 — Execution Budgets ​

  • Status: Approved & Implemented
  • Deciders: Poppy Team
  • Phase: Wave 1

Context ​

When running untrusted scripts in host environments (game engines, plugin sandboxes, or user-authored automations), preventing infinite loops from locking the host process is non-negotiable.


Decisions Taken ​

  1. The VM supports an optional maximum instruction execution limit (gas / instruction budget).
  2. Each dispatch cycle decrements steps from the budget counter when active.
  3. Reaching zero triggers a deterministic termination fault: AIPO_RT_BUDGET_EXCEEDED.