← Back to all Flat Fee outputs

Read-only local campaign artifact

fix-reproduction-and-instruction.md

direct-agentic-coding-wave-10/artifacts/fix-reproduction-and-instruction.md

# Fix skill evidence

## Reproduction

Command: `npm run fix-test`

Observed failure: `AssertionError [ERR_ASSERTION]: undefined !== 240` at `tests/lead-intake.test.js:8`.

## Five-element fix instruction

1. **File:** `toy-app/src/lead-intake.js`
2. **Function:** `createBooking`
3. **Wrong behavior:** it reads `service.minutes`, but the supplied service contract uses `service.estimatedMinutes`, so the booking loses its duration.
4. **Correct behavior:** a service whose `estimatedMinutes` is 240 creates a booking with `estimatedMinutes` equal to 240 and a matching summary.
5. **Fix approach:** replace the one incorrect property access, then rerun the same failing command.

Scope note: the change is isolated to the toy app and creates no client-site or external-system change.