Repository navigation
feat(adagents)!: report unchecked cross-domain claims in undetermined - #1951
Conversation
`verify_cross_domain_properties` put claims it could not check (`fetch_failed`, `domain_limit`) in `unverified` next to claims a publisher refused (`not_vouched`, `invalid_domain`), and documented `unverified` as "claims to drop". Against a network file naming ~6,750 publishers, a 50-domain budget sent almost all of them to `unverified` even though nearly every site checked was vouched for. `CrossDomainVerification` gains `undetermined` for `fetch_failed` and `domain_limit`; `unverified` keeps `not_vouched` and `invalid_domain`. A property that one publisher refuses stays `unverified` even when another publisher's file failed to load. The docstrings no longer tell callers to drop anything, document how to continue a budgeted check across calls, and make `allow_any_domain=True` a supported way to see what the permissive gate excludes (resolve both ways and take the difference). BREAKING CHANGE: code that read `fetch_failed` or `domain_limit` from `CrossDomainVerification.unverified` reads `undetermined`. The result shape is new in the 10.0 betas. Part of #1883 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Part of #1883 Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve.
Clean, well-scoped fix. Splits verify_cross_domain_properties results so unchecked claims (fetch_failed, domain_limit) land in a new undetermined list while unverified keeps refusals (not_vouched, invalid_domain). The _failure rewrite (src/adcp/adagents.py:2645-2683) correctly implements refusal-over-failure precedence and first-undetermined-in-input-order, verified against the new tests across both domain orderings and split-budget cases.
Semver signal is correctly in place for this breaking change: feat(adagents)!: prefix + BREAKING CHANGE: footer + migration row in MIGRATION_v9_to_v10.md (shape is beta-only). CrossDomainVerification is an SDK result dataclass rather than a wire model, so DR-0032/0033 translation and the AGENTS.md handler-table rules do not apply.
No blocking or medium findings. high_risk is false, gated_paths is false, no author team gate. Falls through to row 9 — approve.
…he budget guidance Review of #1951: - The allow_any_domain difference recipe could present a site-plus-app property the permissive gate refused as verified, since the cross-domain check vouches for domain claims only. The recipe now checks domain-only properties and keeps the rest unconfirmed, and both docstrings say the check does not vouch for bundle, store or venue identifiers. - Passing undetermined claims back is not a general continuation: the budget takes the first domains named on every call, cached or not. The guidance now says so and describes slicing claims to the budget and retrying fetch failures separately. - `undetermined` moves after `domainless` so positional construction of CrossDomainVerification keeps its meaning. Part of #1883 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…estarts Part of #1883 Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve.
Clean pass with no critical, high, or medium findings. The diff splits CrossDomainVerification into verified/unverified/undetermined/domainless lists: unchecked claims (fetch_failed, domain_limit) land in the new undetermined list, while refusals (not_vouched, invalid_domain) stay in unverified. _failure (renamed from _first_failure, adagents.py:2665) still fails closed — a refusal decides over any unchecked domain, else the first undetermined in input order is reported.
The breaking shape change correctly carries feat(adagents)!: plus a MIGRATION_v9_to_v10.md row, satisfying the semver-signal-on-public-surface gate. undetermined is appended last so positional construction is unchanged. Tests pin precedence, budget restart, resubmission progress, and the gate-difference recipe.
Decision: gated_paths is false; author is on no no-auto-approve team; review_decision is APPROVED; high_risk is false; no findings of any severity. Rows 1–8 do not fire, so row 9 → approve. Prior decision was also approve; this is a consistent net-clean result.
Summary
verify_cross_domain_properties(new in the 10.0 betas, #1711) put claims it could not check (fetch_failed,domain_limit) inCrossDomainVerification.unverified, next to claims a publisher refused (not_vouched,invalid_domain). Its docstring also called that list "cross-domain claims to drop". The issue ran this against a production catalog: a network file names ~6,750 publishers, and the 50-domain budget sent 6,749 of them tounverified, although nearly every site that was actually checked was vouched for.This settles the result shape before rc1.
reasonverifiedunverifiednot_vouched,invalid_domainundetermined(new)max_domainsbudget ran outfetch_failed,domain_limitdomainlessEvery input property lands in exactly one list, in input order.
Precedence: if a property names several publishers and one refuses it, the property is
unverified, even when another publisher's file failed to load. Retrying can't change a refusal. Otherwise the first undetermined domain is reported.Docstrings are neutral. The caller decides what to do with each list.
Large network files (request 5). The docstring and
docs/adagents-discovery.mddescribe the pattern:fetcher=;domain_limitas "not checked yet";max_domainsdistinct publishers;fetch_failedclaims on their own schedule.The budget takes the first domains named on every call, cached or not. Resubmitting the
undeterminedclaims is therefore not a general continuation, and the docs say so. Tests pin both stalled cases the review found. A scheduling or chunking helper can come later as an additive API.Seeing what the permissive gate excludes (request 3a).
allow_any_domain=Trueis no longer documented as "diagnostics only". The documented recipe resolves gated and ungated and takes the difference. It then checks only the domain-only excluded properties withverify_cross_domain_propertiesand keeps any property carrying a bundle, store or venue identifierunconfirmed. The cross-domain check vouches for domain claims only, which both docstrings now state, so a site-plus-app property the gate refused is never restored. A regression test covers the full recipe with that case.Positional construction keeps its meaning.
undeterminedis the last field, afterdomainless.Not in this PR (left on #1883)
verify_cross_domain_propertiesalready treats such a property on the source domain as the source's own claim.Breaking change
Code that read
fetch_failedordomain_limitfromunverifiednow readsundetermined. There's a migration row inMIGRATION_v9_to_v10.md. The shape only existed in 10.0 betas.Tests
tests/test_adagents_publisher_domain.py:undetermineddefaults to an empty, unshared list.Part of #1883
BREAKING CHANGE: CrossDomainVerification.unverified no longer holds fetch_failed or domain_limit claims; read them from the new undetermined list.
🤖 Generated with Claude Code