Module 8 — Shipping, Freight and Supply Chains

This is the complete integrated module following the approved macro-module workflow and ADHD-friendly explanation standard.

SECTION ONE — COMPLETE DETERMINISTIC BOT SPECIFICATION

PART 1 — MASTER CALCULATION DEPENDENCY

1.1 Data-Validation Engine

1.2 Historical Standardisation Engine

1.3 Freight-Cost Pressure Engine

1.4 Port, Capacity and Delivery-Stress Engine

1.5 Route and Sanctions Disruption Engine

1.6 Global Shipping and Trade-Activity Engine

1.7 Semiconductor-Supply Engine

1.8 Shipping-Industry Economics Engine

1.9 Retail-Importer Impact Engine

1.10 Industrial-Industry Impact Engine

1.11 Confidence Engine

1.12 Risk and Permission Engine

PART 2 — DIRECT INPUT PARAMETERS

2.1 Common Input Requirements

Every input must include:

All inputs are compulsory when identified as critical for their engine.

2.2 Container-Shipping Inputs

2.3 Dry-Bulk Inputs

2.4 Tanker Inputs

2.5 Air-Freight Inputs

2.6 Fuel-Cost Inputs

Oil-price direction is not calculated in Module 8.

2.7 Port and Delivery Inputs

2.8 Global Shipping-Activity Inputs

2.9 Trade-Volume Inputs

2.10 Route-Disruption Inputs

For every route, including Red Sea/Suez, Panama and any other material route:

2.11 Sanctions Inputs

2.12 Semiconductor-Supply Inputs

2.13 External-Module Inputs

2.14 Configurable Parameters

The following are version-controlled parameters:

Parameter changes require a new CALCULATION_VERSION and may not be changed during one calculation run.

PART 3 — DATA DEFINITIONS AND VALIDATION

3.1 Provider Consistency

3.2 Timezone

3.3 Historical Sample Requirements

3.4 Data-Age Limits

3.5 Duplicate Treatment

3.6 Preliminary and Revised Data

3.7 Market Holidays and Early Closes

3.8 Missing-Data Rules

3.9 Failure Outputs

When the whole module cannot produce reliable results:

PART 4 — DETERMINISTIC CALCULATIONS

4.1 Common Historical Percentile Calculation

For each continuous component:

Check the following conditions in order and stop at the first matching condition:

For indicators where a higher value represents more pressure:

For indicators where a higher value represents improving supply or activity:

For indicators where a higher value represents a worse condition but the engine’s positive meaning is improvement:

4.2 Container-Rate Component

4.3 Dry-Bulk Component

4.4 Tanker Component

4.5 Air-Freight Component

4.6 Fuel-Cost Component

4.7 Freight-Cost Pressure Score

4.8 Port-Congestion Component

4.9 Delivery-Time Component

4.10 Capacity and Delivery-Stress Score

4.11 Route-Severity Calculation

For each route, check the following conditions in order and stop at the first matching condition:

Severity-point conversion:

4.12 Sanctions Operational-Severity Calculation

Sanctions receive a Module 8 score only when SANCTIONS_OPERATIONAL_EFFECT_CONFIRMED = TRUE.

Apply the same severity rules using:

A sanctions announcement without a measurable operational effect receives 0 points.

4.13 Route-Disruption Score

4.14 Global Shipping-Activity Composite

Within the global activity composite:

At least three of the five components must be valid.

4.15 Global Shipping and Trade-Activity Score

4.16 Semiconductor-Supply Components

Direction treatment:

Weights:

4.17 Semiconductor Conflict Calculation

4.18 Shipping-Subindustry Scores

Calculate separately:

For container, dry-bulk, crude-tanker, product-tanker and air-cargo operators:

The result may be positive only when all three helper conditions are FALSE:

When any of these conditions is TRUE:

4.19 Freight-Forwarder and Logistics Score

Calculate:

Freight-rate treatment:

Capacity treatment:

Route treatment:

4.20 Ports and Terminal Operators Score

Higher throughput and available capacity are positive.

Higher congestion is negative.

4.21 Retail-Importer Impact Calculation

Fixed import-exposure coefficients:

4.22 Industrial-Industry Impact Calculation

For each industrial industry:

Fixed coefficients:

4.23 Industry Impact-Point Conversion

Check the following conditions in order and stop at the first matching condition:

4.24 Broad-Sector Classification

For each affected broad sector:

Positive means impact points of +1 or +2.

Negative means impact points of −1 or −2.

Do not average opposite industry effects into a neutral broad-sector score.

4.25 Confidence Calculation

4.26 Risk Calculation

Check the following conditions in order and stop at the first matching condition:

4.27 Expected-Duration Calculation

Use the official or provider-confirmed restoration estimate.

When duration is UNKNOWN:

PART 5 — DESCRIPTIVE BANDS

5.1 Freight-Cost Pressure

Check in order and stop at the first matching condition:

5.2 Capacity and Delivery Stress

5.3 Route Disruption

5.4 Global Shipping Activity

5.5 Semiconductor Supply

5.6 Confidence

PART 6 — HELPER CONDITIONS

6.1 Engine Validity

6.2 Severe Volume Contraction

6.3 Fuel Cost Exceeds Freight-Rate Benefit

6.4 Operational Prevention

6.5 Semiconductor Backlog Conflict

6.6 Mixed Broad Sector

6.7 Hard Restriction Trigger

6.8 Restriction Resumption

PART 7 — REGIME OR DECISION ORDER

7.1 Module-Level Descriptive Status

This status is descriptive only. It does not replace separate engine scores.

Check the following conditions in order and stop at the first matching condition:

  1. If the critical safety engines are invalid: MODULE_STATUS = INVALID.
  2. If a hard restriction is active: MODULE_STATUS = ROUTE_RESTRICTION_ACTIVE.
  3. If at least one signed engine score is at least +20 and another is not above −20: MODULE_STATUS = MIXED_SHIPPING_ENVIRONMENT.
  4. If freight-cost pressure is at least +20, capacity stress is at least +20 or route disruption is at least 25: MODULE_STATUS = LOGISTICS_PRESSURE.
  5. If freight-cost pressure is not above −20, capacity stress is not above −20 and route-disruption score equals 0: MODULE_STATUS = LOGISTICS_RELIEF.
  6. Otherwise: MODULE_STATUS = BALANCED_SHIPPING_ENVIRONMENT.

7.2 Decision Separation

Module 8 must produce separately:

A positive shipping-company score must not automatically be treated as positive for importers.

PART 8 — SHORT-TERM, EVENT OR MARKET OVERLAYS

8.1 Route-Disruption Overlay

Activation:

Effects:

Deactivation:

Recalculation:

8.2 Sanctions Operational Overlay

Activation:

Effects:

Deactivation:

8.3 Semiconductor Supply Overlay

Activation:

Effects:

PART 9 — SCORE, IMPACT OR OUTCOME CALCULATION

9.1 Score Scales

9.2 Meaning of Impact Points

9.3 Missing-Data Point Treatment

9.4 Point Movement Toward Zero

When an accepted overlay reduces an existing point by one level toward zero:

A temporary countermove must not reverse the sign unless the recalculated full impact score crosses the opposite threshold.

PART 10 — HANDOFFS AND DOUBLE-COUNTING CONTROLS

10.1 Module 8 Ownership

Module 8 owns:

10.2 Oil and Energy Complex Handoff

Pass:

Do not calculate:

Module 8 uses fuel only as an operating-cost input.

10.3 Inflation Module Handoff

Pass:

Module 8 assigns zero inflation points.

10.4 Global Growth Module Handoff

Pass:

Module 8 does not reinterpret these data as the final global-growth regime.

10.5 Government Policy and Geopolitical Handoff

Pass:

Module 8 scores only confirmed operational shipping effects.

10.6 Semiconductor and Sector Handoff

Pass:

Module 8 scores only the logistics and availability effect.

10.7 Sector Rotation and Relative Strength Handoff

Module 8 passes:

Module 8 does not use ETF relative-strength performance to confirm its own score.

10.8 Double-Counting Rule

