Skip to content

Allow config.yaml to override harness CEL triggers #7719

Open

Description

@ggallen

What happens

Harness CEL triggers are currently defined only in the harness file. When a repository uses an upstream or pinned harness, changing when that agent runs requires creating a derived or replacement harness with a different trigger.

This makes repository-specific routing policy unnecessarily coupled to harness ownership. For example, #2078 needs repositories to disable automatic review while retaining /fs-review on demand. With the current model, that policy requires customizing the review harness.

What should happen

Repository configuration should be able to customize the trigger behavior of a registered agent without copying or deriving its harness.

The behavior should support:

  • inheriting the harness trigger when no repository override is present;
  • replacing it with a repository-specific trigger when configured;
  • disabling automatic triggering while keeping the agent available for manual invocation;
  • predictable behavior across layered organization and repository configuration.

This should work for built-in and custom agents and complement the harness-driven dispatch work in #1985.

Context

This is a general form of the use case described in #2078. Harnesses should be able to provide default routing, while repositories retain control over local automation policy.

Activity

  1. fullsend-ai-triage commented on Sep 25, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 3:50 PM UTC · Completed 3:54 PM UTC

    Commit: bd69074 · View workflow run →

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

  2. added
    feature
    triaged
    type/feature
    component/dispatch
    component/harness
    priority/medium
    on Sep 25, 2026
  3. fullsend-ai-triage commented on Sep 25, 2026

    @fullsend-ai-triage

    Investigated the dependency chain: the harness CEL trigger mechanism this issue builds on (#2889, landed via PR #3820) is already in place, so this is buildable now and not blocked by #1985's remaining open work (ValidRoles hardcoding and the bash-routing cutover), which is unrelated to this specific ask. #2078 is a narrower instance of the same underlying gap and remains open itself rather than a fix in flight -- no open PR was found addressing this issue by keyword or number search.

    Confirmed in the codebase that the gap is real: AgentEntry (internal/config/config.go) has no trigger-override field today, and ListTriggeredHarnesses (internal/harnessdispatch/enumerate.go) reads the harness's own trigger directly with no per-repo config consulted. The existing base/overlay harness composition ("any harness field can be overridden") only helps if you're willing to fork/derive a harness file -- it doesn't give repo config.yaml a way to override an upstream or pinned harness's trigger, which is exactly the coupling this issue wants removed.

    Suggested implementation direction and a concrete test plan are included in the triage summary for the assigned developer.


    Labels: Matches the established labeling pattern on the two related issues (#1985, #2078): a dispatch/harness-config feature at medium priority.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  4. ralphbean commented on Sep 25, 2026

    @ralphbean
    Member

    Hm, should this be completely general? Should you be able to override the value of any field in a harness from config.yaml?

  5. ralphbean commented on Sep 25, 2026

    @ralphbean
    Member

    And, I'd say about trigger, that the most cumbersome part is not necessarily having to create a derived harness file using base composition - it is rather the authoring of the replacement CEL trigger expression, which is often complicated with many clauses.

    Consider https://redhat.atlassian.net/browse/AISDLC-120

    What if we went a route where we authored all of our CEL expressions to take some standard config.yaml variables into account.

    Then, you could set that variable for a particular agent and know that you've changed its effective trigger condition in a documented way.

  6. ifireball commented on Oct 5, 2026

    @ifireball
    Member

    +1 To all @ralphbean suggestions:

    1. We should have a general mechanism to override parts of the harness from the config file instead of picking and choosing particular values to override
    2. Expose configuration values for use from the trigger (But i think that belongs in a different issue)
  7. gwenneg commented on Oct 30, 2026

    @gwenneg
    Contributor

    I'd like to pick up #8143 (setting agent variables like REVIEW_FINDING_SEVERITY_THRESHOLD from config.yaml). Rather than adding one more single-purpose field, I'd like to follow the direction from this thread. Two questions before I write anything:

    1. Is this already planned somewhere?
    ADR 0112 defers some work to "the configuration standardization work in flight", and @rh-hemartin mentioned on #7842 that we're "approaching a better configuration" where this could be done from config.yaml. Is that the same thing as a general override mechanism? If so, where is it tracked, and is someone already working on it?

    2. @ralphbean @ifireball, does this shape match what you had in mind?
    An agents: entry would carry a block of harness fields, applied on top of the resolved harness as a last overlay that always matches:

    agents:
      - name: review
        harness:
          env:
            runner: { REVIEW_FINDING_SEVERITY_THRESHOLD: medium }
            sandbox: { REVIEW_FINDING_SEVERITY_THRESHOLD: medium }

    Exposing config values to trigger CEL (the second idea above) would stay a separate issue.

    If this sounds right, I'll start on the ADR.

  8. rh-hemartin commented on Oct 30, 2026

    @rh-hemartin
    Member

    Don't wait for Ralph or Barak, Ralph starts in ~5 hours and Barak does not work today. I think that going with env.runner and env.sandbox makes sense in order to be more consistent and be able to reuse the merge mechanism.Comment on the issue you want to pick up so I can assign it to you.

    Some part of the overall work of improving config is being worked on by @mfrancisc , which is documented https://fullsend.sh/docs/contributing/config-source-inventory#configuration-source-inventory, however it does cover configuration overrides, not so much having configuration being overlaid.

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

    component/dispatchcomponent/harnessfeaturepriority/mediumtriagedtype/feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions