The unit of work is a candidate build with evidence.
The durable artifact is the evidence record tied to an exact commit. The chief hazard is a capability, entitlement, or setting that changes as a side effect of an unrelated task.
Trace a change to the store: the agent opens a pull request, CI runs the script and the gate, labelled files go to designated reviewers, the merged commit is built and signed by a human on a protected runner, the evidence record is completed, and the rollout owner watches the thresholds. Each step has one owner, and no step is the agent’s after the pull request.
Run swift test --filter ReleaseGateTests. Add a new sensitive category, such as fastlane/, in one slice: write the labelling test first, then the rule, then confirm the gate’s exit status changes for a diff that touches it.
Read labelled files first, then the code. For each labelled file, ask what the app is now allowed to do that it was not, and whether the task asked for it. A reviewer who cannot answer that question has not finished the review.
When a release has an unexpected capability, compare the entitlements and purpose strings of the archive with the approved lists, then trace the commit that added the difference. Add the missing check to the gate before fixing the release.
Confirm that no signing material is in the repository or reachable by the agent’s account, that the workflow has no secrets, and that the build the agent runs is unsigned. Confirm that observability carries no customer data and that evidence files hold references, not credentials.
Verify gates by breaking them: add an entitlement file in a scratch branch and confirm the gate exits with status 2 and a test fails. Verify evidence by completing a record and removing one field at a time.
Name the designated reviewers for each label and publish the list. Require the evidence record for every release, and store it with the release. Rehearse the stop-the-rollout step before the first rollout, not during it.
- Agents have no signing identity or store credentials.
- Sensitive files are labelled in every pull request.
- Entitlements and purpose strings are compared against approved lists.
- Every release has a complete evidence record.
- Rollout thresholds and an owner exist before release.
- Why does the classifier look only at file names?
- What does a blank evidence field tell you that a missing one does not?
- Why compare against the signed archive rather than the source?
- Who should be able to widen the list of allowed entitlements, and how?
Continue with the book
Explore the full treatment, worked examples, and exercises in Agentic iOS App Development.
Companion article for Agentic iOS App Development, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.
