Phylons Liquidity Orquestration

Tegrity.AI
Regime-Awareness Programme
Code-grounded research series
Tegrity.AI · Regime-Awareness Programme

From Expert-System Knowledge Sources to Exchange-Level Liquidity Orchestration

A Code-Grounded Reconstruction of the JUBAP/Phylons Centralized Multi-Actor Coordination Architecture (2018–2021)
Resource allocations, capital instances, book-level intents, shared-liquidity arbitration, executable orders, stop-managed closure, and feedback
Architecture overview for From Expert-System Knowledge Sources to Exchange-Level Liquidity Orchestration
Technical working papercode-grounded edition v2.1July 2026Private preprint
Primary sources: JUBAP Libro Blanco; PHYLONS 1–7 with LM 4.x + Operations Simulator 3; supplied xbot source snapshot; Papers V and VI.
Iván Abril Palma · IMSV.org / tegrity.ai working group
Central thesis. The architecture separates epistemic confidence from economic authority: detectors propose, local supervisors size, shared-resource governance authorizes, exchange adapters commit, and operation records reconcile.

Abstract

This paper reconstructs the coordination and execution architecture of JUBAP/Phylons from the 2018 design corpus and the supplied xbot source snapshot. The system did not treat a signal as an executable order. It separated contextual detection, local intent formation, shared-resource authorization, exchange commitment, and realized feedback. The code now verifies a substantial substrate beneath that design: user–exchange credentials, books and currencies, balance snapshots, resource allocations, capital instances, resource-utilization statistics, executable transactions, market-operation lifecycle records, request/response audit logs, an event-driven feed–strategy–broker loop, exchange-neutral order submission through CCXT, order-completion polling, and stop-loss/profit closure through an opposite order. The complete tf15→tf5→tf1 book-supervisor logic, HQ/LQ classification, cross-book netting, sell-first priority, proportional proration, A/B/C/D sale taxonomy, and rich partial-fill ledger remain design-grounded where their full implementation is not present in the supplied snapshot. The contribution is therefore not a claim of autonomous multi-agent trading or investment performance. It is a code-grounded account of an explicit coordination contract: detectors propose; local supervisors size; shared-liquidity governance authorizes; exchange adapters commit; operation records reconcile; and feedback changes the next cycle. This contract is interpretable, testable, and portable to other domains in which many local actors compete for scarce shared resources.

Keywords: multi-agent coordination; expert systems; liquidity orchestration; resource governance; exchange broker; event-driven execution; auditability; replay evaluation

1. The coordination problem

Modern agentic systems often specialize roles before they solve the harder governance problem: how several locally justified actions become a feasible global commitment. In JUBAP, several books could share the same base currency, several detector resolutions could propose actions at the same time, and a sale in one book could release liquidity needed by another. A locally attractive request was therefore not sufficient. The system needed an explicit authority boundary that could see balances, inventory, exchange constraints, and competing requests together.

The historical design answered with a hierarchy of proposals and commitments. Phylons and strategies generated estimates; book supervisors converted them into intents; an exchange broker reconciled the intents under shared balances; and an operations layer converted authorized quantities into orders and feedback. The source snapshot verifies the lower half of this chain and exposes several underused research objects: resource allocations, capital instances, parent–child instance growth, inactive-capital time, persistent order objects, operation status, balance freshness, and request/response provenance.

1.1 Research questions

  • Which coordination objects and execution transitions are directly verified in the supplied code?

  • How does the design separate proposed quantity, authorized quantity, submitted quantity, and realized outcome?

  • How can the design-grounded supervisor and broker policies be reconstructed without confusing them with the verified execution substrate?

  • Which invariants make the architecture safe, explainable, replayable, and transferable beyond trading?

1.2 Contributions

  • A strict evidence map separating DESIGN-2018, CODE-XBOT, RECON, 2026 interpretation, and OPEN validation work.

  • A typed coordination chain from contextual proposal to transaction, market operation, balance update, and feedback.

  • Code-grounded reconstruction of resource allocations, capital instances, dead-time statistics, credentials, balances, orders, operation lifecycle, audit logs, event subscriptions, and stop-managed closure.

  • Implementation-facing pseudocode for the documented cross-timescale supervisor, exchange broker, proportional allocation, inventory rationale, and replay loop.

  • A minimal playable coordination example and a benchmark programme comparing historical centralized, corrected centralized, Contract-Net, and hybrid variants.

  • A domain-independent interpretation of the architecture as shared-resource governance rather than a trading-performance claim.

2. Evidence discipline and source map

