Data exposure is minimized
The system only collects, stores, returns, and retains what is needed for its legitimate purpose.
Data minimization reduces security, privacy, and maintenance cost. Keeping only the data the system needs lowers exposure and makes compliance and deletion easier. In review, this is about how the code treats trust, privilege, secrets, and untrusted input. Strong signals are explicit trust boundaries, least privilege, safe defaults, and data handling that is minimal and auditable. Weak signals are embedded credentials, casual exposure of sensitive data, weak validation, and code paths whose security depends on convention rather than structure. The educational point is that secure design is part of normal code quality because unsafe code is inherently harder to change and reason about. For this specific symptom, the reviewer should ask whether the change makes 'Data exposure is minimized' easier to see and rely on, or whether it makes the surrounding code more ambiguous. A good detail line here should help a future reviewer explain not only what this symptom means, but also why its absence raises maintenance cost, defect risk, or review uncertainty.
Examples
Bad
function subscriptionSummary(customer):
record = customerStore.fetchAllFields(customer)
return recordGood
function subscriptionSummary(customer):
summary = customerStore.fetchFields(customer, ["plan", "renewalDate"])
return { plan: summary.plan, renewalDate: summary.renewalDate }