fix(managed): budget decoding before representation expansion

Validation: integrated changes passed formatting, typecheck, lint, resolved module-boundary verification and git diff --check. Tests and real-provider workflows were not run.
This commit is contained in:
morluto
2026-10-11 00:03:19 +08:00
parent 6d4cefc4f7
commit 0f0d6e4d43
18 changed files with 705 additions and 362 deletions
+5 -1
View File
@@ -27,7 +27,11 @@ export const readManagedValue = <Value>(
try {
return operation();
} catch (cause: unknown) {
if (!(cause instanceof ManagedReaderFailure)) throw cause;
if (
!(cause instanceof ManagedReaderFailure) ||
cause.issue.code === "resource-limit"
)
throw cause;
issues.push(cause.issue);
return undefined;
}