Skip to content

fix(fullsend): add harness block to bypass base composition bug - #3750

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/3749-review-harness-threshold
Open

fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/3749-review-harness-threshold

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

What:

Add a harness: block to the review agent entry in .fullsend/config.yaml to set REVIEW_FINDING_SEVERITY_THRESHOLD: "high" via the config.yaml env-resolution path, bypassing the broken base: composition mechanism.

Why:

The review agent's severity threshold override in customized/harness/review.yaml is silently dropped due to a base composition bug (fullsend-ai/fullsend#9384). This caused all review runs to use the upstream default threshold ("low"), resulting in unnecessary CHANGES_REQUESTED on medium-severity findings — PR #3617 received 11 agent reviews (~$27.59) for a 4-line Renovate dependency bump.

The harness: block mechanism (fullsend-ai/fullsend#9422, ADR 0162) applies env overrides after base composition, bypassing the broken merge. Setting the threshold in both runner and sandbox ensures the override reaches the agent regardless of which env the harness reads from.

Tickets:


Closes #3749

Post-script verification

  • Branch is not main/master (agent/3749-review-harness-threshold)
  • Secret scan passed (gitleaks — 0ff104c4e70337cd0083e8416752a29459db251f..HEAD)
  • PR body secret scan passed (gitleaks — no-git)
  • Final PR description secret scan passed (gitleaks — no-git)

The review agent's REVIEW_FINDING_SEVERITY_THRESHOLD override in the
harness overlay (review.yaml) is silently dropped due to a base
composition bug (fullsend-ai/fullsend#9384). This caused all
review runs to use the upstream default threshold ("low") instead of
the configured "high", leading to medium-severity findings triggering
CHANGES_REQUESTED unnecessarily (e.g., 11 reviews on PR #3617).

Add a harness block to the review agent entry in config.yaml, which
uses the env-resolution path introduced in fullsend-ai/fullsend#9422
(ADR 0162). This path applies env overrides after base composition,
bypassing the broken merge behavior.

Note: pre-commit hooks could not run (infrastructure failure:
SSL certificate verification failed fetching hook repo). The only
configured hook (check-commit-message) validates commit messages
at commit time and does not apply to file content checks.

Closes #3749

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@fullsend-ai-coder
fullsend-ai-coder Bot requested a review from a team as a code owner November 23, 2026 12:10
@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Triggers review agent dispatch label Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

Ask an organization administrator to verify that this bot has an active assigned CodeRabbit review seat. See the seat-assignment guide. After the seat is confirmed, request a review again.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d3c24eda-3b0d-45da-a402-8c323f01a1f1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

@qodo-for-conforma

qodo-for-conforma Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Preserve the review severity threshold through Fullsend harness configuration

🐞 Bug fix ⚙️ Configuration changes 🕐 Less than 10 minutes

Grey Divider

AI Description

• Set the review agent’s severity threshold to high in both runner and sandbox environments.
• Apply the override after base composition so medium-severity findings no longer trigger
 unnecessary change requests.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 1 capability

  • 1 affected end-to-end capability after fault-specific containment; implementation boundaries do not widen its functional scope.
  • The changed environment settings configure the review agent's single end-to-end outcome: producing review findings for pull requests.
  • Runner and sandbox are execution hops within that bounded review integration, not independent user capabilities.
Sources

.fullsend/config.yaml[34-39]

      harness:
          env:
              runner:
                  REVIEW_FINDING_SEVERITY_THRESHOLD: "high"
              sandbox:
                  REVIEW_FINDING_SEVERITY_THRESHOLD: "high"
Behavioral complexity 🟢 Low 🧩 Straightforward

  • Before this change, the repository-level agent configuration did not explicitly provide the threshold under the harness block; the customized review harness already provided the same value.
  • After the change, both runner and sandbox receive a direct string assignment of "high".
  • The new correctness condition is simple consistency of the configured value across the two execution contexts; no new algorithm, state machine, concurrency protocol, transformation, or coordinated invariant is introduced.
  • The only unresolved issue is external merge precedence, which is an evidence limitation rather than intrinsic behavioral complexity.
Sources

.fullsend/config.yaml[34-39]

      harness:
          env:
              runner:
                  REVIEW_FINDING_SEVERITY_THRESHOLD: "high"
              sandbox:
                  REVIEW_FINDING_SEVERITY_THRESHOLD: "high"
Potential damage 🟡 Medium 🩹 Recoverable

  • A threshold that is unexpectedly high or incorrectly propagated can suppress lower-severity review findings, degrading automated review coverage.
  • This is recoverable by correcting or reverting the configuration and rerunning review; the source does not show persistent application state corruption or an irreversible external effect.
  • Because the same threshold is already present in the customized harness, the likely realized consequence is no change, but the plausible fault remains a review-coverage degradation.
  • Revert or correct the configuration, then rerun the affected review.
  • No repository data repair or external compensation is shown as necessary.
Sources

.fullsend/config.yaml[34-39]

      harness:
          env:
              runner:
                  REVIEW_FINDING_SEVERITY_THRESHOLD: "high"
              sandbox:
                  REVIEW_FINDING_SEVERITY_THRESHOLD: "high"
Assessed commit d7c88ad
Diagram

graph TD
  Overlay["Review overlay"] --> Base["Base composition"] --> Env["Env resolution"] --> Runner["Runner env"] --> Agent["Review agent"]
  Config["Repo config"] --> Env
  Env --> Sandbox["Sandbox env"] --> Agent
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Fix Fullsend base composition upstream
  • ➕ Restores overlay behavior for all affected configurations.
  • ➕ Removes the need to duplicate the threshold setting.
  • ➖ Depends on an upstream fix and deployment.
  • ➖ Does not address affected review runs immediately.

Recommendation: Use the harness override as the immediate workaround because the existing review.yaml setting is dropped during base composition. Revisit the duplicated setting when the upstream composition bug is fixed.

Files changed (1) +6 / -0

Bug fix (1) +6 / -0
config.yamlApply the review threshold through harness environment overrides +6/-0

Apply the review threshold through harness environment overrides

• Adds a harness block to the review agent setting REVIEW_FINDING_SEVERITY_THRESHOLD to "high" for runner and sandbox. This uses post-composition environment resolution to preserve the override that the review overlay currently loses.

.fullsend/config.yaml

@qodo-for-conforma

Copy link
Copy Markdown

Code Review by Qodo


Action required

1. Threshold change lands in the wrong repo 🔗 Cross-repo conflict
Description
The PR adds the harness: threshold override to the cli repo's .fullsend/config.yaml, but the
org-level config that enrolls conforma/cli and drives its review agent is
conforma/.fullsend/config.yaml, which has no harness: block. The org review dispatcher calls
reusable-review.yml at fullsend-ai/fullsend 094191b0, so this cli-side edit is unlikely to change
the severity threshold for reviews of conforma/cli.
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The `harness:` override for `REVIEW_FINDING_SEVERITY_THRESHOLD` was added to `.fullsend/config.yaml` in the conforma/cli repo. The enrolled org config that drives the review agent is `conforma/.fullsend/config.yaml`, which has no such block, so the setting never reaches the agent.

## Fix Focus Areas
- .fullsend/config.yaml[31-43]
- /cross_repos/.fullsend/config.yaml[26-34]

## Recommended Fix
Move the `harness:` block into the `review` agent entry of `conforma/.fullsend/config.yaml`, the config the review workflow reads. Decide separately whether to keep the cli-side copy. Verify on the next conforma/cli review run that the env log shows `REVIEW_FINDING_SEVERITY_THRESHOLD=high`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


View medium (1)
Remediation recommended
2. Harness block depends on unverified fullsend pin 🔗 Cross-repo conflict
Description
The new harness: block under the review agent entry sets REVIEW_FINDING_SEVERITY_THRESHOLD
through a config path this repo neither pins nor verifies, so it only takes effect if the fullsend
version the review pipeline runs includes the #9422 env-resolution path and accepts harness:
alongside source:. The cli shim pins fullsend at 0b21529c and the org review workflow pins at
094191b0, and if either assumption fails the value is silently ignored (as the base: overlay was),
leaving every review on the upstream "low" threshold with no error or log.
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The `harness:` block added under the review agent entry in `.fullsend/config.yaml` is only honored if the fullsend release the review workflows execute includes the #9422 env-resolution mechanism and accepts `harness:` alongside `source:`. The cli shim and the org dispatcher pin different fullsend commits (0b21529c and 094191b0), and neither pin is shown to support the key. Nothing in the repo verifies this, and a silent no-op would leave `REVIEW_FINDING_SEVERITY_THRESHOLD` at the upstream "low" value, reproducing the original bug.

## Fix Focus Areas
- .fullsend/config.yaml[32-40]
- .fullsend/customized/harness/review.yaml[17-29]
- /cross_repos/.fullsend/.github/workflows/review.yml[30-30]
- .github/workflows/prioritize.yml[52-52]

## Recommended Fix
In fullsend-ai/fullsend, confirm that the commits pinned by the org review workflow and the cli shim include #9422 and accept `harness:` alongside `source:`. If either pin lacks it, bump the pin or fall back to the upstream fix for fullsend-ai/fullsend#9384. Before merging, verify on a real review run that the agent log shows `REVIEW_FINDING_SEVERITY_THRESHOLD=high`. Record the fullsend version or commit that includes fullsend-ai/fullsend#9422 in the PR or config comments so the dependency is explicit.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


View low (1)
Informational
3. Threshold now set in two conflicting places 🐞 Bug
Description
The same REVIEW_FINDING_SEVERITY_THRESHOLD is declared in both the harness: block and the env:
section of review.yaml, and because the harness: values are applied after base composition they
win over the overlay. Setting it to "high" on the shared review agent entry also applies to every PR
in conforma/cli rather than only the Renovate bump the ticket describes, suppressing medium-severity
findings on human-authored PRs as well. A maintainer who later edits the overlay value will see no
effect, and the two copies can silently drift apart.
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description

The `REVIEW_FINDING_SEVERITY_THRESHOLD` is declared twice in `review.yaml`: once in the `harness:` block and once in the `env:` section (under `env.runner` and `env.sandbox`). The `harness:` value is applied after base composition and therefore overrides the overlay value, so edits to the `env:` copy have no effect. The `harness:` entry is also set to "high" on the shared review agent entry without any author or PR-scope condition, so it changes review behavior for all PRs in conforma/cli, suppressing medium-severity findings on human-authored PRs, not just the Renovate bump the ticket targets.

## Fix Focus Areas

- review.yaml[1-200]

## Recommended Fix

Keep a single source of truth for `REVIEW_FINDING_SEVERITY_THRESHOLD`. Remove the duplicate from the `harness:` block so the value is defined only in the `env:` section, or remove it from `env:` if the `harness:` placement is required, and make sure the chosen location is the one actually applied. Scope the threshold change to the Renovate bump only (for example, with a condition on the PR author or PR scope) instead of setting it on the shared review agent entry, so human-authored PRs keep the existing medium-severity behavior. Verify after the change that the effective threshold for Renovate PRs and for other PRs matches the intended values.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
acceptance 54.61% <ø> (ø)
generative 12.22% <ø> (ø)
integration 23.62% <ø> (ø)
unit 72.29% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fullsend-ai-review fullsend-ai-review Bot added the risk/low PR risk: low label Nov 23, 2026
@fullsend-ai-review

Copy link
Copy Markdown

<!-- fullsend:risk-assessment -->
Risk Assessment: low (1/5)

Details

Minimal single-file config addition (6 lines) by a bot author with no protected paths, no security-sensitive changes, no CI or dependency modifications, and low git history churn; issue scope precisely matches the PR size.

@fullsend-ai-review

Copy link
Copy Markdown

Looks good to me


Labels: PR modifies agent configuration file

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJmaW5kaW5ncyI6W119 -->

@fullsend-ai-review fullsend-ai-review Bot added requires-manual-review Review requires human judgment config labels Nov 23, 2026
@simonbaird

Copy link
Copy Markdown
Member

/retest cli-main-on-pull-request

This branch has not been deployed

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

Labels

config ready-for-review Triggers review agent dispatch requires-manual-review Review requires human judgment risk/low PR risk: low size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate review env overrides to config.yaml harness block to bypass base composition bug

1 participant