The paper follows the terminology discipline established in Papers V and VI. A Phylon is a specialized detector, not a factor or a combination; strategies and detector outputs are proposals, while transactions and market operations are commitment objects. The source snapshot is architectural evidence, not a substitute for controlled replay.

Label Meaning
DESIGN-2018 Directly documented in JUBAP Libro Blanco or PHYLONS 1–7 with LM 4.x + Operations Simulator 3.
CODE-XBOT Directly verified in the supplied xbot source snapshot; exact paths and symbol ranges are listed in Appendix A.
RECON Executable pseudocode faithful to the documented policy and compatible with the verified object model.
2026-I Retrospective interpretation through resource governance, semantic context, and modern agentic-system terminology.
OPEN Property requiring the missing implementation component, replay, measurement, or formal verification.
Source What it establishes Status
JUBAP Libro Blanco [P1] Accounts, exchanges, books, strategies, automatic programming, opportunities, operations and resource use. DESIGN-2018
PHYLONS 1–7 + LM 4.x + Operations Simulator 3 [P2] Detector outputs, analyst normalization, quantity hierarchy, book supervisors, A/B/C/D sale logic, exchange broker and simulator. DESIGN-2018
Paper V [P5] Code-grounded context, factors, subpf predicates, targets, Phylons and strategy ontology. CODE-XBOT / DESIGN-2018
Paper VI [P6] Code-grounded combination search, negative exceptions, anytime execution and active strategy maintenance. CODE-XBOT / DESIGN-2018
Supplied xbot snapshot [C1] Resource models, credentials, balances, transactions, market operations, audit log, event loop, exchange proxy and stop observer. CODE-XBOT
Operations ledger artifact [P4] Historical simulated operations and balances. Replication input; not performance validation

3. Historical lineage: knowledge sources, blackboards, and agents

Figure 1. Historical continuity used to position JUBAP without
claiming priority over multi-agent systems.
Figure 1. Historical continuity used to position JUBAP without claiming priority over multi-agent systems.

Hearsay-II coordinated heterogeneous knowledge sources through shared state; Contract Net distributed tasks through announcements, bids, and awards; blackboard control separated domain reasoning from the choice of which reasoning step to execute next [1–3]. JUBAP combined related ideas in a centralized operational form. Phylons and strategy rules acted as specialized knowledge sources. Waves, factor states, target outcomes, opportunities, balances, transactions, and market operations formed shared state. Book supervisors proposed locally justified actions, but shared-resource authority remained centralized.

This distinction matters. A component is not an autonomous agent merely because it has a specialized role. JUBAP is best described as centralized multi-actor or agent-like orchestration: local evaluators have bounded objectives and state, while balance ownership, final authorization, and settlement remain governed by account- and exchange-level structures.

4. Typed operational objects and resource topology

Object Operational meaning Evidence
User / CredentialExchange Owner and encrypted exchange credentials; includes a sandbox flag. CODE-XBOT
Exchange / Currency / Book / Symbol Exchange, asset, tradable pair and exchange-specific alias topology. CODE-XBOT
Balance Per-user, per-exchange, per-currency amount with last-update time. CODE-XBOT
Phylon / strategy proposal Target-conditioned estimate or interpretable strategy occurrence. DESIGN-2018; substrate in Papers V–VI
ResourceAllocation User, exchange, strategy, base currency, quantity per operation and capital per instance. CODE-XBOT
Instance Free/busy capital unit with initial/current capital and optional parent instance. CODE-XBOT
BookIntent Book-local requested action, requested quantity, utility and rationale. DESIGN-2018 / RECON
BrokerAuthorization Netted, tiered and balance-feasible quantity released for execution. DESIGN-2018 / RECON
Txn Exchange order record: target ID, side, type, book, exchange, price and amount. CODE-XBOT
MarketOperation Input Txn, optional output Txn, status, profit, strategy and policy parameters. CODE-XBOT
BitacoraResponse Persistent request/response log for exchange operations. CODE-XBOT

4.1 Resource allocation, capital instances, and inactive-capital time

The resource model is more than a generic account balance. ResourceAllocation binds a user, exchange, strategy and base currency to an operation quantity and capital per instance. Instances divide that allocation into free or occupied capital units and allow a child instance to be created from surplus capital. ResourceAllocationStats records capital, instance count, operation count, profit and dead_time—the percentage of time that instances remain inactive because no acceptable opportunity is found.

Artifact 1 — Code-grounded resource-governance objects

