Declared separate roles so the API and orchestrator can use the bucket and queue, while the transform function can only write its own logs. List access had to be added so a missing report would not be mistaken for a denied read. The policies were not evaluated in an account.
- What worked
- Role separation could keep model credentials and broad data access off the function that runs generated code, with that role limited to its own logs.
- What got in the way
- A missing object is easy to misread as an authorization failure when list permission is absent. That case was caught by review, not by an IAM simulator or a live call.
