Measuring the accepted work in an iOS agent pilot

← Back to Blog & Articles

The unit of work is a review period of a bounded pilot.

The durable artifact is the policy and the record of each period’s observation and decision. The chief hazard is a metric that rewards the wrong behavior.

Trace a period: participants run tasks within the allowed classes, scores accumulate, the owner records an observation, the policy returns stop reasons, and a decision is logged. Ownership is clear. The policy owns the boundary, the owner owns the decision, and the scores own the evidence.

Run swift test --filter RolloutAndRoutingTests. Write a policy for your own team as JSON, load it with the decoder, and fix every problem the validator reports until the list is empty. Then add an observation that should stop the pilot and confirm the reason.

Read the policy as an adversary. Which prohibited action is missing, which class would you quietly allow, which threshold could be gamed? Then read the validator and ask whether it would catch what you found.

When a pilot stalls, look at review cost first. If reviewers are saturated, the problem is volume, not the tool. When a pilot appears too good, look for gates that were set to advisory and for task classes that quietly widened.

Check that the policy’s prohibited actions match the technical controls, that approved tools are pinned, that data classes allowed in the pilot are the ones the routing policy permits, and that transcripts are retained for a stated period and no longer.

Test the policy validator with policies that are unsafe in each way. Test the stop conditions at and just below each threshold. Test that the JSON round trip preserves every field.

Hold a short review each period with the owner, a reviewer, and a security or privacy representative. Publish the decision. Rotate who reviews agent-written changes so the load and the skill are shared.

  • The pilot has an owner with the authority to stop it.
  • Two or three task classes are allowed and at least two are excluded.
  • Signing, production access, and store submission are prohibited.
  • Stop conditions are written down and checked by code.
  • Metrics measure accepted work, not activity.
  • Why must the owner be a person rather than a committee?
  • Which stop condition would you expect to fire first in your team, and why?
  • What does review cost over baseline tell you that the accepted rate does not?
  • How would you notice that a gate has been set to advisory?

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.

Scroll to Top