Skip to content

Clarify entity-source discovery requirements for ADR 0098 #8421

Closed

Description

@ifireball

Problem

ADR 0098 says entity sources enumerate candidate identities, resolve each candidate to a current normalized representation, and may share compatible provider reads. It requires a versioned query-planning protocol before entity-first execution is enabled. Loading every field and every activity record for every candidate before testing harness CEL predicates is impractical. We do not yet have enough detail about source declarations, first-slice scope, or read bounds to choose an acquisition strategy responsibly.

Here, “query planning” means deciding which provider reads discover and resolve candidates, which fields are needed for evaluation, and how completeness is proved. It does not define the logical normalized entity or its CEL field names; those and the partial-data semantics are tracked in #8420.

Questions to resolve

  • Which scheduled-discovery use cases and entity kinds are in the first supported slice? What can a harness declare as an entity source?
  • What provider capabilities are needed to enumerate identities and resolve current state and activity? Treat GraphQL as one possible provider mechanism, not the cross-forge contract.
  • Compare on-demand field loading during CEL evaluation, static analysis of CEL field dependencies followed by planned provider reads, and a hybrid. How do dynamic access, short-circuiting, nested collections, caching, and errors affect each approach?
  • Which bounds, pagination, deduplication, and completeness guarantees prevent a partial result from looking empty? What partial acquisition state must Go representations preserve?
  • Which data must be fetched independent of CEL field use? ADR 0098 requires complete enumeration of the platform-defined action-indicating categories and current-permission filtering for each candidate harness before CEL evaluation.
  • Which remaining choices need a follow-up ADR, and which belong in the later versioned normative discovery/query protocol?

Completion criteria

  • Record first-slice scenarios, provider capabilities, safety invariants, option trade-offs, and unresolved choices with links to the relevant ADRs and contracts. Do not silently choose an implementation in a requirements record.
  • Prepare or file a scoped follow-up ADR for the acquisition strategy if the options require an architectural choice; decide it before implementing field acquisition. Then file the normative discovery/query protocol issue once its requirements are concrete.
  • Keep the normalized-entity schema and CEL-visible field contract in Specify normalized entity v1 for ADR 0098 #8420. No provider query implementation is part of this issue.

