compliance_check
Check compliance with a read-only gate asserting AI-Act record-keeping and GDPR retention, returning violations (disabled receipts, integrity failures, PII over-retention) to reveal regressions.
Instructions
CI/CONTINUOUS compliance GATE (read-only, no LLM): assert the invariants a store claiming AI-Act record-keeping must hold and report any regression. Returns {ok, violations, checked} — violations include receipts_disabled (Art.12/19), integrity_failed (Art.12/15), pii_over_retention (GDPR 5(1)(e)). ok=False means the memory posture regressed. Needs INSPEXIMUS_RECEIPTS=1 for the record-keeping checks.
prior_anchor (an anchor() dict an auditor pinned earlier, out of band) adds the APPEND-ONLY check:
not_append_only (Art. 12/19) fires when today's history is not a consistent extension of it. This
surface used to drop the argument, so that violation could never fire here however the store was
rewritten — checked never listed append_only, but the CLI's own --prior-anchor did the check and
the tool docstring advertised the violation. The one operator-ADVERSARIAL check of the four is the
one an auditor is most likely to want.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prior_anchor | No | ||
| max_pii_age_days | No | ||
| require_receipts | No |