MCPcopy Create free account
hub / github.com/compozy/agh / ValidateResultSize

Function ValidateResultSize

internal/task/validate.go:1157–1159  ·  view source on GitHub ↗

ValidateResultSize reports whether a persisted run result respects the shared 64 KiB guardrail.

(payload json.RawMessage, path string)

Source from the content-addressed store, hash-verified

1155
1156// ValidateResultSize reports whether a persisted run result respects the shared 64 KiB guardrail.
1157func 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.
1162func ValidateHierarchyDepth(depth int) error {

Callers 3

ValidateMethod · 0.85
ValidateMethod · 0.85
TestPayloadSizeGuardsFunction · 0.85

Calls 1

validateJSONSizeFunction · 0.85

Tested by 1

TestPayloadSizeGuardsFunction · 0.68