Skip to content

feat(adagents)!: report unchecked cross-domain claims in undetermined - #1951

Merged
bokelley merged 4 commits into
nextfrom
claude/issue-1883-cross-domain-undetermined
Nov 26, 2026
Merged

bokelley merged 4 commits into
nextfrom
claude/issue-1883-cross-domain-undetermined

Conversation

@bokelley

@bokelley bokelley commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

verify_cross_domain_properties (new in the 10.0 betas, #1711) put claims it could not check (fetch_failed, domain_limit) in CrossDomainVerification.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 to unverified, although nearly every site that was actually checked was vouched for.

This settles the result shape before rc1.

List Meaning reason
verified On the source domain, or every named publisher vouched —
unverified A named publisher's file loaded and does not authorize the claim, or the claim names no usable hostname not_vouched, invalid_domain
undetermined (new) Not checked: a file did not load, or the max_domains budget ran out fetch_failed, domain_limit
domainless Names no domain —
  • Every 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.md describe the pattern:

    • run the check outside the sync path;
    • cache documents by domain through fetcher=;
    • treat domain_limit as "not checked yet";
    • call with slices whose claims name at most max_domains distinct publishers;
    • retry fetch_failed claims on their own schedule.

    The budget takes the first domains named on every call, cached or not. Resubmitting the undetermined claims 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=True is 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 with verify_cross_domain_properties and keeps any property carrying a bundle, store or venue identifier unconfirmed. 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. undetermined is the last field, after domainless.

Not in this PR (left on #1883)

  • Request 3b: a gated resolve that returns the excluded properties with reasons. That would be additive, e.g. a separate function, so it can land in 10.1 without a break.
  • Request 4: keeping a site-plus-app property under the permissive gate and treating the bundle ID as undetermined. That loosens a security gate, and per-identifier status would itself be a new shape, so it needs its own decision. verify_cross_domain_properties already treats such a property on the source domain as the source's own claim.

Breaking change

Code that read fetch_failed or domain_limit from unverified now reads undetermined. There's a migration row in MIGRATION_v9_to_v10.md. The shape only existed in 10.0 betas.

Tests

tests/test_adagents_publisher_domain.py:

  • the 7 cases that read the old bucket now assert the new one, and are stricter;
  • new cases:
    • every input lands in exactly one list, in input order;
    • refusal-over-failure precedence, in both domain orders;
    • the documented gate-difference recipe keeps a site-plus-app property unconfirmed;
    • positional construction;
    • both budget-restart cases;
    • the first undetermined domain is the one reported;
    • disjoint single-domain claims progress when resubmitted;
    • undetermined defaults 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

bokelley and others added 2 commits November 24, 2026 12:51
`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>

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

bokelley and others added 2 commits November 24, 2026 13:23
…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>

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@bokelley
bokelley merged commit 47ec1ea into next Nov 26, 2026
77 of 78 checks passed
@bokelley
bokelley deleted the claude/issue-1883-cross-domain-undetermined branch November 26, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant