feat(registry): checkpoint PLN-0176 foundations and validated partial integrations

This commit is contained in:
2026-10-07 17:49:46 +01:00
parent 01fab56cc6
commit 126a9e50e7
63 changed files with 8499 additions and 1462 deletions
@@ -264,7 +264,9 @@ fn stack_value(value: &VmValue) -> Value {
VmValue::Float(v) => json!({"kind":"float64","value":v.to_string()}),
VmValue::Boolean(v) => json!({"kind":"boolean","value":v}),
VmValue::String(v) => json!({"kind":"string","value":v.as_ref()}),
VmValue::HeapRef(v) => json!({"kind":"heap_ref","value":v.0}),
VmValue::HeapRef(v) => {
json!({"kind":"heap_ref","value":{"index":v.index,"generation":v.generation}})
}
VmValue::Null => json!({"kind":"null","value":null}),
}
}
@@ -287,6 +289,7 @@ pub(super) fn fault(report: &CrashReport) -> Value {
}
CrashReport::VmInit { error } => {
let code = match error {
VmInitError::RuntimeResourceLimit(_) => "runtime_resource_limit",
VmInitError::InvalidFormat => "invalid_format",
VmInitError::UnsupportedFormat => "unsupported_format",
VmInitError::ImageLoadFailed(_) => "image_load_failed",