A diverse team examines shared project materials around a table.
Start with the shared contract: map every requirement to behavior and evidence before reviewing the diff.

Your independent review

Core time: about 6 minutes. You have already seen the review method and a worked example. Now use them on a new fictional change.

NeighborLink is a fictional community-events service. A pull request adds an endpoint for volunteer coordinators to register an attendee for an event.

Acceptance requirements

IDThe endpoint must…Evidence to seek
R1allow only an authenticated user with the volunteer_coordinator role;route guard and unauthorized-role test
R2accept valid JSON containing a syntactically valid email address;controlled parsing and invalid-input tests
R3never exceed event capacity, including under concurrent requests;database-protected invariant and concurrency test
R4reject a second registration for the same event and email;authoritative uniqueness control and duplicate test
R5return 201 when created, 400 for invalid input, 403 when unauthorized, and 409 when full or duplicated;one test per observable outcome
R6avoid logging full email addresses, credentials, or authorization tokens; andsafe logging plus an absence-of-secret check
R7test authorization, validation, duplicates, full capacity, concurrent capacity requests, and response codes.requirement-linked test set

Fictional pull-request diff

Read the diff in three regions: boundary (request and logging), state change (queries and capacity), and evidence (response and test).

+ @app.post("/api/events/<int:event_id>/registrations")
+ def register(event_id):
+     data = request.get_json()
+     attendee_email = data["email"]
+     app.logger.info(
+         f"registration email={attendee_email} "
+         f"token={request.headers.get('Authorization')}"
+     )
+
+     event = db.get_event(event_id)
+     if event.registration_count <= event.capacity:
+         existing = db.query(
+             f"SELECT * FROM registrations "
+             f"WHERE event_id={event_id} AND email='{attendee_email}'"
+         )
+         if not existing:
+             db.execute(
+                 f"INSERT INTO registrations(event_id, email) "
+                 f"VALUES ({event_id}, '{attendee_email}')"
+             )
+             event.registration_count += 1
+             db.save(event)
+
+     return {"ok": True}, 200
+
+ def test_registration():
+     response = client.post(
+         "/api/events/7/registrations",
+         json={"email": "learner@example.org"}
+     )
+     assert response.status_code == 200

Make a compact review map

Record at least four findings—one from each of the first three regions and one additional high-risk finding. For each, write:

  1. requirement or invariant;
  2. observed behavior;
  3. credible impact;
  4. classification; and
  5. smallest requested control and evidence.
Hint 1 — Boundary region

Ask who is allowed through the route, what happens when JSON or email is invalid, and whether the log records confidential values.

Hint 2 — State-change region

Check both the capacity boundary and what happens when two requests read the same state. Then inspect how input enters the queries and how duplicate prevention is enforced.

Hint 3 — Evidence region

Compare the one returned status and one happy-path test with every outcome required by R5 and R7.

Review boundary: The excerpt can reveal findings and missing evidence, but it cannot prove how unseen framework, database, or surrounding code behaves. Where behavior depends on unseen code, ask for verifiable evidence instead of inventing it.