Writing an output file
The pupil has to hand in one worksheet of their own. The rule sheet must let them make that worksheet and replace it, and nothing else. Allowing them to replace a whole pile lets them replace sheets the exercise needs.
Nobody has written this recipe yet.
The outline below is the intended structure and is not yet written. Until it is, use the Policy Reference for the individual fields.
The situation
The exercise asks for output to be written to a named path, and the policy must permit creation and overwrite there without turning the directory into a general-purpose scratch space.
The policy fragment
The smallest security-policy.yaml addition that solves it, shown in full so it can be pasted
into an existing policy.
What this still forbids
The operations the recipe deliberately does not enable, so the boundary stays visible.
The tempting wrong version
Permitting overwrite on a directory rather than a path, which allows replacing files the exercise depends on.
Notes
- Check the recipe against both controls: the permitted operation must succeed, and the nearest forbidden neighbour must still be rejected.