Discover and propose payload content lengths

Proprietary

Discover calls to approved parser interfaces and their preceding length computations throughout the input source set. Derive source paths, program identities, both statement locations and COPY snapshots. Reuse the existing content-length correction proof to replace capacity measurements with trailing-trimmed content length. Keep existing range checks and failure behavior. Unknown effects, earlier consumers and unsupported interfaces prevent changes. Locate candidates by syntax identity after earlier replacements. Report every candidate and established conditional vulnerability witnesses separately. No source files, program IDs, statement lines or caller hashes are required. Padding semantics and parser requirements remain explicit approved policy. Application team review remains required.

io.moderne.mainframe.security.ProposePayloadContentLengths

Optional

Strict JSON with version 1 and a rules array. Each rule supplies id, parserRoutine, parserArguments, payloadField, lengthField, maximumContentLength, trailingSpacesArePadding and contractSource. The reusable approval must cover complete input, addressable disjoint records, content measurement and existing rejection behavior at every matching parser call. Conflicting rules for the same routine cannot propose changes. Omit this option to inventory calls without edits or inferred parser semantics.

mod run . --recipe=io.moderne.mainframe.security.ProposePayloadContentLengths

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.