Repository navigation
feat(#8143)!: let agents entries carry a harness: block (ADR 0162) - #9422
Conversation
PR Summary by QodoAllow agent entries to override harness settings without pinned files
AI Description
Diagram
High-Level Assessment
Files changed (60)
|
Site previewPreview: https://c9dbd098-site.fullsend-ai.workers.dev Commit: |
Code Review by Qodo
1.
|
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
d9745cb to
a00b9f6
Compare
|
On finding 6: I followed the |
a00b9f6 to
b0b036c
Compare
…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>
b0b036c to
51e9af2
Compare
|
I rebased on
|
|
@rh-hemartin I think your approval will be needed to run the required checks. Could you please help me with this? |
Summary
You can now change an agent's harness settings from
config.yaml. Add aharness:block to the agent's entry:This example:
TIMEOUT_SECONDSgives the code skill the same limit, in seconds.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
base:. Its values replace or add to the agent's harness.run,lint,lock, dispatch and the Jira poller all use it.base,forgeandrunner_env.envvariable only if the harness already has it. It cannot use a name that fullsend reserves.config.base.yamlcan have a block too. It is applied first, then the one inconfig.yaml.model,effortortriggerboth on the entry and in the block.triggerin the block is ignored, and lint warns.fullsend_refcannot take a block fromrepos.yaml.repos installfails that repo and names the entry, andrepos statusreports a block that is already installed asincompatible. For this, the managed config schema version is now 3.agent addandagent removeno longer copy entries fromconfig.base.yamlintoconfig.yaml.agent removenow fails for an agent thatconfig.base.yamldefines. Before, it could say it removed the agent while the agent stayed registered.config.yamlentry that has only a name when theconfig.base.yamlentry of the same name completes it. The check had the same problem withmodeland the other settings before this PR.AgentEntrychecklist indocs/contributing/harness-composition.md.Breaking change:
harness:key under an agent entry was ignored. Now it is read. If it is not a valid block, config validation fails.tracker. Upgrade the CLI first.Things the ADR does not say, and what I did:
repos.yaml, only one layer can set an agent's block:defaults, the forge section, or the repositoryconfig. They all end up in oneconfig.yaml. To have an org-wide block and a per-repo one, put the org-wide one in theconfig_basepreset.allowed_remote_resources,allow_runtime_fetch,max_runtime_fetches). Abase:harness works the same way. Lint warns when a block drops one. Setallow_runtime_fetch: falsein the block to drop them without the warning.allow_ci_variable_credentialeither. Abase: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 tofalseto drop it without the warning.readonly_repo: false, even on the review agent. Abase:harness can do the same (fix(#7360)!: inherit readonly_repo through base: composition #9365).fullsend runfails if the block is only in<fullsend-dir>/.fullsend/config.yaml. Pass the.fullsenddirectory to--fullsend-dir.fullsend lockapplies a block only to the harness its entry points to. If an oldharness/<name>.yamlis still there and the entry does not use it, it is locked without the block.source.Not fixed here:
host_filesentry under.env.d. The ADR only talks aboutenv.internal/cliandinternal/harness. Thefullsendbinary does.Testing
make lintpasses (stage changes first, then run)Checklist
!for breaking changes)🤖 Generated with Claude Code