nrml
Data IntegrityFree problem

Allocate Capped Proportional Credits

Repair integer credit allocation so capped recipients, remainder ties, and exact totals agree.

The scenario

Repair integer credit allocation so capped recipients, remainder ties, and exact totals agree.

A failure to reason about

Use a small data integrity scenario to compare the current behavior with the intended service behavior.

Illustrative context for the topic. The exercise’s full requirements arrive in the workspace.

Questions to bring to your review

  • Which caller makes the reported behavior visible?
  • What focused regression would distinguish the current behavior from the requirement?
  • What existing behavior must remain intact after the change?

Skills you will practice

  • Integer apportionment
  • Capacity constraints
  • Deterministic ties
  • Exact arithmetic

Read the existing code, reproduce the reported behavior, review proposed changes, and verify your final implementation. You can use AI assistance while staying responsible for the result.

Prepare with a worked example

See how nrml evaluates an attempt, including the limits of automated evidence.