Table of Contents

Class CompliancePresetLoader

Namespace
JD.AI.Core.Governance
Assembly
JD.AI.Core.dll

Loads and resolves built-in compliance preset policies embedded in the assembly.

public static class CompliancePresetLoader
Inheritance
CompliancePresetLoader
Inherited Members

Remarks

Built-in presets:

  • jdai/compliance/soc2 — SOC 2 Type II baseline
  • jdai/compliance/gdpr — GDPR PII protection
  • jdai/compliance/hipaa — HIPAA PHI protection
  • jdai/compliance/pci-dss — PCI-DSS cardholder data protection

Properties

AvailablePresets

Returns all available built-in preset names.

public static IReadOnlyCollection<string> AvailablePresets { get; }

Property Value

IReadOnlyCollection<string>

Methods

Check(string, PolicySpec)

Checks whether a compliance preset report passes for the given resolved policy. Returns a list of control results (name → pass/fail and optional guidance).

public static IReadOnlyList<ComplianceControl> Check(string presetName, PolicySpec resolvedSpec)

Parameters

presetName string
resolvedSpec PolicySpec

Returns

IReadOnlyList<ComplianceControl>

LoadPreset(string)

Loads the preset with the given name. Returns null if the preset is not recognized.

public static PolicyDocument? LoadPreset(string name)

Parameters

name string

Returns

PolicyDocument

ResolveExtension(PolicySpec)

If spec has a non-empty Extends field, loads the named preset and returns it as a low-priority PolicyDocument. Returns null if Extends is empty or the preset is not found.

public static PolicyDocument? ResolveExtension(PolicySpec spec)

Parameters

spec PolicySpec

Returns

PolicyDocument