Internship · WINNIIO AB
LifeAtlas — Agentic Recommendation Engine
A seven-node LangGraph pipeline behind FastAPI that always returns three useful recommendations — even when the LLM or database fails.
- Period
- May – Jul 2026
- Team
- Team project
- Categories
- AI/ML · Backend · Software Engineering
Key results
- pytest tests
- 21 → 164pytest testssuite size before and after my work
- integration tests passing
- 63 / 63integration tests passing
- PRs merged after code review
- 12PRs merged after code review
- intern ranking (9.5/10 review)
- 2nd / 32intern ranking (9.5/10 review)
My contribution
- Designed and built the agent orchestration pipeline and its guaranteed fallback path (PR #33).
- Wrote the end-to-end integration tests and architecture diagrams for Goals × Signals × Recommendations (PR #42).
- Built the ZeroClaw security webhook: HMAC-SHA256 verification, payload normaliser, deduplication (PR #53).
Problem
LifeAtlas turns a user's goals and activity signals (GitHub events, manual logs, partner streams) into a short list of next actions grounded in the SMILE methodology.
The recommendation endpoint depended on an LLM call and a Supabase query. Either could fail or return malformed output, and the product requirement was strict: the user must always see exactly three cards.
Architecture
The pipeline is a LangGraph state machine. Each node reads and writes a shared typed state, so a new step can be added without touching existing nodes.
- fetch — load goals and signals; on a database error, route straight to fallback
- classify — bucket goals by SMILE phase and urgency
- reason — ask the LLM for candidate actions
- validate — schema-check the LLM output; mark invalid instead of raising
- enrich — attach source goal IDs and SMILE reasoning for traceability
- fallback — deterministic cold-start cards when anything upstream failed
- finalise — the last line of defence: always emit exactly three cards
Why LangGraph
A plain chain of function calls hides failure handling in try/except blocks. Modelling the flow as a graph made each failure path an explicit, testable edge — validate → fallback is a route you can assert on, not a side effect.
Testing and validation
- Unit tests per node with the LLM and database stubbed, including forced failures for every upstream step.
- Integration tests across Goals, Signals, Recommendations and Webhooks: 63/63 passing.
- Debugging the suite surfaced two real bugs: an HTTP 422 constant that produced 500s, and rate-limiter state leaking between tests and causing 429s.
Security work
- Webhook requests are verified with HMAC-SHA256 over the raw body using a constant-time comparison.
- Events are normalised into a single schema and deduplicated at the database level, so retries from the sender are idempotent.
What I learned
- Reliability is a design property: deciding the failure behaviour first made the happy path simpler.
- Working in a shared codebase — small PRs, review feedback, and keeping CI green for 31 other interns.
Screens
End-of-internship review: 9.5/10, ranked 2nd of 32 interns on git and PR evidence