From 50a4ad70f08599bdca6531c387ae44e82301c21f Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Tue, 2 Jun 2026 22:23:40 +0000 Subject: [PATCH] job-hunter runbook: self-comp re-seed stores full TC breakdown total_value (what the comparison bar uses) must be full TC; document storing base+bonus+RSU components too so it's verifiable that RSU+bonus are included. Co-Authored-By: Claude Opus 4.8 --- docs/runbooks/job-hunter.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/runbooks/job-hunter.md b/docs/runbooks/job-hunter.md index 4d2e1c71..8add25c5 100644 --- a/docs/runbooks/job-hunter.md +++ b/docs/runbooks/job-hunter.md @@ -277,10 +277,14 @@ from job_hunter.storage_comp import upsert_comp_point async def m(): e=create_engine_from_env(); sf=make_session_factory(e) async with sf() as s: + # total_value is what the comparison/bar uses — it MUST be full TC + # (base + bonus + RSU). Store the components too for transparency. await upsert_comp_point(s, CompPoint(source='self', external_id='self-current', company_slug='self-current', company_display_name='Me (Meta IC5)', level_slug='senior', location_bucket='london', - total_value=Decimal('267000'), currency='GBP', effective_date=date.today())) + base_value=Decimal('123682'), bonus_value=Decimal('25734'), + rsu_grant_value=Decimal('117927'), rsu_vesting_years=1, + total_value=Decimal('267343'), currency='GBP', effective_date=date.today())) await s.commit() await e.dispose() asyncio.run(m())"