mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-09-17 00:26:26 +00:00
/setup Step 3 populates six skill files; /reset profile cleared four. 04-job-evaluation.md was listed by name under "files NOT touched (they contain framework rules, not candidate data)" while Step 3.4 writes the user's match areas, career goals, energizing/draining tasks, financial situation and schedule constraints into it - and ci.yml's placeholder-integrity job already guards that file under "personal data may have been committed". job-scraper/search-queries.md, which Step 3.8 fills with their job boards, role titles, domain keywords, city and commute tiers, appeared nowhere in reset.md at all. Both are tracked and unignored, so Step 1 asked the user to confirm a wipe list that omitted them and Step 4 then reported a blank profile while /rank kept scoring against the old skills and career goals and /scrape kept running the old city and queries. Re-running /setup does not necessarily clean them either: Path A skips files whose content is "no longer placeholder text", and Step 3.8 is phrased as token replacement, with no tokens left to replace. Both files are now previewed and cleared, restoring their /setup placeholders while preserving the scoring framework and the query structure. 04-job-evaluation.md leaves the preserved list, which keeps 03-writing-style.md and 06-cover-letter-templates.md - the latter correctly, since its [YOUR_NAME] tokens are LaTeX scaffolding Step 3 never writes to. CLAUDE.md and cv/main_example.tex stay outside the profile scope, which reset.md:13 defines as skill files only; the preview and Step 4 now say they still hold personal data instead of implying a full wipe. tests/test_reset_command.py gains a profile-scope guard beside its documents-scope one, deriving the file list from /setup Step 3's own headings rather than hardcoding it, so a future /setup target that /reset forgets fails in CI. Against master the three cases fail on exactly the defect: preview missing search-queries.md, execution missing both, and the preserved list mislabelling 04-job-evaluation.md as framework-only - the last of which a filename search alone would have missed. Closes #364 Co-authored-by: Cursor <cursoragent@cursor.com>