Activity

  1. fullsend-ai-triage commented on Oct 14, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 11:50 AM UTC · Completed 11:52 AM UTC

    Commit: 9f18857 · View workflow run →

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

  2. fullsend-ai-triage commented on Oct 14, 2026

    @fullsend-ai-triage

    Re-triage found no change to the earlier assessment: the issue is still clear and ready for implementation.

    Status checks

    Suggested approach
    The deliverable is a requirements record. Each question in the issue gets a section, or is listed explicitly as an unresolved choice, and no implementation is chosen silently. Fail-closed handling of incomplete enumeration, missing actor provenance, and unverifiable authorization should be called out as safety invariants. Filing the follow-up ADR and the normative protocol issue is left to maintainers once the requirements are concrete.

    Proposed verification

    Each question in the issue has a section in the document or an entry under "unresolved".
    Links to ADR 0098, Authorization Contract v1, ADR 0133, entity-context-snapshot v1,
    #8420 and #8418 resolve. Incomplete-enumeration, unbounded-activity and
    missing-authorization cases are each classified as unsupported or fail-closed.
    make lint passes on the staged changes.
    

    This does not require workflow file changes.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
    Previous run

    This issue is clear and self-contained, so no clarification is needed. The open questions are architectural, and the repository context (ADR 0098, Authorization Contract v1, ADR 0133, entity-context-snapshot v1) is enough to start drafting the requirements record.

    Related work checked

    Suggested approach
    The deliverable is a requirements record covering the five questions, with unresolved choices listed explicitly rather than decided by the implementer. Fail-closed handling of incomplete enumeration, missing actor provenance, and unverifiable authorization should be called out as safety invariants. Filing the follow-up issue for the normative discovery/query protocol is left to maintainers once the requirements are concrete.

    Proposed verification

    For each of the five questions in the issue: the document has a section that answers it
    or lists it under "unresolved". Links to ADR 0098, Authorization Contract v1, ADR 0133,
    entity-context-snapshot v1, #8420 and #8418 resolve. Incomplete-enumeration, unbounded-activity
    and missing-authorization cases are each classified as unsupported or fail-closed.
    make lint passes on the staged changes.
    

    This does not require workflow file changes.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  3. fullsend-ai-coder commented on Oct 14, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 11:54 AM UTC · Completed 11:56 AM UTC

    Commit: 9f18857 · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $0.29

  4. fullsend-ai-triage commented on Oct 14, 2026

    @fullsend-ai-triage

    🤖 Triage · ❌ Terminated · Started 11:55 AM UTC · Ended 11:56 AM UTC

    Commit: 9f18857 · View workflow run →

  5. removed
    ready-to-code
    on Oct 14, 2026
  6. fullsend-ai-coder commented on Oct 14, 2026

    @fullsend-ai-coder
    Contributor

    ℹ️ No PR created — agent determined no changes needed

    The code agent ran and evaluated issue #8421, but did not produce changes to submit as a pull request.

    Reason: Agent did not create a feature branch (current: 'main')

    Workflow run: https://github.com/fullsend-ai/fullsend/actions/runs/38559666002

    Retry with /fs-code if appropriate.

  7. added
    ready-to-code
    on Oct 14, 2026
  8. fullsend-ai-triage commented on Oct 14, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 11:55 AM UTC · Completed 11:56 AM UTC

    Commit: 9f18857 · View workflow run →

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

  9. fullsend-ai-coder commented on Oct 14, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 11:58 AM UTC · Completed 12:07 PM UTC

    Commit: 9f18857 · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $2.72

  10. ifireball commented on Oct 19, 2026

    @ifireball
    MemberAuthor

    /fs-code all remaining work for this issue

  11. fullsend-ai-coder commented on Oct 19, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 11:26 AM UTC · Completed 11:32 AM UTC

    Commit: ef27fcf · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $1.64

  12. added a commit that references this issue on Nov 5, 2026
  13. ascerra commented on Nov 15, 2026

    @ascerra
    Contributor

    I'd like to put one more scenario forward for the first slice. It comes from vulnerability work on Jira, and it's the case I added to the validation criteria on #9454 (comment). This issue is where the first slice gets decided, so I'm adding it here too.

    Unassessed tracker. Automation files a Jira ticket for a vulnerability on one release branch, and no person touches it. The agent should run once, and not again once its result is on the ticket.

    In the shape of the scenario table in #8559, it would be this.

    # Scenario Entity kind What the predicate needs Acquisition pressure
    S5 Unassessed tracker filed by automation Jira work item Issue type and labels, plus the agent's own result on the ticket as handled-state evidence State only. No description or comment text is needed to decide.

    Why it belongs in the first slice

    • Nothing else starts it. The Jira poller ignores changes made by its own account, and a label set while the ticket is being created isn't recorded as a label change. ADR 0172 (docs(#9389): ADR 0172, let bot-added labels start agents on Jira #9390) covers a label added later, but not this.
    • It's state-only like S3, but a miss means a vulnerability nobody assessed. So it needs the completeness guarantees the draft asks for S1 and S2.
    • The predicate doesn't read free text. That matters here because the tracker text shouldn't reach a model before the agent's pre-script checks that the vulnerability is public (Triage should skip work items that belong to the cve agent agents#1967).
    • Jira is already mapped in normalized entity v1, including issue type, labels and label applications. Since v0.56 a trigger can read the issue type on the event side too (feat(jira): expose issue type to CEL triggers #9370).
    • The agent's own account writes the handled-state evidence. The predicate has to be able to see it, or the ticket looks unassessed forever. ADR 0098 gives an existing triage comment as an example of this kind of evidence, so I think it fits.

    If the first slice ends up forge-only, I'd name a Jira follow-up for this case next to it, because until then each of these runs needs a person, or a label added after the ticket exists.

    Related work is the one-ticket-per-branch design in #9266 and the assessment agent in #9309, both drafts.

  14. ifireball commented on Nov 16, 2026

    @ifireball
    MemberAuthor

    Closing this issue as obsolete. A separate requirements record and acquisition-strategy ADR are not needed: acquisition follows accepted ADRs 0147 and 0149, and first-slice provider/kind scope belongs in implementation planning, including the Jira S5 scenario raised here. The normalized-entity and actor caches are already implemented (#9276 and #9271). The versioned discovery/query protocol remains a completion criterion on parent #8418; this issue is not needed to track that work.

  15. added a commit that references this issue on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationready-to-code

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions