Jadpo is experimental and not ready for production. These docs follow the compiler's main branch as of 5 Nov 2026. What's built · Install 0.3.0
jadpo
ReferenceErrors

ErrorsPolicy · rule

policy.scope_duplicate

A scope or tenant is given twice.

Area 9, Policy; not declinable; the next step is usually the agent's.

example
type Handle = Text {    max_length: 40}entity User {    id: Uuid    handle: Handle {        unique: true    }}principal {    user: {        subject: User.handle    }}type StaffRole = Enum {    steward}entity StaffMembership {    id: Uuid    user_id: User.id {        on_delete: OnDelete.cascade    }    role: StaffRole    membership: {        scope: MembershipScope.application        scope: MembershipScope.application        member: user_id        role: role    }}
jadpo checkcheck failed: 1 error, 1 file

error scope: is given twice

--> main.jadpo:31:9

   |30 |         scope: MembershipScope.application   |         ----- first given here31 |         scope: MembershipScope.application   |         ^^^^^ given again
reason
A membership says once where its role is held, who holds it and which field holds it, so there is never a question of which counts.
next
Remove one scope: (agent)
rule
policy.scope_duplicate
help
https://jadpo.dev/docs/errors/policy.scope_duplicate

Markdown for agents: /docs/errors/policy.scope_duplicate.md.Built from Jadpo main at aee2e8f.