Skip to content

feat(#8143)!: let agents entries carry a harness: block (ADR 0162) - #9422

Merged
ralphbean merged 2 commits into
fullsend-ai:mainfrom
gwenneg:agent-harness-block
Nov 18, 2026
Merged

ralphbean merged 2 commits into
fullsend-ai:mainfrom
gwenneg:agent-harness-block

Conversation

@gwenneg

@gwenneg gwenneg commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

You can now change an agent's harness settings from config.yaml. Add a harness: block to the agent's entry:

agents:
  - name: code
    harness:
      timeout_minutes: 90
      env:
        runner:
          GITHUB_SIGNED_COMMITS: "true"
        sandbox:
          TIMEOUT_SECONDS: "5400"
  - name: review
    harness:
      env:
        runner:
          REVIEW_FINDING_SEVERITY_THRESHOLD: medium
        sandbox:
          REVIEW_FINDING_SEVERITY_THRESHOLD: medium

This example:

  • gives the code agent 90 minutes. TIMEOUT_SECONDS gives the code skill the same limit, in seconds.
  • turns on signed commits for the code agent.
  • makes the review agent report only findings of medium severity or higher.

You no longer need your own harness file with base: for this, so the repo keeps getting agent updates. This implements ADR 0162.

Related Issue

Fixes #8143

Changes

  • The block works like a harness file that uses base:. Its values replace or add to the agent's harness.
  • run, lint, lock, dispatch and the Jira poller all use it.
  • It can set any harness field except base, forge and runner_env.
  • It can change an env variable only if the harness already has it. It cannot use a name that fullsend reserves.
  • config.base.yaml can have a block too. It is applied first, then the one in config.yaml.
  • You cannot set model, effort or trigger both on the entry and in the block.
  • On a built-in agent, a trigger in the block is ignored, and lint warns.
  • Changing a block makes the agent's lock entry stale.
  • A block with an unknown key or a bad value fails config validation.
  • A repo pinned to an older fullsend_ref cannot take a block from repos.yaml. repos install fails that repo and names the entry, and repos status reports a block that is already installed as incompatible. For this, the managed config schema version is now 3.
  • agent add and agent remove no longer copy entries from config.base.yaml into config.yaml.
  • agent remove now fails for an agent that config.base.yaml defines. Before, it could say it removed the agent while the agent stayed registered.
  • The dispatch workflow no longer rejects a config.yaml entry that has only a name when the config.base.yaml entry of the same name completes it. The check had the same problem with model and the other settings before this PR.
  • The docs are updated.
  • I followed the AgentEntry checklist in docs/contributing/harness-composition.md.

Breaking change:

  • Before, a harness: key under an agent entry was ignored. Now it is read. If it is not a valid block, config validation fails.
  • An older CLI or workflow does not accept an entry that has only a name and a block. Update both before you use one.
  • The managed config schema version is now 3. A CLI from an older release leaves the config of a repo pinned to this release unchanged when that config sets tracker. Upgrade the CLI first.

Things the ADR does not say, and what I did:

  • In repos.yaml, only one layer can set an agent's block: defaults, the forge section, or the repository config. They all end up in one config.yaml. To have an org-wide block and a per-repo one, put the org-wide one in the config_base preset.
  • A block does not keep the harness's runtime fetch fields (allowed_remote_resources, allow_runtime_fetch, max_runtime_fetches). A base: harness works the same way. Lint warns when a block drops one. Set allow_runtime_fetch: false in the block to drop them without the warning.
  • A block does not keep the harness's allow_ci_variable_credential either. A base: harness works the same way. Lint warns when a block drops it, unless the forge is known and is not GitLab. Set it in the block to keep it, or to false to drop it without the warning.
  • A block can set readonly_repo: false, even on the review agent. A base: harness can do the same (fix(#7360)!: inherit readonly_repo through base: composition #9365).
  • fullsend run fails if the block is only in <fullsend-dir>/.fullsend/config.yaml. Pass the .fullsend directory to --fullsend-dir.
  • fullsend lock applies a block only to the harness its entry points to. If an old harness/<name>.yaml is still there and the entry does not use it, it is locked without the block.
  • A block on a disabled entry is not applied. It is still checked if the entry has a source.

Not fixed here:

  • A block can still add a sandbox variable with a host_files entry under .env.d. The ADR only talks about env.
  • Two checks (reserved names and block content) only run in a binary that includes internal/cli and internal/harness. The fullsend binary does.

Testing

  • make lint passes (stage changes first, then run)
  • Tests added/updated for new or modified logic

Checklist

  • PR title follows Conventional Commits (correct type, ! for breaking changes)
  • Commits are signed off (DCO) — human and human-directed agent sessions only
  • I wrote this contribution myself and can explain all changes in it

🤖 Generated with Claude Code

@gwenneg
gwenneg requested a review from a team as a code owner November 13, 2026 15:29
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Allow agent entries to override harness settings without pinned files

✨ Enhancement 🐞 Bug fix 🧪 Tests 📝 Documentation ⚙️ Configuration changes 🕐 40+ Minutes

Grey Divider

AI Description

• Compose agent-entry harness: blocks over upstream harnesses without requiring a pinned base:
 file.
• Apply blocks across execution, dispatch, lint and locking, with validation and compatibility
 safeguards.
• Keep inherited agent entries out of local edits and document the new configuration path.
Diagram

graph TD
  Base["Base config"] --> Entries["Agent entries"] --> Compose["Harness composition"] --> Consumers["Run and dispatch"]
  Repo["Repo config"] --> Entries
  Harness["Agent harness"] --> Compose --> Lock["Lock hashing"]
  Repo --> Schema["Managed schema"]
Loading
High-Level Assessment

Reusing existing base: composition is the appropriate approach: it preserves established merge behavior while avoiding pinned wrapper harnesses. Direct entry fields or an env-only override would fragment the configuration model; automated pin updates would not remove the extra file.

Files changed (60) +2374 / -183

Enhancement (16) +999 / -73
reusable-dispatch.ymlAccept block-only built-in overrides +17/-6

Accept block-only built-in overrides

• The source-field check recognizes non-empty harness blocks, including YAML aliases, as agent settings. It reports yq failures rather than silently treating the check as successful.

.github/workflows/reusable-dispatch.yml

dispatch_route.goCompose blocks during built-in routing +3/-0

Compose blocks during built-in routing

• Passes agent blocks into harness loading so dispatch admission sees overridden harness roles.

internal/cli/dispatch_route.go

lint.goLint the composed agent block +2/-0

Lint the composed agent block

• Passes each agent's effective blocks into harness loading for lint.

internal/cli/lint.go

lock.goInclude applicable blocks in lock identity +95/-15

Include applicable blocks in lock identity

• Hashes blocks with their source harness for lock freshness and composes them when locking that entry's harness. Runtime-fetch checks use the last block's declarations.

internal/cli/lock.go

run.goApply blocks to agent runs +38/-5

Apply blocks to agent runs

• Supplies effective blocks to composition and lock checks. Fails when a block exists only in a sibling config that cannot be applied.

internal/cli/run.go

agent_harness.goRepresent and validate partial harness YAML +273/-0

Represent and validate partial harness YAML

• Preserves expanded YAML blocks for strict harness decoding and serialization. Rejects forbidden keys and unsafe YAML structures while exposing block-presence helpers.

internal/config/agent_harness.go

config.goAdd blocks to agent-entry validation +69/-5

Add blocks to agent-entry validation

• Tracks inherited and local blocks, counts non-empty blocks as settings and rejects duplicate model, effort or trigger controls.

internal/config/config.go

effective.goExpose inherited blocks in effective YAML +34/-1

Expose inherited blocks in effective YAML

• Renders multiple harness blocks in composition order instead of hiding blocks inherited from a parent config.

internal/config/effective.go

interfaces.goPreserve blocks across keyed agent merges +11/-0

Preserve blocks across keyed agent merges

• Keeps parent and overlay blocks as distinct layers while treating an empty overlay block as absent.

internal/config/interfaces.go

managed.goDeep-copy managed agent blocks +2/-0

Deep-copy managed agent blocks

• Clones local and inherited harness blocks when copying managed agent entries.

internal/config/managed.go

managed_schema.goReject blocks on older managed schemas +57/-20

Reject blocks on older managed schemas

• Adds schema version 3, detects block-dependent documents and prevents rendering or accepting blocks for incompatible pinned refs.

internal/config/managed_schema.go

agent_block.goCompose validated agent blocks +284/-0

Compose validated agent blocks

• Decodes and merges ordered blocks using harness inheritance. Enforces declared env names, reserved names and schema compatibility while tracking dropped fetch fields and ignored triggers.

internal/harness/agent_block.go

compose.goIntegrate blocks into harness composition +58/-11

Integrate blocks into harness composition

• Adds block options to LoadWithBase and reuses layer resolution and merging before final harness validation.

internal/harness/compose.go

harness.goValidate partial harness layers +32/-10

Validate partial harness layers

• Separates value checks from whole-harness requirements and stores block-related composition metadata.

internal/harness/harness.go

lint.goWarn about block-specific behavior +20/-0

Warn about block-specific behavior

• Emits diagnostics when blocks drop runtime-fetch fields or set ignored built-in triggers.

internal/harness/lint.go

enumerate.goCompose blocks for CEL harness dispatch +4/-0

Compose blocks for CEL harness dispatch

• Loads effective blocks when enumerating triggered harnesses, allowing custom-agent block triggers to participate.

internal/harnessdispatch/enumerate.go

Bug fix (3) +28 / -5
agent.goKeep agent edits local to config.yaml +22/-3

Keep agent edits local to config.yaml

• Agent add and remove stop copying inherited entries into the overlay. Removal fails if the base configuration still registers the agent, and listings identify blocks.

internal/cli/agent.go

agent_openai.goAvoid misleading provider warnings +5/-1

Avoid misleading provider warnings

• Skips the local-file OpenAI-provider heuristic when an agent block could add a provider.

internal/cli/agent_openai.go

managed_config_schema.goPreserve tracker-era schema detection +1/-1

Preserve tracker-era schema detection

• Classifies refs with a tracker mapping but no schema declaration as version 2 rather than version 3.

internal/repos/managed_config_schema.go

Refactor (3) +33 / -16
managed_safety.goShare built-in agent identification +7/-6

Share built-in agent identification

• Exports the built-in-name check so harness composition can apply built-in trigger behavior consistently.

internal/config/managed_safety.go

forge.goReuse forge and overlay validation for blocks +22/-7

Reuse forge and overlay validation for blocks

• Separates reusable overlay-validation and forge-lookup behavior for partial and composed harness layers.

internal/harness/forge.go

registry.goClarify block-only built-in entries +4/-3

Clarify block-only built-in entries

• Updates registry guidance to reflect that override-only entries can tune a built-in through any recognized setting.

internal/harness/registry.go

Tests (15) +1053 / -22
agent_harness_block_test.goTest run and lock integration +186/-0

Test run and lock integration

• Exercises block values in a run, env-name failures, sibling-config rejection, lock staleness and fetch allowlists.

internal/cli/agent_harness_block_test.go

agent_test.goTest layered agent edits and listings +50/-2

Test layered agent edits and listings

• Covers base-entry preservation, failed removal of inherited agents, block listing and provider-warning behavior.

internal/cli/agent_test.go

dispatch_route_test.goTest block-based route authorization +16/-0

Test block-based route authorization

• Verifies that an overridden role changes the built-in routing decision.

internal/cli/dispatch_route_test.go

lint_test.goTest block-aware lint failures +40/-0

Test block-aware lint failures

• Covers valid overrides, undeclared env names, escaping paths and the new diagnostic codes.

internal/cli/lint_test.go

lock_pins_test.goAdapt lock-pin tests to block-aware checks +6/-6

Adapt lock-pin tests to block-aware checks

• Passes an empty block set to existing readRunLock test cases.

internal/cli/lock_pins_test.go

agent_harness_test.goTest block parsing and config rules +209/-0

Test block parsing and config rules

• Covers YAML aliases, merges, round trips, forbidden fields, empty blocks, setting conflicts and managed-layer restrictions.

internal/config/agent_harness_test.go

effective_test.goTest effective block rendering +12/-1

Test effective block rendering

• Checks ordered rendering of two blocks and preservation of a single inherited block.

internal/config/effective_test.go

interfaces_test.goTest layered agent-block merging +41/-0

Test layered agent-block merging

• Checks block order, inheritance, empty blocks and isolation of stored local entries.

internal/config/interfaces_test.go

managed_schema_test.goTest block schema compatibility +22/-0

Test block schema compatibility

• Covers rendering, dependency detection and installed-config compatibility for legacy, tracker-mapping and current schemas.

internal/config/managed_schema_test.go

fake.goUpdate fake upstream schema declaration +1/-1

Update fake upstream schema declaration

• Makes the fake upstream advertise managed schema version 3.

internal/forge/fake.go

agent_block_test.goTest harness-block composition rules +347/-0

Test harness-block composition rules

• Exercises merge behavior, env restrictions, layering, forge and overlay behavior, triggers, runtime-fetch loss and lint diagnostics.

internal/harness/agent_block_test.go

lint_test.goRegister new lint codes in tests +2/-0

Register new lint codes in tests

• Includes both block-warning codes in diagnostic-name validation.

internal/harness/lint_test.go

enumerate_test.goTest custom and built-in block triggers +32/-0

Test custom and built-in block triggers

• Checks that custom dispatch uses a block trigger while built-in dispatch retains its harness trigger.

internal/harnessdispatch/enumerate_test.go

managed_config_schema_test.goTest pinned-ref block incompatibility +64/-4

Test pinned-ref block incompatibility

• Covers schema detection, failed desired-config rendering and incompatible status for installed blocks on older refs.

internal/repos/managed_config_schema_test.go

cel_route_test.goTest workflow source checks for blocks +25/-8

Test workflow source checks for blocks

• Covers block-only entries, aliases, empty blocks and yq failure reporting in dispatch validation.

internal/scaffold/cel_route_test.go

Documentation (22) +260 / -66
review.mdShow review threshold overrides in agent entries +19/-5

Show review threshold overrides in agent entries

• Documents setting the review severity threshold in a harness block instead of requiring a wrapper harness.

docs/agents/review.md

README.mdDescribe block-aware locking +1/-1

Describe block-aware locking

• Clarifies that block changes stale locks and that blocks determine the runtime-fetch prefixes checked by lock.

docs/cli/README.md

agent.mdDocument agent listing and removal behavior +6/-1

Document agent listing and removal behavior

• Explains the harness marker in agent listings and why removing an agent registered in config.base.yaml fails.

docs/cli/agent.md

lint.mdDocument block diagnostics +14/-7

Document block diagnostics

• Describes block-aware lint composition and the warnings for dropped runtime-fetch fields and ignored built-in triggers.

docs/cli/lint.md

repos.mdDocument managed-config block constraints +14/-4

Document managed-config block constraints

• Explains the single-layer repos.yaml rule and schema-version requirements for pinned repositories.

docs/cli/repos.md

run.mdDocument run-time block composition +18/-0

Document run-time block composition

• Covers block application, lock freshness, config-directory selection, model precedence and reserved environment names.

docs/cli/run.md

config-source-inventory.mdMark harness blocks as implemented +2/-2

Mark harness blocks as implemented

• Updates configuration-source guidance for agent blocks and the review threshold.

docs/contributing/config-source-inventory.md

harness-composition.mdExplain block composition internals +11/-0

Explain block composition internals

• Records how agent blocks reuse base-harness merging and how env declarations and runtime-fetch fields are tracked.

docs/contributing/harness-composition.md

harness-fields.mdAdd block field restrictions +8/-4

Add block field restrictions

• Describes harness-block inheritance, excluded fields and the declared-environment-variable requirement.

docs/contributing/harness-fields.md

repo-management.mdExplain managed block placement +5/-1

Explain managed block placement

• Notes that only one repos.yaml configuration layer may set an agent's block.

docs/guides/getting-started/repo-management.md

layered-config-reference.mdDescribe ordered harness-block layers +17/-6

Describe ordered harness-block layers

• Explains separate base and overlay blocks, empty-block inheritance and the managed-config single-layer restriction.

docs/guides/infrastructure/layered-config-reference.md

bring-your-own-agent.mdIdentify manual block configuration +1/-0

Identify manual block configuration

• Adds harness blocks to the agent-creation reference as a setting edited in config.yaml.

docs/guides/user/bring-your-own-agent.md

cel-triggers-reference.mdClarify built-in trigger behavior +3/-2

Clarify built-in trigger behavior

• States that a built-in agent's harness-block trigger does not decide routing.

docs/guides/user/cel-triggers-reference.md

customizing-agents.mdRecommend blocks for harness tuning +2/-1

Recommend blocks for harness tuning

• Points users to agent-entry blocks for existing harness settings while retaining base composition as the file-based option.

docs/guides/user/customizing-agents.md

customizing-overview.mdMake blocks the simpler customization path +18/-4

Make blocks the simpler customization path

• Adds a block example and distinguishes changing declared variables from adding new ones with a base harness.

docs/guides/user/customizing-overview.md

escalation-ladder.mdInclude blocks in extension options +6/-5

Include blocks in extension options

• Shows where blocks can replace thin base harnesses for skills, plugins, host files and images.

docs/guides/user/escalation-ladder.md

jira-integration.mdExplain Jira polling trigger behavior +5/-2

Explain Jira polling trigger behavior

• Clarifies that custom-agent block triggers reach the poller but built-in block triggers are ignored.

docs/guides/user/jira-integration.md

running-agents-locally.mdInclude blocks in lock freshness guidance +7/-5

Include blocks in lock freshness guidance

• Explains that changing an agent-entry block invalidates its lock entry.

docs/guides/user/running-agents-locally.md

config-reference.mdSpecify the agent harness-block contract +87/-5

Specify the agent harness-block contract

• Adds examples and rules for supported fields, env names, validation, layering, runtime fetch, triggers, paths and pinned refs.

docs/reference/config-reference.md

runtimes.mdClarify per-agent block precedence +8/-5

Clarify per-agent block precedence

• Adds harness blocks to per-agent settings and distinguishes their layering from ordinary entry fields.

docs/runtimes.md

pi.mdClarify OpenAI-provider warning limits +3/-2

Clarify OpenAI-provider warning limits

• Notes that the agent-set heuristic does not inspect harness blocks that may supply providers.

docs/runtimes/pi.md

lock.goClarify block-aware source hashes +5/-4

Clarify block-aware source hashes

• Documents that stale checks compare the combined harness-and-block hash where blocks apply.

internal/lock/lock.go

Other (1) +1 / -1
managed-config-schemaDeclare managed schema version 3 +1/-1

Declare managed schema version 3

• Increments the schema declaration for managed agent-entry blocks.

internal/config/managed-config-schema

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://c9dbd098-site.fullsend-ai.workers.dev

Commit: b4e0b0e91cdbbfbda7209abe82cae701f4bc3282

@qodo-code-review

qodo-code-review Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Action required

1. Runs silently omit a sibling harness block ✓ Resolved

Resolving commit: 51e9af2

Resolution reason
The if orgCfg == nil gate around the siblingConfigBlockError call was removed, so the
sibling-block check now runs for every run regardless of whether a root layered config (including a
base-only config.base.yaml) exists. A sibling harness block that would otherwise be silently omitted
now fails the run with guidance to pass --fullsend-dir.
Description
runAgent calls siblingConfigBlockError only when orgCfg is nil, although a root
config.base.yaml makes it non-nil without supplying the sibling config's block. When the root has
only config.base.yaml and a sibling .fullsend/config.yaml sets the agent's block, runtime
settings can come from the sibling while harness composition omits its block.


Remediation recommended

2. Removing a local override of a base agent now fails ✗ Dismissed
Description
runAgentRemove deletes the agent from the config.yaml entries, then checks !inLocal (always true
right after the delete) and fails whenever config.base.yaml also has the agent. So a config.yaml
entry that only overrides a base-registered agent (for example model: or a harness: block) can
no longer be removed, and the error suggests disabling the agent entirely instead.

3. Dispatch rejects inherited harness settings ✓ Resolved

Resolving commit: a00b9f6

Resolution reason
The PR's current reusable-dispatch.yml no longer uses the single-file BAD_SOURCE query. The
BAD_SOURCE check now also treats an entry with a non-empty harness block as settings-bearing, and
when BAD_SOURCE is non-empty it reads config.base.yaml entries (BASE_ENTRIES) and accepts an entry
whose name has a matching "complete <name>" base entry (a base block, source, or setting) or an "off
<name>" base entry when the overlay has enabled unset. Only unresolved entries cause the error, so
the inherited-base-block case dispatches as Go accepts it.
Description
The workflow's BAD_SOURCE query checks only each entry in .fullsend/config.yaml for a non-empty
harness, rather than the effective entry merged with config.base.yaml. If the base supplies a
block and the overlay repeats the agent by name without its own settings, Go accepts the inherited
block but the workflow exits before dispatch.

4. Code agents skip retries early ✓ Resolved

Resolving commit: a00b9f6

Resolution reason
The current docs/guides/user/customizing-overview.md example sets timeout_minutes: 90 and
env.sandbox.TIMEOUT_SECONDS: "5400" together in the harness: block, and adds the text "The code,
fix and review skills read their time limit from TIMEOUT_SECONDS, in seconds. Change it together
with timeout_minutes." This addresses the mismatch by pairing both values and documenting that
they must change together, which is the substance of the suggested fix, though the wording and the
example differ slightly from the suggested fix prompt.
Description
The new code example sets timeout_minutes: 90 but leaves the upstream harness’s
env.sandbox.TIMEOUT_SECONDS at 3600. In fullsend-ai/agents, the code-implementation skill uses
that variable to decide when to skip retries and commit, so agents following the example still plan
around a 60-minute budget.

View medium (1)
5. Lint misses forge-specific warnings ✓ Resolved

Resolving commit: b0b036c

Resolution reason
The PR preserves the unresolved forge: sections across composition when no forge platform is
selected (unresolved saved in composeAgentBlocks and reinstated via restoreUnresolvedForge in
LoadWithBase), so Lint on a block-bearing agent sees the same forge-specific fields as without a
block. A test (TestAgentBlock_LintFieldsUnchanged) checks that Lint output is unchanged with and
without blocks.
Description
composeAgentBlocks resolves the agent harness as a lower layer, whose resolver clears its Forge
map even when no forge platform was selected. For a block-bearing agent linted without a selected
forge, Lint can no longer inspect the harness's forge-specific fields, unlike the no-block path.


Informational

6. Harness merge change omits guide link ✓ Resolved

Resolving commit: b0b036c

Resolution reason
The AgentEntry doc comment in internal/config/config.go now states the Harness field is composed as
a child layer (ADR 0162; see AgentHarness), and the harness-composition.md guide gained a "harness:
blocks" note describing the composeAgentBlocks/mergeBaseIntoChild path. Tests
(agent_harness_test.go, agent_block_test.go) cover the merge. The finding's specific concern (the
code and docs make the composition rules traceable) is addressed, though the exact sentence naming
the guide and the PR-description statement were not added.
Description
AgentEntry gains a Harness field and new merge logic, but neither the PR description nor the
code comments state that docs/contributing/harness-composition.md was followed. A reviewer or
later maintainer cannot confirm the documented composition rules were applied, even though the guide
was updated and tests were added.

Grey Divider

Context sources
✅ Linked PRs:
  🌐 PR #9365
✅ Compliance rules (platform): 96 rules
✅ Skills: 5 invoked
  writing-user-docs
  writing-adrs
  check-patch-coverage
  cutting-releases
  adr-corner
✅ Cross-repo context — repo relationships
  Explored: repo: fullsend-ai/experiments (sha: d4292120) — View relationship
  Explored: repo: fullsend-ai/scribe (sha: 6902ed57) — View relationship
  Explored: repo: fullsend-ai/agents (sha: 42249358) — View relationship
  Explored: repo: fullsend-ai/mlflow-assessments (sha: 0058f877) — View relationship
  Explored: repo: fullsend-ai/test-creator (sha: a5082d20) — View relationship
  Explored: repo: fullsend-ai/pi-anthropic-vertex (sha: d2ecd039) — View relationship
  Explored: repo: fullsend-ai/pi-xai-vertex (sha: a86139bf) — View relationship
  Explored: repo: fullsend-ai/.fullsend (sha: e6bfe5b1) — View relationship
  Explored: repo: fullsend-ai/metrics (sha: fe119601) — View relationship
  Explored: repo: fullsend-ai/react-shopping-cart (sha: 5e9aa80b) — View relationship
✅ Context preparation
  Commit messages: summarized; full text retained for this review
  Past issues: summarized; full text retained for this review
Review mode: Auto: 🧠 Deep: Dense cross-cutting config, harness, CLI, locking, and schema logic has many independent defect paths.

Grey Divider

Tip of the day
💡 Did you know, you can type 'qodo, fix this' on a finding and the fix lands right on your PR

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread internal/cli/run.go Resolved
Comment thread .github/workflows/reusable-dispatch.yml Resolved
Comment thread internal/harness/agent_block.go Resolved
Comment thread internal/cli/agent.go Resolved
@codecov

codecov Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

@ralphbean ralphbean self-assigned this Nov 13, 2026
@ralphbean ralphbean added the ok-to-test Allow e2e CI to run after maintainer review (must be re-applied after each push) label Nov 13, 2026
@gwenneg
gwenneg force-pushed the agent-harness-block branch from d9745cb to a00b9f6 Compare November 13, 2026 23:26
@gwenneg

gwenneg commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

On finding 6: I followed the AgentEntry checklist in docs/contributing/harness-composition.md. The PR description now says so.

…DR 0162)

An agents: entry in config.yaml can now carry a harness: block. The block
is a partial harness composed on the agent's harness like a base: child,
with nothing pinned. A repo can change harness settings such as
REVIEW_FINDING_SEVERITY_THRESHOLD or timeout_minutes and keep getting
agent updates.

- The block takes every harness field except base, forge and runner_env.
  It cannot add an env variable the harness does not declare, or set a
  name fullsend reserves in the sandbox.
- The config.base.yaml block composes first, then the config.yaml block.
  In repos.yaml only one config layer may set an agent's block.
- run, lint, lock, dispatch and the Jira poller all compose the block. A
  block change makes the agent's lock entry stale.
- Setting model, effort or trigger on both the entry and the block fails.
  A harness.trigger on a built-in agent is not evaluated; lint warns.
- lint warns when a block leaves out a runtime fetch field or
  allow_ci_variable_credential that a layer below it sets.
- Config and manifest validation reject a malformed block.
- The managed config schema version is now 3. repos install refuses a
  block for a repository pinned to a fullsend_ref that reads an older
  schema, and repos status reports one as incompatible.
- agent add and agent remove no longer copy config.base.yaml entries
  into config.yaml. agent remove fails for an agent that
  config.base.yaml registers, where it used to report it removed.

Fixes fullsend-ai#8143

BREAKING CHANGE: A `harness:` key under an `agents:` entry was ignored
and is now read as a harness block. A value that is not a mapping, an
unknown key or an invalid value fails config validation, and a valid
block changes the agent's harness. Remove or correct any `harness:` key
under an `agents:` entry before you upgrade. The managed config schema
version is now 3: `fullsend repos` from an older release leaves the
config of a repository pinned to this release unchanged when that
config sets `tracker`, so upgrade the CLI first.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Gwenneg Lepage <10584698+gwenneg@users.noreply.github.com>
@gwenneg
gwenneg force-pushed the agent-harness-block branch from b0b036c to 51e9af2 Compare November 16, 2026 22:51
@gwenneg

gwenneg commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

I rebased on main to fix the conflicts. Two things changed besides the rebase:

  • allow_ci_variable_credential was added on main while this PR was open. It is not inherited from a base: harness, so a block drops it too. fullsend lint now warns when that happens (new rule block-drops-ci-variable-credential), like it does for the runtime fetch fields. It does not warn when the forge is known and is not GitLab.
  • TestRunLock_HarnessBlock now puts fetch.DefaultPolicy back to its previous value. It used to reset it to an empty policy, which made two tests from dispatch_host_test.go fail after the rebase.

@gwenneg

gwenneg commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

@rh-hemartin I think your approval will be needed to run the required checks. Could you please help me with this?

@ralphbean
ralphbean enabled auto-merge November 18, 2026 19:44
@ralphbean
ralphbean added this pull request to the merge queue Nov 18, 2026
Merged via the queue into fullsend-ai:main with commit fa7e47c Nov 18, 2026
23 checks passed

This branch was successfully deployed

1 active deployment
site-preview — b4e0b0e9 Deployed Nov 18, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Allow e2e CI to run after maintainer review (must be re-applied after each push)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants