Maya Chen
Grade 8 · homeroom 8A
- Math
- A-
- Science
- A
- English
- B+
Security
Decide who can see and do what.
Imagine building a school management application.
Teachers can enter grades.
Students can see their own grades.
Parents can see their children's grades.
But students shouldn't be able to change grades or see everyone else's information.
That's what Authorization is for.
Application blip
View as:
Switch roles to see how permissions change.
Gradebook · Can view and edit class grades
All students in homeroom 8A
Grade 8 · homeroom 8A
Grade 8 · homeroom 8A
Grade 8 · homeroom 8A
Grade 8 · authorized child
The system considers who is asking, which resource they want, and what they want to do. A permission check runs before the application allows or denies that action.
What could you build?
Implementation notes
Implementing it
With a coding agent
Copy this prompt, fill in the bracketed details, and paste it into your coding agent. It describes the goal, the permission rules, and the guardrails.
Bracketed text marks details only you can fill in. 821 / 6,000 characters.
Good foundation · 72/100
Traditional SDK / API
await ultrahost.authz.assert({
subject: user.id,
action: "grades:update",
resource: { type: "student-grade", studentId },
})Key takeaway
Authentication determines who someone is. Authorization determines what they’re allowed to do.
Next primitive
Session Storage for Agents