Policy examples
Common patterns: feedback forms, submissions and assigned tasks.
Feedback form
Anyone signed in can submit; nobody can read other people's feedback.
[
{ "action": "insert", "check": "row.by == me" },
{ "action": "select", "using": "row.by == me" }
]Graded submissions
Students see only their own submission and can edit it until it is graded; nobody can change the score.
[
{ "action": "select", "using": "row.by == me" },
{ "action": "insert", "check": "row.by == me && row[\"Score\"] == null" },
{ "action": "update", "using": "row.by == me && row[\"Score\"] == null", "columns": ["Answer", "Notes"] }
]Assigned tasks
With a person column Assignee: people see tasks assigned to them or created by them, and assignees can change only the status.
[
{ "action": "select", "using": "me in row.Assignee || row.by == me" },
{ "action": "update", "using": "me in row.Assignee", "columns": ["Status"] }
]