# MAX_APP_METADATA_DEPTH

> `const` **MAX\_APP\_METADATA\_DEPTH**: `256` = `256`

Defined in: [packages/filecoin-encryption-envelope/src/cose/constants.ts:123](https://github.com/FilOzone/synapse-sdk/blob/bc8a4b093324ccef9b407251fcf4e91823c6f599/packages/filecoin-encryption-envelope/src/cose/constants.ts#L123)

How deep the allowlist walk in `headers.ts` will descend into an
`app_metadata` value or a recipient's unprotected map, on encode and
decode alike.

A library resource limit, not a COSE or FIP rule: it turns a stack
overflow into a package error.