[2026-I] dead_time is an unusually useful coordination signal. It distinguishes a strategy that performs poorly while consuming resources from one that leaves allocated capacity unused. In a modern resource governor, dead_time can drive capital reallocation, capacity planning, or a search for complementary opportunities without changing the detector itself.

4.2 Credentials, balances, fees, and audit state

The supplied model places execution under explicit user and exchange boundaries. CredentialExchange stores encrypted API credentials and a sandbox flag. Balance stores currency-specific amounts and freshness. ExchangeCoin stores trading and transfer commission parameters. BitacoraResponse records both the request and the exchange response as structured JSON. These objects create a practical governance perimeter: who may execute, where, with which balance, under which fee model, and with which audit trail.

5. End-to-end architecture and authority boundaries

Figure 2. The code verifies the resource and execution substrate;
the full multi-book arbitration policy remains a documented
reconstruction.
Figure 2. The code verifies the resource and execution substrate; the full multi-book arbitration policy remains a documented reconstruction.

5.1 Context and strategy substrate

Paper V verifies the lower context layer: exchanges, books, waves, predictive factors, subpf states, target outcomes, cross-asset context and strategy structures. Paper VI verifies the dynamic search layer: support pruning, interaction-constrained positive combinations, negative exceptions, time-budgeted workers and selective active-strategy maintenance. The present paper begins where those papers stop: how a selected proposal is governed as a shared-resource action rather than treated as an automatic trade.

5.2 Proposal, authorization, and commitment

Figure 3. The distinction between recommendation, shared-resource
authorization, exchange order and realized feedback is the central
architectural contract.
Figure 3. The distinction between recommendation, shared-resource authorization, exchange order and realized feedback is the central architectural contract.

The design’s strongest idea is a progressive reduction of authority. A detector can recommend; a book supervisor can request; a broker can authorize; only an exchange adapter can submit; and only an exchange response can establish the realized state. This prevents model confidence from being confused with ownership of liquidity.

5.3 Four quantities and their implementation correspondence

I_base → I_book → I_ask → I_ordered → I_realized

Quantity Meaning in the 2018 design Code-grounded correspondence
I_base Account/exchange budget fixed by the user. ResourceAllocation.capital is a plausible persistent anchor; exact mapping remains RECON.
I_book Daily amount available to one book after cross-scale and portfolio adjustment. No dedicated field found in the supplied snapshot; DESIGN-2018.
I_ask Real-time quantity requested by a supervisor for a signal or macro. No separate persistent request object found; DESIGN-2018 / RECON.
I_ordered Quantity released by the broker after netting, quality and balance constraints. Txn.amount after order submission is the nearest verified commitment object.
I_realized Filled amount and economic outcome. Exchange fetch_order exposes filled/amount; the snapshot polls completion, but a rich fill ledger remains OPEN.

6. Code-grounded execution and feedback substrate

6.1 Exchange-neutral order creation and balance freshness

ProxyMakeOrder selects a CCXT exchange adapter from the exchange code, loads encrypted user credentials, retrieves free balances, refreshes cached balances after five minutes or on demand, creates market or limit orders, stores the returned exchange order ID in Txn, and records request/response data in BitacoraResponse. This is a concrete commitment boundary: before this call there is an internal proposal; after it there is an external exchange order and a persistent local record.

Artifact 2 — Reduced exchange commitment path

def create_order(user_id, exchange_id, book_id, side, ordertype,
amount, price=None): credentials = CredentialExchange.get(user_id, exchange_id) api = ccxt_adapter(exchange.code, credentials) symbol = Book.get(book_id).as_symbol() response = api.create_order(symbol, ordertype, side, amount,
price) audit_log(request={...}, response=response) if response_has_id(response): return Txn.create( user=user_id, exchange=exchange_id, book=book_id, target_id=response['id'], side=side, ordertype=ordertype, price=resolved_price, amount=amount, ) raise OrderSubmissionError(response)
Status: Faithful reduction of
bot/exchanges/all/proxy_maker_order.py:18–119 and api/orders.py:18–74.
Error handling and market-price resolution are abbreviated for
readability.

6.2 Transaction and market-operation lifecycle

Txn stores the exchange order identity and immutable order intent. MarketOperation links an input transaction to an optional output transaction, a strategy, policy parameters, profit and a lifecycle status. The object is therefore not merely a trade row; it is a two-sided operation envelope that can represent an opening commitment and its eventual closure.

Artifact 3 — Code-grounded order and operation envelope

The JSON params field creates an extension point for policy metadata such as stop thresholds, policy version, risk limits, request lineage or the strategy state that justified the operation. A modern reconstruction should make those fields explicit and immutable at commitment time.

