You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow config.yaml to override harness CEL triggers #7719
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.
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
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.
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: reviewharness:
env:
runner: { REVIEW_FINDING_SEVERITY_THRESHOLD: medium }sandbox: { REVIEW_FINDING_SEVERITY_THRESHOLD: medium }
It would reuse the overlay merge that ADR 0112 opens up to any field (not implemented yet), so the same fields stay excluded: base, trigger, overlays, slug, role, forge. model and effort keep their existing agents: fields.
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.
Activity
fullsend-ai-triage commentedon Sep 25, 2026
🤖 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
fullsend-ai-triage commentedon Sep 25, 2026
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, andListTriggeredHarnesses(internal/harnessdispatch/enumerate.go) reads the harness's owntriggerdirectly 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 repoconfig.yamla 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 guidanceralphbean commentedon Sep 25, 2026
Hm, should this be completely general? Should you be able to override the value of any field in a harness from config.yaml?
ralphbean commentedon Sep 25, 2026
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 CELtriggerexpression, 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.
ifireball commentedon Oct 5, 2026
+1 To all @ralphbean suggestions:
gwenneg commentedon Oct 30, 2026
I'd like to pick up #8143 (setting agent variables like
REVIEW_FINDING_SEVERITY_THRESHOLDfromconfig.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:base,trigger,overlays,slug,role,forge.modelandeffortkeep their existingagents:fields.base:harness to pin, so the agent keeps getting upstream updates (Design an agent-update experience independent of fullsend-core upgrades #5802).base:, so it needs a new ADR. I'd write that first, in its own PR.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.
rh-hemartin commentedon Oct 30, 2026
Don't wait for Ralph or Barak, Ralph starts in ~5 hours and Barak does not work today. I think that going with
env.runnerandenv.sandboxmakes 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.