Software engineering · Synthetic sample
Stabilize a failing event processor
Score breakdown
Expand to see whyProblem diagnosis5.0/5
Reproduces duplicate delivery before changing the write boundary.
Solution quality4.0/5
Makes writes idempotent. Concurrent behavior still needs verification.
Task verification5.0/5
Adds a regression test and passes all eight supplied checks.
Operational handoff3.0/5
Identifies the monitoring question but leaves alert thresholds unspecified.
How to read these scores
1 = major gaps · 3 = partially meets · 5 = fully meets. This example weights all four criteria equally.
These scores and excerpts are illustrative, not a live evaluation or a hiring recommendation. In the product, evaluations score submitted work against the configured criteria; missing evidence is identified separately.
Candidate outcome
Fixed the duplicate write; 8 of 8 task checks passed.
Delivered An idempotent write, a regression test, and a handoff note. [01][02][04]
Demonstrated strengths
Work risks
- Production alert thresholds are still unspecified. [04]
Competency evidence
Verifies the fix against regressions
Strong evidence
Explains operational trade-offs
Partial evidence
Supporting sources
Fictional excerpts and check results. Open a source to inspect its support and limits.
[01] Reproduce the duplicate write.
Regression test · Illustrative excerpt
tests/test_event_processor.py
deliver(event_id="evt-014") deliver(event_id="evt-014") assert count_rows(event_id="evt-014") == 1 # Before the fix: expected 1 row; found 2.- What it supports
- The test expresses the failure as an observable result: delivering the same event twice must create only one record.
- What remains open
- This excerpt covers repeated delivery. It does not establish behavior under every concurrent workload.
[02] Make retries safe at the write boundary.
Change excerpt · Illustrative excerpt
event_processor.py · pseudocode diff
- retry(() => insert(payload)) + retry(() => insert_once(event.id, payload)) # insert_once uses a unique event ID at persistence.- What it supports
- The change places duplicate protection where the record is written, so a retry can reuse the same event identity.
- What remains open
- This simplified excerpt illustrates the approach. A reviewer would inspect the full implementation and transaction behavior.
[03] Verify the change against the task checks.
Check results · Illustrative excerpt
Task check summary · illustrative output
PASS duplicate delivery PASS retry after timeout PASS valid event PASS invalid payload PASS empty batch PASS ordered batch PASS persistence failure PASS existing behavior 8 / 8 passed- What it supports
- The sample distinguishes the reproduced failure from the other task checks, making the scope of verification visible.
- What remains open
- Passing these checks supports the scoped task. It does not establish production readiness or overall job performance.
[04] Resolve the open question with targeted follow-up.
Handoff note · Illustrative excerpt
Candidate explanation · illustrative excerpt
“I bounded retries to avoid an endless loop. I would monitor retry volume after deployment.” Not specified: alert threshold or escalation condition.- What it supports
- The explanation identifies an operational concern, but gives the reviewer insufficient evidence about the monitoring decision.
- What remains open
- Missing detail is a follow-up question. It is not proof that the candidate cannot make the decision.