PART 11 — HARD OVERRIDES

11.1 Industry-Specific Route Restriction

Trigger:

Effect:

Resumption:

11.2 Invalid Safety Data Override

Trigger:

Effect:

11.3 Inherited Pause Preservation

PART 12 — EXECUTION ORDER

Execute in this exact order:

  1. Load Module 1 provider and data-permission status.
  2. Load inherited pauses and restrictions.
  3. Validate formats, timestamps, units and providers.
  4. Remove identical duplicates.
  5. Invalidate conflicting duplicates.
  6. Verify historical sample sizes.
  7. Calculate data ages.
  8. Determine valid component weights.
  9. Calculate level and momentum percentiles.
  10. Calculate component scores.
  11. Calculate Freight-Cost Pressure Score.
  12. Calculate Capacity and Delivery-Stress Score.
  13. Calculate each route severity.
  14. Calculate sanctions operational severity.
  15. Calculate Route-Disruption Score.
  16. Calculate Global Shipping-Activity Score.
  17. Calculate Semiconductor-Supply Score and conflict flag.
  18. Calculate separate shipping-subindustry scores.
  19. Calculate separate retail-importer impacts.
  20. Calculate separate industrial-industry impacts.
  21. Convert industry scores to impact points.
  22. Calculate broad-sector POSITIVE, NEGATIVE, MIXED or NEUTRAL statuses.
  23. Calculate confidence.
  24. Calculate risk.
  25. Apply route and sanctions overlays.
  26. Apply hard restrictions.
  27. Preserve inherited restrictions.
  28. Create handoff packets.
  29. Produce Module 8 Output 1.
  30. Set TRADE_APPROVED = FALSE and ORDER_GENERATED = FALSE.

PART 13 — NON-CALCULATIVE CONSTRAINTS

Module 8 must not:

PART 14 — REQUIRED OUTPUT 1

14.1 Module Identification

14.2 Data Reliability

14.3 Inputs Used

14.4 Calculation Outputs

14.5 Final Module Outcome

14.6 Restrictions and Overrides

14.7 Handoffs

For every destination:

14.8 Trading-Bot Handoff

14.9 Audit Fields

PART 15 — ITEMS NOT FULLY DEFINED IN THE SOURCE INFORMATION

15.1 Provider Names

  1. Missing: Exact licensed provider names and permanent series identifiers.
  2. Why it matters: The programmer must know which operational data feeds supply each field.
  3. Safest treatment: Use only providers approved and assigned through Module 1. Do not run an affected engine until its provider and series identifier are configured.
  4. Classification: CONTROLLED BY ANOTHER MODULE.

15.2 Unmapped Retail and Industrial Industries

  1. Missing: Exposure coefficients for industries not included in the fixed Module 8 maps.
  2. Why it matters: The bot cannot calculate a reliable industry impact without a defined import, export or semiconductor exposure.
  3. Safest treatment: Assign 0 Module 8 points, mark the industry NOT_MAPPED and do not infer a coefficient.
  4. Classification: NOT DEFINED.

15.3 Reliable Restoration Date

  1. Missing: A confirmed end date may not exist during a route disruption.
  2. Why it matters: Expected duration cannot be calculated reliably.
  3. Safest treatment: Classify duration as UNKNOWN, reduce confidence by 10 points and keep the disruption active until valid deactivation conditions are satisfied.
  4. Classification: PROPOSED DETERMINISTIC RESOLUTION — ACCEPTED.

SECTION TWO — ADHD-FRIENDLY HUMAN EXPLANATION- ONLY FOR AARTI

1. WHAT THIS MODULE IS FOR

This module checks whether shipping and supply chains are helping or hurting different parts of the stock market.

It looks at:

This is mainly an industry-impact and risk module.

It does not decide whether the whole stock market is bullish or bearish.

2. THE EXACT QUESTIONS THIS MODULE ANSWERS

The module answers:

3. INFORMATION ENTERING THE MODULE

3.1 Freight Rates

The bot receives:

The Baltic Dry Index measures the cost of moving dry goods such as iron ore, coal and grain by sea.

3.2 Port and Delivery Conditions

