Skip to main content

Module qapp_api

Module qapp_api 

Source
Expand description

Zero-allocation scoped query execution boundary for Flutter qapps.

Hot-path functions use stack/fixed buffers only. Heap allocation is confined to the FRB wrapper that copies geometry into a Dart Float32List.

Enums§

ExecutionError

Constants§

FLOATS_PER_QUIN
Float32 values emitted per matched Quin (six u64 lanes, no inline float tagging).
MAX_QUERY_RESULTS
Maximum Quin results per scoped query (42MB Sentinel budget).
SCOPED_QUERY_MAX_FLOATS

Functions§

append_sanctuary_violation
Append a conduct-violation Quin when a qapp breaches its compiled capability scope.
compile_wildcard_graph_query
Compile a wildcard anatomy graph query into fixed bytecode (install/boot helper).
dicom_ingest_status
Poll Core 3 ingest status: 0=pending, 1=complete, 2=failed.
eval_comorbidity_json
Hot-path comorbidity evaluation — stack buffers only inside engine call.
eval_comorbidity_json_from_daemon
Comorbidity verdicts using the in-process daemon graph (FRB-friendly).
execute_dicom_volume_query
Memory-map read of ingested pixel payload (single copy for Dart Uint8List).
execute_scoped_query
FRB/diagnostic wrapper — may allocate when copying geometry for Dart.
execute_scoped_query_in_place
Hot-path scoped query — must not allocate heap memory.
submit_dicom_ingest
Submit .dcm split-ingest to Core 3; returns lock-free job id.
translate_quin_to_geometry
Map matched Quins into a flat f32 lane for Dart Float32List rendering. Uses f32::from_bits on the low 32 bits — no scalar tagging in Quin objects.
verify_execution_scope
Walk compiled bytecode and ensure bound operands stay inside declared ontology domains.