Field rules
Each approved fingerprint has an associated set of field_rules: an array of objects with a path (namespaced dot-path), an action (mask or keep), and an optional semantic type hint (only valid on mask rules). Path namespaces that mask or keep data are body., query., header., resp., resp_header., and status-scoped forms such as resp:200.amount and resp_header:200.x-request-id.
path. is also accepted by the validator but is metadata only; the SDK does not apply rules under it yet.
The SDK downloads these rules via the sync endpoint and applies them fail-closed at capture time.
Important: keep rules apply to exact scalar paths only. A keep rule on a parent path does not keep nested scalars. Every scalar you want to preserve must have its own explicit keep rule. For example, a keep rule on body.customer does nothing for body.customer.id or body.customer.name, those scalars are still masked unless each has an explicit keep rule. A user who writes a keep rule on a parent object expecting nested fields to survive will silently lose those values.
[
{ "path": "body.customer.id", "action": "keep" },
{ "path": "body.customer.status", "action": "keep" },
{ "path": "body.amount", "action": "mask", "type": "decimal_amount" }
][
{ "path": "body.customer", "action": "keep" }
// body.customer.id and body.customer.status are still masked
]