Repository navigation
P0 launch-readiness fixes + personal mode with job discovery and Claude web research - #4
Merged
Merged
Conversation
Core analysis pipeline - utils/llm: current model defaults (claude-haiku-5-5 / claude-opus-5-5, gpt-5-mini / gpt-5); temperature only for models that accept it; 16k output budget with max_tokens/length/refusal/empty detection (LLMOutputError, never retried); one retry policy that skips 4xx; explicit timeouts; pricing for 5.5 and gpt-5 mini/nano. - Missing employer no longer aborts the analysis; manual hints override extraction instead of skipping it; salary stage sees the posted range. CV / tailoring - Fabrication check no longer whitelists posting skills; flags title inflation, dollar amounts and count claims; less prose noise; labels terms copied from the posting. Two tests that encoded the bug updated. - Tailoring prompt gets responsibilities and a posting excerpt. - ATS match understands "X (A, B)", aliases, ambiguous short names. - Resume parsing: clear errors, DOCX tables/headers; fixed always-true glyph warning. PDF export embeds DejaVu (Unicode) instead of crashing. Tracking / UI - URL fetch failure no longer analyzes stale pasted text; readable results; status changes create stages (analytics + reminders); editable company/title on save; CSV import BOM/header/status case; JSON-LD JobPosting extraction; 2FA nested-expander crash. Paid-launch blockers - Stripe webhook crash on stripe 15 Event objects; Telegram /analyze requires a linked chat; metered_llm gate for CV parsing, bulk import and tailoring; SSRF redirect re-validation + capped streamed reads + CGNAT; escaped skills HTML; full session clear on sign-out; operator-only system test with secret redaction. Ops - Includes the unmerged founding-team-setup branch (c1f9d6d, applied as a diff) with its lint/mypy/compose-race/backup fixes; compose worker -A target, image extras, pg_dump, restart policies; pool_pre_ping; postgres:// rewrite; scripts/run_local.sh; .python-version. - docs/ASSESSMENT.md: verified state, remaining blockers, pilot protocol. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P1Ts4ix4BDwKwSBfgRphwq
Personal mode (PERSONAL_MODE=1, default in scripts/run_local.sh) - Single local owner account (services/personal); no sign-up/login, 2FA, billing, quota, token, webhook or Telegram UI. Discover tab first. Search profile (services/profile, table candidate_profiles) - Target roles, seniority, locations/work mode/remote region, work authorization, salary floor, must-haves, dealbreakers, industries, company stage, languages, keywords, company watchlist; "draft from my master CV". - Feeds a "Fit for You" report section and a verdict that a dealbreaker or sub-floor salary caps; loaded automatically by run_analysis_sync and the worker. The master CV is the default resume for the fit/ATS analysis. Job discovery (tools/job_sources, services/discovery, table discovered_jobs) - Public APIs only: Greenhouse/Lever(+EU)/Ashby/SmartRecruiters watchlist boards with ATS auto-detect; Arbeitnow, Remotive, RemoteOK, HN "Who is hiring", Adzuna (with key). Cached per source; attribution shown. - Title prefilter, recency for aggregators only, per-user dedupe that keeps status, deterministic match score + flags (US-only remote for EU candidates, salary below floor, seniority mismatch, dealbreakers), Haiku fit triage, open-web discovery via Claude web search, deep analysis and tracking from the feed (ui/discover, ui/profile). Frontier research (utils/llm.web_research) - Claude server-side web search/fetch (20260209 tools) with pause_turn continuation and cited sources, for company and salary research; web search fees in the cost ledger; server-side refusal fallbacks on Opus/Sonnet 5.x with automatic opt-out if the beta is rejected. Also: posting-derived report fields fenced as untrusted, block-aware HTML to text, profile + feed in account export, CI schema check covers the new (and three previously missing) tables, mypy covers ui/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P1Ts4ix4BDwKwSBfgRphwq
The live Replit deploy has lagged migrations before (users.email_verified was patched by hand in June). With candidate_profiles / discovered_jobs missing, the profile lookup would fail every analysis and the Discover tab would halt the script, taking every later tab down with it. - services/profile.profile_prompt_for: best-effort profile prompt (logs and returns "" on a DB error); used by the web, runner and worker paths. - app.py: Discover and the profile editor show a "run alembic upgrade head" hint instead of raising. - account export skips the new sections when the tables don't exist. - Regression tests drop both tables and assert analyses and the rest of the page still work. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P1Ts4ix4BDwKwSBfgRphwq
The mypy job pip-installed unpinned latest deps. numpy 2.5's stubs use 3.12-only `type` statements, which mypy rejects under python_version 3.11, and ui/ (now type-checked) reaches them via streamlit. Install with `uv sync --frozen` instead, so the gate checks the versions Replit runs, and fail fast with `uv lock --check` when uv.lock drifts from pyproject. The test jobs stay on pip-resolved latest versions as a forward-compat signal (they pass on numpy 2.5 / pandas 3 / streamlit 1.66 / anthropic 1.x). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P1Ts4ix4BDwKwSBfgRphwq
…in; dead code Feature isolation - utils/features.py declares core vs side features (accounts, billing, api_tokens, webhooks, telegram, notifications, sharing, background, audit_log, rate_limits); PERSONAL_MODE=1 turns every side feature off. - app.py imports side-feature modules only outside personal mode and gates their call sites (share view, background analyses, stage notifications, share links); services skip webhook dispatch and billing / rate-limit gates when the feature is off; reminders imports Telegram lazily. - Personal-mode sidebar keeps what a single user still needs: LLM spend (7/30 days, per model) and backup / full JSON export (built on click, not on every rerun), plus a password-safe db.session.describe_database. - Guarded by tests: a fresh-subprocess check that no side-feature module (or celery / stripe / telegram / pyotp / qrcode) loads in personal mode, and a personal journey test: feed → track → stage quick-actions → status → tailored CV (fabrication flagged) → cover letter → PDF. Dead code and dependencies - LangGraph ran a strictly linear 4-node graph with its own checkpointing done by hand; replaced by an explicit stage sequence. Removing the unused LangChain Tool wrappers (+ analyze_compensation_package) and both dependencies drops ~20 packages and cuts app import time 930 -> 605 ms. - Removed _normalize_skill, _split_inline_bold, audit.count_by_kind and the stale pre-Phase-1 DEVELOPMENT.md; environment banner prints once per process instead of on every Streamlit rerun. - Layering rules re-verified mechanically (no violations). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P1Ts4ix4BDwKwSBfgRphwq
Live-verified research (2026-10-20): which ATSs DE deeptech companies use, the next ten sources in implementation order with exact endpoints, auth, data and terms (Personio, Teamtailor, Recruitee, Workable, Pinpoint, Softgarden, the DevJobs RSS network, Reed, Workday, JOIN), sources to avoid (Getro, Consider, Wellfound, WTTJ/Otta, consumer boards, grey government APIs), what community lists really are, and how similar products source jobs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P1Ts4ix4BDwKwSBfgRphwq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR does three things:
(
docs/ASSESSMENT.md).web research.
It supersedes the unmerged branch
claude/founding-team-setup-b5t2ge(c1f9d6d). That branch was applied as a diff, with its CI failures fixed: a
lint error, two mypy errors, a schema-creation race in Compose, a backup step
that could never run (no
pg_dumpin the image), and a Telegram fix that/unbindcould bypass. A line-by-line check shows all of its additions arehere, either as-is or deliberately superseded.
1. P0 fixes (
485d5b1)LLM client
temperaturefor models that reject it (Opus/Sonnet/Haiku 5.x return a400 on it).
The old 2000-token cap cut off the report's verdict block.
gpt-5 mini/nano.
Pipeline
No-fabrication check
"Staff ML Engineer" to pass for a Senior's CV; the other's "clean" fixture
claimed "Senior" without support.
ATS match
short names like "Go" and "R".
Resume and PDF
now read.
crashing the CV tab on "Ł", "→" or "€".
Tracking and UI
JobPostingdata that ATS pages embed.Paid-launch blockers
Eventhas no.get)./analyzenow requires a linked chat.metered_llmgate now covers CV parsing, bulk import and tailoring.addresses are blocked.
Ops
-Atarget, image extras,pg_dump, a backupsvolume, restart policies.
pool_pre_ping;postgres://URLs are rewritten.scripts/run_local.shand.python-version.2. Personal mode, profile, discovery, web research (
bcd7fb1)Personal mode (
PERSONAL_MODE=1, the default inrun_local.sh)webhook and Telegram UI is hidden, and the Discover tab comes first.
Search profile (
services/profile, tablecandidate_profiles)salary floor, must-haves, dealbreakers, industries, and a company watchlist.
dealbreaker or a salary under the floor.
Job discovery (
tools/job_sources,services/discovery, tablediscovered_jobs)Ashby and SmartRecruiters, with ATS auto-detection. Aggregators: Arbeitnow,
Remotive, RemoteOK, HN "Who is hiring", and Adzuna when a key is set.
aggregators only. Per-user dedupe that keeps each job's status.
EU candidates, below the salary floor, seniority mismatch, dealbreakers).
analysis or tracking straight from the feed.
Frontier research (
utils/llm.web_research)20260209tools), withpause_turncontinuation and cited sources. Used for company research(news, funding, layoffs, Glassdoor/Kununu) and salary data.
fallbacks: "default") on Opus/Sonnet5.x. They switch off automatically if the endpoint rejects the beta;
ANTHROPIC_REFUSAL_FALLBACK=0turns them off.3. Migration safety (
1fe44dd)profile), and Discover / Profile show a "run
alembic upgrade head" hintinstead of halting the whole page.
4. CI: mypy against the lockfile (
52d496b)uv.lock(uv sync --frozen) and runsuv lock --check, so it type-checks the versions Replit runs.3.12-only syntax that mypy rejects under
python_version = 3.11;ui/reaches them through streamlit.
signal. They pass on numpy 2.5, pandas 3, streamlit 1.66 and anthropic 1.x.
5. Architecture: feature isolation, dead code, lighter deps (
49895eb)utils/features.pydeclares core vs side features(accounts, billing, api_tokens, webhooks, telegram, notifications, sharing,
background, audit_log, rate_limits).
app.pydoesn't importtheir modules, and the services skip webhook dispatch and the billing /
rate-limit gates. A fresh-subprocess test asserts that no side-feature
module, and none of celery / stripe / telegram / pyotp / qrcode, loads in
personal mode.
days, per model) and backup / full JSON export.
strictly linear 4-node chain, and checkpointing was already done by hand.
Together with removing the unused LangChain
Toolwrappers, that dropslanggraph,langchain,langchain-core,langsmithand ~20 packages,and cuts app import time from 930 to 605 ms.
analyze_compensation_package,_normalize_skill,_split_inline_bold,audit.count_by_kind, and thestale
DEVELOPMENT.md. Layering rules re-verified mechanically.status → tailored CV (fabrication flagged) → cover letter → PDF.
.replitsetsUSE_ALEMBIC=1butruns plain
streamlit run. It has drifted before: theusers.email_verifiedcolumn was hand-patched in June (see
attached_assets/). Production isprobably missing several migrations, including this PR's
c4e8a2f61d39.SELECT version_num FROM alembic_version.docs/ASSESSMENT.md("Remaining P0").
alembic upgrade head && streamlit run app.py..replitis deliberately unchanged in this PR./analyzeneeds a linked chat; setTELEGRAM_ALLOW_UNLINKED_ANALYZE=1to allow anonymous chats.ADMIN_EMAILS).gpt-5 (OpenAI). Replit's env overrides still apply.
personal use, but drop it as a source before a hosted, paid launch.
Testing
regression tests cover each fixed bug: fabrication holes, ATS realism,
JSON-LD, the SSRF redirect, the Unicode PDF, Stripe via the real SDK
object, status → stage, CSV import, the bot link requirement, connectors,
ranking, the discovery lifecycle, web research
pause_turn/fallback,personal-mode rendering, and an unmigrated database.
ui/), bandit and the JS testsare clean. The CI Postgres table check now also covers the new tables and
three it had been missing.
profile → 48 new.
image build, and the Replit deploy. Run one real deep analysis before
relying on the web-research path.
🤖 Generated with Claude Code
https://claude.ai/code/session_01P1Ts4ix4BDwKwSBfgRphwq