Esp32 Heap Discipline

Memory-allocation discipline for AgentDeck ESP32 firmware (esp32/). Use whenever writing or reviewing firmware code that allocates — new / malloc / ps_malloc / heap_caps_alloc / std::vector / std::string / String / a buffer / a cache / anything held across a render loop. Covers the PSRAM-vs-no-PSRAM board split, the allocation decision order, fragmentation avoidance, the makeUniqueNoThrow / ScopedCleanup helpers, the PROTOCOL_MAX_MSG_BYTES JSON guard, and the heap diagnostics (logHeap / [PERF] freeblk). Use when this capability is needed.

tomevault-io Updated

File contents

tomevault-io/skills-registry/tree/main/puritysb--agentdeck--agentdeck commit cd5678d82e

Frequently asked questions

npx skillmds@latest add tomevault-io/esp32-heap-discipline