Move a legacy cron-based job runner to a queue with retries over a 48-hour window, working mostly through a coding agent. Plan checkpoints, keep the agent on rails, verify its work and ship without dropping jobs.
This is the practice version. Assessments always use a variant you have never seen.
The payments team wants the legacy cron runner gone before month-end close.
Ledgerline pays merchants with payout jobs. An old cron script runs them today. When it crashes, jobs are lost. When a job fails, nobody retries it. When two runs overlap, a merchant can be paid twice.
The previous developer started a new job queue with a coding agent and left notes in AGENTS.md. Finish the
move. You will mostly direct a coding agent (for example claude -p "…" or codex exec "…" in the
terminal) and check its work yourself.
scripts/migrate.js moves every enabled legacy job onto the queue. Running it twice
imports each job once. It never deletes a job that is already on the queue.README.md has the exact rules for each function. The public tests (npm test) cover the happy path. A
hidden suite runs after you submit.
src/, scripts/, test/ and AGENTS.md. src/store.js, legacy/ and data/ stay
as they are.In the Viva you will explain your checkpoints, the agent's biggest changes and one small change you make by hand with the AI turned off.
| Fix the Warehouse SQL Behind the Growth MetricsData engineeringTiers: FresherEditorial | Easy | Code repo | 30 min | Calibrating |
| Audit Design Tokens for WCAG ContrastDesignTiers: JuniorEditorial | Medium | File deliverable | 45 min | Calibrating |
| Plug the Leaky Session CacheBackend & APIsTiers: FresherEditorial | Easy | Code repo | 30 min | Calibrating |