Skip to content

config: set documented agent variables (e.g. REVIEW_FINDING_SEVERITY_THRESHOLD) from config.yaml agent entries #8143

Closed

Description

@waynesun09

What's missing

The documented agent variables can't be set from .fullsend/config.yaml. The docs call variables such as REVIEW_FINDING_SEVERITY_THRESHOLD the supported way to tune a default agent (docs/guides/user/adoption.md, docs/guides/user/escalation-ladder.md, docs/agents/review.md). The only way to change one today is a derived harness with base: composition that sets it in env.runner and env.sandbox.

That route has a cost: a base: harness pins an agents commit, and nothing moves the pin forward (#5802). #6822 asked for exactly this setting in this repository (REVIEW_FINDING_SEVERITY_THRESHOLD: "medium") and stalled for that reason. A repo that wants to tune one variable has to give up tracking the agent's updates.

agents: entries already tune how an agent runs — runtime, model, effort, subagents (ADR 0091) — but not its variables. docs/contributing/config-source-inventory.md records the gap: "Leave as a variable until an agent-settings field exists."

Why it matters now

Fix loops on large coder PRs are driven partly by low-severity findings. Any actionable finding makes the review return request-changes, which starts a fix round. In this repo's review → fix runs on 2026-10-07:

Setting REVIEW_FINDING_SEVERITY_THRESHOLD: medium would have avoided those rounds. Today it can't be set without pinning the review harness.

Proposed change

Let an agents: entry carry the agent's documented variables:

agents:
    - name: review
      runtime: pi
      model: sonnet
      env:
        REVIEW_FINDING_SEVERITY_THRESHOLD: medium
  • Scope. A value applies to every place the harness declares that variable. REVIEW_FINDING_SEVERITY_THRESHOLD is declared in both env.runner (read by the post-script) and env.sandbox (read by the agent), so one config entry sets both.
  • Only declared variables. Accept only names the resolved harness already declares in env.runner or env.sandbox. Reject unknown names, and names reserved for the runner such as FULLSEND_TIMEOUT_MINUTES and TRACEPARENT, with an error that names the variable and the agent. An extension point is an existing harness variable, so nothing new reaches the sandbox.
  • Precedence. Per-run flags and FULLSEND_* variables first, then this config entry, then the harness default. This is the order ADR 0091 uses for runtime/model/effort.
  • No silent drops. config: support timeout_minutes on per-agent config.yaml entries #7223 found that an unknown key on an agents: entry decodes without error and is ignored. A misspelled env key, or a variable name the harness doesn't declare, must fail loudly.
  • Layers. The merge across config.base.yaml and .fullsend/config.yaml behaves the same as the existing per-agent fields.

A general way to override harness fields from config (raised on #7719) would cover this too. If that design is chosen instead, this issue is the first concrete case it must handle. Either way, users should not need a derived harness to change a documented variable.

Acceptance criteria

  • .fullsend/config.yaml accepts env: on an agents: entry, and fullsend run applies the values to both env.runner and env.sandbox wherever the harness declares the name.
  • A name the harness doesn't declare, or a reserved name, fails config validation with an actionable error.
  • fullsend agent set can write the field, like the other per-agent settings.
  • docs/agents/review.md and docs/reference/config-reference.md show setting REVIEW_FINDING_SEVERITY_THRESHOLD through config.yaml. The REVIEW_FINDING_SEVERITY_THRESHOLD row in docs/contributing/config-source-inventory.md is updated.
  • Once this ships, Filter low-severity findings from review runs in this repository #6822 can be done with one config line and no base: harness.

Related

Activity

  1. added
    type/feature
    agent/review
    component/harness
    on Oct 7, 2026
  2. fullsend-ai-triage commented on Oct 7, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 11:28 AM UTC · Completed 11:31 AM UTC

    Commit: 8ca213d · View workflow run →

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

  3. added
    feature
    triaged
    on Oct 7, 2026
  4. fullsend-ai-triage commented on Oct 7, 2026

    @fullsend-ai-triage

    Re-triage after the maintainer request to use per-section maps instead of a single env key. All earlier findings still stand; this note covers what changed.

    Updated shape. Use env.runner and env.sandbox on the agents: entry, mirroring the harness's own env sections and the direction sketched on #7719:

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

    This replaces the original "one entry fans out to every place the harness declares the name" behavior. Each name is validated against, and applied to, only the section it is written under. It is more verbose for this variable, but explicit, and it still keeps the 'only already-declared names' guarantee.

    Carried over from the earlier triage.

    • AgentEntry has no env field today, and HasSettings/UpsertAgentSettings don't know about it. A stray env: key is silently dropped, the same failure mode as config: support timeout_minutes on per-agent config.yaml entries #7223. Fix both together.
    • Reserved-name and unknown-key checks belong at config load. The declared-name check needs the resolved harness, so it belongs at run time.
    • Follow the AgentEntry field checklist in docs/contributing/harness-composition.md (layered merge, agent set, tests, docs), and update the docs and inventory row listed in the issue.

    For maintainers. The #7719 thread proposes a broader harness: override block and notes it changes the ADR 0080 rule that agent variables are overridden only through base:, so an ADR may be needed first. No open PR or ADR PR was found. The env.runner/env.sandbox shape is intended to be a subset of that block, so the work stays forward-compatible. This is a feature, so it is not auto-promoted; a maintainer can start it with /fs-code.

    Proposed test case

    Harness declares REVIEW_FINDING_SEVERITY_THRESHOLD in env.runner and env.sandbox
    - config env.runner / env.sandbox 'medium' -> applied to the matching sections
    - FULLSEND_* / per-run override wins; no entry -> harness default
    - name written under a section where the harness doesn't declare it, undeclared name,
      reserved name (FULLSEND_TIMEOUT_MINUTES, TRACEPARENT), or misspelled key ('envs')
      -> error naming the variable/key and the agent
    - layered base + repo config merge matches other per-agent fields
    - fullsend agent set round-trips the field
    

    Next steps:

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

    Triage notes (no open PR found addressing this, and no prerequisites block it):

    Gap confirmed in code. AgentEntry in internal/config/config.go currently has no env field, and HasSettings/UpsertAgentSettings only know runtime/model/effort/subagents. Since the config is decoded non-strictly, a stray env: key is silently ignored today, which is the same failure mode as #7223.

    Suggested approach. Add env to AgentEntry and follow the AgentEntry field checklist in docs/contributing/harness-composition.md (layered merge, agent set, tests, docs). Reserved-name checks can run at config load. The declared-name check needs the resolved harness, so it belongs at run time, matching the dual-validation pattern in docs/contributing/go-code.md. Doc updates should cover docs/reference/config-reference.md, docs/agents/review.md and the inventory row named in the issue.

    Design note for maintainers. The discussion on #7719 leans toward a general harness-override mechanism. This issue says it is fine either way, so it is not treated as a blocker. If the general mechanism is chosen, keep the env shape compatible with it. Resolve the unknown-key handling together with #7223 so the two do not conflict.

    Proposed test case

    Given a harness declaring REVIEW_FINDING_SEVERITY_THRESHOLD in env.runner and env.sandbox
    - config env value 'medium' -> present in both; FULLSEND_* / per-run override wins; no entry -> harness default
    - undeclared name, reserved name (FULLSEND_TIMEOUT_MINUTES, TRACEPARENT), or misspelled key (e.g. 'envs') -> error naming the variable/key and the agent
    - name declared in only one of runner/sandbox -> applied only there
    - layered base + repo config merge matches other per-agent fields
    

    As a new capability in a non-bug category, this is not auto-promoted to implementation; a maintainer can decide when to schedule it.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  5. rh-hemartin commented on Oct 30, 2026

    @rh-hemartin
    Member

    /fs-triage instead of a single env key make it so there is env.runner and env.sandbox, as shown by @gwenneg in this comment: #7719 (comment)

  6. fullsend-ai-triage commented on Oct 30, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 8:00 AM UTC · Completed 8:02 AM UTC

    Commit: 591946c · View workflow run →

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

  7. added
    feature
    triaged
    and removed
    feature
    triaged
    on Oct 30, 2026
  8. 5 remaining items

  9. fullsend-ai-scribe commented on Nov 5, 2026

    @fullsend-ai-scribe

    Meeting update — 2026-11-04

    Relevant to this issue: The team discussed how severity threshold settings for review findings directly control low finding visibility and indirectly impact ready-to-merge label application — exactly the behavior this issue proposes making configurable from config.yaml.

    • Established protocol: PRs with unresolved actionable findings must not be merged without creating a proper follow-up issue and commenting on the resolution
    • Severity threshold settings confirmed as the mechanism controlling which findings are surfaced vs. suppressed at low severity levels
    • The ready-to-merge label is indirectly gated by these thresholds, reinforcing the need for per-repo configurability

    Next steps: Developers must open follow-up issues when merging code with unresolved findings. The team aligned on this as a firm protocol.

    Meeting notes

  10. added 7 commits that reference this issue on Nov 7, 2026
  11. added 3 commits that reference this issue on Nov 13, 2026
  12. added a commit that references this issue on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent/reviewcomponent/harnessfeaturetriagedtype/feature

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions