How lazydeveloper9/dpdp works
CS-01 is a local-first DPDP compliance auditor. A user supplies a repository and scan configuration through the CLI or desktop GUI; the shared runner ingests and parses it, detects personal data and capabilities, evaluates statutory rules, classifies findings, and produces reports and evidence. The graph preserves the documented data-flow visualization, RoPA, consent, DAST, patch, and AI capabilities. Some implementations were not sampled, so their connections are shown only where documented or indexed.
Main entry points: runner.py Pipeline Runner · reporter.py Report Generation · main.py CLI · main_window.py Desktop GUI
Components 26
User Entry
- CLI
cs01/cs01/cli/main.py - Desktop GUI
cs01/cs01/gui/main_window.py - Scan Worker
cs01/cs01/gui/async_runner/scan_worker.py
Audit Pipeline
- Pipeline Runner
cs01/cs01/pipeline/runner.py - Repository Ingest
cs01/cs01/pipeline/stage1_ingest/ingestor.py - Git Ingest
cs01/cs01/utils/git_ingest.py - Polyglot Parsing
cs01/cs01/pipeline/stage2_parse/parser.py - PII Detection
cs01/cs01/pipeline/stage3_detect/pii_detector.py - Capability Inventory
cs01/cs01/pipeline/stage3_detect/capability_detector.py - Rule Evaluation
cs01/cs01/pipeline/stage4_evaluate/evaluator.py - Rule Loading
cs01/cs01/pipeline/stage4_evaluate/rule_loader.py - Finding Classification
cs01/cs01/pipeline/stage5_classify/classifier.py
Audit Data
- Scan Config
cs01/cs01/models/scan_config.py - Scored Findings
cs01/cs01/models/scored_finding.py - Flow Models
cs01/cs01/models/flow_graph.py - Graph Models
cs01/cs01/models/graph.py
Reports and Evidence
- Report Generation
cs01/cs01/pipeline/stage6_report/reporter.py - Flow Graph Builder
cs01/cs01/pipeline/stage6_report/graph_builder.py - Flow Visualizer
cs01/cs01/pipeline/stage6_report/visualizer/template.py - Evidence Locker
cs01/cs01/pipeline/stage6_report/evidence_locker.py - Report Exporters
cs01/cs01/pipeline/stage6_report
Optional Capabilities
- Consent Auditor
cs01/cs01/bonus/consent_auditor/auditor.py - DAST Probe
cs01/cs01/bonus/dast_prober/prober.py - Patch Generator
cs01/cs01/bonus/patch_generator/patcher.py - Local AI
cs01/cs01/ai/client.py
Other components
- Auditor
Connections 28
- Auditor → CLI: runs scan
- Auditor → Desktop GUI: starts audit
- CLI → Pipeline Runner: invokes
cs01/cs01/cli/main.py - Desktop GUI → Scan Worker: starts worker
cs01/cs01/gui/async_runner/scan_worker.py - Scan Worker → Pipeline Runner: runs pipeline
cs01/cs01/pipeline/runner.py - Pipeline Runner → Scan Config: uses config
cs01/cs01/pipeline/runner.py - Pipeline Runner → Repository Ingest: runs stage
cs01/cs01/pipeline/runner.py - CLI → Git Ingest: ingests remote
cs01/cs01/cli/main.py - Pipeline Runner → Polyglot Parsing: runs stage
cs01/cs01/pipeline/runner.py - Polyglot Parsing → Repository Ingest: reads manifest
cs01/cs01/pipeline/stage2_parse/parser.py - Pipeline Runner → PII Detection: runs detection
cs01/cs01/pipeline/runner.py - Pipeline Runner → Capability Inventory: builds inventory
cs01/cs01/pipeline/runner.py - Pipeline Runner → Rule Evaluation: runs stage
cs01/cs01/pipeline/runner.py - Rule Evaluation → Rule Loading: loads rules
cs01/cs01/pipeline/stage4_evaluate/evaluator.py - Pipeline Runner → Finding Classification: runs stage
cs01/cs01/pipeline/runner.py - Finding Classification → Scored Findings: produces bundle
cs01/cs01/pipeline/stage5_classify/classifier.py - PII Detection → Flow Models: produces flows
- Pipeline Runner → Report Generation: generates reports
cs01/cs01/pipeline/runner.py - Report Generation → Flow Graph Builder: builds flow graph
cs01/cs01/pipeline/stage6_report/reporter.py - Flow Graph Builder → Graph Models: creates graph
cs01/cs01/pipeline/stage6_report/graph_builder.py - Report Generation → Flow Visualizer: renders visualization
cs01/cs01/pipeline/stage6_report/reporter.py - Flow Visualizer → Graph Models: renders graph data
cs01/cs01/pipeline/stage6_report/visualizer/template.py - Report Generation → Evidence Locker: locks evidence
cs01/cs01/pipeline/stage6_report/reporter.py - Report Generation → Report Exporters: writes formats
cs01/cs01/pipeline/stage6_report/reporter.py - Report Generation → Consent Auditor: audits consent
cs01/cs01/pipeline/stage6_report/reporter.py - Report Generation → Patch Generator: drafts patches
cs01/cs01/pipeline/stage6_report/reporter.py - Pipeline Runner → DAST Probe: optional probing
- Pipeline Runner → Local AI: optional triage