Identity, Authorization, and Least Privilege › Worked example: one action, several verdicts
Language AI HandbookAll chapters Consider an invented user and summary worker that both belong to the orchard workspace. The worker has read authority for one draft for fifteen minutes. The first request arrives 100 seconds after the grant begins. The grant's issue tick is 1,000, its expiry tick is 1,900, and the first request uses tick 1,100. The difference between issuance and expiry is 900 seconds, or fifteen minutes. Integer ticks keep the issue and expiry boundaries easy to check.
The unchanged request is allowed. At tick 1,900 it is expired. Before tick 1,000 it is outside the grant's interval. The same clock value produces a revocation decision when the grant record is marked withdrawn. The other workspace is denied even when it happens to contain a draft with the same identifier. A second draft in the permitted workspace is denied when it falls outside the grant.
Changing a read proposal to a review-state operation also changes which scope the service requires. For a task where that effect is explicitly authorized, a valid approval for the effect can move a StepUp decision to Allow. An approval for a different draft does not cover the requested effect. The fixture treats these as separate scenarios because they answer different questions about a single decision.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!