Secrets, Sandboxes, and Safe Execution
Language AI HandbookAll chapters A summary worker in a shared catalog receives a request to read one document revision and produce a short draft. It needs the selected document, working memory, and a temporary destination for its result. The service also needs a way to decide who can receive that draft. If these steps share one authority, it is hard to tell which permissions actually matter. Draw the task with separate decisions before asking which isolation technology to use.
One boundary concerns the origin of credentials and protected data. A second concerns the worker's reach during execution. A third concerns the custody of results. The worker may be able to read the authorized document while holding no long-lived service credential. It can be able to save temporary state without being authorized to deliver a result. A consumer can be permitted to receive a result while still requiring an independent check of where it came from. These are multiple assertions about how the system works, and they need different tests.
Consider two deployments of the same model. In a training exercise the input is an invented note written for one reader. In a shared team workspace ownership can change while a job is queued, and a completed draft may need to stay held for review. Both deployments may require the same writing quality. They have different policy and storage constraints. The rest of this chapter treats the model as a proposed-work component. A refusal, acceptance, or completion event comes from an enforcement component outside the model.
Follow a single permitted example from input selection to execution and then release. At each boundary, name the component that can enforce the decision and the record it returns. Trace at least one nearby refused example. A static diagram is useful when paired with observations of the actual configured workflow.
The examples below use only in-process policy records and fabricated results. They do not operate any actual file, network service, identity system, or output delivery channel. Use the examples to see which policy decisions can be separate. Then design tests of the concrete enforcement mechanism your service uses.
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!