loxguard

A lightweight C99 guard-runtime. Explicit execution boundaries around risky code — parsers, protocol handlers, optional modules, recovery-sensitive routines.

C99Guard BlocksHost-tested integration paths
Overview

Failures become evidence, not just resets

Instead of only failing with an assert or watchdog reset, loxguard turns failures into structured runtime evidence. It introduces Guard Blocks and Checked Guard Blocks: explicit execution boundaries around code that can go wrong.

Lifecycle events

Guard Block lifecycle tracking with failure reporting.

Policy decisions

Structured decisions when something fails inside a guard.

Blackbox records

Local blackbox evidence and reports for post-mortem analysis.

Checked primitives

Checked span and arena primitives for safer buffers.

Import / export

CSV and KV import-export paths.

Ecosystem adapters

Optional persistence and adapters into the wider LOX ecosystem.

What loxguard is not

loxguard does not claim full memory safety for arbitrary C code and is not a safety-certified framework. Its value is narrower: make unsafe execution states easier to detect, record and react to in small embedded C systems.

Next in the family loxalarm — deterministic alarm-state core →