Perceiver, Reasoner, Verifier Teams

A multimodal team splits seeing from judging. A perceiver looks at the full image on the device; a reasoner, usually a cloud model, judges from the regions it found and a redacted crop; a verifier, by default on another provider, re-checks the reasoner's claim against the pixels. When the reasoner and the verifier disagree, a person decides, with both opinions and the image on one card. This page implements spec 3.7 §7.12 and the generic part of the §7.14 verification loop (spec).

[dependencies]
adk-vision = { version = "3.0.0", features = ["team"] }

Note: images reach a remote role only through the egress gate, under the rules of .adk/vision.toml; with none they leave as they are, and ask, deny and redact each restrict once chosen (spec 3.7 Q1, revised 2026-11-25). Under redact = ["faces"], faces are filled by the YuNet face detector, and a person it finds no face for whole (Q3).

The Three Roles

RoleModelToolsSeesConstruction refuses
PerceiverOn the device, or noneA VisionToolset whose runtime has only on-device backends, and tools that declare no network useFull images on the deviceA model whose data_locality() is Remote; a runtime with a remote backend; a tool that declares anything but ToolEgress::None; a vision tool given loose, whose runtime cannot be checked
ReasonerAny; usually a cloud modelNoneA RegionSet, measurements, and crops the egress gate releasedA remote model without an egress gate
VerifierAny; by default another provider than the reasoner'sLocal perception: a runtime of on-device backendsThe claim, its regions, the source image on the deviceA runtime with a remote backend; a remote model without an egress gate

What each role may hold is enforced where it is built, not documented:

  • The perceiver holds nothing that leaves the device. Perceiver::builder(..).build() refuses every tool, model and backend in the table. Each tool it keeps is wrapped in LocalOnlyTool, which refuses a call whose declared egress is not ToolEgress::None before the tool runs, so a tool whose network use depends on its arguments cannot be steered off the device either.
  • The reasoner never receives an unredacted image. Every crop goes through the egress gate: cropped to the region and a 16 px margin, redacted, decided under the egress rules and recorded as vision.egress.released. The request is then screened by an ImagePrivacyGuardrail on the same gate, so an image that did not pass it is released or replaced by a placeholder. The reasoner's agent form accepts only digests the gate released.
  • The verifier checks against the pixels. Its on-device detector looks for the claimed class, and the best overlap with the claimed region confirms or rejects the claim. Without a model, that check decides; with one, the model sees the claim, the check and a released crop, and decides.

A Team on One Image

VisionTeam runs the roles over one image:

Perceiver scoreWhat happens
At or above the confident boundReported as the positive verdict (FindingSource::Perceiver)
In the ambiguous range, [0.25, 0.75) by defaultA redacted crop goes to the reasoner; the verifier re-checks its claim
Below the rangeIgnored

When the reasoner and the verifier agree, the finding is theirs (FindingSource::Agreed). When they disagree, the team holds one governed call, vision_team_disagreement, through adk_core::authorize_tool_call:

Part of the cardContent
ArgumentsThe question, the frame's digest, the region, the reasoner's and the verifier's opinions (verdict, confidence, rationale, provider), the crop's egress digest, and what approving and denying mean
EvidenceThe frame, stored as an artifact, with the claimed region and what the verifier found drawn over it; the crop the reasoner saw, after redaction
ApproveAccepts the reasoner's verdict
DenyKeeps the verifier's verdict

The run ends on that one card, and every surface draws it as an approve-with-image card. The opinions are kept in session state while the card waits, so the resumed run asks the same call, the person's decision applies, and the reasoner is not asked again (FindingSource::Person). A crop whose egress rule asks is held first as vision_team_release, with the exact crop that would leave.

use std::sync::Arc;

use adk_vision::team::{Perceiver, Reasoner, Verifier, VisionTeam};

let perceiver = Perceiver::builder("perceiver").runtime(local_detector).build()?;
let reasoner = Reasoner::builder("reasoner")
    .model(claude)                       // claude-haiku-5-5
    .egress_gate(gate.clone())
    .hosts(["api.anthropic.com"])
    .build()?;
let verifier = Verifier::builder("verifier")
    .runtime(strict_local_detector)
    .model(nemotron)                     // nvidia/nemotron-3.5-super-vl-120b-a12b
    .provider("nvidia")
    .egress_gate(gate)
    .hosts(["integrate.api.nvidia.com"])
    .build()?;
