Ether Solutions

Junior Exercise 2 - Bug Story From a Failing Example

This page is generated from the published markdown artifact and keeps navigation inside the site where possible.

Search the site

Client-side search across published titles and page content. No server required.

Type two or more characters to search the published package.

Rating

Purpose

Practice using AI to generate and compare debugging hypotheses while still grounding the investigation in concrete evidence.

Scenario

A loyalty-points service is crediting points for returned items when it should be subtracting them.

Known failing examples:

Pseudocode:

if event.type == "purchase":
  points = event.amount
else:
  points = abs(event.amount)

Task

Use AI to propose likely bug explanations and a minimal fix.

Then decide what you would verify before trusting the fix.

Expected output

Good AI uses

Verification focus

Anti-patterns to watch

Debrief prompts