ADR-001: 100% Python Standard Library (PSL ONLY) and Offline Inline SVG¶
| Attribute | Value |
|---|---|
| Status | Accepted (2026-11-23) |
| Supersedes | Third-party HTTP/SSH/template clients and CDN JS charting |
Context¶
Hardened servers forbid pip install (requests, jinja2, pyyaml,
paramiko). Air-gapped networks block CDNs (Chart.js). Operators still need
CLI audits, SARIF output, and visual HTML reports.
Options Considered and Trade-Offs¶
| Option | Portability | Supply-Chain Risk | Visual Reports | Verdict |
|---|---|---|---|---|
A: pip + CDN JS |
Fails offline | High external deps | Blank offline | Rejected |
B: Hybrid PSL + pip |
Divergent behavior | Medium | Splits templates | Rejected |
| C: Strict PSL + SVG | Any Python 3.8+ |
Zero deps (ast) |
Self-contained SVG | Selected |
Decision¶
Restrict runtime modules to Python Standard Library (PSL ONLY), checked by
scripts/pre_commit_checks.py. Render charts via inline <svg> in
cis_core_engine.py. Preserve stderr without 2>/dev/null, and inject
secrets via environment variables.
Consequences¶
pyproject.tomlsetsdependencies = [], and PSLunittestsuites pass on bare CI runners.- Tests and contributors must avoid third-party imports (
yaml,pytest,requests).