feat: complete Epic 1 production foundation
This commit is contained in:
1 parent
767428436d
commit
182bde8ac0
298 files changed
+35711
-5291
No files matched your search
@@ -16,6 +16,16 @@ pub enum RegistryError {
|
||||
UserNotFound { user_id: String },
|
||||
#[error("user with email {email} already exists")]
|
||||
UserEmailAlreadyExists { email: String },
|
||||
#[error("admin bootstrap contract is not available")]
|
||||
AdminBootstrapUnavailable,
|
||||
#[error("admin bootstrap contract is invalid, expired or already used")]
|
||||
AdminBootstrapRejected,
|
||||
#[error("admin recovery request is invalid or unavailable")]
|
||||
AdminRecoveryRejected,
|
||||
#[error("admin login is temporarily rate limited")]
|
||||
AdminLoginRateLimited { retry_after_ms: i64 },
|
||||
#[error("admin csrf token is invalid or missing")]
|
||||
AdminCsrfRejected,
|
||||
#[error("membership for user {user_id} in workspace {workspace_id} was not found")]
|
||||
MembershipNotFound {
|
||||
workspace_id: String,
|
||||
@@ -25,8 +35,28 @@ pub enum RegistryError {
|
||||
InvitationNotFound { invitation_id: String },
|
||||
#[error("platform api key {key_id} was not found")]
|
||||
PlatformApiKeyNotFound { key_id: String },
|
||||
#[error("platform api key {key_id} is not active")]
|
||||
PlatformApiKeyInactive { key_id: String },
|
||||
#[error("platform api key with name {name} already exists in workspace {workspace_id}")]
|
||||
PlatformApiKeyNameAlreadyExists { workspace_id: String, name: String },
|
||||
#[error("secret {secret_id} was not found")]
|
||||
SecretNotFound { secret_id: String },
|
||||
#[error("secret {secret_id} is not active")]
|
||||
SecretInactive { secret_id: String },
|
||||
#[error("secret {secret_id} was updated concurrently")]
|
||||
SecretConcurrentUpdate { secret_id: String },
|
||||
#[error("master key identity is not compatible with registered epoch {epoch}")]
|
||||
MasterKeyIdentityMismatch { epoch: i64 },
|
||||
#[error("master key identity metadata is invalid")]
|
||||
InvalidMasterKeyIdentity,
|
||||
#[error("master key rotation is already active")]
|
||||
MasterKeyRotationInProgress,
|
||||
#[error("master key rotation {rotation_id} was not found")]
|
||||
MasterKeyRotationNotFound { rotation_id: String },
|
||||
#[error("master key rotation state is incompatible with requested transition")]
|
||||
MasterKeyRotationConflict,
|
||||
#[error("master key rotation verification failed")]
|
||||
MasterKeyRotationVerificationFailed,
|
||||
#[error("secret with name {name} already exists in workspace {workspace_id}")]
|
||||
SecretNameAlreadyExists { workspace_id: String, name: String },
|
||||
#[error("secret {secret_id} is referenced by auth profile {auth_profile_id}")]
|
||||
@@ -59,12 +89,40 @@ pub enum RegistryError {
|
||||
expected: u32,
|
||||
actual: u32,
|
||||
},
|
||||
#[error("operation {operation_id} is archived")]
|
||||
OperationArchived { operation_id: String },
|
||||
#[error("operation {operation_id} has a stale base version: expected {expected}, got {actual}")]
|
||||
OperationStaleVersion {
|
||||
operation_id: String,
|
||||
expected: u32,
|
||||
actual: u32,
|
||||
},
|
||||
#[error("operation {operation_id} cannot transition from {from} using {action}")]
|
||||
InvalidOperationTransition {
|
||||
operation_id: String,
|
||||
from: String,
|
||||
action: &'static str,
|
||||
},
|
||||
#[error("operation {operation_id} cannot be deleted because durable history exists")]
|
||||
OperationDeleteForbidden { operation_id: String },
|
||||
#[error("operation {operation_id} auth profile reference is unavailable")]
|
||||
OperationAuthProfileUnavailable { operation_id: String },
|
||||
#[error("agent {agent_id} expected next version {expected}, got {actual}")]
|
||||
InvalidAgentVersionSequence {
|
||||
agent_id: String,
|
||||
expected: u32,
|
||||
actual: u32,
|
||||
},
|
||||
#[error("agent version {version} for {agent_id} is immutable")]
|
||||
ImmutableAgentVersion { agent_id: String, version: u32 },
|
||||
#[error("agent {agent_id} state changed before mutation")]
|
||||
AgentStaleRevision { agent_id: String },
|
||||
#[error("agent {agent_id} cannot transition from {from} using {action}")]
|
||||
InvalidAgentTransition {
|
||||
agent_id: String,
|
||||
from: String,
|
||||
action: &'static str,
|
||||
},
|
||||
#[error("operation {operation_id} changed immutable field {field}")]
|
||||
ImmutableOperationFieldChanged {
|
||||
operation_id: String,
|
||||
@@ -84,4 +142,10 @@ pub enum RegistryError {
|
||||
InvalidNumericValue { field: &'static str, value: i64 },
|
||||
#[error("invalid correlation identity for field {field}")]
|
||||
InvalidCorrelationIdentity { field: &'static str },
|
||||
#[error("new invocation record is missing or has incompatible execution field {field}")]
|
||||
InvalidExecutionRecord { field: &'static str },
|
||||
#[error("onboarding state changed before presentation milestone mutation")]
|
||||
OnboardingStaleRevision,
|
||||
#[error("onboarding domain steps are not complete")]
|
||||
OnboardingIncomplete,
|
||||
}
|
||||
Reference in new issue
Block a user