How a vacancy becomes a decision
YAJT combines the posting, recruiter messages and my saved corrections with my profile. The model returns evidence for each criterion. TypeScript checks that response, calculates a score over the known criteria and reports how much of the assessment they cover.
From the local brief to the running system
The original brief put the profile and recruiter conversations in SQLite on my laptop. Claude received the context for one assessment or draft. I reviewed and sent replies myself. That design worked for one person. Sharing it meant giving each account its own records and coordinating spending across accounts.
Why keep scoring in TypeScript? Claude interprets the text and supplies evidence for each criterion. A fixed rule computes the weighted score and coverage, so missing salary information stays visible even when the skills match is strong.
Why put the reservation in PostgreSQL? Two app instances can spend the same allowance. A short transaction gives both instances one budget to check and update. The lock is released before the model call. When the input is unchanged, the app can reuse the saved assessment and skip that call altogether.
Decisions during development
- Prepare the database switchSQLite queries were synchronous. I moved callers to an async query interface while SQLite still worked. This added a refactor up front and let the driver change separately.
- Open the workspace to othersVercel and Supabase hosted the first shared version. Conversations needed account-level access, and model calls from different users could now spend the same budget.
- Move hosting in stagesBackground Fit jobs sometimes stalled, and the fixed database bill was hard to justify. The app moved to Fly.io, then data and authentication moved to Neon. Existing account IDs had to survive both steps.
What if the model call times out?
YAJT reserves budget in PostgreSQL, releases the database lock, then calls the model. A timeout leaves the charge uncertain. Keeping the reserve may delay another request. Releasing it immediately could spend the same allowance twice.
const uncertain = await reserve(entry());
await finish(uncertain, { status: "unknown" });
await assert.rejects(() => reserve(entry()), AiBudgetError);
await finish(uncertain, { status: "succeeded", usage });
await reserve(entry());
From tests/ai-budget.test.mts. The next reservation fits again once actual usage settles the first one. In operation, an unresolved charge requires a check against the provider’s records.
What changed in how I check the work
Follow a correction all the way to the verdict. I once saved a salary and got asked for it again. The form had persisted the value, but Fit never read it. Fit now labels facts by source and invalidates the cached assessment when its input changes.
Exercise the driver that serves the page. The follow-up dashboard passed its local database tests and failed in production on a timestamp parameter. The fix used Drizzle’s timestamp encoder. A driver check and a signed-in browser check verified that the dashboard opened again.
I can measure when YAJT reuses a result and what a model call costs. My next evaluation asks a different question: when the evidence conflicts, does YAJT leave the right question open?

