System Architecture
Module Version Registry
Master SemVer 2.0.0 Ledger and Atomic Delegation Protocol
Module Version Registry (15 Modules & Apps)
The B2BExpo platform is strictly modularized governed by Semantic Versioning 2.0.0 (MAJOR.MINOR.PATCH). Every component can be delegated to an AI subagent or human engineer with atomic scoping.
Delegation Protocol for AI & Developers
When assigning work to an autonomous AI subagent or a software engineer, the prompt or task definition must declare:
- Target Module ID (e.g.,
MOD-COMM-03orMOD-WEB-01) - Current Version (e.g.,
1.0.0) - Target Version (e.g.,
1.1.0for backward-compatible features,2.0.0for breaking DTO changes) - Permitted Package Scope (e.g.,
packages/commerce-core,apps/web)
Active Modules & Implementation Status
| Module ID | Module Slug | Version | Status | Unit Tests / Routes | Package / App Path |
|---|---|---|---|---|---|
MOD-CORE-00 | kernel_core | v1.0.0 | OPERATIONAL | 31 Passed | packages/types, packages/db |
MOD-TRADE-01 | rfq_engine | v1.0.0 | OPERATIONAL | 9 Passed | packages/trade-rfq |
MOD-OUTBOX-02 | transactional_outbox | v1.0.0 | OPERATIONAL | 5 Passed | packages/outbox |
MOD-COMM-03 | commerce_core | v1.0.0 | OPERATIONAL | 6 Passed | packages/commerce-core |
MOD-CRM-04 | twenty_crm_bridge | v1.0.0 | OPERATIONAL | 7 Passed | packages/twenty-bridge |
MOD-DOC-05 | proforma_automation | v1.0.0 | OPERATIONAL | 12 Passed | packages/trade-docs |
MOD-TRUST-06 | trust_compliance | v1.0.0 | OPERATIONAL | 8 Passed | packages/trade-compliance |
MOD-SEC-07 | enterprise_security | v1.0.0 | OPERATIONAL | 12 Passed | packages/trade-security |
MOD-GEO-08 | geo_localization | v1.0.0 | OPERATIONAL | 8 Passed | packages/trade-geo |
MOD-DOM-09 | custom_domain | v1.0.0 | OPERATIONAL | 9 Passed | packages/trade-domains |
MOD-WEB-10 | storefront_exporter | v1.0.0 | OPERATIONAL | 10 Routes (200 OK) | apps/web (Port 3000) |
MOD-DOCS-11 | fumadocs_portal | v1.0.0 | OPERATIONAL | Full MDX Index | apps/docs (Port 3001) |
MOD-TRADE-12 | sample_commerce | v1.0.0 | STABLE SPEC | Spec Ready | packages/trade-samples |
MOD-CHAT-13 | live_concierge | v1.0.0 | STABLE SPEC | Spec Ready | packages/trade-chat |
MOD-TELE-14 | mesa_analytics | v1.0.0 | STABLE SPEC | Spec Ready | packages/trade-telemetry |
Verified Monorepo Test Coverage
Turborepo Test Execution Summary (11 Packages, 107 Tests):
✔ @tradeos/types (22 tests, 0 failures)
✔ @tradeos/db (9 tests, 0 failures - PostgreSQL 16 RLS & Context)
✔ @tradeos/outbox (5 tests, 0 failures - Atomic Poller & Relay Worker)
✔ @tradeos/trade-rfq (9 tests, 0 failures - Incoterms Calculator & Container Math)
✔ @tradeos/trade-docs (12 tests, 0 failures - SHA-256 HMAC Anti-Spoofing Signer)
✔ @tradeos/twenty-bridge (7 tests, 0 failures - GraphQL Mutations & Webhook Guard)
✔ @tradeos/trade-compliance(8 tests, 0 failures - EUDR, CBAM, FDA Prior Notice)
✔ @tradeos/trade-security (12 tests, 0 failures - RFC 6238 TOTP, WebAuthn & RBAC)
✔ @tradeos/trade-geo (8 tests, 0 failures - 50 Markets, FX Buffer & Hreflang)
✔ @tradeos/trade-domains (9 tests, 0 failures - FQDN, DNS Challenge & Hostname Resolver)
✔ @tradeos/commerce-core (6 tests, 0 failures - Wholesale MOQ Tier & Escrow Orchestration)
--------------------------------------------------------------------------------------
Total: 107/107 Tests Passed (100% Pass Rate, 20.42s Monorepo Build Time)Live Development Endpoints & Persona Portals
- E-Commerce Web Platform (Light Mode): http://localhost:3000
/— Public B2B Storefront: Multi-commodity catalog, tiered volume pricing, instant checkout modal (30% DP / 70% Escrow), and RFQ drawer./buyer— Buyer Corporate Portal: Order tracking with 4-stage stepper, active RFQ counter-offer negotiation, and verified proforma review./seller— Tenant / Exporter Portal ("Manage Jualan"): Product catalog management, tier price editing, RFQ inbox with instant counter-offer & cryptographic Proforma generation, and Bill of Lading (B/L) upload to unlock 70% escrow balance./admin— Platform Owner Admin Panel ("Saya"): SuperAdmin authority to Approve, Postpone, Terbitkan (Publish Live), or Batalkan (Cancel/Reject) store registration requests, oversee 12 active tenants, and monitor Twenty CRM deal pipeline./rfq— Technical Incoterms 2020 & Container Equipment Optimizer/proforma— Cryptographic Proforma Studio with Live MITM Tamper Simulation/compliance— Sovereign Compliance Center (EUDR Hectare Polygon & CBAM Carbon Tax)/geo— Sovereign 50-Country Market Registry & Multi-Currency Treasury Converter/domains— Custom FQDN DNS Verification & Edge Multi-Tenant Routing/security— Zero-Trust RFC 6238 TOTP 2FA, WebAuthn Challenge & 4-Tier RBAC
- Fumadocs Documentation Portal (Dark Mode): http://localhost:3001
- System architecture, 15 module versions, and atomic delegation specs.