6.3 Event-driven feed, strategy, broker, and observer loop

Figure 4. Verified event subscriptions connect market updates,
strategy callbacks, broker notifications, exchange order submission,
persistent operations and stop-managed closure.
Figure 4. Verified event subscriptions connect market updates, strategy callbacks, broker notifications, exchange order submission, persistent operations and stop-managed closure.

Artifact 4 — Event subscriptions in the generic motor

for strategy in strategies: strategy.set_feed(feed) strategy.set_broker(broker) motor.on_start(strategy.on_start) feed.on_feed(strategy.on_bars) broker.on_fill(strategy.on_order_fill) motor.start() while not stopped: feed.update_bars() sleep(heartbeat)
Status: Reduced from trader/motor.py:5–42,
trader/observer.py:2–40 and trader/strategy.py:9–35. The generic broker
emits a fill event immediately; concrete exchange execution is handled
elsewhere in the snapshot.

The same observer abstraction can drive live or historical feeds. That symmetry is scientifically valuable: a reconstruction can replay identical strategy and coordination code against a deterministic event stream, while replacing only the exchange adapter and fill model.

6.4 Stop-managed closure through the opposite order

The supplied stop observer provides the clearest complete feedback path. An API order can create an ACTIVE MarketOperation with stop-loss and stop-profit parameters. A long-running worker subscribes to order-book updates, retrieves active operations for the affected book, checks whether the opening order is fully completed, calculates stop conditions, submits the opposite limit order, links it as output, and marks the MarketOperation COMPLETED. This verifies a closed control loop from commitment to monitored exit.

Artifact 5 — Reduced stop-observer closure loop

for operation in active_operations(exchange, book): opening = operation.input stops = evaluate_stop_loss_and_profit(opening, market_history,
operation.params) if stops.triggered: if not exchange_order_is_complete(opening.target_id): continue closing_side = opposite(opening.side) closing = create_limit_order( book=opening.book, side=closing_side, amount=resolved_closing_amount, price=executable_price, ) operation.output = closing operation.status = COMPLETED operation.save()
Status: Faithful reduction of
api/orders.py:47–62, bot/management/commands/worker_stoploss.py:11–21
and bot/strategies/observer_stop.py:140–247.

6.5 Auditability as an architectural capability

BitacoraResponse stores exchange request and response payloads with user, exchange, type and timestamp. Together with Txn.target_id and MarketOperation.input/output, this creates the basis for deterministic incident reconstruction: what was requested, what the exchange returned, which local order record was created, which operation it belonged to, and how it was eventually closed. This auditability is a direct business and governance capability, not only a debugging convenience.

7. Design-grounded supervisor and exchange-broker policy

The historical corpus specifies a richer coordination policy than the supplied execution snapshot implements end to end. The correct treatment is not to discard it, nor to call it code-verified. It should be preserved as an executable reconstruction over the verified order, balance and operation objects.

7.1 Cross-timescale quantity scheduling

The book supervisor processes the fifteen-minute Phylon first, uses its recent requested quantity to adjust the five-minute instance when phases agree, and then uses the five-minute result to adjust the one-minute instance. This is not majority voting. It is hierarchical gain scheduling: slower context changes the authority granted to a faster detector.

I_book,5 ← I_book,5 × I_ask,15(last) / I_buy,15

I_book,1 ← I_book,1 × I_ask,5(last) / I_buy,5

Research potential.
Cross-scale gain scheduling can
be compared with majority voting, independent scale budgets, Bayesian
model averaging, and a constrained portfolio of detector authorities
while holding the underlying detector outputs fixed.

7.2 Buy sizing and sale rationale

The documented buy request combines adjusted book capital, optimal-point confidence, estimated dispersion, utility, stop-loss, optimal price and timing through a power-law heuristic. The formula is best treated as a versioned policy rather than a theorem. More importantly, sales are separated by reason, preserving why inventory is released.

Type Trigger Operational meaning Status
A — signal sale A sell macro is active. Exit justified by the current detector context. DESIGN-2018
B — wave profit Current-phase inventory is profitable. Monetize profit generated in the active wave. DESIGN-2018
C — profitable remnant Older open inventory is profitable. Release legacy inventory outside the immediately previous phase. DESIGN-2018
D — fallback / protection A, B and C are zero while a protective condition is active. Reduce exposure when normal exit mechanisms do not fire. DESIGN-2018

Artifact 6 — Reconstructed reason-preserving sell request

