Inspiration

Two cashiers sell the last item in a shop at the same moment. Both screens say "in stock", both sales go through, and the count quietly goes wrong. We wanted to build a system that shows this classic failure happening, fixes it, and lets you watch what the machine is doing while it runs.

What it does

IntelliStock is an AI-based inventory management system that brings together a database, the operating system and AI in one real application.

  • Safe vs unsafe sales: eight parallel sales hit one product. In unsafe mode, 6 or 7 units were still on the shelf instead of 0. In safe mode, the stock ended at exactly 0 every time.
  • OS concepts: deadlock-free warehouse allocation with the Banker's algorithm, and a priority queue where emergency jobs go first.
  • AI: a 14-day demand forecast with reorder suggestions, and a chatbot that answers from live data. When data is missing, it says "unavailable" instead of reporting zero.
  • Observability: charts for latency, CPU, request routes, syscalls, TCP retransmits and security events.
  • Roles: only an admin can create member accounts, and the server decides every role.

How we built it

React and Vite on the front end, FastAPI on the back end, and PostgreSQL or SQLite for data. The chatbot is a scikit-learn intent classifier trained on 980 questions across 15 intents. Monitoring uses a psutil fallback collector on Windows and a BCC-based eBPF collector on Linux or WSL2, feeding a bounded history that drives the charts and the chatbot.

Challenges we ran into

  • eBPF only runs on Linux, so we built a fallback collector and ran the backend and collector inside WSL2 for the eBPF demo.
  • SQLite ignores row locks, so we made the safe path an atomic conditional update there and kept SELECT ... FOR UPDATE for PostgreSQL.
  • In WSL2, the process ID we saw did not match the one the kernel saw, so the collector had to find the backend automatically.
  • Our first chatbot test score was inflated by self-generated data, so we rebuilt the dataset and tested on separate questions we wrote by hand.

Accomplishments that we're proud of

  • A fresh clone from GitHub runs on SQLite, and 67 backend tests passed at the last full run.
  • eBPF probes verified on WSL2: a timed-out connection raised the TCP retransmit counter from 0 to 3.
  • A chatbot that admits what it does not know.

What we learned

Hiding a button is not security, so the server enforces every rule. A missing measurement is not the same as zero. Honest evaluation matters more than a high score.

What's next

PostgreSQL deployment with real row locks, real sales data for the forecast and chatbot, a kernel-level database latency probe, and removing the need for a privileged collector.

Built With

Share this project:

Updates

Submission history