feat(simulation): atlas layer-proxy handler — cache hit/miss -> queue (#969, D-225)

handle_atlas_request: cache hit -> serialize Layer1Output, reply Ready; miss ->
resolve the source heightmap (BodySourceResolver) + enqueue an Immediate
AnalyzeBody on the #968 background queue, reply Pending (client re-requests; the
drain system populates the cache so a later request hits); unknown/no-terrain ->
NotFound. Adds the AtlasLayerRequest/Response/Status wire types (+ Serialize on
CascadeLayer). Pure handler; the bridge routing is the proxy's other half.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-24 11:41:28 +02:00
co-authored by Claude Opus 4.7
parent 0097fd5027
commit edbc0f4ff1
3 changed files with 243 additions and 1 deletions
+1
View File
@@ -13,6 +13,7 @@ pub mod features;
pub mod gen_queue;
pub mod heightmap;
pub mod layer1;
pub mod layer_proxy;
pub mod plugin;
pub mod skeleton_gen;
pub mod source_resolver;