obs(01): typed host observation facade, real stdio chunks, frame identity and budgets

This commit is contained in:
cflmy committed 2026-11-22 15:42:41 +08:00
1 parent d38736c0a0
commit d78faaf8e4
8 files changed
+1817 -12

No files matched your search

+6
View File
@@ -55,6 +55,11 @@ pub enum ErrorCategory {
ForeignFailure,
/// A host operation failed for an environmental reason.
HostError,
/// The observation event transport failed (broken pipe/write error).
///
/// This aborts the run rather than letting a program with side effects
/// continue after its event channel died (RFC-OBS-0001 §5.3).
Observation,
/// Internal invariant violation.
Internal,
}
@@ -84,6 +89,7 @@ impl ErrorCategory {
ErrorCategory::PluginFailure => "plugin.failure",
ErrorCategory::ForeignFailure => "foreign.failure",
ErrorCategory::HostError => "host.error",
ErrorCategory::Observation => "observe.transport_failed",
ErrorCategory::Internal => codes::INTERNAL,
}
}