Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0f8322e
test(#9334): add reproduction test for Remove sticky comments: post
tpouyer Nov 11, 2026
635b640
fix(#9334): post every agent result as a new comment
tpouyer Nov 12, 2026
c9231c8
docs(#9334): post every agent result as a new comment
tpouyer Nov 12, 2026
8f62aa0
test(#9334): refuse when the size cap cuts the trusted line
tpouyer Nov 13, 2026
c1da73c
fix(#9334): refuse when the size cap cuts the trusted line
tpouyer Nov 13, 2026
cf3b983
fix(#9334): scope the re-run assertion to the marker comment
tpouyer Nov 13, 2026
a0a9522
docs(#9334): scope the re-run assertion to the marker comment
tpouyer Nov 13, 2026
3f9ed6e
test(#9334): cover the keep-history deprecation warning and stale docs
tpouyer Nov 13, 2026
7f10c8e
docs(#9334): cover the keep-history deprecation warning and stale docs
tpouyer Nov 13, 2026
8bf4d0e
test(#9334): adapt the diff-hash tests to append-always posting
tpouyer Nov 13, 2026
0e36fc2
fix(#9334): add the dedup markers to the review comment the run created
tpouyer Nov 14, 2026
b235e02
test(#9334): refuse size-cap cuts into any trusted leading line
tpouyer Nov 14, 2026
dd0aba1
fix(#9334): refuse size-cap cuts into any trusted leading line
tpouyer Nov 14, 2026
06d51d7
fix(#9334): share the step patterns with the wiring test
tpouyer Nov 16, 2026
d219645
docs(#9334): give the run-scoped markers their retry-dedup reason
tpouyer Nov 16, 2026
15e939a
fix(#9334): shard the triage re-run append scenario
tpouyer Nov 23, 2026
e03e57b
fix(#9334): append a new skip note per unchanged-diff skip
tpouyer Nov 23, 2026
f35f788
docs(#9334): append a new skip note per unchanged-diff skip
tpouyer Nov 23, 2026
4fd84e3
fix(#9334): supersede each skip note at most once
tpouyer Nov 24, 2026
cc3af66
docs(#9334): supersede each skip note at most once
tpouyer Nov 24, 2026
cb52bc9
fix(#9334): answer the round-11 review threads
tpouyer Nov 25, 2026
0f805c4
test(#9334): answer the round-12 review threads
tpouyer Nov 26, 2026
71b1ab9
docs(#9334): answer the round-12 review threads
tpouyer Nov 26, 2026
71ea227
fix(#9334): name the 32 KiB Jira cap fullsend's own parse cap
tpouyer Nov 30, 2026
806dc9d
docs(#9334): name the 32 KiB Jira cap fullsend's own parse cap
tpouyer Nov 30, 2026
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
4 changes: 2 additions & 2 deletions docs/agents/review.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The review agent is triggered when a PR is opened or updated, subject to the syn
1. **Pre-script** validates inputs and fetches PR metadata.
2. **Sandbox** — the agent runs the `pr-review` orchestrator skill. The orchestrator triages the change, then dispatches specialized sub-agents in parallel — each covering a distinct review dimension (correctness, security, intent & coherence, style & conventions, docs currency, and optionally cross-repo contracts). Sub-agents run concurrently and return structured findings. The orchestrator collects, deduplicates, and synthesizes findings across dimensions, runs PR-level checks (scope authorization, protected paths), and produces a structured JSON review result. The agent cannot push files, edit code, or push — it is strictly read-only.
3. **Validation loop** — the output is checked against a schema, with up to 2 retry iterations if the output is malformed.
4. **Post-script** posts the review on the PR. Findings that include a file path and a line in the change diff are also posted as inline comments on that line (GitHub review comments; GitLab merge-request discussions). Findings that cannot be positioned — file-level notes, lines outside the diff, or a GitLab diff version whose `head_sha` no longer matches the reviewed commit — stay in the sticky review comment, and on GitLab as general MR notes. Once the sticky review comment is posted, a failure to submit the forge's native review (GitHub PR review or GitLab approval) is logged as a warning and does not fail the run — the sticky comment is the authoritative record of the verdict.
4. **Post-script** posts the review on the PR. Findings that include a file path and a line in the change diff are also posted as inline comments on that line (GitHub review comments; GitLab merge-request discussions). Findings that cannot be positioned — file-level notes, lines outside the diff, or a GitLab diff version whose `head_sha` no longer matches the reviewed commit — stay in the review comment, and on GitLab as general MR notes. Every run posts a new review comment at the end of the thread. Once the review comment is posted, a failure to submit the forge's native review (GitHub PR review or GitLab approval) is logged as a warning and does not fail the run — the review comment is the authoritative record of the verdict.

If a prior review exists (e.g., re-review after fixes), it is injected into the sandbox so the agent can assess whether previous findings were addressed.

Expand All @@ -38,7 +38,7 @@ write or higher.
The `/fs-review` command does not accept arguments and always forces a review. The review agent also runs automatically on a same-repository PR when it is opened,
when its effective diff changes on a synchronize event, or when it is moved out of draft by a user with triage-level repository permission or higher.
On GitHub, a fork PR is reviewed automatically under the same rules (a bot author is checked like any other author), through the managed `fullsend-fork-pr.yaml` workflow (see [Fork pull requests](../guides/getting-started/repo-management.md#fork-pull-requests)); the `ready-for-review` label does not start a fork PR review. Dependabot PRs are not reviewed automatically. On either, someone with triage access or higher (or an OWNERS approver or reviewer) can comment `/fs-review`.
For GitHub `pull_request` synchronize events (and `pull_request_target` from shims that have not been upgraded), the review is skipped when the complete effective diff matches the previous app-verified approved review. The guard posts or updates one PR-visible `fullsend:review-skip` status comment linking the previous approved review. GitLab diff metadata uses the same normalized model, but the GitLab poller does not consume this marker yet and continues to review synchronized merge requests.
For GitHub `pull_request` synchronize events (and `pull_request_target` from shims that have not been upgraded), the review is skipped when the complete effective diff matches the previous app-verified approved review. The guard posts a new PR-visible `fullsend:review-skip` status comment for each skip, linking the previous approved review, and never edits an earlier skip note in place on that publish path; a later full review supersedes each skip note once, in place, naming the commit that superseded it. GitLab diff metadata uses the same normalized model, but the GitLab poller does not consume this marker yet and continues to review synchronized merge requests.
The deduplication check runs before final Bash/CEL stage selection, so CEL-selected review routes participate as well. File modes are part of the compared effective diff identity, so executable-bit changes cannot be hidden by an otherwise identical textual patch.
The guard fails open and runs the review when there is no prior diff hash, the prior review cannot be verified, a required hash/head or base/head tree-mode API call fails,
the file listing is incomplete or truncated, or any file has no representable patch (for example, a binary or rename-only change).
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing/config-source-inventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ These fields live on `perRepoConfig` in `internal/config/config.go`. Unset means
|---|---|---|---|---|---|---|
| `version` | Config schema version | Overlay, base, compiled `"1"` | Overlay, then base, then `"1"` | Config loader | Already layered | No. It is the schema version, not an admin policy. |
| `forge` | Hosting platform (`github` or `gitlab`) | `--forge`, overlay, base, compiled empty (GitHub) | `--forge`, then overlay, then base. If still empty, CI detection (`GITHUB_ACTIONS`/`GITLAB_CI`) fills it; outside CI it can stay empty | CLI | Already layered. The flag is a one-shot override and stays first. | Yes, when a fleet is single-forge. |
| `keep_history` | Whether sticky comments keep a collapsed previous body | `--keep-history`, overlay, base, compiled `true` | `--keep-history` (when the flag was explicitly passed), then overlay, then base, then `true` | Comment updaters | Already layered. The flag is a one-shot override and stays first. | Yes, when a fleet wants one comment style. |
| `keep_history` | Deprecated: no effect (sticky comments were removed; every result is a new comment) | `--keep-history`, overlay, base, compiled `true` | `--keep-history` (when the flag was explicitly passed), then overlay, then base, then `true` | Nothing; accepted until a cleanup removes it | Already layered. The flag is a one-shot override and stays first. | No. It no longer changes behaviour. |
| `allowed_remote_resources` | URL prefixes agents may fetch | Overlay, base, compiled fullsend and agents prefixes | Accessor-level: overlay union or deny-all, then base, then the compiled prefixes. Commands (`run`/`lint`/`lock`, harness dispatch, `dispatch --route`, Jira poll, agent set/add/update/remove) ensure fullsend's default prefixes on top of a non-empty result; `Validate()` callers (`github setup` re-runs, `repos install`) and managed `repos.yaml` validation admit the same shapes through `perRepoConfig.Validate`/`ValidateMergedManaged` (`config_base` preset validation parses the preset standalone — preset list plus the defaults, no overlay — so it is stricter than the read for overlay-only prefixes and for a preset `[]`, and looser over a runtime overlay `[]`; merged managed validation sees only the managed blocks plus the defaults, so a prefix declared only in `config.base.yaml` or a `config_base` preset makes it stricter than the read); a resolved `[]` stays deny-all | Resource fetch, agent-source validation | Already layered. Accessor-level and command-level resolution are two steps of one rule. | Yes. This is the shared fetch allowlist. |
| `tracker` | Issue tracker provider block (`github`, `gitlab`, or `jira`): the default for `fullsend issues --tracker` and the provider's `allowed_targets`, where agents may open issues | Overlay, base, compiled unset (flag required, no extra targets) | `--tracker`, then the layered file; the whole object replaces the parent when set | `fullsend issues`, issue creation | Already layered. The flag is a one-shot override and stays first. | Yes for a shared allowlist. A repository overlay replaces the whole object. |
| `status_notifications` | Start and completion comments and reactions | Overlay, base, compiled unset | Whole object replaces the parent when set | Status posting | Already layered | Yes, when a fleet wants one notification policy. |
Expand Down
5 changes: 5 additions & 0 deletions docs/guides/dev/behaviour-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,11 @@ once `the pull request head branch matches` has found it.
| `the pull request has been closed` | The pull request is closed, merged or not |
| `a comment on the issue contains "<text>"` | Some issue comment contains the text, such as a sticky marker like `<!-- fullsend:agent-status:` |
| `a comment on the pull request contains "<text>"` | Some pull request comment contains the text |
| `no comment on the issue contains "<text>"` | No comment on the issue contains the text — the inverse of `a comment on the issue contains`, pinning that a re-run appended its result without folding anything into the earlier comments (`no comment on the pull request contains "<text>"` is the pull-request form) |
| `the issue has <n> comments containing "<text>"` | Exactly <n> comments on the issue contain the text |
Comment thread
tpouyer marked this conversation as resolved.
Resolved
| `the last comment on the issue contains "<text>"` | The last (newest) comment on the issue contains the text |
| `the last comment on the issue containing "<marker>" contains "<text>"` | The newest comment on the issue carrying the marker (an agent's result marker) contains the text |
| `a comment on the issue other than the last contains "<text>"` | Some comment before the last on the issue contains the text |
| `the pull request body contains "<text>"` | The PR body contains the text. `<issue>` expands, so `"Closes #<issue>"` checks the closing reference |
| `an issue with label "<label>" and title containing "<text>" exists` | An open issue other than the scenario's own carries the label and has a matching title, such as an issue an agent filed. `<issue>` expands; use it in the title so a leftover from an earlier run cannot match. The matched issue is closed at cleanup |

Expand Down
18 changes: 9 additions & 9 deletions docs/guides/dev/cli-internals.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,14 @@ fullsend
│ │ ├── --type <id-or-name> # Jira issue type ID or name (required for Jira; Jira only)
│ │ ├── --parent <key> # Jira parent issue key for sub-tasks (Jira only)
│ │ └── --fullsend-dir <path> # .fullsend config directory (default --tracker from config.yaml)
│ ├── post-comment # Post or update a sticky comment on an issue
│ ├── post-comment # Post a marked comment on an issue
│ │ ├── --tracker <tracker> # Tracker backend: github, gitlab, or jira
│ │ ├── --project <project> # Project: owner/repo (GitHub/GitLab) or key (Jira)
│ │ ├── --number <int> # Issue number
│ │ ├── --marker <string> # Sticky marker for idempotent updates (HTML comment or Jira property)
│ │ ├── --keep-history # Append previous content as collapsed history (default true)
│ │ ├── --only-if-exists # Update an existing marked comment, never create one
│ │ └── --fullsend-dir <path> # .fullsend config directory (resolves keep_history default)
│ │ ├── --marker <string> # Marker identifying this agent's comments (HTML comment or Jira property)
│ │ ├── --keep-history # Deprecated: no effect (every result is a new comment)
│ │ ├── --only-if-exists # Post only when an earlier marked comment exists
│ │ └── --fullsend-dir <path> # .fullsend config directory
│ ├── link # Create a typed link between two issues (Jira only)
│ │ ├── --tracker <tracker> # Tracker backend; github/gitlab return "not supported"
│ │ ├── --from <key> # Source issue key (e.g. PROJ-123)
Expand All @@ -193,7 +193,7 @@ fullsend
│ ├── --comment <text> # Optional Markdown explanation
│ ├── --token <token> # GitHub/GitLab token; Jira uses runner credentials
│ └── --fullsend-dir <path> # Config directory (Jira connection and allowed targets)
├── post-review # Post sticky PR/MR review comments (formal review is best-effort)
├── post-review # Post PR/MR review comments (formal review is best-effort)
│ ├── --forge <forge> # Forge backend: github (default) or gitlab
│ ├── --base-url <url> # Forge instance URL (e.g. https://gitlab.example.com)
│ ├── --repo <owner/repo> # Repository in owner/repo format
Expand All @@ -202,8 +202,8 @@ fullsend
│ ├── --token <string> # Forge token (default: $GH_TOKEN / $GITHUB_TOKEN / gh auth token, or $GITLAB_TOKEN)
│ ├── --head-sha <sha> # Expected PR HEAD SHA (skips review if HEAD moved)
│ ├── --dry-run # Print what would be posted without API calls
│ ├── --keep-history # Append previous content as collapsed history (default true)
│ └── --fullsend-dir <path> # .fullsend config directory (default: $FULLSEND_DIR; resolves keep_history default)
│ ├── --keep-history # Deprecated: no effect (every result is a new comment)
│ └── --fullsend-dir <path> # .fullsend config directory (default: $FULLSEND_DIR)
├── review-dedup # Skip unchanged synchronize reviews or supersede prior skip notes
│ ├── --repo <owner/repo> # Repository in owner/repo format (required)
│ ├── --pr <int> # Pull request number (required)
Expand All @@ -212,7 +212,7 @@ fullsend
│ ├── --base-url <url> # Forge instance URL
│ ├── --app-set <name> # Review bot app-set name
│ ├── --app-client-id <id> # Verified review GitHub App client ID
│ ├── --publish # Publish or update the skip note after a skip decision
│ ├── --publish # Publish a new skip note after a skip decision
│ ├── --supersede # Mark existing app-verified skip notes as superseded
│ └── --head-sha <sha> # Head commit included in a superseded skip note
├── fetch-review-threads # Fetch PR/MR review threads as JSON
Expand Down
26 changes: 10 additions & 16 deletions docs/guides/infrastructure/layered-config-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ the overlay → base → code defaults chain.
| `version` | `string` | Scalar override | `"1"` |
| `runtime` | `string` | Scalar override | `"claude"` |
| `kill_switch` | `*bool` | Scalar override | `false` (inactive) |
| `keep_history` | `*bool` | Scalar override | `true` (history appended) |
| `keep_history` | `*bool` | Scalar override | `true` (deprecated: no effect) |
| `roles` | `[]string` | Replace if set | `PerRepoDefaultRoles()` |
| `agents` | `[]AgentEntry` | Keyed merge by `DerivedName()` | `nil` (none) |
| `allowed_remote_resources` | `[]string` | Union with deny-all | `DefaultAllowedRemoteResources()` |
Expand Down Expand Up @@ -237,20 +237,14 @@ unset, the accessor falls through to the base layer, then to code defaults.
- `*false` (explicit `kill_switch: false`) — locally set to inactive.
Does **not** fall through.
- `*true` (explicit `kill_switch: true`) — locally set to active.
- **`keep_history`**: Pointer to bool (`*bool`). Controls whether sticky
comment updates (from `post-review`, `post-comment`, and
`issues post-comment`) append the previous body as a collapsed
"Previous run" `<details>` block. Uses the same three-state pointer
semantics as `kill_switch`:
- `nil` (key omitted) — unset, falls through to parent.
Code default is `true` (history appended, preserving existing
behavior).
- `*true` (explicit `keep_history: true`) — updates collapse old
content into history blocks.
- `*false` (explicit `keep_history: false`) — updates replace the
comment body in-place with no history. Useful when accumulated
"Previous run" blocks add unwanted noise (e.g., when comments are
synced to Jira where `<details>` does not render as collapsible).
- **`keep_history`**: Pointer to bool (`*bool`). Deprecated: no effect.
Sticky comments were removed, so every result from `post-review`,
`post-comment`, and `issues post-comment` is posted as a new comment
and nothing is folded into "Previous run" blocks. The field keeps the
same three-state pointer semantics as `kill_switch` (`nil` falls
through to parent, an explicit value is a local decision) and stays
accepted so existing layered configs keep resolving until a cleanup
removes it.

### `mint_url` and `inference` — scalar override

Expand Down Expand Up @@ -590,7 +584,7 @@ compiled-in defaults apply:
| `version` | `"1"` |
| `runtime` | `"claude"` |
| `kill_switch` | `false` (inactive) |
| `keep_history` | `true` (history appended) |
| `keep_history` | `true` (deprecated: no effect) |
| `roles` | `["triage", "coder", "review", "fix", "retro", "prioritize"]` |
| `agents` | `nil` (none configured) |
| `allowed_remote_resources` | `["https://raw.githubusercontent.com/fullsend-ai/fullsend/", "https://raw.githubusercontent.com/fullsend-ai/agents/"]`, plus `https://<host>/fullsend-ai/fullsend/raw/` and `https://<host>/fullsend-ai/agents/raw/` when `GITHUB_SERVER_URL` names a host other than `github.com` |
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/user/bring-your-own-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Next:
✓ Agent exited with code 0 (39.2s)
...
• Running post-script: .fullsend/scripts/post-lint-docs.sh
post-lint-docs: status=ok, nothing to post (dry run: did not check for an earlier findings comment to replace)
post-lint-docs: status=ok, nothing to post (dry run: did not check for an earlier findings comment)
✓ Post-script completed (0.3s)
```

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/user/customizing-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ walkthrough.
harness/my-agent.yaml # Execution config, including the trigger
agents/my-agent.md # Agent prompt — the file you edit
schemas/my-agent-result.schema.json # What the agent must produce
scripts/post-my-agent.sh # Turns the result into one comment
scripts/post-my-agent.sh # Posts the result as a comment
policies/base.yaml # Sandbox policy (written when absent)
```

Expand Down
Loading
Loading