def supervisor_sell_request(macro, inventory, policy): q_a = signal_exit_quantity(macro) if macro.sell_signal else 0 q_b = min(wave_profit_quantity(macro),
inventory.profitable_current_wave) q_c = min(remnant_profit_quantity(macro),
inventory.profitable_remnant) quantity = max(q_a, q_b + q_c) reason = choose_reason(q_a, q_b, q_c) if quantity == 0 and protective_condition(macro): quantity = fallback_exit_quantity(macro, policy) reason = 'D' return BookIntent(side='sell', quantity=quantity, reason=reason, utility=macro.utility_est)
Status: RECON from PHYLONS section D.3.2. The
code is intentionally interface-oriented so that reason, quantity and
policy version remain explicit.

7.3 Netting, quality tiers, lexicographic priority, and proration

Figure 5. The documented broker policy is a coordination funnel
over the verified balance and order substrate.
Figure 5. The documented broker policy is a coordination funnel over the verified balance and order substrate.

Every coordination cycle collects requests from books sharing an exchange. Opposing requests for the same book are netted. Surviving requests are classified into high quality, low quality or rejected according to declared utility thresholds. Sales are processed before purchases because they can release inventory and base-currency capacity. HQ precedes LQ. Scarce coin or base-currency balances are then allocated proportionally within the current tier.

q_net(b) = q_buy(b) − q_sell(b)

x_i = d_i if Σ_j d_j ≤ B; otherwise x_i = B × d_i / Σ_j d_j

Artifact 7 — Playable exchange-level arbitration

def coordinate_exchange_batch(requests, balances, policy): requests = net_opposing_intents_by_book(requests) requests = classify_quality(requests, policy) accepted = [] for side in ('sell', 'buy'): for tier in ('HQ', 'LQ'): for resource, group in group_by_scarce_currency(requests, side,
tier): available = balances.available(resource) - reserved(accepted,
resource) desired = tier_adjusted_values(group, policy) allocations = proportional_cap(desired, max(0, available)) accepted += authorize(group, allocations, resource, tier) return accepted
Status: DESIGN-2018 / RECON. For purchases,
grouping must use the base currency consumed; for sales, it uses the
coin inventory released. Thresholds and multipliers are policy
parameters.

The lexicographic form has a governance advantage: priorities are visible. A modern optimizer could express the same problem as a linear, convex or auction-based allocation, but an opaque scalar objective would hide whether the system values inventory release, signal quality, fairness, concentration, latency or cost. The historical policy makes that ordering inspectable.

7.4 What kind of multi-agent system is this?

Criterion Assessment
Specialized local roles Yes. Phylons, strategies, book supervisors, broker and operation manager have distinct functions.
Local objectives and state Partly. Detectors and books use local context; the broker owns shared balance constraints.
Autonomous negotiation protocol No open negotiation protocol is specified in the historical design.
Distributed ownership of resources No. Liquidity authority remains centralized by user and exchange.
Independent action authority Supervisors propose; the commitment layer acts only after authorization.
Shared environment and feedback Yes. Market state, strategies, balances, transactions and operations form shared state.

The most precise description is centralized multi-actor or agent-like orchestration. The system benefits from specialization while deliberately centralizing the scarce resource. This is not a limitation to hide; it is a design choice that can be tested against distributed alternatives.

8. Inventory, fills, and feedback: verified substrate and implementation frontier

Capability Supplied snapshot Historical design / extension
Requested vs authorized quantity No separate persistent BookIntent and BrokerAuthorization objects found. Explicit I_ask and I_ordered distinction; add immutable request and authorization records.
Exchange order identity Txn stores target_id, side, type, amount, price, book and exchange. Retain request lineage and policy version on each order.
Order completion ProxyMakeOrder.fetch_order checks filled == amount and closed. Model partial fills, cancellation and residual amount as explicit events.
Operation lifecycle MarketOperation links input and output Txn with ACTIVE/CLOSED/COMPLETED status. Extend to reserved, submitted, partially filled, filled, closing and reconciled states.
Inventory attribution No rich lot-attribution fields in the verified operation model. A/B/D newest-open-lot logic and C profitable-remnant logic are DESIGN-2018.
Reason-coded exits Stop observer distinguishes stop loss and stop profit in messages, not A/B/C/D fields. Persist A/B/C/D reason and contributing detector context.
Fees and valuation Exchange and ExchangeCoin contain commission parameters. Persist realized per-fill fees, slippage and currency-normalized valuation.
Stale commitment release Not verified as a general order-reservation state machine. Design specifies cancellation of residual limit orders after a bounded interval.

