Every rule. Every citation.
Enforced in-process.
Below is the exact content of every compliance pack — the patterns, the regulatory citations, and the enforcement actions. Not marketing copy. The actual rules your agent runs against on every LLM call.
How compliance packs work
Rules live in the cloud. Enforcement happens in your process.
Add compliance=["HIPAA", "FDCPA"] to instrument(). At startup, the SDK fetches the latest regulatory patterns from Peekr Cloud — no SDK update needed when regulations change. Rules are enforced synchronously on every LLM span, in your process, with no proxy.
- Three rule types per pack. prohibited_output, prohibited_input, required_disclosure — each mapped to the exact regulatory citation.
- Rules update without SDK updates. Patterns live in Peekr Cloud. When regulations change, your next deployment picks them up automatically.
- Full audit trail. Every violation is stored on the span before GuardrailError propagates. Compliance team gets the log.
- raise or warn per pack. Hard-block for CRITICAL severity. Warn-only for packs you're still onboarding. Configurable per project.
import peekr
# Compliance packs fetched from Peekr Cloud
# and enforced locally — no proxy, no latency
peekr.instrument(
exporter=peekr.HTTPExporter(
endpoint="https://peekr.starkspherelabs.com",
api_key="pk_live_…",
),
# Compliance packs (Pro)
compliance=["HIPAA", "FDCPA"],
# Custom guardrails (all plans)
guardrails=[
peekr.guard.PIIRedact(),
peekr.guard.HallucinationBlock(threshold=0.6),
],
){
# GuardrailError carries the pack name + citation
from peekr.guard import GuardrailError
try:
resp = client.chat.completions.create(...)
except GuardrailError as e:
log.warn(f"[{e.guardrail_name}] {e}")17 industry packs · USA · EU · UAE · KSA · maintained by Peekr
One line per regulation. We maintain the patterns.
Each pack contains prohibited output patterns, prohibited input patterns, and required disclosure strings — mapped to the exact regulatory citation. Toggle packs on/off per project from the dashboard.
FDCPA
Debt Collection · USA Federal
Blocks false threats, unauthorized fee claims, and abusive language. Injects Mini-Miranda disclosures.
9 rules · maintained by Peekr
we (will|are going to) (sue|arrest|prosecute) you§1692e — False threat of legal action or arrest
(legal action|lawsuit|court) (has been|is) (filed|initiated|pending)§1692e — False claim of legal action
we can (waive|remove|forgive) (the|this)? (fee|debt|balance)§1692f — Unauthorized fee modification commitment
pay .{0,30}(additional|extra) (fee|charge|interest|amount)§1692f — Collection of unauthorized charges
(government|federal|official) (agency|collector|department)§1692e — Misrepresentation as government entity
(stupid|idiot|deadbeat|loser|scammer)§1692d — Abusive or harassing language
This is an attempt to collect a debt§1692e(11) Mini-Miranda — required in ALL initial communications
Any information obtained will be used for that purpose§1692e(11) Mini-Miranda — second clause
This communication is from a debt collector§1692e(11) — required in all subsequent communications
Regulatory disclaimer
Peekr compliance packs are a technical enforcement layer — not legal advice. Engage qualified legal counsel for definitive compliance guidance. Patterns are maintained in good faith against published regulatory text.
Custom guardrails · all plans
Define rules from the dashboard. No code changes needed.
Add blocked terms, regex patterns, required disclosures, and faithfulness thresholds directly in the Peekr Cloud dashboard. Rules are fetched by the SDK at startup — your legal or compliance team can update them without touching code.
From the dashboard
Custom rules · add new
Name
Rule type
Action
Value
blocked_term · input, output
SDK picks up changes on next startup · no code change needed
Or in code — all plans
Strips email, phone, SSN, credit card, IP before storage.
peekr.guard.PIIRedact()Block terms, patterns, or API secrets. COMMON_SECRETS catches all major key formats.
peekr.guard.Blocklist(
patterns=Blocklist.COMMON_SECRETS,
action="redact",
)Raises GuardrailError when score < threshold. Violation stored before error propagates.
peekr.guard.HallucinationBlock(
threshold=0.5,
)Control plane
Toggle packs. Add custom rules. Monitor violations. No redeploys.
The Compliance settings page is the single place to manage everything — regulatory packs, custom rules, and action modes. Your legal or compliance team can change rules from the dashboard. The SDK fetches the latest config at startup — no code change, no PR, no deploy.
- Custom rules: blocked terms, regex patterns, required disclosures, thresholds
- Compliance packs: HIPAA, FDCPA, FINRA, GDPR — toggle per project
- raise or warn mode — hard-block or audit-only per rule
- Full violation feed with trace links and regulatory citations
Compliance · Project settings
SDK picks up changes on next startup — no redeploy required.
The rules, not just the names
Real patterns. Real citations.
Compliance packs are not checkboxes. Here are the actual regex patterns and required-disclosure rules enforced on every LLM span — fetched from Peekr Cloud at instrument() time, matched in-process with zero proxy overhead.
HIPAA — Healthcare
(diagnos|you have).{0,60}(cancer|HIV|diabetes)Privacy Rule — AI stating diagnosis as fact
(prescribe|recommend you take).{0,30}(mg|dose|drug)AI prescribing medication
\b\d{3}-\d{2}-\d{4}\bSSN in output — automatic PHI violation
(MRN|medical record number).{0,20}\d+Medical record number in output
This is not a diagnosis or medical adviceRequired disclaimer — injected if absent
Consult a licensed healthcare providerRequired referral to licensed care
FDCPA — Debt Collection
we (will|are going to) (sue|arrest|prosecute) you§1692e — False threat of legal action
(legal action|lawsuit|court) (has been|is) (filed|pending)§1692e — False claim of legal action
(stupid|idiot|deadbeat|loser|scammer)§1692d — Abusive or harassing language
pay .{0,30}(additional|extra) (fee|charge|interest)§1692f — Collection of unauthorized charges
This is an attempt to collect a debt§1692e(11) Mini-Miranda — required in ALL initial comms
This communication is from a debt collector§1692e(11) — required in subsequent comms
FINRA / SEC Reg BI
you should (buy|sell|hold|invest in) .{0,60}(stock|ETF|crypto)Rule 2111 — Specific investment recommendation without suitability
(guaranteed|risk-free|no-risk) (return|investment|profit)SEC — Guarantee of investment returns
(will|guaranteed to) (go up|return|gain) \d+%FINRA — Performance prediction prohibited
(can\'t lose|cannot lose|you won\'t lose)SEC — Loss-prevention guarantee prohibited
not personalized investment adviceFINRA/SEC — Required non-advice disclaimer
Investment recommendations require a suitability assessmentRule 2111 — Suitability requirement disclosure
Rule types
When a rule fires
Violations are stored on the span before any action — you always have the audit trail.
span.attributes = {
"guardrail_violations": [
"HIPAA: AI stating diagnosis as fact
— matched: 'you have diabetes'"
],
"guardrail_warnings": [...],
}All 10 packs — HIPAA, FDCPA, FINRA, Fair Housing, EEOC/ADA, UPL, TCPA, GDPR, EU AI Act, TILA/ECOA. Deep-dive into the HIPAA pack →
Enterprise
Built for teams that get audited.
Compliance is only worth anything if it survives a security review and a regulator. Peekr is built to.
Your data stays in your stack
Rules run locally, in your process — we never proxy your LLM traffic. Only PII-redacted spans reach Peekr Cloud, and you decide what's retained.
Deploy your way
Use the hosted cloud or self-host the whole stack. The SDK is MIT-licensed and runs anywhere your code does — no lock-in.
Audit-ready by default
Every violation is recorded before the error propagates. Export a date-ranged, per-regulation report your compliance officer hands to an auditor.
Access & identity
SSO / SAML, role-based access, and a read-only auditor role on the Enterprise plan.
Always current
Regulations change; your rules change with them. Packs are maintained by Peekr and fetched at runtime — no SDK release required.
Support & assurance
Dedicated support, response-time SLAs, a security review, and a signed DPA. SOC 2 Type 1 in progress.
Enable your first compliance pack free.
10k spans/month free. No credit card. HIPAA, FDCPA, FINRA, GDPR, UAE PDPL — all available on the free tier. Toggle from your dashboard, live on the next request.
New to compliance? See why regulated teams use Peekr →