Logo Lanfrica

Stuart-Lach/Compflow

Domain:

digital infrastructure

Record type:

software
Creator:
Stu
Host:
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 …