Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ This repository is versioned in lockstep with [fullsend](https://github.com/full

Skills listed in harness `skills:` arrays resolve at runtime in priority order: repo-level (`.agents/skills/`), then upstream platform (`fullsend-ai/fullsend/skills/`). A skill reference is valid even if no matching directory exists in this repo. Do not treat missing local skill directories as bugs without first verifying the skill does not exist at platform level.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MEDIUM] New "shadowed by the built-in" text contradicts the repo-first skill order here and in FEATURES.md:37

This PR adds text at docs/review.md:158-159 and docs/triage.md:97-98 saying a same-named issue-labels skill in .agents/skills/ "is shadowed by the built-in version and is ignored". That matches fullsend's warnRepoSkillCollisions (internal/cli/skill_collision.go), whose code comment says Claude Code installs harness skills at the higher-precedence personal level.

Two places in files this PR edits still say the opposite:

  • This line (next to the edited line 64) says skills "resolve at runtime in priority order: repo-level (.agents/skills/), then upstream platform".
  • The FEATURES.md:37 row the PR rewrote still starts "Repo owners drop a replacement skill in .agents/skills/".

Agents that read AGENTS.md will treat a repo-level skill with the same name as a working override. Earlier threads covered the dedupe key (basename vs name) and the paragraph inside triage.md, not these two places.

Suggestion: In this PR, reword AGENTS.md §7 so repo-level skills are not described as taking priority over harness skills with the same name. Replace the FEATURES.md:37 phrase "Repo owners drop a replacement skill in .agents/skills/" with the extend-vs-override wording: a uniquely named repo skill extends, and base: composition with the same name: overrides. Say the shadowing is Claude Code's behaviour unless it has been checked on codex and pi.


To override an upstream skill, create a custom harness with `base:` composition pointing to the upstream harness and include the replacement skill in `skills:`. The override path's basename must match the upstream skill's basename so `mergeSkills` dedupes by basename and yours wins. For example:
To override an upstream skill, create a custom harness with `base:` composition pointing to the upstream harness and include the replacement skill in `skills:`. `mergeSkills` dedupes by the skill name declared in the SKILL.md frontmatter (fullsend-ai/fullsend #5408), falling back to the path basename when no valid name is declared, so your replacement must declare the same `name:` as the upstream skill to take its place. For example:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[medium] protected-path

PR modifies protected governance file AGENTS.md (one-line documentation edit about mergeSkills dedupe-by-name). The PR description explains the rationale, but human approval is always required for protected-path changes, regardless of context.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MEDIUM] Name-based skill dedup is credited to fullsend #5408, which shipped basename dedup

This line, FEATURES.md:37, docs/review.md:167 and docs/triage.md:106 say mergeSkills dedupes by the SKILL.md name: and cite fullsend-ai/fullsend #5408.

  • #5408 is the issue "Overriding a built-in skill via base: composition fails with duplicate sandbox-name error". Its fix, PR #5409, is "fix(#5408): deduplicate skills by basename during base composition" (merged 2026-07-21). That is the behaviour this PR's text replaces.
  • Name-based identity came from issue #7830 ("Forge skills that share a directory basename replace each other") and PR #7833 ("fix(#7830)!: keep nested forge skills that share a basename", merged 2026-10-15). skill.SandboxName on fullsend main returns the declared name and falls back to the basename.

A reader who follows the citation lands on the basename change the text contradicts.

Suggestion: In all four places, cite fullsend-ai/fullsend#7830 (fix PR #7833) for name-based dedup. Keep #5408/#5409 only as history of the earlier basename dedup.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[medium] protected-path

