Skip to content

Fix: code review findings — filters, plan limits, rate limiting, scheduling, market data - #12

Merged
ftaakash merged 1 commit into
mainfrom
fix/review-filters-limits-schedules
Oct 16, 2026
Merged

ftaakash merged 1 commit into
mainfrom
fix/review-filters-limits-schedules

Conversation

@ftaakash

Copy link
Copy Markdown
Owner

Fixes the 9 findings from a full review of the code added since the last review (auto-apply, extension, Vercel Cron, pipeline polish).

# Fix
1 Market refresh skipped every role for a year: "already loaded this week" matched last year's rows with the same week number. Now based on load time (last 7 days).
2 Filters used substring matching (Java→JavaScript, AI→maintain, bond→bonding). Now whole-word/phrase matching; symbols like C++, Node.js, 5+ years still work.
3 Pay parser: "₹25K per month" → 300 LPA, "60,000 a month" → 0.6 LPA. Now handles k-thousands, "a month", "an hour".
4 Forged extension tokens each got a fresh rate-limit bucket. Added a per-IP ceiling (600 / 15 min) for /api/extension/*.
5 Extension and Tailor CV bypassed the plan's daily OpenClaw limit. Now enforced (402, plan_limit).
6 Market demand and its week-over-week change mixed years. Now uses the latest 7 days of loaded postings vs the 7 before.
7 Renewal reminders used an exact 24 h window that cron jitter could miss or repeat. Now sent once per subscription, recorded.
8 Biased random sort for the nightly order → Fisher–Yates.
9 Status card prop renamed to handledToday.

Verification: 66/66 unit tests (new: whole-word matching, k/month pay, shuffle, per-IP ceiling), typecheck, lint. Market demand checked against a throwaway Postgres: AWS 3/4 vs 1/4 → +50 pts, year-old rows with the same week number ignored. No migration.

… market data

- Filters match whole words: "Java" no longer matches JavaScript, "AI" no longer matches
  "maintain", excluding "bond" no longer drops jobs mentioning "bonding" (roles, keywords,
  cities and blocked companies)
- Pay parsing understands "25k" and "a month": "₹25K per month" was read as 300 LPA and
  "60,000 a month" as 0.6 LPA
- Extension and Tailor CV apply the plan's daily OpenClaw allowance (402 like other plan limits)
- Extension calls also get a per-IP ceiling, so made-up tokens can't each get a fresh rate-limit bucket
- Market refresh and market demand use when postings were loaded, not the year-less week number,
  which would have skipped refreshes for a whole year and mixed last year's data in
- Renewal reminders are sent once per subscription (recorded), not by an exact 24-hour window
  that Hobby cron's ±59 min start time could miss or repeat
- Unbiased shuffle for the nightly OpenClaw order; status card prop renamed to handledToday
@vercel

vercel Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
skill-graph Ready Ready Preview Oct 16, 2026 1:22pm UTC

@ftaakash
ftaakash merged commit 176299e into main Oct 16, 2026
4 checks passed
@ftaakash
ftaakash deleted the fix/review-filters-limits-schedules branch October 16, 2026 13:30

This branch was successfully deployed

1 active deployment
Preview — bf7ac0e3 Deployed Oct 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant