Problem Statement & High-Level Architecture
KortiBundle (https://kortibundle.com) is an enterprise-grade legal-tech and document-automation SaaS platform engineered for Kenyan advocates, corporate legal departments, and financial institutions. It automates the compilation of Judiciary CTS e-filing trial bundles with clickable tables of contents, continuous Bates pagination, every-10th-line witness statement margin numbering, Section 106B electronic evidence certificates, and deterministic Advocates Remuneration Order (ARO) Schedule 6 Bills of Costs—backed by instant Safaricom M-Pesa Daraja 2.0 STK Push checkout.
Engineering Design & Data Pipeline
1. High-Throughput PDF Compilation & Coordinate Overlay Engine
Engineered a streaming PDF pipeline combining PyMuPDF (fitz) and ReportLab capable of merging dozens of pleadings, exhibits, M-Pesa statements, and scanned annexures into a single Judiciary CTS-compliant PDF bundle. The engine dynamically calculates global page offsets, injects bidirectional internal GoTo hyperlinks from the Table of Contents index to every exhibit, and stamps customizable Bates numbers and every-10th-line margin markers without corrupting underlying text layers.
2. Deterministic Statutory Fee & Civil Procedure Calculation Suite
Built a suite of deterministic decimal arithmetic engines modeling Kenyan statutory schedules: the Advocates Remuneration Order (ARO) & Schedule 6 Bill of Costs Generator (computing instruction fees, 1/3 Getting-Up fees, folio drawing/perusal charges, and 16% VAT), the Order 50 Civil Procedure Time Calculator (accounting for Kenyan public holidays and High Court statutory recess between December 21 and January 13), and the Section 106B Electronic Evidence Certificate Studio.
3. Real-Time M-Pesa Daraja 2.0 STK Push & Workspace Security
Integrated Safaricom's Daraja 2.0 Express (STK Push) API with idempotent webhook verification, enabling per-bundle and pro-tier settlements in under 2 seconds. All uploaded legal and financial dossiers are processed inside isolated, ephemeral workspaces compliant with the Kenya Data Protection Act (KDPA 2019).
Platform Features & Technical Capabilities
Automated Court Bundle Studio with clickable Table of Contents, PDF bookmarks & continuous Bates pagination
Deterministic Schedule 6 Party-to-Party & Advocate-Client Bill of Costs Generator (6-column A4 Landscape PDF)
Every-10th-Line Margin Numbering Engine for Witness Statements & Authorities under Order 11
Section 106B(4) Evidence Act Electronic Certificate & Affidavit of Service PDF Generator
Order 50 Civil Procedure Time Calculator excluding Kenyan gazetted holidays & High Court December recess
Real-Time Safaricom M-Pesa Daraja 2.0 STK Push payment integration & KDPA 2019 workspace isolation
Engineering Bottlenecks & Architectural Solutions
Compiling 500+ page multi-exhibit PDF litigation bundles in-memory while simultaneously computing exact statutory ARO Schedule 6 fee brackets and verifying real-time M-Pesa Daraja 2.0 STK Push callbacks without blocking web workers.
- Eliminating manual pagination errors, broken exhibit cross-references, and Judiciary CTS e-filing portal rejections on 500+ page court records.
- Automating complex Advocates Remuneration Order (ARO) Schedule 6 fee brackets, Getting-Up fees, and Civil Procedure Order 50 deadline exclusions.
- Delivering instant, auditable Safaricom M-Pesa Daraja 2.0 fee settlement while preserving strict advocate-client confidentiality under KDPA 2019.
Architected a streaming PyMuPDF/ReportLab coordinate compositor paired with deterministic decimal statutory calculators and an idempotent M-Pesa Daraja 2.0 webhook state machine running behind Cloudflare Anycast Edge.
- Automated Judiciary CTS-ready court bundle indexing with hyperlinked Tables of Contents, continuous exhibit pagination, and Order 11/Rule 87 every-10th-line margin numbering.
- Deterministic statutory engines for Advocates Remuneration Order (ARO) Schedule 6 Bills of Costs, Order 50 judicial recess computation, and Section 106B electronic evidence certificates.
- Real-time Safaricom M-Pesa Daraja 2.0 STK Push checkout paired with ephemeral KDPA 2019-compliant chambers workspaces.