Skip to content
Merged
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
1 change: 1 addition & 0 deletions docs/review.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ See [Customizing with AGENTS.md](https://fullsend.sh/docs/guides/user/customizin
| `REVIEW_PROTECTED_PATHS` | Comma-separated list of path prefixes the review agent treats as protected. PRs that modify files under these paths cannot be approved by the agent — only a human can grant approval. Default is set in `harness/review.yaml` (`env.runner` and `env.sandbox`); an unset value is a misconfiguration (fail-closed). Set to an empty string to deliberately disable protected-path enforcement entirely. When set to a value that parses to no valid paths (e.g. stray or consecutive commas), the script aborts (fail-closed) as a likely misconfiguration. | See [`harness/review.yaml`](../harness/review.yaml) | Comma-separated path prefixes (e.g. `.github/,deploy/,manifests/`) |
| `REVIEW_RISK_ASSESSMENT_ENABLED` | Enables the risk assessment pre-pass (GitHub only). When `true`, the orchestrator dispatches a risk-assessment sub-agent before the main review dimensions. The sub-agent computes a composite 1–5 risk score from metadata signals, git history, and linked issue context. The post-script applies a `risk/*` label and posts a sticky risk comment. Set in `forge.github.env` in the harness — not in the top-level `env:` block, since the risk assessment scripts depend on the GitHub API and produce fabricated scores on other forges. | `true` (GitHub) | `"true"`, `"false"` |
| `REVIEW_GIT_FETCH_DEPTH` | Controls clone deepening for git history analysis (risk assessment Tier 2). When set to `"0"`, the pre-script unshallows the target repo clone so the risk-assessment sub-agent can access full commit history. When unset and `REVIEW_RISK_ASSESSMENT_ENABLED` is `true`, defaults to `"0"` automatically — the Tier 2 sub-agent requires full git history. Set explicitly to any other value (e.g., `"1"`) to disable deepening even with risk assessment enabled. Set in `env.runner` in harness YAML (consumed by the pre-script on the runner). | _(auto: `"0"` when risk assessment enabled, no deepening otherwise)_ | `"0"` to fully unshallow |
| `ANTHROPIC_DEFAULT_SONNET_MODEL` | Fleet-wide base pin for the `sonnet` alias on the Claude Code runtime, exported by [`env/gcp-vertex.env`](../env/gcp-vertex.env) (mounted by every harness). Claude Code resolves the alias itself — for the main model, the Agent tool's `model:` argument and sub-agent frontmatter — and a pinned alias is used as written with no startup fallback. Override it when your Vertex project does not serve the pinned id. With `opus` unpinned, a run that reaches the CLI with no `--model` defaults to this id; every harness here sets `model:`. | `claude-sonnet-4-6` | A Claude model id your Vertex project serves, set via `env.sandbox` in a `base:` overlay |

Override any variable by extending the harness file via a `base` reference and setting `env.runner` / `env.sandbox` in your custom harness YAML. `base` composition merges `env.runner`/`env.sandbox` per-key — child values override, everything else inherits from the base (ADR 0045, ADR 0055). Per ADR 0080 and ADR 0081, this harness-level override is the correct path; the CI workflow `env:` block is reserved for infrastructure plumbing, not agent behavior knobs like these.

Expand Down
12 changes: 12 additions & 0 deletions env/gcp-vertex.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,15 @@ export ANTHROPIC_VERTEX_PROJECT_ID=${ANTHROPIC_VERTEX_PROJECT_ID}
export CLOUD_ML_REGION=${CLOUD_ML_REGION}
export GOOGLE_APPLICATION_CREDENTIALS=/tmp/.gcp-credentials.json
export GOOGLE_CLOUD_PROJECT=${GOOGLE_CLOUD_PROJECT}
# Base pin for the `sonnet` alias on the Claude Code runtime, which resolves
# aliases itself for the main model and for sub-agents. Unpinned, `sonnet`
# falls to the CLI default (claude-sonnet-4-5@20250929), which the fleet
# projects do not serve. Every harness here mounts this file, so it applies
# to all agents. A pinned alias has no fallback: if your Vertex project lacks
# this id, override it from a harness that composes this one (`base:` or
# `overlays:`) via env.sandbox.ANTHROPIC_DEFAULT_SONNET_MODEL, exported after
# .env.d (ADR 0055; the env.sandbox/host_files lint warning is expected).
# Bump together with fullsend's pi table (piModelAliases, fullsend#7028).
# `opus` and `haiku` stay unpinned: their CLI defaults are current, and
# fullsend#7031 defers the opus bump until the fleet projects serve Opus 5.
export ANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-4-6
2 changes: 1 addition & 1 deletion skills/pr-review/sub-agents/cross-repo-contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: cross-repo-contracts
description: >-
Evaluates potential API contract breakage affecting other repos.
model: claude-sonnet-4-6@default
model: sonnet
tools: Read, Grep, Glob
permissionMode: dontAsk
background: true
Expand Down
2 changes: 1 addition & 1 deletion skills/pr-review/sub-agents/docs-currency.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: docs-currency
description: >-
Evaluates documentation staleness against code changes.
model: claude-sonnet-4-6@default
model: sonnet
tools: Read, Grep, Glob
permissionMode: dontAsk
background: true
Expand Down
2 changes: 1 addition & 1 deletion skills/pr-review/sub-agents/intent-coherence.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: intent-coherence
description: >-
Evaluates architectural coherence & fit, design coherence,
intent alignment, PR scope, scope authorization, and tier matching
model: claude-sonnet-4-6@default
model: sonnet
tools: Read, Grep, Glob
permissionMode: dontAsk
background: true
Expand Down
2 changes: 1 addition & 1 deletion skills/pr-review/sub-agents/risk-assessment.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: risk-assessment
description: >-
Computes composite PR risk score from metadata, git history,
and linked issue signals.
model: claude-sonnet-4-6@default
model: sonnet
tools: Read, Bash, Grep, Glob
permissionMode: dontAsk
background: false
Expand Down
3 changes: 3 additions & 0 deletions skills/pr-review/sub-agents/security-triage.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name: security-triage
description: Lightweight classifier that identifies security-critical files in large PRs for prioritized deep review.
model: haiku
Comment thread
waynesun09 marked this conversation as resolved.
Resolved
tools: Read, Grep, Glob
Comment thread
waynesun09 marked this conversation as resolved.
Resolved
permissionMode: dontAsk
background: false
---

# Security Triage
Expand Down
2 changes: 1 addition & 1 deletion skills/pr-review/sub-agents/style-conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: style-conventions
description: >-
Evaluates repo-specific naming, error-handling idioms, API shape,
and code organization.
model: claude-sonnet-4-6@default
model: sonnet
tools: Read, Grep, Glob
permissionMode: dontAsk
background: true
Expand Down
Loading