PR modifies protected path AGENTS.md (section 7 skill-override guidance). Human approval is always required for protected-path changes regardless of context. The PR body does not mention this file; rationale appears only in a commit message and a cross-repo reference (fullsend-ai/fullsend#5710) that was not fetched.


```yaml
# .fullsend/review.yaml
Expand Down
2 changes: 1 addition & 1 deletion FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Before writing code, answer:
|---------|-------------|---------|
| **Environment variable** | Runtime behavior toggle, simple values, specific to one agent — per ADR 0080 (fullsend-ai/fullsend), this is single-agent behavior tuning rather than a `config.yaml` field. Repo owners set it in their base-derived harness files, overriding via `base:` composition (ADR 0045). Per ADR 0049, it must use an `{AGENT}_` prefix. Per ADR 0081, the CI workflow `env:` block is reserved for infrastructure plumbing (credentials, project IDs, regions) — don't use workflow inputs to set a behavior knob's value, except for values only computable at CI runtime. We recommend picking one surface per option — either an env var or a `config.yaml` option, not both — to avoid two sources of truth. | `TRIAGE_AUTO_CODE` |
| **`config.yaml` option** | The option should be respected by *every* agent, not just one — no agent-specific prefix, and not configurable via env var. | the cross-repo allow list |
| **Skill override** | The behavior is best expressed as natural-language instructions to the agent. Repo owners drop a replacement skill in `.agents/skills/`. Org owners override via `base:` composition (ADR 0045) — inherit the upstream harness and add the skill under `skills:` with the same basename as the one being replaced, so the merge dedupes by basename (fullsend-ai/fullsend #5409) and it wins. | `issue-labels` skill |
| **Skill override** | The behavior is best expressed as natural-language instructions to the agent. Repo owners drop a replacement skill in `.agents/skills/`. Org owners override via `base:` composition (ADR 0045) — inherit the upstream harness and add the skill under `skills:` declaring the same SKILL.md `name:` as the one being replaced, so the merge dedupes by name (fullsend-ai/fullsend #5408) and it wins. | `issue-labels` skill |

Environment variables are the simplest for end users to configure.
Skills are more flexible — they let repo or org owners override
Expand Down
33 changes: 33 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
---

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[low] pattern-inconsistency

YAML frontmatter was added to seven docs, but docs/scribe.md (also an agent page) was left without it, so it is now the only agent doc lacking the description: block the PR says the docs site requires.

Suggested fix: Add matching frontmatter to docs/scribe.md, or state why it is excluded.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of scope, may address in a followup issue

description: Reference for the agents fullsend ships and how to register custom agents — resolved at runtime from the fullsend-ai/agents repository or your repository-local config.
---

# Agents

Reference documentation for the default agents shipped by fullsend.
The default agents are defined in this repository
([`fullsend-ai/agents`](https://github.com/fullsend-ai/agents))
and resolved at runtime via config entries or agents-repo fallback.
Custom agents can be registered via the `agents:` field in the repository-local
`.fullsend/config.yaml`.

| Agent | Summary |
|-------|---------|
Expand All @@ -19,6 +28,30 @@ Reference documentation for the default agents shipped by fullsend.
| [Behaviour testing](behaviour-testing.md) | Live behaviour test suite for agents |
| [Custom network policy](network-policy.md) | Configure sandbox network access for hosts beyond the default allowlist |

## Configuration

All agents can be configured by adding instructions and skills to your
repository. Changes to `AGENTS.md` affect every agent; skills let you tune how
a specific agent performs a specific task. See
[Configuring with AGENTS.md](https://fullsend.sh/docs/guides/user/customizing-with-agents-md) and
[Configuring with Skills](https://fullsend.sh/docs/guides/user/customizing-with-skills).

At some point, enough configuration turns a configured default agent into a
derived agent. See
[Default, derived, and custom agents](https://fullsend.sh/docs/guides/user/default-vs-custom)
for where that line is and why it matters.

## Custom Agents

Custom agents can be added to the fullsend pipeline via the `agents:` field in
the target repository's `.fullsend/config.yaml`, optionally layered over
`.fullsend/config.base.yaml`. Each entry is either a local path
(relative to the fullsend directory) or a pinned HTTPS URL with an integrity
hash. Config entries are looked up directly by name; when absent, a runtime
Comment thread
qodo-code-review[bot] marked this conversation as resolved.
Resolved
fallback resolves known first-party agents from `fullsend-ai/agents`.
See [Bring Your Own Agent](https://fullsend.sh/docs/guides/user/bring-your-own-agent)
for the complete guide to building and registering custom agents.

For configuration, customization, and building your own agents, see the
[fullsend docs](https://fullsend.sh/docs). To build one, run
[`fullsend agent new`](https://github.com/fullsend-ai/fullsend/blob/main/docs/cli/agent.md#agent-new)
Expand Down
61 changes: 61 additions & 0 deletions docs/code.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
description: How the fullsend code agent implements triaged GitHub issues following repository conventions, runs tests and linters, and commits to a feature branch.
---

# Code Agent

![Code agent icon](icons/coder.png)
Expand Down Expand Up @@ -59,6 +63,63 @@ See [Customizing with AGENTS.md](https://fullsend.sh/docs/guides/user/customizin
| `FULLSEND_APP_SET` | GitHub App identity prefix for custom deployments. The pre-script derives the bot/coder bot logins (`<prefix>[bot]` / `<prefix>-coder[bot]`) excluded from the existing-PR check, so PRs opened by a custom coder bot aren't misclassified as human PRs. | `"fullsend-ai"` | Any GitHub App identity prefix |
| `GITHUB_SIGNED_COMMITS` | Set to `"true"` to publish the branch through the GitHub Git Data API so GitHub signs the commits (see [Signed commits](#signed-commits)); anything else keeps `git push`. The default is set in the GitHub overlay of `harness/code.yaml` (and `harness/fix.yaml` for the fix agent); override per repo via `base:` composition. | `"false"` | `"true"`, `"false"` |

### Image and network policy synchronization

By default, the code and [fix agent](fix.md) use the same upstream container
image and the same shared sandbox policy (`policies/base.yaml` in
[fullsend-ai/agents](https://github.com/fullsend-ai/agents)). They are
separate harnesses, though — you can override each independently when
their needs diverge. For example, the code agent's Jira overlay adds the
`jira-ro` provider for Jira-sourced issues, while the fix agent works
from PR feedback and has no Jira access. Note that under `base:`
composition a child harness's `providers:` list is appended to the
base's — you can add providers to one harness only, but you cannot
remove a provider the base defines; that requires a full harness
without `base:`.

> **Warning:** If you customize image, `policy:`, or `providers:` on only one
> agent by mistake, the other may fail with no obvious reason (for example, a
> package manager or registry endpoint allowed in code but not fix).

**Recommended configuration**

If you want both agents to share one behavior set — one place to edit image,
policy, providers, and runner scripts — put the same overrides in both harness
files in your repo's `.fullsend/` directory:

```yaml
# .fullsend/harness/code.yaml (register as source: harness/code.yaml in config.yaml)
base: https://raw.githubusercontent.com/fullsend-ai/agents/<SHA>/harness/code.yaml#sha256=<sha256sum>
image: ghcr.io/your-org/your-fullsend-image@sha256:…
policy: policies/base.yaml
providers:
- vertex-ai
- package-registries

# .fullsend/harness/fix.yaml (register as source: harness/fix.yaml in config.yaml)
base: https://raw.githubusercontent.com/fullsend-ai/agents/<SHA>/harness/fix.yaml#sha256=<sha256sum>
image: ghcr.io/your-org/your-fullsend-image@sha256:…
policy: policies/base.yaml # same file — edit once, both agents use it
providers:
- vertex-ai
- package-registries
```

Keep the shared policy at `.fullsend/policies/base.yaml`. The policy file
defines non-network sandbox restrictions only — filesystem access, landlock, and

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MEDIUM] New "policy is non-network only" text contradicts the linked docs/network-policy.md guide

This paragraph and the same paragraph in docs/fix.md (~line 149) now say the policy file "defines non-network sandbox restrictions only — filesystem access, landlock, and process identity. Network access is controlled through providers: profiles". That matches policies/base.yaml (lines 3-8, ADR 0065).

But docs/network-policy.md, which these pages point readers to for custom network access, still says:

  • "The policy controls two things: Endpoints ... Binaries" (lines 10-13).
  • Step 1 (lines 40-60): copy policies/base.yaml to .fullsend/policies/<agent>.yaml and append a network_policies: block for the host.
  • Troubleshooting (line 112): blames "Host is not in the policy".

A reader following this reconcile PR gets two opposite instructions for adding an endpoint.

Suggestion: In this PR, update docs/network-policy.md so that adding an endpoint goes through a provider profile (providers: / profiles/), and keep policy: for filesystem, landlock and process only. Or add a short pointer here and in fix.md that network-policy.md is out of date until a follow-up lands.

process identity. Network access is controlled through `providers:` profiles
listed in the harness (see the
[fullsend architecture docs](https://fullsend.sh/docs/architecture#agent-sandbox)
for details on provider-backed policy composition) — when unifying
configuration, keep the `providers:` additions the same on both harnesses
too (each list is appended to its base harness's providers, so the
effective sets may still differ if the bases differ). The
same pattern applies to `pre_script` and `post_script` when you want a single
place to maintain runner-side behavior.

See [Customizing Agents](https://fullsend.sh/docs/guides/user/customizing-agents)
for harness composition.

## How the agent works

The code agent follows a three-phase pipeline: pre-script, sandbox execution, post-script.
Expand Down
116 changes: 116 additions & 0 deletions docs/fix.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
description: How the fullsend fix agent reads PR review feedback, implements targeted fixes, runs tests and linters, and commits the result.
---

# Fix Agent

![Fix agent icon](icons/coder.png)
Expand Down Expand Up @@ -55,10 +59,37 @@ command. The text gives you direct control over what to fix:
further automatic fix runs. Manual `/fs-fix` commands still work.
Remove the label or use `/fs-fix` to re-engage.

For **PRs authored by the fullsend code agent** (`fullsend-ai-coder[bot]`), or
by the configured app-set coder (`${FULLSEND_APP_SET}-coder[bot]`), automatic
fixing happens with no extra setup — the fix agent responds to review feedback
out of the box. In `gh pr view --json author` output, the configured coder is
identified as `app/${FULLSEND_APP_SET}-coder` and must also have
`.author.is_bot == true`. PRs from other bots (e.g., Renovate) require the
`fullsend-fix` label; without it, the bot-triggered fix run is dispatched but
the eligibility check exits early with a warning.

For **human-authored PRs**, the fix agent will not auto-fix review feedback
unless you opt in by adding the `fullsend-fix` label. This prevents the agent
from pushing commits to your branch without your consent. You can still use
`/fs-fix` at any time regardless of the label — the label only controls
automatic (bot-triggered) runs.

**GitLab scope note:** on GitLab, the dispatch router enforces the
`fullsend-no-fix` stop valve for the changes-requested MR-note path. The
`fullsend-fix` opt-in gate for human-authored and non-coder-bot MRs — enforced
on GitHub by
[`check-fix-eligibility.sh`](https://github.com/fullsend-ai/fullsend/blob/main/.github/scripts/check-fix-eligibility.sh) —
is not yet implemented for GitLab: the router does not currently have
enough MR-author identity information to distinguish the fullsend code
agent from other authors. Until that parity lands, bot-triggered fix
runs on GitLab MRs are gated only by `fullsend-no-fix`, not by
`fullsend-fix`.

## Control labels

| Label | Meaning |
|-------|---------|
| `fullsend-fix` | Enables automatic bot-triggered fix runs on human-authored PRs and PRs from bots other than the fullsend code agent. Without this label, the fix agent only runs when explicitly invoked via `/fs-fix`. PRs authored by `fullsend-ai-coder[bot]` are always eligible without this label. **GitLab:** not yet enforced — see the scope note above. |
| `fullsend-no-fix` | Prevents automatic fix runs on this PR. Applied by `/fs-fix-stop`. Manual `/fs-fix` commands are unaffected. |
| `fullsend-fix-budget/N` | Lowers the automatic fix cap for this PR to `N` (a positive integer below `ITERATION_CAP`). Set by a maintainer; the review agent cannot add or remove it. A label that is not a positive integer, is oversized, or is not lower than `ITERATION_CAP` is ignored; with several valid labels the smallest `N` wins. `needs-human` and the stop message use the lowered cap. Manual `/fs-fix` commands are unchanged and keep `ITERATION_CAP_HUMAN`. |
| `needs-human` | The fix agent is approaching its iteration cap and needs human direction. Applied automatically when an automatic fix iteration reaches the warning threshold. |
Expand All @@ -77,6 +108,63 @@ See [Customizing with AGENTS.md](https://fullsend.sh/docs/guides/user/customizin
| `GITHUB_SIGNED_COMMITS` | `false` | `true` publishes the branch through the GitHub Git Data API so GitHub signs the commits (see [Signed commits](code.md#signed-commits)); anything else keeps `git push`. Set in the GitHub overlay (`runtime.forge == "github"`) of `harness/fix.yaml`; override via `base:` composition. |
| `FIX_CONFLICT_UPDATE_STRATEGY` | `merge` | How the fix agent updates a PR/MR when the forge reports a **real** merge conflict: `merge` (default; creates a merge commit and preserves history) or `rebase` (replays the PR onto the target; the post-script force-pushes with `--force-with-lease`). Blocked/behind/unknown mergeability is never treated as a conflict. Override via `base:` composition. |

### Image and network policy synchronization

By default, the fix and [code agent](code.md) use the same upstream container
image and the same shared sandbox policy (`policies/base.yaml` in
[fullsend-ai/agents](https://github.com/fullsend-ai/agents)). They are
separate harnesses, though — you can override each independently when
Comment thread
rh-hemartin marked this conversation as resolved.
Resolved
their needs diverge. For example, the code agent's Jira overlay adds the
`jira-ro` provider for Jira-sourced issues, while the fix agent works
from PR feedback and has no Jira access. Note that under `base:`
composition a child harness's `providers:` list is appended to the
base's — you can add providers to one harness only, but you cannot
remove a provider the base defines; that requires a full harness
without `base:`.

> **Warning:** If you customize image, `policy:`, or `providers:` on only one
> agent by mistake, the other may fail with no obvious reason (for example, a
> package manager or registry endpoint allowed in code but not fix).

**Recommended configuration**

If you want both agents to share one behavior set — one place to edit image,
policy, providers, and runner scripts — put the same overrides in both harness
files in your repo's `.fullsend/` directory:

```yaml
# .fullsend/harness/code.yaml (register as source: harness/code.yaml in config.yaml)
base: https://raw.githubusercontent.com/fullsend-ai/agents/<SHA>/harness/code.yaml#sha256=<sha256sum>
image: ghcr.io/your-org/your-fullsend-image@sha256:…
policy: policies/base.yaml
providers:
- vertex-ai
- package-registries

# .fullsend/harness/fix.yaml (register as source: harness/fix.yaml in config.yaml)
base: https://raw.githubusercontent.com/fullsend-ai/agents/<SHA>/harness/fix.yaml#sha256=<sha256sum>
image: ghcr.io/your-org/your-fullsend-image@sha256:…
policy: policies/base.yaml # same file — edit once, both agents use it
providers:
- vertex-ai
- package-registries
```

Keep the shared policy at `.fullsend/policies/base.yaml`. The policy file
defines non-network sandbox restrictions only — filesystem access, landlock, and
process identity. Network access is controlled through `providers:` profiles
listed in the harness (see the
[fullsend architecture docs](https://fullsend.sh/docs/architecture#agent-sandbox)
for details on provider-backed policy composition) — when unifying
configuration, keep the `providers:` additions the same on both harnesses
too (each list is appended to its base harness's providers, so the
effective sets may still differ if the bases differ). The
same pattern applies to `pre_script` and `post_script` when you want a single
place to maintain runner-side behavior.

See [Customizing Agents](https://fullsend.sh/docs/guides/user/customizing-agents)
for harness composition.

### Skill: `fix-review`

The fix agent uses the `fix-review` skill for its procedure. Forge-specific recipes live in `skills/fix-review/github` and `skills/fix-review/gitlab`.
Expand Down Expand Up @@ -340,6 +428,34 @@ uses `gh` for API access; on GitLab, it uses `curl` against the REST API.
Scripts dispatch forge-specific operations through `fix-ops.lib.sh`, and
forge-specific skills provide the appropriate CLI recipes.

On GitLab, dispatch pipelines run from the repository default branch, so
the fix job fetches the MR source SHA into `target-repo/` and points
`--target-repo` there before `fullsend run`. Trusted `.fullsend/` config
continues to be read from the default-branch working tree. Fetching the
source branch without checking it out is not sufficient: the sandbox
inherits the runner checkout, and the agent cannot recover the reviewed
revision from inside the sandbox.

**GitLab fork and cross-project MRs:** the job-level fork gate (`IS_FORK`)
still denies both the **code** and **fix** agents outright on a
fork/cross-project dispatch. Code opens a new MR against the target
project and has no analogous validated source revision to check out.
Fix is denied for a different reason: although the pre-script
(`checkout-mr-source.sh`) already resolves the MR's source project,
branch, and head SHA through `fullsend resolve-mr-source` (never
trusting the job's `IS_FORK` pipeline variable or any other unverified
CI variable), fetches and checks out that exact revision — fetching
from the source project even when it differs from the target project —
and runs a pre-push safety gate, `fullsend check-protected-branch`,
against the resolved source project and branch before the fix agent
ever runs, the runner-side post-script that actually pushes the
resulting fix commit still targets this job's own project and branch
rather than the validated source project. A validated checkout alone is
not enough to make a fork/cross-project fix dispatch safe to publish, so
the `IS_FORK` gate stays in place for `fix` until a source-targeted
publish path ships in a follow-up PR
([fullsend-ai/fullsend#7814](https://github.com/fullsend-ai/fullsend/pull/7814)).

### GitLab-specific variables

| Variable | Description |
Expand Down
Loading
Loading