Skip to content

Acquire CEL-relevant entity data through the selected provider adapter (ADR 0147) #9583

Done
2 of 2 issues completed

Description

@fullsend-ai-triage

Parent

#8418 — Implement ADR 0098 entity-first harness evaluation

What to build

For the provider and entity kind selected by #9589, selectively acquire the normalized-entity facts and history needed to evaluate an entity CEL predicate, following ADR 0147.

Keep CEL dependency analysis provider-neutral: it identifies the logical facts and evidence needed to prove a result. The selected provider adapter owns query planning and optimization, translating those logical needs into its native API calls, filters, and pagination. Use provider-side filters only when they are sound for the predicate semantics; otherwise read a broader result and evaluate locally, or return an unknown/deferred outcome when the available evidence is insufficient.

This issue starts with a candidate entity that has already been identified. Source discovery, its query syntax, and combined discovery/routing are handled by #9199, #9586, and #9587. Actor authorization is handled by #9584; wiring the acquisition into fullsend run is handled by #9598.

Preserve independent collection coverage and source-revision consistency across reads. A known positive witness may settle a result over a partial collection when the predicate semantics permit it. Negative and aggregate results require sufficient coverage. Unsupported and failed reads must remain distinguishable from empty results.

Acceptance criteria

  • CEL dependency analysis derives provider-neutral logical data needs and proof requirements from the predicate and normalized-entity contract.
  • The selected provider adapter translates those needs into provider-native reads and uses a provider filter only when it is sound for the predicate semantics.
  • When a sound provider-side filter is unavailable, the adapter broadens the read and evaluates locally, or returns an unknown/deferred result if sufficient evidence cannot be obtained.
  • Tests show that state-only predicates do not fetch unrelated history and that only the required fact/history categories are read.
  • A known positive witness can settle a result over a partial collection when the contract permits it.
  • Incomplete evidence for a negative or aggregate result produces a retryable unknown/deferred outcome.
  • Tests cover provider-specific limits, unsupported reads, failed reads, pagination/coverage, and source-revision consistency so these cases cannot be mistaken for empty results.

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

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.08

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

    @fullsend-ai-triage
    Author

    This issue depends on the CEL entity/event binding work tracked in #9582, which is still open and has no linked PR. The acquisition plan is derived from the CEL dependencies of a harness predicate, so it needs the entity-bound (and nullable-event) CEL environment to exist first. The other contracts this issue builds on (normalized entity v1, actor/entity caches, entity-context-snapshot) are already closed.

    Once #9582 lands, this issue can be re-triaged and picked up. The scope and acceptance criteria (plan derivation, positive-witness short circuit over partial collections, deferred outcomes for incomplete negative/aggregate evidence, and unsupported or failed reads) look clear enough to start from at that point.

    Blocked by:

  5. added
    ready-for-agent
    and removed
    blocked
    ready-for-triage
    on Nov 17, 2026
  6. 51 remaining items

  7. added
    blocked
    and removed
    feature
    triaged
    on Nov 27, 2026
  8. fullsend-ai-triage commented on Nov 27, 2026

    @fullsend-ai-triage
    Author

    Remaining-work check after the earlier code runs: no open PR addresses this issue, and the merged work (engine, GitHub adapter, collections, closing actor) appears to cover the core of the acceptance criteria for GitHub. That covers plan derivation, selective reads, positive-witness short-circuit, retryable deferral for incomplete negative or aggregate evidence, and unsupported or failed reads that are not mistaken for empty results. The adapter also applies no narrowing filter, so none is unsound.

    The remaining gaps are fact groups the GitHub adapter still returns as unsupported. They cannot be finished in a single further code run, because they are independent and the first needs a new component.

    1. Entity text (title, body, comment and review text, command tokens). These need the versioned content-safety pipeline from the normalized-entity contract. The contract defines it, but no implementation was found in the repository, so this is the larger piece.
    2. change_proposal.approval.gate. This needs review decisions and branch rules mapped at the base revision. It is separate from text handling.

    Proposed follow-up child issues, one for each of the two above, are listed below. Once they land, this issue should be ready to close.

    Two items are not proposed as code work:

    • Pull request threads and checks (GitHub exposes no immutable creation time) and work_item.issue_type (the contract maps it as unsupported) stay unsupported. That is the fail-closed outcome the criteria call for, so it can be recorded as the accepted final state.
    • The earlier PR could not check against the live GitHub API that a close event's time equals the entity's close time, or that merging records a close event. If either is wrong, the closer simply stays unknown, so this is a low-risk check to do during final verification rather than a separate issue.

    A maintainer should confirm whether the content-safety pipeline deserves its own prerequisite issue or belongs inside the first child.

    Blocked by:

  9. added 2 commits that reference this issue on Nov 27, 2026
  10. ifireball commented on Nov 30, 2026

    @ifireball
    Member

    /fs-triage is this issue finallt done now?

  11. fullsend-ai-triage commented on Nov 30, 2026

    @fullsend-ai-triage
    Author

    🤖 Finished Triage · ✅ Success · Started 1:01 PM UTC · Completed 1:03 PM UTC

    Commit: cca0379 · View workflow run →

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

  12. added and removed
    blocked
    on Nov 30, 2026
  13. fullsend-ai-triage commented on Nov 30, 2026

    @fullsend-ai-triage
    Author

    Yes, this issue is done. Triage checked the remaining work rather than relying on the earlier summary.

    What was verified

    Accepted final state, not open work

    Residual low-risk check: the live-API behavior noted earlier (that a close event's time matches the entity's close time) was not verified against GitHub. If it is wrong, the closer reads as unknown rather than wrong, so this can be confirmed during normal use. File a follow-up if it turns out to be an issue.

    Closing as completed. The parent, #8418, stays open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

completedready-for-agent

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions