fix(epic-1): repair atomic agent edits and dispatch certainty
This commit is contained in:
1 parent
82b215dd74
commit
7aa854de26
16 files changed
+1600
-57
No files matched your search
@@ -38,10 +38,13 @@ fn normalize_runtime_error_with_effect(
|
||||
) -> ExecutionFailure {
|
||||
let mut failure = ExecutionFailure::new(error_code(error), correlation.clone());
|
||||
match error {
|
||||
RuntimeError::ProtocolAdapter(ProtocolAdapterError::UnexpectedStatus {
|
||||
status, ..
|
||||
}) => {
|
||||
RuntimeError::ProtocolAdapter(
|
||||
adapter @ ProtocolAdapterError::UnexpectedStatus { status, .. },
|
||||
) => {
|
||||
failure = failure.with_upstream_status(*status);
|
||||
if may_mutate && ambiguous_after_dispatch(adapter) {
|
||||
failure = failure.with_dispatch_uncertainty();
|
||||
}
|
||||
}
|
||||
RuntimeError::ProtocolAdapter(adapter)
|
||||
if may_mutate && ambiguous_after_dispatch(adapter) =>
|
||||
|
||||
Reference in new issue
Block a user