Skip to content

Triage should skip work items that belong to the cve agent #1967

Todo

Description

@ascerra

The default triage trigger matches any work item a person opens or edits, and that includes Jira issues when the poller is on (triage.yaml, Jira guide). A vulnerability tracker is one of those work items. If the cve agent proposed in fullsend-ai/fullsend#9309 lands, triage would also run on its trackers, and I don't think it should:

  • Triage reads the whole work item into the model. The cve agent checks that the vulnerability is public in its pre-script, before any model sees the tracker text, so triage should not get there first.
  • Triage's outcomes (labels, a triage comment, closing as duplicate or not planned) are not what a vulnerability tracker needs.

The open question: how does triage know it is a vulnerability tracker?

I don't have a good answer yet, and it decides the shape of the fix.

  • The prototype assumes the work item carries a cve label. That is a convention I picked. Nothing applies it today.
  • I have only looked at trackers from one source so far, so I can't say what labels real ones carry, or whether they carry any we could rely on.
  • For a work item, a trigger can only see labels. The event has no title and no issue type (schema), so a "more flexible" condition in the trigger is still a label condition.

Options I can see:

  1. Apply the label ourselves. Something we control marks the item before triage sees it: the step that creates per-target trackers (docs(adr): use tracker-first dispatch for multiple targets fullsend#9266), a rule on the tracker, or whoever files it. This keeps the trigger simple. It only works where we control how the item is created, and the label has to be there at creation (see "A label added later" below).
  2. Widen the label condition. Match a set of labels, or a pattern such as any label shaped like a CVE id, and let an adopter set the list. Still depends on trackers carrying some label.
  3. Check in pre-triage instead of the trigger. The pre-script runs on the host before the model. It could look at what the trigger cannot see (issue type, an id in the title, rules the adopter sets) and stop the run. This is the only option that does not depend on labels. The cost is a run that starts and then stops.
  4. Put more on the event. Add something like the work-item type to state so a trigger can test it. That is a change in Fullsend core, not here.

I lean towards 1 or 2 as the quick path with 3 behind it. Before we fix the rule I'd like to collect a few real trackers from different sources and see what they have in common.

The label version, as prototyped

trigger: >
  !("cve" in event.state.labels)
  && ( <the existing expression> )

This is the pattern fix.yaml already uses for fullsend-no-fix. The prototype branch has the change here. On Jira it covers a tracker created with the label already on it, because the poller's first opened event carries the issue's labels in state.labels.

Other things to decide

  1. When it lands. I'd ship it with the cve agent, not before. On its own it leaves matching items with no agent, and a repo that already uses a cve label would quietly lose triage on those issues.
  2. Does /fs-triage still work on such an item? The prototype blocks every path, because of the first point at the top. A person asking for triage by name is a fair case to allow, though.
  3. A label added later. With any label-based option, if the label goes on after the issue is opened, triage has already run. That may be acceptable, but it should be written down.

Also needed with this change

  • Trigger tests in harness/triggertest for the triage side: an item that should be skipped does not match, and /fs-triage on it follows whatever we decide in 2.
  • The cve trigger has the same dependency on the label, and it should also match opened when the label is already present. Jira records no "label added" entry for labels set at creation, so today such a tracker would start neither agent.

Activity

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

    @fullsend-ai-triage

    🤖 Triage · ⚠️ Cancelled · Started 5:02 PM UTC · Ended 5:03 PM UTC

    Commit: 3b40ac7 · View workflow run →

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

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 5:07 PM UTC · Completed 5:09 PM UTC

    Commit: 3b40ac7 · View workflow run →

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

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

    @fullsend-ai-triage

    Thanks for the detailed write-up. This is held until its dependencies are settled, because the issue itself says the change should ship together with the cve agent, and that agent does not exist in this repo yet (there is no cve harness here).

    Blocking work (both open drafts in fullsend-ai/fullsend):

    • The ADR proposing the cve agent. The exclusion has no purpose until that agent lands, and landing it alone would leave matching items with no agent.
    • The ADR for tracker-first dispatch, which covers the step that creates per-target trackers. That step is the likeliest place to apply a marker label at creation (your option 1).

    Design decisions to settle first (these are for maintainers, not something the reporter needs to answer):

    1. How a vulnerability tracker is identified: a label we apply, a widened label match, a pre-triage check, or a new field on the normalized event. Collecting a few real trackers from different sources, as you suggested, is the right next step.
    2. Whether /fs-triage should still work on an excluded item.
    3. Whether a label added after the item is opened is acceptable to miss, and if so, documenting it.

    Scope once unblocked: the change touches the triage trigger in harness/triage.yaml, with matching cases in harness/triggertest/trigger_test.go. The cve trigger needs the same handling of an opened event that already carries the label. No CI workflow files are involved.

    When both ADRs land and the identification approach is chosen, this should be ready to implement.

    Blocked by:

  4. ascerra commented on Nov 11, 2026

    @ascerra
    ContributorAuthor

    I tested this on a hosted setup. Notes below so whoever picks this up has them. They mostly speak to the first design decision in the triage note above (how a tracker is identified), with a little on the second.

    Setup. Fullsend v0.55.0 on a private GitLab project, with a Jira project watched by the Jira poller. Triage was this branch's harness plus a label condition, the same shape as the public example. I can't link the private runs, but the harness and every expression below are public. Nothing here was run on GitHub.

    What ran

    # Test Result
    0 Before the condition existed: a person opens a vulnerability tracker and asks for a cve run Both triage and cve started. Triage tried to close the tracker as not planned
    1 A plain ticket opened by a person Triage ran
    2 A ticket of the tracker's issue type, without the tracker labels Triage ran. The trigger cannot see the issue type
    3 The same ticket type, with the tracker labels Nothing ran. The poller processed it and dispatched nothing
    4 The account the poller signs in as adds the cve label to that tracker Nothing ran. The poller processed the change and logged 0 dispatches
    5 A person adds the same label The cve agent started

    So the condition holds in both directions (tests 1 and 3), and regular triage still works on the same repository.

    Expressions that work

    Checked with a local build of v0.55.0 and fullsend dispatch against sample Jira events. Each condition goes in front of the existing trigger. "triage" means triage would start.

    Condition Tracker with all its labels Ticket with only a CVE-… label Plain ticket
    none (stock) triage triage triage
    !("vulnerability-tracker" in event.state.labels) && !("cve" in event.state.labels) no triage triage
    !event.state.labels.exists(l, l in ["cve", "vulnerability-tracker"]) no triage triage
    !event.state.labels.exists(l, l.matches("^CVE-[0-9]{4}-[0-9]{4,}$")) no no triage
    !event.state.labels.exists(l, l.startsWith("CVE-")) no no triage

    The exclusion can also be limited to the automatic paths, so a person's /fs-triage still works on a tracker. That evaluated correctly too.

    What this says about the options above

    1. Apply the label ourselves. Works when a person, or an account other than the poller's, applies it (test 5). It does not work from the poller's own account (test 4). On Jira there is a second catch: a label set at creation is visible to triage's opened event, so the exclusion works, but it produces no "label added" event, so the cve agent does not start (guide).
    2. Widen the label condition. Works. The CVE-id pattern needs no per-team setting, as long as trackers carry the id as a label. The ones I have seen do, but they all come from one source.
    3. Check in pre-triage. Not built. The mechanism is there: a pre-script can end a run as "Skipped" with a visible status, which I saw with the cve agent's own pre-script. It can read more than a trigger only because it runs on the host and can ask the tracker itself. Nothing extra about the ticket is passed to it.
    4. Let the trigger see the ticket. This is already decided in Fullsend, and not built yet. ADR 0098 gives a harness condition an entity next to the event, and the data contract for it is published. It includes the title and the issue type, so test 2 would have had a signal. Today a trigger is still compiled with event only. The work is tracked in Implement ADR 0098 entity-first harness evaluation fullsend#8418, which is open and marked blocked. Two limits in the contract matter here: the issue type is filled in for Jira and unsupported for GitHub and GitLab, and the title is unknown when whoever last edited it is not authorized or cannot be verified.

    One more option came up: let triage run and route the tracker to the cve agent by adding the label. On Jira that fails at the poller, before any trigger is evaluated, because changes made by the poller's own account never dispatch (guide). That is deliberate, to stop loops. Routing this way would need a second account for agent output, or a way to start the cve agent from the ticket's state. It also costs a triage run per tracker ($0.41 and $0.55 in tests 1 and 2), and triage would read the ticket text before the cve agent's disclosure check.

    Where I've landed for now

    • The condition belongs in the trigger, reading the ticket through ADR 0098's entity. That starts no extra run and still knows what started it. It has to wait for Implement ADR 0098 entity-first harness evaluation fullsend#8418.
    • Until then, a check in pre-triage that ends the run as skipped. It would look for a CVE or GHSA id in the labels or the title, plus anything the adopter lists. Any one signal skips, and the reason shows on the ticket.
    • One gap in that stopgap. A pre-script has no documented way to learn what started the run, so I can't promise that a person's /fs-triage would still get through on a tracker. An earlier version of this comment said it would.
    • The label condition in the trigger stays as the cheap first layer, since a skipped run still starts a pipeline.
    • A person starts each cve run.

    Not tested yet: the pre-triage check, which is not built; the CVE-id pattern in a hosted run; anything on GitHub; and trackers from a second source.

    Edited after checking what a trigger and a pre-script can each see: option 4 and this section changed.

  5. moved this from Todo to In progress in fullsend-ai Workstreamon Nov 12, 2026
  6. eshulman2 commented on Nov 15, 2026

    @eshulman2

    fullsend-ai/fullsend#9370 is merged I think this should make this one easy to solve now

  7. ascerra commented on Nov 16, 2026

    @ascerra
    ContributorAuthor

    /fs-triage

  8. fullsend-ai-triage commented on Nov 16, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 12:37 AM UTC · Completed 12:39 AM UTC

    Commit: 0869ded · View workflow run →

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

  9. fullsend-ai-triage commented on Nov 16, 2026

    @fullsend-ai-triage

    Re-checked after the new comments and the /fs-triage request. The issue is still blocked, though the picture has improved.

    What changed: fullsend PR 9370 has merged. It adds the Jira issue type to the event as an optional state.issue_type field, so a trigger on Jira can now test the issue type directly. This partly covers the "put more on the event" option. It is Jira-only, and the field is absent when the type is unknown, so triggers must guard it with has(...). It does not remove the need for a label or title signal on GitHub and GitLab. The fuller entity-based evaluation (ADR 0098, tracked in fullsend issue 8418) is still open and marked blocked.

    Still blocking:

    • The ADR proposing the cve agent (fullsend PR 9309) is still an open draft. This repo has no cve harness yet, and the issue's own guidance is to ship the exclusion together with that agent. Otherwise matching items would have no agent.
    • The tracker-first dispatch ADR (fullsend PR 9266) is also still an open draft. It covers the step most likely to apply a marker label at tracker creation.

    Decisions maintainers still need to make (not questions for the reporter):

    1. How a vulnerability tracker is identified: a label we apply, a widened label or CVE-id match, a pre-triage check, the new Jira issue type, or the entity model once it lands. The tested results in the earlier comment show that a label applied by the poller's own account does not dispatch, and that a label set at creation does not start the cve agent on Jira.
    2. Whether a person's /fs-triage should still work on an excluded item. A pre-triage check may not be able to tell what started the run.
    3. Whether a label added after the item is opened can be missed, and if so, documenting it.

    Scope once unblocked: the triage trigger in harness/triage.yaml and matching cases in harness/triggertest/trigger_test.go, covering both the skipped item and /fs-triage on it. The cve trigger needs the same handling of an opened event that already carries the label. No CI workflow files are involved.

    The issue stays in the blocked state until the two ADRs land and an identification approach is chosen.

    Blocked by:

  10. self-assigned this
    on Nov 26, 2026
  11. ascerra commented on Nov 26, 2026

    @ascerra
    ContributorAuthor

    /fs-triage

    ADR 0169 (fullsend-ai/fullsend#9309) was closed as not needed (comment), so this no longer waits for it.

  12. fullsend-ai-triage commented on Nov 26, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 11:19 AM UTC · Completed 11:21 AM UTC

    Commit: 95c8650 · View workflow run →

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

  13. fullsend-ai-triage commented on Nov 26, 2026

    @fullsend-ai-triage

    Re-checked after the /fs-triage request and the closure of the cve agent ADR.

    What changed:

    • The ADR for the cve agent (fullsend PR 9309) was closed unmerged as not needed, and its closing comment says this issue no longer waits for it. It is no longer a blocker.
    • The cve agent itself is now tracked in agents#2088. It is still open, and this repo has no cve harness yet.
    • The skip-label mechanism from agents#2076 is already in place. harness/triage.yaml skips the automatic paths for skip-triage, a human /fs-triage overrides the skip, and pre-triage reads labels from the tracker and honors TRIAGE_SKIP_LABELS. That is precedent for decisions 2 and 3 in the issue, and it means most of the label-based work is a small extension of existing behavior.
    • fullsend PR 9370 (Jira state.issue_type) is merged. Entity-based evaluation (fullsend#8418) is still open and blocked.

    Still blocking:

    • agents#2088. The issue itself says this exclusion should ship with the cve agent, not before. Otherwise matching items have no agent, and a repo that already uses a cve label would lose triage on those issues. If maintainers decide it can land ahead of the agent, say so here and this can be re-triaged as ready.
    • fullsend PR 9266 (tracker-first dispatch ADR) is still an open draft. It is a soft dependency: it only matters if the marker label is applied by the tracker-creation step (option 1).

    Decisions maintainers still need to make (not questions for the reporter): how a tracker is identified (the cve label, a widened or CVE-id label match, a pre-triage check, or the entity model once it lands), and whether a human /fs-triage should override the exclusion. The existing skip-label behavior suggests allowing it on the trigger path.

    Scope once unblocked: the triage trigger in harness/triage.yaml, possibly the default skip labels, matching cases in harness/triggertest/trigger_test.go (skipped item, and /fs-triage on it), and the cve trigger matching an opened event that already carries the label. No CI workflow files are involved.

    Blocked by:

    Blocked by:

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions