A hybrid B2B trade orchestration platform.
Deterministic financial ledgers reconciled with probabilistic logistics telemetry — Spring Boot orchestration, Solidity escrow, a Python NEAT pathfinder and a JavaFX command centre, specified across a 2,830-line SRD.
Proxenos targets the $2.5 trillion global trade finance gap, on a specific architectural bet: that the hard part of B2B trade software is reconciling two kinds of data with fundamentally incompatible guarantees — deterministic financial ledgers, where a number is either right or the system is broken, and probabilistic logistics telemetry, where a shipment's position is always an estimate with error bars.
Four subsystems, each chosen because one half of that problem demands a different tool:
| Subsystem | Technology | Why this one |
|---|---|---|
| Orchestration core | Java Spring Boot | Deterministic financial state, transactional integrity |
| Escrow settlement | Solidity smart contracts | Self-executing release with no trusted intermediary |
| Route intelligence | Python NEAT | Multi-objective pathfinding where the objective function isn't known ahead of time |
| Command centre | JavaFX | One control surface across five distinct actor roles |
The claim the design has to earn: escrow settlement automated by dual verification — real-time GPS validation and on-chain state confirmation — eliminating the 72-hour settlement delay and cost overhead of a traditional Letter of Credit.
Five actors: sellers, buyers, carriers, arbiters, administrators.
The points where the specification commits to something contestable rather than describing the obvious.
users holds what every actor shares — UUID, email, wallet address, role, status, auth. Then
sellers, buyers, carriers and arbiters each share its primary key as a cascading foreign key.
The alternative, one wide table with role-specific columns, means a carrier row carries NULLs for every arbiter field and vice versa. With five roles that degrades fast, and no constraint can express "required, but only for this role." Table-per-subclass keeps the schema normalised and puts each role's requirements where they can actually be enforced.
max_delivery_time_seconds and estimated_duration_seconds are integers rather than native interval
types. Interval support across drivers and ORM layers is inconsistent enough that arithmetic in the
Java business layer becomes driver-dependent — a small loss of schema semantics bought back as
arithmetic that behaves identically everywhere.
CREATED → AWAITING_DEPOSIT → LOCKED → IN_TRANSIT → DELIVERED → COMPLETED, with DISPUTED branching
off. The shipments table aggregates timing constraints, lat/long tracking, route legs, escrow status
and participants — so the state of a trade is one row, not a join across five tables that can
disagree with each other.
Migrations are strictly versioned under classpath:db/migration and auto-DDL is off. The reasoning is
team coordination rather than tooling taste: with developers working in parallel on schema and on
fixtures, auto-DDL makes the database's shape depend on whose branch ran last. Explicit SQL makes it
reproducible on any machine, and validate turns drift between code and schema into a startup
failure instead of a silent runtime surprise.
graph_nodes and graph_edges hold cities and routes with weight, base cost and time estimates.
Keeping the graph in the database rather than generating it in memory means NEAT and the deterministic
algorithms (Dijkstra, A*) optimise over exactly the same substrate — which is what makes their outputs
comparable, and comparability is the entire justification for running a hybrid.
Unusually for a project this size, the design is documented to a depth that stands on its own:
| Path | |
|---|---|
PROXENOS_SOFTWARE_REQUIREMENTS_AND_DESIGN_DOCUMENT.md |
The SRD — 2,830 lines |
docs/design/fully_dressed_usecases.md |
Fully dressed use cases — 683 lines |
docs/design/DB_BACKEND_ALIGNMENT_AUDIT.md |
728-line audit reconciling implementation against specified schema |
docs/design/DATABASE_DESIGN.md |
Schema rationale and migration strategy |
docs/design/usecases_sequence_diagrams/ |
16 PlantUML sources — A1, B1–B6, C1–C2, S1–S5, T1 |
docs/design/UML_Class_Diagram_colored.pmul |
Domain class diagram |
docs/SDs/ |
Rendered system sequence diagrams |
docs/design/Walkthrough_scenario.md |
End-to-end narrative walkthrough |
docs/ARCHITECTURE_DIAGRAM.md |
Component and deployment view |
Built at National University of Computer and Emerging Sciences, Islamabad.
| Ibtasaam Amjad | 24i-0774 | @Mughal-Hash-24 |
| Hammad Mustafa | 24i-0519 | @hammadmustafax |
| Maaz Hussain | 24i-0708 | @artificial-maaz |
All three are named as preparing authors of the SRD (v1.0, 7 May 2026).
This repository is a full-history mirror maintained by Maaz Hussain, published with the team's agreement. Commit authorship is preserved exactly as upstream at Mughal-Hash-24/proxenos.
The team's original README is preserved at docs/ORIGINAL_README.md.