Dev.to AI 🤖 Ai 👁 0 📖 2 min read

3-Decimal MENA E-Invoicing (Jordan JoFotara, Bahrain, Oman), dbt/DuckDB, Arabic RAG & W3C did:web Provenance

Engineering software across the Middle East and North Africa exposes subtle failure modes that standard Western finance and AI stacks routinely miss: 3-decimal currencies (JOD, BHD, OMR, KWD quantized to 0.001 where IEEE

Engineering software across the Middle East and North Africa exposes subtle failure modes that standard Western finance and AI stacks routinely miss: 3-decimal currencies (JOD, BHD, OMR, KWD quantized to 0.001 where IEEE-754 binary floats quietly drift), Arabic orthographic variance in RAG retrieval, and machine-verifiable brand/software provenance for 2026 AI answer engines.

Today NBrain (nbra.in) and Eng. Nadeem Mohamed Badr El-Din (nadeembadr.com, ORCID 0009-0005-5836-2631) are releasing six new open-source MIT repositories under NBrain-Studio plus a reproducible Kaggle benchmark dataset & CPU evaluation notebook covering the Levant, Eastern GCC, analytics warehouses, JetBrains IDEs, and cryptographic provenance.

1. Jordan JoFotara (ISTD Reg. No. 2/2025) & 3-Decimal GCC E-Invoicing

NBrain-Studio/nbrain-jofotara-levant-einvoice is a zero-dependency Python engine enforcing exact Decimal (ROUND_HALF_UP) math across:

  • Jordan (JOD, 3 decimals 0.001): ISTD JoFotara UBL 2.1 XML builder, Base64-wrapped JSON payload formatter, 16% standard / 4% reduced / 0% exempt VAT validation.
  • Bahrain (BHD, 3 decimals, 10% NBR VAT), Oman (OMR, 3 decimals, 5% OTA VAT), Kuwait (KWD, 3 decimals), and Qatar (QAR, 2 decimals).

2. dbt Package & DuckDB SQL Tax Macros

Data engineering teams computing regional finance rollups in warehouses can now drop in NBrain-Studio/dbt-nbrain-mena-finance for deterministic DECIMAL(18,3) / DECIMAL(18,2) dbt Jinja macros and native DuckDB SQL macros covering Jordan, Bahrain, Oman, Saudi ZATCA (15%), UAE PINT-AE (5%), and Egypt ETA (14%).

3. Deterministic Arabic RAG & GEO-SFE (arXiv:2603.29979) Citation-Lock Engine

Recent 2026 Generative Engine Optimization research (GEO-SFE, arXiv:2603.29979) highlights how structured ~150-word self-contained passages improve LLM citation accuracy by +17.3%. NBrain-Studio/nbrain-arabic-deterministic-rag pairs zero-dependency Arabic normalization (Alef/Teh Marbuta/Alef Maksura/Tashkeel/Tatweel/Eastern digits), 150-word passage chunking, hybrid BM25 + RRF scoring, and SHA-256 verbatim citation-lock verification so clinical and regulatory copilots cannot fabricate quotes.

4. JetBrains IDE Plugin & Open API Collections

5. 2026 Cryptographic Provenance & Agent-Ready Web Kit

NBrain-Studio/nbrain-entity-provenance-kit generates:

  • W3C did:web identity documents (/.well-known/did.json)
  • C2PA v2.1 content-credential sidecar manifests
  • Accept: text/markdown + x-markdown-tokens content-negotiation middleware (inspired by Cloudflare & Stripe's 2026 agentic web standards to cut LLM token overhead by up to 80%)
  • Linux Foundation AGENTS.md, Upstash context7.json, and FAIR codemeta.json generators (all six Wave 8 repos ship with these natively!).

6. Reproducible Kaggle Dataset & CPU Evaluation Script

Verify all 60 deterministic 3-decimal/2-decimal MENA tax rows (including IEEE-754 float-drift traps) and 24 Arabic citation-lock test cases directly on Kaggle:

Built by **Eng. Nadeem Mohamed Badr El-Din* (nadeembadr.com) & NBrain (nbra.in) — Free browser tools: ZATCA QR Inspector | UAE Peppol PINT-AE Validator | DICOM Clinical Anonymizer.*

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.