The full potential of the architecture appears when fills are treated as events rather than binary results. An authorization may become several fills; each fill changes balances and open inventory; the remaining reservation may stay active, be repriced, or be cancelled. The supplied snapshot provides the exchange order identity and lifecycle envelope needed to build this richer ledger, but it does not yet justify claiming that the complete partial-fill accounting is code-verified.

Artifact 8 — Recommended event-sourced execution state

9. A minimal playable reference implementation

The architecture can be made understandable and testable without recreating the entire trading system. The following contracts isolate coordination from forecasting. A replay can supply synthetic proposals, balances and fills, allowing the broker policy to be changed while all detector outputs remain frozen.

Artifact 9 — Minimal coordination contracts

Artifact 10 — One deterministic coordination cycle

def coordination_cycle(proposals, balances, exchange,
policy): net = net_by_exchange_book(proposals) classified = classify(net, policy) # Inventory-releasing actions change the feasible set first. sell_auth = allocate_sales(classified, balances, policy) balances.reserve(sell_auth) buy_auth = allocate_buys(classified, balances.after_expected_sales(),
policy) balances.reserve(buy_auth) orders = [exchange.submit(a) for a in sell_auth + buy_auth] fills = exchange.reconcile(orders) balances.apply(fills) return fills
Status: RECON. A causal replay should replace
“after_expected_sales” with the precise historical rule: reserve only
what the policy permits and apply actual released liquidity only after
realized fills.

9.1 Small numerical example

Assume two HQ buy intents share USDT. Book A requests 700 and Book B requests 600. Available USDT is 1,000. A sale processed first can release 200. Proportional allocation makes the policy’s effect transparent:

Scenario Available USDT Authorized A Authorized B Unserved demand
Without prior sale 1,000.00 538.46 461.54 300.00
After a realized 200 sale 1,200.00 646.15 553.85 100.00

The example does not evaluate trading quality. It shows a coordination property: sequencing inventory release before purchase allocation changes the feasible resource set and reduces unserved demand. The same example can be replayed with first-come-first-served, equal shares, utility-weighted proration, an auction, or a concentration-constrained optimizer.

10. Coordination invariants and governance tests

Invariant Executable test
Conservation Available + reserved + committed resources reconcile to exchange balances after every fill and release.
No oversell Accepted sale quantity for a currency never exceeds unreserved inventory.
No overdraft Accepted purchase value never exceeds unreserved base-currency balance.
Traceability Every fill maps to an exchange order, authorization, proposal and detector/strategy context.
Idempotency Replaying the same exchange response or fill does not duplicate an operation or balance update.
Causality A decision at time t uses only market, label, balance and fill state known by t.
Bounded reservation Expired or cancelled orders release reserved resources exactly once.
Policy versioning Every authorization records the thresholds, multiplier, priority rules and risk limits that created it.
Reason preservation Every closing fill retains its operational rationale even when one authorization produces several fills.
Tenant isolation One user or mandate cannot consume another user’s credentials, balances or allocation unless explicitly authorized.

These invariants turn architecture into a test suite. They are more durable than any particular threshold. A replay implementation should reject a coordination policy that violates conservation or causality even if its simulated return appears attractive.

11. Research programme and implementation opportunities

11.1 Controlled coordination benchmark

Arm Coordination design
C0 — historical reconstruction Documented supervisors and exchange broker, preserving thresholds, priorities and rationale.
C1 — explicit-state centralized C0 plus immutable intents, reservations, partial-fill events, policy versions, deterministic tie-breaking and quantity caps.
A — Contract Net Book agents bid for available liquidity; an exchange agent awards quantities under declared utility and risk.
H — hybrid Local bids and fast book-level decisions with a central risk, balance, netting and settlement governor.

11.2 Metrics

  • Feasibility: overdrafts, double reservations, oversold inventory, invalid pair conversions and unreconciled balances.

  • Coordination value: authorized high-quality demand, low-quality demand, unserved utility, released liquidity and dead_time.

  • Execution: fill ratio, time to fill, cancellations, residual reservations, slippage, fees and open inventory.

  • Risk: concentration, turnover, exposure duration, stop frequency and policy-induced leverage.

  • Systems cost: decision latency, messages, database writes, deterministic replay and recovery after adapter failure.

  • Governance: attributable rationale, policy-version coverage, causal-time compliance and reconstructability.

