Skip to content

Feature Inventory & Architectural Traces ​

This catalog documents the 12 core architectural feature groups implemented in 18-flash-sale-inventory, covering all 92 features defined in FEATURES.csv.


Feature Matrix Summary ​

Feature IDFeature NamePrimary Source FilesInvariant / GuaranteePriority
F1Atomic Inventory Reservationstock/reservation.pySingle-query conditional decrement; zero oversell ($A \ge 0$).P0
F2Virtual Waiting Room Queueflow/waiting_room.pyFIFO token bucket admission; cryptographic ticket verification.P0
F3Hold Expiration & Rollbackstock/reservation.py, flow/checkout.py300-second hold lease TTL; automatic stock recycling on timeout.P0
F4Real-Time Oversell Detectorobservability/oversell.pyContinuous mathematical invariant audit ($A + R + S == T$).P0
F5Live Storefront & Telemetryfrontend/src/app.jsReal-time DOM telemetry, sell-through gauges, instant reservation modal.P1
F6Distributed Locks with Fencingtransactions/distributed_lock.pyMonotonic fencing tokens; stale write rejection.P0
F7Optimistic Concurrency Controltransactions/optimistic.pyVersion column matching with bounded exponential backoff retries.P0
F8Pricing & Promotions Enginepricing/pricing.py, pricing/promotions.pyOriginal price preservation, price floor validation, stacking rules.P1
F9Scheduled Activation & Timezonessales/activation.py<= 1.0s activation tolerance; DST boundary crossing handling.P0
F10Auth, Lockout & Sessionsauth/service.py, models/users.pyPBKDF2 hashing, exponential cool-down lockout, session token rotation.P1
F11Payment Resilience & Refundsflow/order_payments.pyIdempotent payment retry, capped refunds, order cancellation.P0
F12Request Throttling & Quotasflow/throttling.pyToken bucket rate limiting, burst smoothing, per-SKU user limits.P0

Detailed Feature Group Navigation ​

  1. F1: Atomic Inventory Reservation Engine
  2. F2: Virtual Waiting Room & Traffic Leveling
  3. F3: Automated Hold Expiration & Stock Rollback
  4. F4: Real-time Oversell Audit Detector
  5. F5: Live Storefront & Operations Console
  6. F6: Distributed Locks with Monotonic Fencing
  7. F7: Optimistic Concurrency Control (OCC)
  8. F8: Pricing, Promotions & Stacking Rules
  9. F9: Timezone-Aware Scheduled Activation
  10. F10: Authentication, Exponential Lockout & Session Management
  11. F11: Order Lifecycle, Idempotent Payments & Refunds
  12. F12: Request Throttling, Burst Smoothing & Quota Enforcement