This document defines the formal specification for a payroll compliance intelligence engine designed to calculate, validate, and evidence statutory payroll obligations in South Africa.
# Compflow - Compliance Engine Project
This directory contains the **Compliance Engine MVP** - an API-first payroll compliance engine for South Africa.
## π Directory Structure
```
Compflow/
βββ compliance-engine/ β The complete MVP project
β βββ README.md Main documentation
β βββ QUICKSTART.md 5-minute setup guide
β βββ INDEX.md Documentation index
β βββ src/app/ Source code
β βββ tests/ Test suite
β βββ docs/ Technical docs
β βββ data/samples/ Sample CSV files
β
βββ README.md β This file
```
## π Quick Start
```powershell
cd compliance-engine
.\setup.ps1
.\start_server.ps1
```
Then open:
localhost
## π Documentation
**Start here**: `compliance-engine/QUICKSTART.md` or `compliance-engine/INDEX.md`
## β
Status
**COMPLETE** - All MVP requirements delivered:
- 8 API endpoints functional
- PAYE, UIF, SDL calculations working
- CSV upload and validation complete
- Evidence storage implemented
- 50+ tests passing
- Comprehensive documentation
## π― What This Is
An **API-first payroll compliance engine** that:
- Validates payroll data against South African tax rules
- Computes PAYE, UIF, and SDL accurately
- Stores evidence for audit purposes
- Provides REST API for integration
## π― What This Is NOT
- β Not a payroll system (doesn't pay salaries)
- β Not a SARS submission tool (validates before submission)
- β Not an HR system (no employee management)
## π Project Stats
- **Files**: 60+
- **Lines of Code**: 5,000+
- **Tests**: 50+
- **Documentation**: 11 files
- **API Endpoints**: 8
## π Quick Links
- **Setup Guide**: compliance-engine/GETTING_STARTED.md
- **API Docs**:
localhost (when running)
- **Project Summary**: compliance-engine/PROJECT_SUMMARY.md
- **Deployment Guide**: compliance-engine/PRODUCTION_CHECKLIST.md
## π» Technology
- Python 3.11+
- FastAPI (async web framework)
- SQLAlchem β¦