let team = VisionTeam::builder("inspector")
    .perceiver(perceiver)
    .reasoner(reasoner)
    .verifier(verifier)
    .question("Is the mark a surface defect, or only a print artefact?")
    .verdicts("defect", "no_defect")
    .classes(["scratch"])
    .media_store(store)
    .build()?;
// Run it as any agent: the request names the image, by artifact name or digest.
// {"image": "part-0042.png"}

The Provider Default

VisionTeamBuilder::build refuses a verifier on the reasoner's provider, so the check is independent. The default is not a rule: allow_same_provider() lifts it. A provider is the vendor a model id names (claude-* is anthropic), the label given with provider(..), or, for an id no vendor claims, the id itself; a verifier without a model is local.

The Portable Team Template

adk_agent::TeamArchitectureTemplate::PerceiveReasonVerify lowers the same roles to a TeamSpec for an LLM-directed coordinator. Each member carries its role's capability, and each coordinator edge is isolated with no history and the role's input schema:

MemberCapabilityEdge inputEdge output
Perceivervision.perceive.localperceiver_input_schema(): an image and what to look forRegions
Reasonervision.reason.releasedreasoner_input_schema(): question, RegionSet, measurements, released crop digests — no field can carry pixelsopinion_schema()
Verifiervision.verify.pixelsverifier_input_schema(): claim, image digest, regionsopinion_schema()

Perceiver, Reasoner and Verifier are Agents and bind to those members.

In the Harness

With the vision pack, adk-harness has the three roles as member presets (Harness Team):

PresetKindToolsBuild refuses
MemberSpec::perceiver(model)MemberKind::PerceiverMemberTools::LocalPerception: the read tools and the pack's tools whose default backend is on the deviceA remote model; Full or Custom tools; any extra tool that declares network use
MemberSpec::reasoner(model)LocalNone; answers an opinion—
MemberSpec::verifier(model)LocalMemberTools::LocalPerceptionAny extra tool that declares network use

Every local member whose model is remote gets the pack's privacy guardrail, so a reasoner on Claude sees only images the gate released.

The Verifier Loop

After an action or a claim, VerifierLoop compares a fresh observation with the one before it, region by region:

StepWhat happens
ObserveThe Observer takes the observation before the action
ActThe VerifiedAction acts and returns its ExpectedChange: regions that should appear or disappear
Checkcheck_change pairs regions of the same label by overlap; the check passes when every expected change happened and nothing else changed
Re-groundA failed check goes back to the action once, with the report, to ground its target again and act again
HoldA second failure returns LoopOutcome::Held; VerificationHold::governed_call is one vision_verification_failed call with both failed checks and the frames before and after as evidence
use adk_vision::{LoopOutcome, VerifierLoop};

match VerifierLoop::new(screen_observer).run(&cx, &click_save).await? {
    LoopOutcome::Verified { attempts, .. } => tracing::info!(attempts, "verified"),
    LoopOutcome::Held(hold) => {
        adk_core::authorize_tool_call(&gate, hold.governed_call("verify-1")).await?;
    }
    _ => {}
}

Verification

ProofWhere
A perceiver given a remote-destination or undeclared tool, a remote model, a remote backend or a loose vision tool is refused at constructionadk-vision/tests/team_tests.rs
A perceiver call whose arguments would leave the device is refused when it runsteam_tests.rs
The bytes the recording reasoner received are the gate's released crop, 92×52, with the face filled, never the frameteam_tests.rs
A seeded disagreement raises exactly one card with both opinions, the frame's digest and the crop's; approval resolves it without a second cardteam_tests.rs
Under an ask rule the crop is held first with the staged redacted image, and after approval the reasoner receives exactly that digestteam_tests.rs
A harness perceiver on a remote model or with a remote tool does not buildadk-harness/tests/pack_vision_team_tests.rs
Live: claude-haiku-5-5 reasoner and NVIDIA NIM nemotron-3.5-super-vl verifier on a generated part with an ambiguous markadk-vision/tests/team_live_tests.rs (#[ignore], needs ANTHROPIC_API_KEY, NVIDIA_API_KEY)
Scenario S15: the Inspector's detector as the perceiver on a conveyor frame, Claude and NIM through their real clients, YuNet screening each crop; one card, resolved on the resumed run, bound to the frame's and the crop's digests in the audit recordsexamples/vision (s15_perceiver_reasoner_verifier), run by the PR tier's vision-scenarios job; the scenarios
Perceiver, Reasoner, Verifier Teams - ADK-Rust दस्तावेज़ीकरण | ADK-Rust