11.3 Ablations

  • Remove netting or sell-before-buy priority.

  • Collapse HQ and LQ into one tier or vary the HQ multiplier.

  • Replace proportional allocation with first-come-first-served, equal shares, utility weights or an auction.

  • Remove cross-timescale gain scheduling.

  • Remove reason-coded exits or negative-evidence filtering.

  • Treat orders as binary instead of partial-fill event streams.

  • Disable dead_time-driven reallocation and parent–child instance growth.

11.4 Underused software potential

Existing object or mechanism Research / business potential
ResourceAllocation + Instances Explicit capital/capacity pools, tenant boundaries, free/busy units and controlled scaling.
ResourceAllocationStats.dead_time Measure unused capacity, opportunity scarcity and reallocation need independently of P&L.
Parent instance link Model reinvestment, branching budgets, lineage and resource provenance.
CredentialExchange.sandbox Run identical coordination logic against sandbox, simulation or live adapters under controlled governance.
BitacoraResponse Build audit trails, incident reconstruction, adapter observability and exchange-response quality metrics.
MarketOperation.params Persist policy versions, risk overlays, detector context and reproducible decision metadata.
Event subscriptions Swap live and replay feeds while retaining the same strategy and coordination interfaces.
Txn.target_id Reconcile local state with external exchange state and support idempotent recovery.

11.5 Transfer beyond liquidity management

The architecture is domain-independent whenever many local actors share a scarce resource and execution reveals the final state. SignalProposal becomes a demand proposal; BookIntent becomes a local resource request; BrokerAuthorization becomes a governed allocation; Txn becomes an external commitment; MarketOperation becomes a lifecycle record. The same pattern applies to cloud capacity, manufacturing slots, maintenance windows, logistics capacity, energy dispatch, programme budgets and application-portfolio investment.

Domain Scarce shared resource Local proposer Commitment object
Cloud operations Compute, storage, API quota Workload or service owner Provisioning or scaling action
Manufacturing Machine time, tools, material Production order or cell Released work order
Maintenance Technician time, outage windows, spares Asset or reliability team Scheduled intervention
Logistics Vehicle capacity and route time Shipment or route planner Dispatched trip
Portfolio governance Funding and delivery capacity Application, product or programme Approved investment or project gate

12. Publication contribution and conclusion

The strongest publication claim is not that JUBAP produced profitable trades or that it implemented a fully autonomous multi-agent market. It is that the architecture made shared-resource authority explicit. The design distinguished detector evidence, local requests, exchange-level authorization and realized execution; the supplied code verifies many of the persistent and event-driven objects needed to operationalize that distinction.

The code-grounded contribution is concrete: encrypted user–exchange credentials, balance freshness, books and currencies, resource allocations, capital instances, inactive-capital statistics, transactions, market-operation lifecycle, request/response audit logs, exchange-neutral submission, event subscriptions, order-completion checks, and stop-managed closure. The design-grounded contribution is equally valuable when labelled correctly: multiscale supervisors, reason-preserving exits, intent netting, quality tiers, sell-first arbitration and proportional allocation.

The next step is a faithful replay package, not a stronger narrative claim. By freezing detector outputs and varying only the coordination policy, the programme can measure when centralized arbitration is simpler and safer, when distributed bidding adds value, and which parts of the historical design generalize to other resource-governance domains.

Appendix A. Code-grounded implementation map

Path / symbol Verified object or behavior Use in this paper
bot/models/operations.py:9–57 Txn; MarketOperation; ACTIVE/CLOSED/COMPLETED; input/output transaction links. Executable order and operation lifecycle.
bot/models/operations.py:60–105 ResourceAllocation; ResourceAllocationStats; dead_time; Instances and parent link. Resource governance and capacity utilization.
bot/models/__init__.py:52–75 CredentialExchange; Balance and update timestamp. User/exchange security and balance state.
bot/models/__init__.py:79–122 Exchange; ExchangeCoin commissions; BitacoraResponse request/response log. Fees, topology and auditability.
bot/models/book.py:7–95 Currency; Book; Symbol. Tradable-pair and exchange-symbol topology.
trader/observer.py:2–40 Event subscribe/unsubscribe/emit. Event-driven control substrate.
trader/motor.py:5–42 Feed, strategy and broker callback wiring; heartbeat loop. Generic strategy execution loop.
trader/broker.py:18–39 Buy/sell order objects and fill event emission. Minimal broker interface.
bot/exchanges/all/proxy_maker_order.py:18–119 CCXT adapter, credential use, balance refresh, create/fetch order, Txn and audit record. Concrete exchange commitment path.
api/orders.py:18–74 Order API; optional creation of ACTIVE MarketOperation with stop params. User/API entry to persistent operation.
bot/strategies/observer_stop.py:140–247 Active operation monitoring, completion polling, opposite order, output link and COMPLETED status. Closed feedback loop.
bot/management/commands/worker_stoploss.py:11–21 Long-running stop-observer worker. Operational service boundary.
bot/exchanges/bitso/strat.py:37–73 Strategy reads ResourceAllocation and resolves a user-specific broker. Evidence that allocations were intended to drive strategy execution.

