Skip to contents

Three combination templates lifted verbatim from the "ready-to-use combination templates" section of vignette("data-shield"), as callable functions instead of copy-pasted code. Each returns a list() of strategy specifications suitable for codeagent_client(data_shield = ...) or DataShield$new(strategies = ...). None of them register shield_reviewer with a live client_factory except shield_preset_clinical(), which uses CODEAGENT_FAST_MODEL like the rest of the package.

  • shield_preset_strict(): compliance/audit demos. Fails closed (on_fail = "block" everywhere) and strict k-anonymity.

  • shield_preset_balanced(): everyday development, low friction. Redacts instead of blocking; no ingress scanning or describe metadata.

  • shield_preset_clinical(): adds the semantic shield_reviewer() rail on top of strict k-anonymity, with "ask" (not "block") fail policy.

These are starting points, not a certification – read the vignette's "Combination safety" matrix before deploying any of them as-is.

Usage

shield_preset_strict()

shield_preset_balanced()

shield_preset_clinical()

Value

A list() of Data Shield strategy specifications.

Examples

strict <- shield_preset_strict()
balanced <- shield_preset_balanced()