Standards Packs¶
Standards packs are pre-built collections of rules for specific compliance frameworks. Enable them to instantly enforce regulatory standards on your codebase.
Available packs¶
| Pack ID | Name | Rules | Standard |
|---|---|---|---|
fda-iec-62304 |
FDA IEC 62304 | 14 | IEC 62304 / 21 CFR Part 11 |
owasp-top-10 |
OWASP Top 10 | 22 | OWASP Top 10 2021 |
soc2 |
SOC2 Trust Services | 16 | SOC2 TSC |
Managing packs¶
# List all packs and their status
sentra list-packs
# Enable a pack
sentra add-pack owasp-top-10
# Disable a pack
sentra remove-pack owasp-top-10
# List all active rules (builtins + user + packs)
sentra list-rules
Or configure in .guard.yaml:
Or via environment variable:
Rule types in packs¶
Packs include a mix of rule types:
| Type | Purpose | Fails gate? |
|---|---|---|
regex |
Pattern matching against file contents | Yes |
required_pattern |
Flags files missing a required pattern | Yes |
file_policy |
Structural checks (docstrings, file length) | Yes |
ast |
Python AST semantic analysis | Yes |
documentation_obligation |
Non-code compliance items | No |
Documentation obligations appear in reports for audit purposes but never fail the gate.
Pack rule overrides¶
You can customize individual rules within a pack via the dashboard (Packs tab > Edit Rules) without modifying the pack itself. Overrides are stored in .guard.yaml:
Custom packs¶
Create your own packs for organization-specific rules. See Authoring Custom Packs for a full guide.