-
-
Plan A vs Plan B with goal line — updates in 100 ms
-
3 real AI bugs caught by human tests and fixed
-
R2: 4 mandatory calculator tests — all pass
-
Benchmark: LifePath 10/10 vs raw LLM 3/10 on exact weeks
-
Step 1: upload a product screenshot + receipts
-
Step 2: AI-extracted numbers tagged with sources
-
Accuracy evaluation — 20/20 examples passed
-
1-click cell editing and free-form slider caps
-
Stress test: cash gap flagged instantly on week 2
-
Failure 1: AI service down — calm warning, plan stays intact
-
Saved plan persists in SQLite after refresh
-
Sign up with just a nickname — no email, no personal data
-
Failure 2: cat photo instead of product — clear hint
-
Failure 2B: budget deficit — bounded math, no crashes
Teen savings planner with no bank link or email: snap a goal & receipt — AI extracts numbers, and a Python engine maps Plan A vs. Plan B with cash-gap alerts.
WHO IS YOUR PROJECT FOR, AND WHY WOULD THEY USE IT? (V1-V3) Target users and real need (V1.1, V1.2): LifePath is built for teenagers aged 14-18 who receive pocket money or weekend side-job income and want to save for a specific purchase ($40-$800, such as wireless headphones, a bicycle, a monitor, or a laptop). Simple division (e.g., $120 goal / $25 per week = ~5 weeks) breaks down in real life because small recurring expenses (snacks, coffee) and unexpected costs cause delays or cash gaps.
In our mini-survey of 15 teenagers (aged 14-17):
14 / 15 (93%) tried saving for an item over $100 in the past year. Only 3 / 14 (21%) reached their goal by the date they expected. Only 2 / 15 (13%) track their money in spreadsheets or apps. 13 / 15 (87%) said they would use a tool where they only upload a product screenshot and a receipt. LifePath directly solves this: a teen uploads a product screenshot + receipt (or types one short sentence), gets an editable weekly breakdown with source tags, and uses interactive sliders + force-majeure stress tests to compare Plan A (current pace) vs. Plan B (adjusted habits).
Comparison with existing tools (V2.1, V2.2): Compared to Mydoh Goal Calculator, Bankaroo, Cleo, and Google Sheets (full comparison table in our GitHub README: https://github.com/Uchitelnik/LifePath):
Zero manual entry friction: upload a screenshot + receipt instead of typing every figure by hand (Mydoh, Google Sheets) or having a parent configure chores (Bankaroo). Zero bank linking or personal data: unlike Cleo (requires linking a bank account via Plaid), LifePath needs only a nickname and password. Built-in Plan A vs. Plan B curves, weekly cash-gap detection, and teen-safety guardrails. Honest trade-offs: Bankaroo is better for younger kids (7-13) under parental control; full Mydoh connects to a real Canadian prepaid Visa card (LifePath is a planning simulator only); Google Sheets supports arbitrary custom formulas. Practicality and Privacy (V3.1):
Zero PII: signup uses only a nickname and password (6+ chars, hashed with werkzeug.security.generate_password_hash) — no email, phone, real name, or bank account. Privacy reminder under the upload box: "Don't upload photos with card numbers, addresses or your last name." Per-user rate limit (10 AI requests per 10 minutes) and local Chart.js 4.4.7 (no external CDN dependency). WHAT DID YOUR TEAM BUILD OR IMPROVE DURING THE HACKATHON? LifePath is a brand-new project built from scratch during the Global AI Builder's Challenge.
Built by us during the hackathon: Flask web app and SQLite persistence (app.py, database.py), multimodal AI extraction + Pydantic validation + 2-layer teen-safety guardrails (ai_helper.py), deterministic weekly savings and cash-gap engine (calculator.py), fixed 3-block desktop UI with 1-click inline editing and dual-curve Chart.js visualization (templates/, static/), 45 offline unit tests, and live benchmark scripts (tests/). Third-party tools and libraries: Python, Flask, SQLite, Pydantic v2, Werkzeug, Chart.js 4.4.7, Groq API (qwen/qwen3.8-27b), and an AI coding assistant during development (see AI Disclosures below). HOW DID YOUR TEAM USE AI? (A1-A4) AI in the finished project (A1-A3): Model choice and comparison (A1.1, A1.2): We use qwen/qwen3.8-27b on Groq (ai_helper.py) as a perception-only layer. Compared to llama-3.2-11b-vision, gpt-4o-mini, and Tesseract OCR + Regex (detailed table in our GitHub README), it handles up to 3 base64 images + text in a single call, supports strict JSON mode (temperature=0, response_format={"type": "json_object"}), performs semantic period normalization (e.g., $200/month = ~$46.19/wk with source tags), runs in ~1.2-2.5s on Groq LPU, and has a free API tier suitable for students. Hybrid neuro-symbolic design and benchmark (A2.1, A2.2): The LLM never calculates timelines. It only extracts structured JSON validated by Pydantic (ParsedPlan, ExpenseItem, SliderSuggestion) with source attribution (user text, receipt #1: ...) and 2-layer teen-safety guardrails (system prompt + Python regex filter). All math runs in calculator.py (pure Python, 0 AI calls, MAX_WEEKS = 156). On our 10-case benchmark (tests/a2_experiment.py, report in tests/evidence/a2_llm_vs_lifepath.html): Raw LLM (qwen/qwen3.8-27b, plain chat): 3 / 10 (30%) exact weeks correct. LifePath (AI extraction + Python engine): 10 / 10 (100%) exact weeks correct. 20-example quality evaluation (A3.1): Using tests/a3_accuracy.py (tests/evidence/a3_accuracy.html), ai_helper.parse_user_input() achieved 20 / 20 (100%): 11/11 free-text extractions, 1/1 product screenshot, 1/1 receipt, 1/1 irrelevant image rejection (cat_photo.png), 1/1 off-topic text rejection, and 5/5 teen-safety guardrail refusals (payday loans, crypto trading, skipping school lunch, selling blood, sports betting). AI during development (A4.1, A4.2): An AI coding assistant helped draft modules step by step, and every step was verified with unit and E2E tests. Three real AI-written bugs were caught by human-run tests and fixed before submission (full log in tests/evidence/a4_found_bugs.md):
CANNED_REFUSAL in ai_helper.py contained banned keywords, causing our own safety scanner _is_unsafe_text() to flag the refusal itself -> caught by unit test -> reworded refusal -> fixed. _BANNED_PATTERNS in ai_helper.py matched only nouns (loan, credit, debt) and missed verb forms from the spec -> caught by test_forced_refusal -> expanded verb/collocation patterns -> fixed. renderGoalInputs() in static/app.js restored goalName, goalPrice, and startBalance from SQLite but forgot to sync stressEnabled, stressAmount, and stressWeek -> caught by E2E browser test -> synced stress fields -> fixed. HOW CAN PEOPLE ACCESS AND USE THE PROJECT, AND WHAT RESULTS DOES IT ACHIEVE? (R1, R2, D1-D4) Access and Setup (4 commands): Requirements: Python 3, internet connection for Groq vision parsing, and a free GROQ_API_KEY (all math and 45 offline unit tests run locally without a key).
git clone https://www.google.com/search?q=https://github.com/Uchitelnik/LifePath.git (https://www.google.com/search?q=https://github.com/Uchitelnik/LifePath.git&authuser=1) cd LifePath python -m venv .venv && .venv\Scripts\pip install -r requirements.txt Copy .env.example to .env, set GROQ_API_KEY=gsk_..., and run .venv\Scripts\python [invalid URL] SQLite (lifepath.db) initializes automatically on first launch. End-to-End Flow and UX Choices (R1, D1-D4):
D1 & D2: Fixed, non-jumping 3-block desktop layout (1480px) with a sticky Saved Plans sidebar (330px) and consistent cards and error banners. D3: Effort reduction via screenshot/receipt auto-fill, 1-click inline cell editing, and debounced sliders (100ms, ~0.07ms recalculation). D4: Every number displays its source tag (user text, receipt #1, manual), and the Chart.js graph directly links inputs to outcomes with Plan A (dashed), Plan B (solid), goal line, and red force-majeure cash-gap markers. 4 Mandatory Calculator Tests — R2 (tests/r2_cases.py, tests/evidence/r2_calculator_tests.html): Case 1 (R2.1) — Simple Headphones: $100 goal, $25/wk income, $5/wk snacks. Expected: 5 weeks ([0, 20, 40, 60, 80, 100]). Actual: 5 weeks, final balance $100. Result: PASS. Case 2 (R2.2) — Bicycle: $180 goal, $40 allowance every 2 weeks, $5/wk snacks. Expected: 11 weeks. Actual: 11 weeks, final balance $185. Result: PASS. Case 3 (R2.3) — Repeat stability check (identical to Case 1). Expected: byte-identical output (c3 == c1). Actual: 5 weeks, c3 == c1. Result: PASS. Case 4 (R2.4) — Complex 52-week plan: $500 USD x exchange_rate=2.7 (1350 local), start 30, +40/wk, -10/wk snacks, +20/wk job (wks 5-20), +100 gift (wk 8), stress -95 (wk 2) and -180 (wk 6). Expected: exact timeline + cash gaps flagged. Actual: 40 weeks, final balance 1375.0, cash gaps at wk 2 (-5.0) and wk 6 (-25.0). Result: PASS. All 45 offline automated tests (test_calculator.py 13/13, test_ai_helper.py 28/28, test_app.py 4/4, r2_cases.py 4/4) pass in under 1 second.
WHAT ARE THE CURRENT LIMITATIONS, AND WHAT HAPPENS WHEN SOMETHING GOES WRONG? (A3.2, R3) Honest limitations (A3.2):
Handwritten, blurry, or crumpled receipts can still be misread by the vision model — users should verify extracted cells (1-click editable). Weekly frequency from a single receipt is estimated by the LLM and may need manual adjustment. Mixed currencies require entering exchange_rate manually (the app does not fetch live FX rates). Free Groq API keys have daily vision quotas (~25-30 vision requests/day), and the fallback safety filter is regex-based. Graceful failure handling — 3 distinct causes, zero crashes, saved plan always preserved (R3.1, R3.2): Groq API outage / invalid key / quota / broken JSON (401, 403, 429, timeout): /api/parse catches the error and returns HTTP 200 with kind: "ai_unavailable" and a clear yellow banner; the open plan remains intact (evidence: tests/evidence/r3_failure_1_groq_api.jpeg). Invalid image input (cat_photo.png): When 0 financial items are detected, _postprocess() raises AIHelperError(kind="not_found") and displays a friendly hint ("Could not find a product or receipt in the input. Try another screenshot or enter the numbers manually") without erasing the saved plan (promo/shots/failure.png). Budget deficit (expenses > income): calculator.simulate_plan() caps at MAX_WEEKS = 156 (~0.07ms) and returns reachable=False, deficit_per_week=5.0 with a clear red alert ("Not reachable — you lack $5.00 per week").