v0.3.9-pre.002

This commit is contained in:
2026-09-04 14:21:05 +02:00
parent 5c797827f7
commit 7d0710a1e6
17 changed files with 1235 additions and 22 deletions

View File

@@ -0,0 +1,12 @@
// file: crates/ksp-worker-api/src/error.rs
// version: 1
/// Error code used when a Worker identifier violates its bounded safe-code contract.
pub const ERROR_CODE_WORKER_ID_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("worker_api", "worker_id_invalid");
/// Error code used when a Worker kind code violates its bounded safe-code contract.
pub const ERROR_CODE_WORKER_KIND_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("worker_api", "worker_kind_invalid");
/// Error code used when a Worker snapshot sequence cannot advance without wrapping.
pub const ERROR_CODE_WORKER_SNAPSHOT_SEQUENCE_EXHAUSTED: ksp_core_lib::ErrorCode =
ksp_core_lib::ErrorCode::new("worker_api", "worker_snapshot_sequence_exhausted");
/// Error code used when a requested Worker lifecycle transition is not allowed.
pub const ERROR_CODE_WORKER_TRANSITION_INVALID: ksp_core_lib::ErrorCode = ksp_core_lib::ErrorCode::new("worker_api", "worker_transition_invalid");