Skip to content

Implement combined entity-source discovery for the selected scope (ADR 0149) #9587

In review

Description

@fullsend-ai-triage

Parent

#8418 — Implement ADR 0098 entity-first harness evaluation

What to build

Implement the combined entity-source discovery coordinator for the selected first provider/kind scope. For each provider, tenant, repository or project, entity kind, and effective credential scope, run one compatible logical search across enabled harness sources, as required by ADR 0149.

Use the effective source selections and provider-native membership semantics defined by ADR 0079 and the entity-source configuration v1 contract. Membership may be checked remotely. A local check is appropriate only when it reproduces the provider's current semantics exactly. Deduplicate candidates by canonical entity identity and route each candidate to the harnesses whose effective source selections match.

Optimize time-to-useful-candidate under provider limits. Where provider behavior and source semantics allow, return fresher or recently updated candidates first and process candidates as pages arrive. Respect provider page/result caps and rate-limit/backoff guidance.

Each poll pass reports complete, incomplete/interrupted, failed, or unsupported. Complete-empty means the configured search plan completed and returned no candidates; an interrupted, capped, or rate-limited pass may still yield candidates but is not complete-empty. Keep unresolved-candidate retries in memory during the poll process; do not require a shared durable checkpoint or persistent candidate inventory. A later poll invocation may start a fresh scan. Provider-specific backfill, safe partitioning, or reconciliation must give older candidates recurring chances without a global catch-up deadline or permanent starvation.

This is the discovery capability consumed by fullsend poll; CLI composition and compatibility are tracked separately.

Acceptance criteria

  • Deterministic adapter tests cover combined searches, scope isolation, provider-native membership checks, candidate routing, canonical deduplication, and unsupported queries/operators.
  • Freshness-first ordering is used where supported without changing source membership semantics; candidates can be processed incrementally as pages arrive.
  • Pagination, result caps, delayed indexing, concurrent changes, and rate limits cannot make an incomplete pass look like a successful empty result. A candidate already found may proceed if its own current membership and eligibility checks pass.
  • Unresolved candidates can be retried in memory during a poll process; a new invocation starts a fresh scan without requiring shared durable retry/checkpoint state. Recurring provider-specific backfill prevents older candidates from being permanently starved.
  • Tests use the conformance cases from the normative discovery contract at docs/normative/entity-discovery/v1/README.md.

Activity

  1. added
    ready-for-triage
    on Nov 17, 2026
  2. fullsend-ai-triage commented on Nov 17, 2026

    @fullsend-ai-triage
    Author

    🤖 Finished Triage · ✅ Success · Started 9:05 AM UTC · Completed 9:07 AM UTC

    Commit: 4c81590 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.11

  3. added
    blocked
    on Nov 17, 2026
  4. fullsend-ai-triage commented on Nov 17, 2026

    @fullsend-ai-triage
    Author

    This issue is blocked by two open issues that must land first, as the description already notes:

    No open pull request currently addresses this issue. Once both prerequisites are resolved, the issue can be re-triaged. Its scope and acceptance criteria (provider-adapter conformance cases with deterministic fixtures) are already well defined.

    Blocked by:

  5. fullsend-ai-triage commented on Nov 17, 2026

    @fullsend-ai-triage
    Author

    🤖 Finished Triage · ✅ Success · Started 9:38 AM UTC · Completed 9:40 AM UTC

    Commit: 4c81590 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.05

  6. fullsend-ai-triage commented on Nov 17, 2026

    @fullsend-ai-triage
    Author

    This issue remains blocked by three items, all still open:

    No open PR addresses this issue directly. Scope and acceptance criteria are already clear, so re-triage once these land.

    Blocked by:

  7. changed the title [-]Implement combined scheduled discovery search, local routing, canonical dedup, and retry state (ADR 0149)[/-] [+]Implement combined entity-source discovery for the selected scope (ADR 0149)[/+] on Nov 17, 2026
  8. removed
    blocked
    ready-for-triage
    on Nov 17, 2026
  9. 34 remaining items

  10. added 15 commits that reference this issue on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featureready-for-agenttriaged

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions