Neurosymbolic · Safe Autonomy · Composition of Verified Cores

Sole developerJul to Sep 2026complete, every result replayed in CI

Detect, recover, or halt

An LLM proposes a route. A deterministic verifier checks it. On a fail, a provably-correct classical planner recovers a safe path, which is re-verified before anything moves. And when no safe path exists at all, the shield stops. A safe system has to know the difference between "the model was wrong, here is the fix" and "there is no safe action".

38/38
flawed qwen2.5-7B proposals recovered with verified safe paths
0
unsafe fallbacks forwarded: the zero the whole design rests on, CI-enforced
10/10
sealed-goal cases halted instead of inventing a route

Watch the film

A narrated walk-through of this project, 3 min 19 s, with subtitles.

Try the shield

The whole loop, running here: the verifier, the exact-cost A* over the footprint-inflated grid, and the re-verification by both judges, ported from the repository and its two submodules. Run it on qwen's committed proposal for a map and it makes the decision the C++ build recorded, down to the recovered path. Then wall the goal in and watch it halt, or paint walls of your own and see what it does.

It opens on map 0 with qwen2.5-7B's proposal and runs the loop at once. The verifier rejects the proposal, A* on the footprint-inflated grid finds another route, both judges pass it, and the shield forwards that recovery: the same 98 waypoints the C++ build recorded. Then seal the goal in and watch it halt instead.

The keystone

This repository connects my other work: LLM planners fail in measurable ways (plan-failure-bench), so I detect those failures deterministically (the safety verifier) and recover with a path from a planner that is provably correct (the planning core), or halt when no safe path exists. It is deliberately a composition of already-verified components, pinned as git submodules at exact commits: no new algorithms, just the full detect-and-recover loop, with every guarantee re-proven by CI on every push. The term shield follows the safe-RL usage of Alshiekh et al.

The forward gate is goal-aware: a proposal passes only if it is both verifier-safe and actually ends at the goal. That requirement exists because a dry run caught a real case: a qwen proposal that was safe and went nowhere near the goal. Safety and task-success stay separate judgments; the gate requires both, and the design change is documented in the pre-registration commit, made before any result was published.

The decision flow

The shield's decision flow (as implemented in src/shield_main.cpp) LLM proposal waypoint trajectory Gate verifier-safe AND ends at the goal? FORWARD to controller forwarded_safe / recovered_from_* Classical fallback: A* footprint-inflated fine-resolution grid Re-verify the recovery verifier + independent oracle + goal check HALT - no safe action exists halted_no_safe_path: decline, don't invent fallback_unsafe the load-bearing cell: must be 0, CI fails both: pass unsafe or off-goal path found all three pass no path exists any check fails Design diagram - the outcome names are the pre-registered buckets; the counts live in the results, not here.
The whole system in one picture: two ways to a forwarded plan, one halt, and one red cell whose emptiness is the safety claim. The outcome names are the pre-registered buckets from the code; the counts live in the results below, not in the diagram.

The results

Bar charts: all 40 qwen proposals by outcome bucket, and the 10 sealed-goal variants all halting
All 40 committed qwen2.5:7b-instruct proposals, replayed deterministically, with no model inference at evaluation time. Only 2 were both safe and goal-reaching; 38 were recovered; nothing unsafe was forwarded. The halt suite seals the goal so no safe path exists, and all 10 correctly halt.
Map showing a rejected unsafe qwen path in red beside the shield's verified recovery path in green
Detect and recover, from committed data: the model's proposal (red) wanders off the map through walls; the shield rejects it, plans on the fine-resolution truth, re-verifies with two independent judges plus a goal check, and forwards the green path instead. Median decision time: 0.48 ms.
Map with the goal sealed inside a ring of obstacles; the model's short stub path is shown and the shield halts
The branch most demos leave out: the goal is sealed, the model's plan is safe but useless, and the shield halts rather than forwarding it or inventing a route. Any other outcome here fails CI.

As on every project on this site, the outcome taxonomy was committed before the first published results, every number above is quoted from the tool's output, the figures are rendered from the evaluation's own committed artifacts, and CI replays the entire evaluation, failing on any unsafe fallback or any sealed-goal case that does not halt.