Skip to content

runtime: enforce per-module resource limits and local-store quota #53

Description

@mfw78

Resource limits are configurable at the engine level via [limits] (fuel_per_event, memory_bytes, defaults 1B instructions / 64 MiB) but are global, not per-module, and the manifest parser has no resource fields. On the storage side, all modules share a single redb Database and set() does no size accounting, so a single module can write unbounded keys/values and exhaust disk for all modules. Fix: per-module limit overrides and a per-module local-store quota.

File: crates/nexum-engine/src/supervisor.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/lifecyclemodule FSM: restart policy, poison-pill, resource enforcementcomponent/local-storeredb per-module state + byte quotasdebtCode works but makes future work harder.effort/daysFew days. Needs design.featureNew capability that doesn't exist yet.importedImported from the pre-GitHub (Linear-era) code-review backlog.needs-designRequires thinking. No one has bandwidth.p2-annoyingNot broken, but annoying enough to matter.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions