ErrorsPersonal data · rule
data.personal_into_unmarked
Code sends personal data into a field a package labels personal: none, which says the field never holds any.
Area 15, Personal data; declinable; the next step is usually the human's.
Why Jadpo refuses it
A provider package labels every field it sends: a category where the field
holds personal data or may, and personal: none where it never does. A
provider treats what a none field holds as never being personal data, so
it may keep it, log it or show it without the care personal data needs, and
erasing someone there may not reach it. So an app can't give one personal
data: a field marked personal:, or a value of a standard type that is
personal data whatever holds it, such as an Email, however the value got
there. What only decided the value, such as a test of a person's name, isn't
sent in it and isn't refused.
The app may know the provider better than its package says, so you can decline it with a reason, which the personal-data report lists beside the connection.
What it looks like
A user's email address is sent as a charge's reference, which Tidepay's
package labels personal: none:
shared/providers/tidepay/v1/types/charge_request.jadpo:
/// A charge to make.public type ChargeRequest = Object { amount: Money { personal: none } reference: Text { personal: none }}
domains/billing/actions/charge.jadpo:
use app { pay }use billing/entities { User, UserNotFound }use shared/providers/tidepay/// Charges a user.action charge(user_id: User.id) fails UserNotFound -> Tidepay.Charge { var user: User = attempt User.get(user_id) return pay.charges.create( Tidepay.ChargeRequest { amount: money.from_minor(1000, Currency.gbp) reference: text.from(user.email) } )}
error User.email is sent into ChargeRequest.reference, which Tidepay labels personal: none
--> domains/billing/actions/charge.jadpo:11:24
|11 | reference: text.from(user.email) | ^^^^^^^^^^^^^^^^^^^^^ personal data into `reference`, sent to https://api.tidepay.example
- reason
Tidepay'scharges.createsendsreferenceto https://api.tidepay.example, and the package labels itpersonal: none: the provider treats what it holds as never being personal data, so it may keep, log or show it without the care personal data needs, and erasing someone may not reach it.User.emailis personal data,PersonalData.contact.- next
- Send something that isn't personal data in
reference, or send the value through a field the package labels with a category, or writedecline data.personal_into_unmarked: "<why>"above it if this is deliberate (human) - rule
- data.
personal_ into_ unmarked - help
- https://jadpo.
dev/docs/errors/data. personal_ into_ unmarked
(human) at the end of the next: line tells your coding agent to stop and
ask you which fix you want, because the choice is yours to make.
How to fix it
Send something that isn't personal data there, such as the plan the charge is for:
return pay.charges.create( Tidepay.ChargeRequest { amount: money.from_minor(1000, Currency.gbp) reference: user.plan } )
The user's address no longer reaches Tidepay through a field it treats as never holding personal data.
If the provider treats the field as personal data whatever its package says, decline it above the action, with a reason, and tell the package's publisher:
/// Charges a user.decline data.personal_into_unmarked: "Tidepay's contract with us covers references as personal data"action charge(user_id: User.id) fails UserNotFound -> Tidepay.Charge { ...}
The address is still sent, and the personal-data report lists the action under "Sent into fields that are never personal" with your reason.
Related
Markdown for agents: /docs/errors/data.personal_into_unmarked.md.Built from Jadpo's main branch at commit 72d483f.