The bot receives:

Longer waits and slower deliveries mean more supply-chain stress.

3.3 Route Disruptions

For each major route, the bot receives:

The bot checks the Red Sea and Suez Canal separately from the Panama Canal.

3.4 Global Trade Activity

The bot receives:

Vessel ton-miles measure how much cargo is transported and how far it travels.

3.5 Semiconductor Supply

The bot receives:

A lead time is the number of days a customer waits between placing an order and receiving the semiconductor.

4. HOW THE BOT CALCULATES EACH RESULT

4.1 It Compares the Current Value With History

For most continuous data, the bot checks:

The current historical position receives 60% of the component result.

The 21-day direction receives 40%.

4.2 It Converts Different Data Into One Common Scale

Each normal score runs from −100 to +100.

The bot applies all boundaries to the complete unrounded number.

5. HOW EACH MAIN ENGINE IS CALCULATED

5.1 Freight-Cost Pressure

The freight-cost result uses:

The result means:

Higher freight costs are usually bad for importers.

They may be good for shipping companies, but only when the company can still operate and the higher fuel bill does not remove the benefit.

5.2 Port and Delivery Stress

The result uses:

The result means:

5.3 Route Disruption

Each route receives a severity from 0 to 4.

The combined route result gives:

A political sanctions headline receives no shipping score unless it actually changes vessel capacity, port access, route access, cargo eligibility or transit time.

5.4 Global Shipping Activity

The result uses:

The global activity part includes port throughput, container throughput, vessel calls, cargo tonnage and vessel ton-miles.

The result means:

5.5 Semiconductor Supply

The result uses:

Improving semiconductor supply means:

A falling backlog is not treated as good when the backlog is falling because customers are cancelling orders.

6. HOW SHIPPING INDUSTRIES ARE SCORED

The bot calculates each shipping group separately:

For most carriers, the calculation uses:

A carrier cannot receive a positive result from higher freight rates when:

Freight forwarders are treated differently.

Moderate freight pressure can help them because customers need more logistics support.

Severe freight pressure can hurt them because margins and capacity become difficult.

Ports and terminals are judged mainly by throughput and usable operating capacity.

7. HOW RETAIL IMPORTERS ARE SCORED

The bot calculates retail logistics pressure using:

Higher logistics pressure gives import-dependent retailers a negative result.

Lower logistics pressure gives them a positive result.

The most exposed industries receive the full effect:

The following receive 75% of the effect:

Other approved industries with lower import exposure receive 50% of the effect.

8. HOW INDUSTRIAL INDUSTRIES ARE SCORED

Each industrial industry receives a separate result.

The calculation uses:

The bot adjusts the result according to how dependent each industry is on:

For example:

A strong export environment and severe input delays may exist at the same time.

The bot preserves both effects instead of hiding them inside one neutral average.

9. HOW INDUSTRY RESULTS ARE CLASSIFIED

Every covered industry receives points from −2 to +2.

The broad sector becomes:

10. HOW CONFIDENCE IS CALCULATED

Confidence measures how reliable the result is.

It does not measure whether the result is bullish or bearish.

The bot uses:

Confidence is:

When there is no reliable end date for a disruption, confidence is reduced by 10 points.

11. HOW RISK IS CLASSIFIED

Risk becomes:

Risk and direction are separate.

A shipping company can have a positive industry result while the overall shipping risk is high.

12. WHEN THE MODULE BLOCKS NEW TRADES

Module 8 does not normally pause the whole market.

It blocks new long trades only in a directly harmed industry when:

The restriction ends only after:

The module does not automatically close an existing trade.

13. WHEN THE MODULE RECALCULATES

The full module runs:

During a serious route disruption:

On an early-close day, the closing calculation runs 15 minutes before the official close.

14. EXACT OUTPUT PRODUCED

Module 8 Output 1 shows:

It also states:

15. HOW THIS AFFECTS THE LARGER MACRO SYSTEM

Module 8 directly affects:

It does not directly decide:

Its industry points, risks, confidence and restrictions are passed into Output 2 after all macro modules have been completed and accepted.