Commit graph

4 commits

Author SHA1 Message Date
Viktor Barzin
edb4d11352 feat(fire-target): per-Case FIRE-number solver for the retirement countdown
Some checks are pending
Build and Push / lint-and-test (push) Waiting to run
Build and Push / build (push) Blocked by required conditions
Build and Push / deploy (push) Blocked by required conditions
Build and Push / notify-failure (push) Blocked by required conditions
Add a Monte-Carlo "FIRE number" solver so the wealth dashboard can show a £
countdown to retirement across life-stage cases, in today's money.

Viktor wants to see, per country, how far his net worth is from being able to
retire for good under three cases — Solo (his spend ×1.5), Household (+Anca
×1.5), Family (+2 kids) — with cost-of-living re-scaling per country and a 99%
Guyton-Klinger success bar.

- spend_model: per-Case real-GBP spend, COL-scaled (rent + non-rent essentials
  scale by country; Holidays fixed), ×1.5 safety. Constants sourced live from
  actualbudget (Viktor) / on-record (Anca).
- geo: city -> tax jurisdiction (nomad fallback).
- fire_target: binary-search the smallest LIQUID net worth where GK reaches the
  bar; pension modelled as a tranche unlocking at ~57, kids ramp + optional home
  as cashflows. New fire_target table (migration 0007) + idempotent upsert.
- recompute-fire-targets CLI: solve every Case x country and persist for Grafana.
- CONTEXT.md glossary + ADR-0001 (why MC-threshold on liquid NW, not 25x spend).

Reuses the existing simulator unchanged (its cashflow hooks already supported
pension/kids/home). 345 tests pass; mypy + ruff clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 11:49:23 +00:00
Viktor Barzin
eb53f6dbb6 examples: document deferred follow-ups (metrics, fixtures, pushshift)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2026-05-28 22:34:24 +00:00
Viktor Barzin
1fac475ba2 fire-planner: implementation plan — Reddit FIRE examples
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
17 bite-sized TDD tasks (Task 1-17 + 11a follow-up):
  1   asyncpraw dependency
  2   alembic 0006_fire_examples migration
  3   FireExample ORM in db.py
  4   Pydantic schemas (RawPost / ExtractedExample / Summary)
  5   regex pre-filter (MONEY_RE + LOCATION_RE)
  6   async PRAW wrapper
  7   primary qwen3-8b extractor
  8   Tier 2 claude-agent-service fallback
  9   currency normalisation via fx.py
  10  service.upsert_example + summary_for_country
  11  orchestrator + click CLI ingest
  11a Prometheus follow-ups deferred + documented
  12  fixture-driven regression suite
  13  /api/examples + /summary router
  14  simulator response examples_overlay block
  15  Terraform K8s Job (toggled) + weekly CronJob
  16  build + push image
  17  run bulk ingest + smoke-test
2026-05-28 21:42:46 +00:00
Viktor Barzin
0907a31e0c fire-planner: design — Reddit FIRE examples ingest
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Brainstorm + design doc for a new fire_planner/examples/ module that
scrapes 12 FIRE subreddits via PRAW, extracts structured fields with a
local qwen3-8b LLM (claude-agent-service Tier 2 fallback), and exposes
the data as an informational overlay in the simulator response.

Locked decisions: PRAW + asyncio, hybrid regex+LLM extraction,
informational overlay only (no scenario-priors coupling), new
fire_planner/examples/ module mirroring col/ shape.
2026-05-28 21:32:32 +00:00