ValidateResultSize reports whether a persisted run result respects the shared 64 KiB guardrail.
(payload json.RawMessage, path string)
| 1155 | |
| 1156 | // ValidateResultSize reports whether a persisted run result respects the shared 64 KiB guardrail. |
| 1157 | func ValidateResultSize(payload json.RawMessage, path string) error { |
| 1158 | return validateJSONSize(payload, MaxResultBytes, path) |
| 1159 | } |
| 1160 | |
| 1161 | // ValidateHierarchyDepth reports whether the supplied task depth stays within the bounded hierarchy limit. |
| 1162 | func ValidateHierarchyDepth(depth int) error { |