> ## Documentation Index
> Fetch the complete documentation index at: https://calendar-effects.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Design choices, limitations, and ideas to improve it

> docs/architecture/09b-choices-limits-ideas-guide.mmd

```mermaid theme={null}
%% Calendar Effects · Guide 9b · Design choices, limitations, and ideas to improve it · goes next to diagram 09-code-map.mmd
%% Miro: paste onto a board, or Creation bar > Diagram > Build with code. Read top to bottom.
flowchart TB
  T["GUIDE 9b · CHOICES, LIMITS, IDEAS<br/>what we chose, what to admit, what's next"]

  subgraph S1["1 · DESIGN CHOICES · chosen, and ✗ turned down"]
    direction TB
    c1["ONE KAFKA TOPIC<br/>✗ separate prices + attention"]
    c2["ONE MODEL PER EVENT<br/>✗ summing daily ARs"]
    c3["EVENTS COMPUTED<br/>✗ a saved file that goes stale"]
    c4["LABELS IN ONE PLACE<br/>✗ a second lookup file"]
    c5["CLUSTERED TEST IS MAIN<br/>✗ the plain t-test alone"]
    c6["DAILY DATA<br/>✗ hourly prices and dumps"]
  end

  subgraph S2["2 · LIMITATIONS · say them before a marker does"]
    direction TB
    l1["EARNINGS NEAR EVENTS<br/>part of a CAR may be earnings"]
    l2["SMALL SAMPLE<br/>10 dates per event"]
    l3["STOCKS INSIDE SPY<br/>Amazon, Walmart... are the market"]
    l4["SURVIVORSHIP<br/>failed retailers are missing"]
    l5["REVISED DATA<br/>prices and FRED values change"]
  end

  subgraph S3["3 · MORE LIMITATIONS"]
    direction TB
    l6["OVERLAPPING WINDOWS<br/>Thanksgiving = Black Friday"]
    l7["OVER 7 DAYS LATE<br/>dropped by design"]
    l8["A SIMULATION<br/>a replay, not live data"]
    l9["NOT YET AGREED<br/>decisions Proposed<br/>contracts DRAFT"]
  end

  subgraph S4["4 · IDEAS · MAKE IT MORE GENERIC"]
    direction TB
    g1["ANY SECTOR<br/>airlines + holidays"]
    g2["MARKET PER COUNTRY<br/>a TSX index for L.TO"]
    g3["STUDY AS CONFIG<br/>swap periods and windows"]
    g4["SIGNALS AS PLUG-INS<br/>e.g. a volume spike"]
    g5["EVENT SOURCES AS PLUG-INS<br/>holiday or earnings calendars"]
  end

  subgraph S5["5 · IDEAS · BETTER ANALYSIS"]
    direction TB
    a1["EARNINGS DATES<br/>flag windows with one"]
    a2["RICHER BENCHMARK<br/>Fama-French or XRT"]
    a3["OTHER WINDOWS<br/>−1..+1 and −10..+10"]
    a4["ABNORMAL VOLUME<br/>vol_ratio around events"]
    a5["GDELT NEWS<br/>a second attention measure"]
  end

  subgraph S6["6 · IDEAS · BETTER ENGINEERING"]
    direction TB
    e1["PARTITIONS BY TICKER<br/>to show scaling"]
    e2["DELTA LAKE OR ICEBERG<br/>transactional output"]
    e3["LIVE DASHBOARD<br/>alerts during the demo"]
    e4["DOCKER COMPOSE<br/>Kafka without installing it"]
    e5["CI<br/>run the tests on every push"]
  end

  T --> S1 --> S2 --> S3 --> S4 --> S5 --> S6

  classDef head fill:#2C2C2A,stroke:#2C2C2A,color:#FFFFFF
  classDef idea fill:#E6F1FB,stroke:#185FA5,color:#0C447C
  classDef warn fill:#FAECE7,stroke:#993C1D,color:#712B13
  classDef win fill:#EAF3DE,stroke:#3B6D11,color:#27500A
  classDef step fill:#E1F5EE,stroke:#0F6E56,color:#085041
  class T head
  class c1,c2,c3,c4,c5,c6 idea
  class l1,l2,l3,l4,l5,l6,l7,l8,l9 warn
  class g1,g2,g3,g4,g5 win
  class a1,a2,a3,a4,a5,e1,e2,e3,e4,e5 step
  style S1 fill:#FFFFFF,stroke:#B4B2A9
  style S2 fill:#FFFFFF,stroke:#B4B2A9
  style S3 fill:#FFFFFF,stroke:#B4B2A9
  style S4 fill:#FFFFFF,stroke:#B4B2A9
  style S5 fill:#FFFFFF,stroke:#B4B2A9
  style S6 fill:#FFFFFF,stroke:#B4B2A9
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.