Appendix B. Canonical artifact interfaces

Artifact Minimum interface
Phylon / strategy proposal proposal_id, book, scale, phase, side, utility_est, targets, event_time, knowledge_time
Book intent proposal_ids, exchange, book, side, coin, base_currency, requested_quantity/value, reason, timestamp
Broker authorization intent_ids, resource, authorized_quantity/value, tier, multiplier, priority, reservation expiry, policy_version
Exchange order authorization_id, external_order_id, type, side, price, amount, submitted_at, adapter_version
Fill event external_order_id, fill_id, amount, price, fee, event_time, received_time
Market operation opening order, closing orders, filled/open amount, lot attribution, reason, lifecycle, profit and fees
Balance snapshot user, exchange, currency, available, reserved, committed, timestamp and source
Audit record request, response, exception, correlation ID, user, exchange and timestamp

Appendix C. Claim and evidence ledger

Claim Evidence Status
The architecture separates signal, local intent, shared authorization and execution. JUBAP Libro Blanco and PHYLONS design; verified order/operation substrate. DESIGN-2018 + CODE-XBOT
Resource allocations, instances and dead_time are persistent objects. bot/models/operations.py:60–105. CODE-XBOT
Orders are created through user-specific exchange credentials and stored locally. CredentialExchange and ProxyMakeOrder. CODE-XBOT
Market operations link an opening and optional closing transaction. MarketOperation.input/output. CODE-XBOT
A stop observer can poll completion and close with the opposite order. api/orders.py, worker_stoploss.py, observer_stop.py. CODE-XBOT
Book supervisors synchronize tf15→tf5→tf1 quantities. PHYLONS D.3.1–D.3.2. DESIGN-2018 / RECON
The broker nets requests and applies HQ/LQ, sell-first priority and proration. PHYLONS D.5. DESIGN-2018 / RECON
Rich partial-fill and A/B/C/D lot accounting are available as a research implementation target. The design specifies the richer ledger; the supplied snapshot verifies a simpler Txn/MarketOperation envelope. OPEN — implementation audit and replay
The architecture can be analysed as a strictly distributed autonomous MAS. Resource ownership and final authority are centralized in the reviewed design. Not supported; use centralized multi-actor orchestration
The surviving artifacts can support an investment-performance claim. An independent causal replay with full execution controls has not yet been completed. Not supported; architecture and replication evidence only

References

[P1] JUBAP. JUBAP, Libro Blanco. Internal design specification, 2018 corpus.

[P2] JUBAP. PHYLONS 1 to 7 with LM 4.x + Operations Simulator 3. Internal design specification, version 2.4, 20 June 2018.

[P3] JUBAP. Predictive Factors. Internal factor catalogue, 2017–2019 corpus.

[P4] JUBAP. Operations_2018-09-15_16-14-08.xls and related simulation ledger artifacts.

[P5] Abril Palma, I. From Predictive Factors to Semantic Windows. Code-grounded working paper v1.0, July 2026.

[P6] Abril Palma, I. Dynamic Combinatorial Search for Semantic Windows. Code-grounded working paper v2, July 2026.

[C1] JUBAP/xbot. Supplied private source snapshot. Code paths enumerated in Appendix A.

[1] Erman, L. D., Hayes-Roth, F., Lesser, V. R., and Reddy, D. R. The Hearsay-II Speech-Understanding System: Integrating Knowledge to Resolve Uncertainty. ACM Computing Surveys 12(2), 1980, 213–253.

[2] Smith, R. G. The Contract Net Protocol: High-Level Communication and Control in a Distributed Problem Solver. IEEE Transactions on Computers C-29(12), 1980, 1104–1113.

[3] Hayes-Roth, B. A Blackboard Architecture for Control. Artificial Intelligence 26(3), 1985, 251–321.

[4] Xiao, Y. et al. TradingAgents: Multi-Agents LLM Financial Trading Framework. arXiv:2412.20138, 2024. Used only as a contemporary comparison.

Back to top ↑
Tegrity.AI · Regime-Awareness Programmecode-grounded edition v2.1 · July 2026

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *