diff --git a/docs/contributing/runtime-implementation.md b/docs/contributing/runtime-implementation.md index 2554445879..4c9054d446 100644 --- a/docs/contributing/runtime-implementation.md +++ b/docs/contributing/runtime-implementation.md @@ -1687,8 +1687,16 @@ Two artefacts of the run are worth knowing about: and local smoke runs. - The rollout session files are archived as transcripts but not error-classified: only the tee'd `exec --json` capture yields a verdict, which is what the runner's exit-code override reads. -- Native sub-agents (ADR 0126) have not completed a fleet-shaped run; `review`/`retro` stay on - Claude Code in the docs until one does. +- Native sub-agents (ADR 0126) have run fleet-shaped only locally on macOS Apple Silicon, + natively and in a Fedora CoreOS (aarch64) podman VM + ([#6970](https://github.com/fullsend-ai/fullsend/issues/6970)), not through the fleet + workflows. In two of the three `review` runs on #6970 a persona the skill selects did not run, + and neither result said so ([#9073](https://github.com/fullsend-ai/fullsend/issues/9073), + [#9657](https://github.com/fullsend-ai/fullsend/issues/9657)). On collaboration V2 (ADR 0159), + `review` and `retro` have run natively on macOS only + ([#9085](https://github.com/fullsend-ai/fullsend/issues/9085#issuecomment-6920231259)), and there the + `review` parent dropped the challenger's kept findings after its own check of the repository + ([#9657](https://github.com/fullsend-ai/fullsend/issues/9657)). ### Re-check on a `CODEX_VERSION` bump diff --git a/docs/guides/getting-started/choosing-a-runtime.md b/docs/guides/getting-started/choosing-a-runtime.md index 8b1a94c3a9..60de94d3a4 100644 --- a/docs/guides/getting-started/choosing-a-runtime.md +++ b/docs/guides/getting-started/choosing-a-runtime.md @@ -4,7 +4,7 @@ sidebar_label: Choose a Runtime # Choose an agent runtime -> **Claude Code is the stable default.** The fleet agents have run on Claude Code in production for a long time; it is what a new installation gets unless you ask for something else. **pi and codex are experimental** — pi works end to end for `triage`, `prioritize`, `code`, `fix` and `review`/`retro`; codex runs OpenAI models through the same secretless credential path; `review`/`retro` are best left on Claude Code there. Neither runtime has completed a fleet pilot. Unless you are taking part in one, keep the default. +> **Claude Code is the stable default.** The fleet agents have run on Claude Code in production for a long time; it is what a new installation gets unless you ask for something else. **pi and codex are experimental** — pi works end to end for `triage`, `prioritize`, `code`, `fix` and `review`/`retro`; codex runs OpenAI models through the same secretless credential path, but in two of the three local `review` runs on [#6970](https://github.com/fullsend-ai/fullsend/issues/6970) a selected review persona (a sub-agent that checks one aspect of the change) did not run and the result did not say so, and in a later run the review dropped findings its challenger persona (the one that re-checks the others' findings) had kept ([details](../../runtimes/codex.md#not-yet-exercised)). Neither runtime has completed a fleet pilot. Unless you are taking part in one, keep the default. This page explains what the choice means and where it is made. **You do not select anything on this page** — the selection happens in the next step. On GitHub, [Configuring GitHub](configuring-github.md) asks when you run `fullsend github setup` (press Enter for `claude`) or you pass `--runtime`. On GitLab, set `runtime:` in `defaults.config`, `gitlab.config`, or the repository entry's `config` in `repos.yaml` before running `fullsend repos install` (there is no install flag) — see [Configuring GitLab](configuring-gitlab.md). @@ -16,7 +16,7 @@ Fullsend supports multiple agent runtimes. A runtime is the program that runs in |---------|--------|-------------|-------------| | `claude` | **Stable (default)** | Claude Code on Vertex AI | Every production deployment — mature, full sub-agent support for `review`/`retro` | | `pi` | Experimental (enablement phase) | [Pi](https://github.com/earendil-works/pi) — Claude on Vertex by default; any provider pi supports by model name (e.g. Gemini on Vertex with the same credentials) | Opt-in pilots only; see [Runtimes](../../runtimes.md) for known constraints | -| `codex` | Experimental | [Codex](https://github.com/openai/codex) — OpenAI models through the same secretless credential path, or any Responses-capable model through an inference gateway (`gateway/`) | Opt-in pilots only, when you want GPT specifically. Sub-agents run as [native Codex children](../../runtimes/codex.md#sub-agents), not yet verified fleet-wide, so keeping `review`/`retro` on Claude Code is recommended; needs an OpenAI or `gateway/` model named (`FULLSEND_CODEX_MODEL`) because the fleet harnesses ask for `opus`; see [Codex](../../runtimes/codex.md) | +| `codex` | Experimental | [Codex](https://github.com/openai/codex) — OpenAI models through the same secretless credential path, or any Responses-capable model through an inference gateway (`gateway/`) | Opt-in pilots only, when you want GPT specifically. Sub-agents run as [native Codex children](../../runtimes/codex.md#sub-agents) when harness security is on (`security.enabled`, the default) and Codex resolves the parent model to [collaboration V1 or V2](../../runtimes/codex.md#sub-agents) at its pinned version, except on a `gateway/` model or, for a V2 parent, when a child model selects V2; otherwise the parent does the sub-agents' work itself; needs an OpenAI or `gateway/` model named (`FULLSEND_CODEX_MODEL`) because the fleet harnesses ask for `opus`; see [Codex](../../runtimes/codex.md) | | `opencode` | Experimental | [OpenCode](https://opencode.ai/) — reads `AGENTS.md` natively | Opt-in read-only agents (`triage`, `prioritize`) until the security-hook adapter lands; see [OpenCode](../../runtimes/opencode.md) | ## When and how the runtime is selected diff --git a/docs/runtimes.md b/docs/runtimes.md index 2a450f3434..b4b4ce1f4d 100644 --- a/docs/runtimes.md +++ b/docs/runtimes.md @@ -58,7 +58,7 @@ sequenceDiagram | Sub-agents | Native (`Agent` tool) | `Agent`/`Task` via a fullsend extension | Native Codex children under a runner-owned policy, for an agent whose tools include `Agent` (or that declares no `tools:`), with harness security on, on a parent model Codex resolves to collaboration V1 or V2 on the direct route ([Sub-agents](runtimes/codex.md#sub-agents)) | | Default alias models | `opus`/`sonnet`/`haiku` → `claude-*-5-5`, passed as the id; `fable` by Claude Code's own table; sub-agent frontmatter resolved by Claude Code | `opus`/`sonnet`/`haiku` → `claude-*-5-5`, `fable` → `claude-fable-5-1`, children included | Not applicable — OpenAI models only | | Fallback model chain | Alias requests retried by the runner when Vertex does not serve the model (Claude Code's own "model not available" result naming the model, or Vertex's [two 404/403 messages](runtimes/claude.md#models)): `FULLSEND_FALLBACK_MODELS`, else the alias's built-in chain (`opus` → `claude-opus-4-6`, `sonnet` → `claude-sonnet-4-6`, `haiku` → `claude-haiku-4-5`); only an explicit `FULLSEND_FALLBACK_MODELS` is also passed as `--fallback-model`, never the built-in chain; pinned ids, retargets and sub-agents fail loudly | The same chain, same provider only; sub-agent children asking for an alias use its built-in chain; pinned ids and retargets fail loudly | Ignored with a warning | -| Roles | All | All; `review`/`retro` at `--thinking medium` by default | Same recommendation as before until a fleet-shaped run completes ([Sub-agents](runtimes/codex.md#sub-agents)) | +| Roles | All | All; `review`/`retro` at `--thinking medium` by default | All; some `review` runs have dropped a sub-agent the skill selects without saying so, or findings its challenger kept ([#9073](https://github.com/fullsend-ai/fullsend/issues/9073), [#9657](https://github.com/fullsend-ai/fullsend/issues/9657)) | | Effort | `--effort low..max` | `--thinking`, same levels (`high` when unset) | `model_reasoning_effort`, same levels | | Tools | Native Claude permission syntax | `--tools` (strict) + a first-token Bash allowlist | Shell + `apply_patch` only; `tools:` is recorded, not enforced (the allowlist hook is opt-in) | | Security controls | Full matrix | Full matrix; stricter on failed-call sanitizing | Full matrix; post-tool hooks detect and block but cannot rewrite output | diff --git a/docs/runtimes/codex.md b/docs/runtimes/codex.md index 1dac8f18d3..01d4327f8f 100644 --- a/docs/runtimes/codex.md +++ b/docs/runtimes/codex.md @@ -208,7 +208,10 @@ run at once on V2; the depth is one. A runner-owned hook admits a spawn only for role with that fresh context and no model or effort override; it denies resume, V2's message and follow-up calls, Codex's built-in `explorer` and `worker`, and any spawn from a child. A denied spawn is final for that role: the parent runs that -sub-agent definition itself. A wait works the other way. On V2 Codex refuses a `wait_agent` whose +sub-agent definition itself. In a fleet-shaped V1 `review` run on +[#6970](https://github.com/fullsend-ai/fullsend/issues/6970) the parent dropped the denied persona +instead, and its result did not say so ([#9073](https://github.com/fullsend-ai/fullsend/issues/9073)). +Unlike a denied spawn, a refused wait is not final. On V2 Codex refuses a `wait_agent` whose `timeout_ms` is over 120000, a max the runner sets in Codex's own config, and the parent waits again with a shorter timeout; on V1 Codex has no such setting, and the runtime note asks for the same cap. A spawn the hook did not admit fails the run after the fact, within @@ -347,9 +350,10 @@ What a local codex run needs, beyond the guide: - **Debugging** — `--debug='*'` (the `=` is required); sandbox-side failures land in `codex-debug.log` inside the run directory, next to the transcripts, not in the runner's output. -- **Platforms** — the runtime was brought up and smoke-tested on macOS Apple Silicon (podman - machine, Homebrew `openshell`, arm64 image); the local guide's platform notes otherwise apply - unchanged. +- **Platforms** — the runtime was brought up and smoke-tested locally on macOS Apple Silicon + (podman machine, Homebrew `openshell`, arm64 image), and `review` and `retro` also ran with + fullsend and OpenShell 0.1.4 (CI's pin) inside a Fedora CoreOS (aarch64) podman VM on the same + Mac. The local guide's platform notes otherwise apply unchanged. ## Behaviour differences worth knowing @@ -433,28 +437,43 @@ What a local codex run needs, beyond the guide: ## Not yet exercised -**Start on a disposable repo,** with `triage` or `prioritize` before `code` or `fix`. Codex has been -run end to end by hand — the fleet's own `triage` and `review` harnesses, on `openai/gpt-5.6-luna`, -on macOS — but not yet through a full fleet lifecycle, and not yet on the CI credential path: the -Workload Identity route needs an OpenAI organization mapped to the repositories, which does not -exist yet, so local runs use `OPENAI_API_KEY` on the runner. Until that mapping exists codex also -has no default behaviour-test coverage; its scenario is gated. What was run, and on which versions, -is recorded in [codex runtime -internals](../contributing/runtime-implementation.md#codex-runtime-internals-6920). - -**Keep `review` and `retro` on Claude Code.** Their sub-agents run as native Codex children -([Sub-agents](#sub-agents)), but that path has not completed a fleet-shaped run yet. Nothing -prevents a repo-wide `runtime: codex` from applying to them — they will run — so pin them with -`runtime: claude` on their `agents:` entries until it has: - -```yaml -agents: - - name: review - runtime: claude -``` - -**`code` and `fix` delegate too.** They declare no `tools:`, so on a V1 or V2 parent on the -direct route with harness security on they get the `default` and `explore` roles, children with the parent's shell and `apply_patch`, +**Start on a disposable repo,** with `triage` or `prioritize` before `code` or `fix`. Codex has +been run end to end by hand, locally on macOS Apple Silicon. On `openai/gpt-5.6-luna`, a V1 +parent, the fleet's own `triage`, `code`, `fix`, `review` and `retro` harnesses ran natively, +and `review` and `retro` also ran in a Fedora CoreOS (aarch64) podman VM. On an +`openai/gpt-6.1-sol` parent, a V2 one, `review` and `retro` ran natively. None of these runs +went through a full fleet lifecycle or the CI credential path: the Workload Identity route needs +an OpenAI organization mapped to the repositories, which does not exist yet, so local runs use +`OPENAI_API_KEY` on the runner. Until that mapping exists codex also has no default +behaviour-test coverage; its scenario is gated. What was run, and on which versions, is recorded +in [codex runtime internals](../contributing/runtime-implementation.md#codex-runtime-internals-6920), +in [#8836](https://github.com/fullsend-ai/fullsend/pull/8836) (`triage`, `code` and `fix`), on +[#6970](https://github.com/fullsend-ai/fullsend/issues/6970) (`review` and `retro` on V1) and on +[#9085](https://github.com/fullsend-ai/fullsend/issues/9085#issuecomment-6920231259) (`review` +and `retro` on V2). + +**`review` and `retro` delegate.** On a V1 or V2 parent on the direct route with +harness security on, `review` runs its skill's personas and `retro` its +investigation tasks as native Codex children ([Sub-agents](#sub-agents)); +otherwise, and on a V2 parent when a child model selects V2, they run in one +context. Both have run fleet-shaped that way on +`gpt-5.6-luna`, a V1 parent, locally on macOS Apple Silicon, natively and in a Fedora +CoreOS (aarch64) podman VM, not through the fleet workflows +([#6970](https://github.com/fullsend-ai/fullsend/issues/6970)). Every run +exited 0, but in two of the three `review` runs on #6970 a persona the skill +selects did not run, and neither result said so +([#9073](https://github.com/fullsend-ai/fullsend/issues/9073), +[#9657](https://github.com/fullsend-ai/fullsend/issues/9657)). On a `gpt-6.1-sol` parent, a V2 +one, with `gpt-5.6-luna` children, `review` ran eight personas and `retro` four tasks natively on +macOS, and each child's result reached the parent once +([#9085](https://github.com/fullsend-ai/fullsend/issues/9085#issuecomment-6920231259)); the `review` +parent then dropped the challenger's kept findings after its own check of the repository +([#9657](https://github.com/fullsend-ai/fullsend/issues/9657)). To keep either agent on Claude Code, +set `runtime: claude` on its `agents:` entry ([per-agent +settings](../runtimes.md#per-agent-runtime-model-and-effort)). + +**`code` and `fix` delegate too.** They declare no `tools:`, so under the same conditions they get +the `default` and `explore` roles, children with the parent's shell and `apply_patch`, the spawn guard and the dispatch note, as `review` does. Both have run end to end that way on `gpt-5.6-luna` and chose not to spawn, so neither has run a native child yet. diff --git a/internal/cli/runtime_prompt.go b/internal/cli/runtime_prompt.go index 04246f6512..7d9cc1ecc1 100644 --- a/internal/cli/runtime_prompt.go +++ b/internal/cli/runtime_prompt.go @@ -32,7 +32,8 @@ func promptRuntime(printer *ui.Printer, in io.Reader, interactive bool) (string, printer.StepInfo("Choose the agent runtime for this repository:") printer.StepInfo(" [claude] Claude Code — stable default, recommended; all fleet agents, concurrent sub-agents") printer.StepInfo(" [pi] pi — experimental (enablement phase); any provider pi supports, no sub-agent tool yet") - printer.StepInfo(" [codex] Codex — experimental; OpenAI models, or gateway/ through an inference gateway. Recommended: keep review and retro on claude") + printer.StepInfo(" [codex] Codex — experimental; OpenAI models, or gateway/ through an inference gateway;") + printer.StepInfo(" review has skipped one of its sub-agents without saying so (#9073, #9657)") printer.StepInfo(" [opencode] OpenCode — experimental; read-only agents only until the security-hook adapter lands (unbound-force#515)") printer.StepInfo(" Keep the default unless you are taking part in a runtime pilot. Change later with `runtime:`") printer.StepInfo(" in .fullsend/config.yaml or `fullsend github setup --runtime`; see docs/runtimes.md.") diff --git a/internal/runtime/codex_bootstrap.go b/internal/runtime/codex_bootstrap.go index 76a0cce1cb..96d675030e 100644 --- a/internal/runtime/codex_bootstrap.go +++ b/internal/runtime/codex_bootstrap.go @@ -493,8 +493,9 @@ const codexV2DispatchMarker = "Dispatch follows collaboration V2." // codex's native tools and states the policy the spawn guard enforces, so // the parent passes the arguments the guard admits and handles a denial // without retrying. The first two sentences and the denied-spawn sentence -// are what the agents repository's pr-review skill keys on; change them -// only together with that skill. roles is +// are what the agents repository's pr-review skill, review agent and retro +// agent key on (fullsend-ai/agents#1849, fullsend-ai/agents#1971); change +// them only together with those. roles is // the registered roster, sorted by name (codexRoles); version is the // collaboration version the gate admitted. The V2 note keeps the keyed // sentences, puts codexV2DispatchMarker right after its third sentence,