Generate

Back to editor
Pull request · skill-library

Add generated candidate test

OpenMNMikkel Nygaardwants to mergevera/candidate-test-backend-2026-05-14intomain
generated/candidate-test-backend-2026-05-14.mdnew file
+# Candidate Test — Backend Developer
+
+## Brief
+
+Build a Laravel endpoint that accepts a webhook from a fictional payments vendor (OpenAPI spec provided), validates the signed payload, persists the event to PostgreSQL, enqueues a background job to notify the corresponding SPYN user via Pusher, and exposes an idempotent admin retry endpoint.
+
+The webhook may arrive out of order or be replayed; your design must be safe under both.
+
+## Time-box
+
+90 minutes. Submit a zip of the Laravel project plus a README explaining design decisions.
+
+## Deliverables
+
+1. The endpoint, with HTTP signature validation.
+2. Database migration and Eloquent model(s).
+3. The background job, registered with Horizon.
+4. The admin retry endpoint, idempotent.
+5. Tests covering the success path, one duplicate-event case, and one signature-failure case.
+6. README with design notes.
+
+## Scoring rubric (1–5 per category)
+
+| Category | Key risk |
+|---|---|
+| Data modelling | — |
+| Request validation | — |
+| Error handling | — |
+| Queue design | — |
+| Security | **Yes** |
+| Observability | **Yes** |
+| Code clarity | — |
+| Test coverage | — |
+
+## Pass criteria
+
+- Average ≥ 4.0, no category < 3.0, both key risks ≥ 4.0.
+
+## AI use
+
1 more lines
CI checks
  • Markdown lintpassed
  • Spell-checkpassed
  • Skill-references resolvepassed
Merge

All checks passed and all reviewers approved. You can merge whenever you're ready.