Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
0cb48ce
Allow top-level answers without a tool call
cartridgebasic Nov 26, 2026
cb4432c
Format the text-only completion condition
cartridgebasic Nov 26, 2026
1c0f63d
Make the text-only completion regression test deterministic
cartridgebasic Nov 27, 2026
486b89f
[Fix] Session history sends duplicate tool results after an empty-res…
zoomote[bot] Nov 27, 2026
f260a68
Add the advertised Fable 5.2 token budget for VS Code LM models (#2759)
simurg79 Nov 27, 2026
d52c781
[Chore] Move the release kickoff cron to 17:23 UTC (#2768)
zoomote[bot] Nov 28, 2026
5a0d5f9
chore: prepare v3.98.3 release (#2765)
zoomote[bot] Nov 28, 2026
dd30249
Preserve Gemini thought signatures through proxy tool calls (#2643)
edelauna Nov 28, 2026
6df2566
feat(evals): add coding-task evaluation framework (#2084) (#2154)
edelauna Nov 29, 2026
a3bf7b0
[Chore] Add memory-safe Vitest settings for local Docker runs (#2757)
zoomote[bot] Dec 1, 2026
41cf71a
[Fix] PostHog captures one exception per API error (#2330)
zoomote[bot] Dec 1, 2026
a9d40a6
feat(evals): run coding evaluations with environment approval (#2781)
edelauna Dec 2, 2026
993c967
fix(webview): keep extension-host code out of src/shared (#2790)
rrewll Dec 2, 2026
76386fe
Keep large streamed tool arguments responsive (#2726)
cartridgebasic Dec 2, 2026
7d4ebef
fix(settings): keep context window field editable when cleared (#2791)
muzman123 Dec 2, 2026
654b38a
test: isolate focus tracker tests from leaked activations (#2795)
simurg79 Dec 2, 2026
9f8e483
fix(bedrock): preserve provider reasoning across tool calls (#2796)
LouisClt Dec 2, 2026
42b0028
Merge branch 'ci-fix/zoo-plain-completion' into review/zoo-windows-pl…
cartridgebasic Dec 2, 2026
d391580
test: acknowledge plain-text completion after retry
cartridgebasic Dec 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
85 changes: 85 additions & 0 deletions .github/workflows/agent-evals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Coding task evaluations

# First stage of #2085. Candidate results only. No baseline promotion or publishing.
# Trust boundaries: docs/architecture/tla/EvalWorkflow.tla.
on:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: agent-evals
cancel-in-progress: false

jobs:
evaluate:
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main'
runs-on: ubuntu-24.04
timeout-minutes: 120
environment: final-vscode-review-smoke
steps:
- name: Checkout exact approved revision
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.sha }}
persist-credentials: false

- name: Setup Node.js and pnpm
uses: ./.github/actions/setup-node-pnpm
with:
install-args: "--frozen-lockfile"

- name: Install display dependencies
timeout-minutes: 5
run: sudo apt-get update && sudo apt-get install -y xvfb libasound2t64

- name: Prepare trust policy
env:
CANDIDATE_SHA: ${{ github.sha }}
TRUST_FILE: ${{ runner.temp }}/agent-evals-trust.json
run: |
set -euo pipefail
docker info > /dev/null
node --import tsx --input-type=module -e '
import { safeWriteJson } from "./src/utils/safeWriteJson.ts";
const sha = process.env.CANDIDATE_SHA;
if (!/^[0-9a-f]{40}$/.test(sha ?? "")) throw new Error("Invalid candidate SHA");
await safeWriteJson(process.env.TRUST_FILE, { version: 1, approvedCommits: [sha] });
'

# The side builds its own isolated worktree. Do not build a second copy here.
- name: Evaluate candidate
id: candidate
timeout-minutes: 105
env:
SOLHEIM_API_KEY: ${{ secrets.FINAL_SMOKE_OPENAI_API_KEY }}
CODING_EVALS_SIDE: candidate
CANDIDATE_SHA: ${{ github.sha }}
TRUST_FILE: ${{ runner.temp }}/agent-evals-trust.json
EVAL_OUT: ${{ runner.temp }}/agent-evals
run: |
set -euo pipefail
test "$(git rev-parse HEAD)" = "$CANDIDATE_SHA"
test -z "$(git status --porcelain --untracked-files=all)"
xvfb-run -a -s "-screen 0 1280x720x24 -nolisten tcp" \
pnpm coding-evals:side --trust-file "$TRUST_FILE" --out "$EVAL_OUT"

- name: Write candidate summary
if: ${{ !cancelled() && (steps.candidate.outcome == 'success' || steps.candidate.outcome == 'failure') }}
env:
CANDIDATE_SHA: ${{ github.sha }}
EVAL_OUT: ${{ runner.temp }}/agent-evals
run: node --import tsx scripts/agent-evals/coding-summary.mts

- name: Upload candidate results and traces
if: ${{ !cancelled() && (steps.candidate.outcome == 'success' || steps.candidate.outcome == 'failure') }}
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: agent-evals-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }}
path: |
${{ runner.temp }}/agent-evals/side-results.json
${{ runner.temp }}/agent-evals/candidate-report.md
${{ runner.temp }}/agent-evals/artifacts
if-no-files-found: error
retention-days: 90
6 changes: 5 additions & 1 deletion .github/workflows/code-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
- name: Check formatting
run: pnpm format:check
- name: Lint
run: pnpm lint
run: pnpm lint:ci
- name: Check types
run: pnpm check-types
- name: Test mock authentication
Expand All @@ -126,6 +126,8 @@ jobs:
run: pnpm solheim-smoke:check-types
- name: Test agent evals units
run: pnpm test:agent-evals:unit
- name: Validate coding evaluation workflow
run: node --test scripts/agent-evals-workflow.test.mjs
- name: Check agent evals types
run: pnpm agent-evals:check-types
- name: Model-check task lifecycle protocols
Expand Down Expand Up @@ -187,6 +189,8 @@ jobs:
uses: ./.github/actions/setup-node-pnpm
with:
install-args: "--frozen-lockfile"
- name: Validate local test runner
run: pnpm test:local-runner
- name: Restore Turbo cache
id: turbo-cache
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/release-kickoff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ name: Weekly release kickoff

on:
schedule:
# Friday at 12:00pm EST (17:00 UTC).
# This fixed UTC cron fires at 1:00pm ET while the US is on EDT.
- cron: "0 17 * * 5"
# Friday at 12:23pm EST (17:23 UTC).
# This fixed UTC cron fires at 1:23pm ET while the US is on EDT.
# Off the top of the hour on purpose: GitHub documents scheduled-run
# delays under high load as worst at the start of each hour. The
# previous 17:00 cron ran 4-8 hours late for five straight weeks and
# did not run at all once (issue #2767).
- cron: "23 17 * * 5"
workflow_dispatch:

permissions: {}
Expand Down
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
# Zoo Code Changelog

## [3.98.3]

### Security and Reliability

- Fix: Stop session history from sending duplicate tool results after an empty-response retry, so resumed tasks do not fail with duplicate `tool_result` errors (#2691 by @edelauna, PR #2701 by @app/zoomote)
- Fix: Listen for webview messages before the view HTML loads, so the Zoo Code view does not stay blank when it is open at VS Code startup (#2710 by @DiamondGo, PR #2711 by @DiamondGo)
- Fix: Stop code index telemetry storms with a failure circuit breaker and hash the telemetry machine ID (#830 by @edelauna, PR #2329 by @app/zoomote)
- Fix: Keep project rules, mode rules, and AGENTS.md instructions after context condensation (#2676 by @simurg79, PR #2660 by @simurg79)
- Fix: Exclude messages hidden by sliding-window truncation from context condensation, so condensation requests fit the configured context window (#1823 by @julian35152, PR #2647 by @gh311)
- Fix: Extract nested shell substitutions for the command allowlist, so a payload hidden inside a parameter expansion or a nested substitution no longer rides the outer command's approval (#1947 by @DaubnerF, PR #2068 by @DaubnerF)
- Fix: Decide `read_file` auto-approval on its actual file targets instead of the display path, so escaped characters in a display path cannot approve a different file (PR #2657 by @kanchinadd98)
- Fix: Emit a consistent provider value in OpenRouter error telemetry (#1302 by @edelauna, PR #2645 by @gh311)
- Fix: Honor caller cancellation and the configured request timeout in the Poe provider, so aborted requests stop cleanly (#2508 by @easonLiangWorldedtech, PR #1535 by @easonLiangWorldedtech)
- Fix: Send max output tokens for OpenAI Compatible providers whenever the include-max-output-tokens checkbox shows ticked (#2230 by @scriptxyz, PR #2684 by @SoccerField24x7)

### Models and Provider Controls

- Add the advertised Claude Fable 5.2 context budget for VS Code LM models, so condensation and the context gauge use the correct window (PR #2759 by @simurg79)
- Retire the Gemini CLI provider, correct OpenRouter model costs, and verify provider usage after the listing audit (PR #2673 by @app/zoomote)

### Testing, CI, and Repository Automation

- Speed up repeat pre-push type checks with incremental root checking and corrected Turbo cache inputs (#2685 by @edelauna, PR #2686 by @app/zoomote)
- Make the tracked Roo configuration optional, with templates under `contrib/roo/`, so personal `.roo/` and `.roomodes` files do not create Git noise (#2693 by @edelauna, PR #2694 by @app/zoomote)
- Add a bounded model checker for the task run-state kernel (#1792 by @edelauna, PR #2244 by @edelauna)

### Dependencies

- Update AI SDK core and providers (PR #2364 by @app/renovate)
- Update react-virtuoso to v4.18.24 (PR #2394 by @app/renovate)
- Update @tanstack/react-query to v5.108.2 (PR #2347 by @app/renovate)
- Update hast-util-to-jsx-runtime to v2.3.7 (PR #2348 by @app/renovate)
- Update @next/eslint-plugin-next to v15.5.29 (PR #2346 by @app/renovate)

## [3.98.2]

### Models and Provider Controls
Expand Down
13 changes: 12 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,21 @@ This installs the shared templates from `contrib/roo/` into `.roomodes` and `.ro
- One focused PR per feature or fix.
- Follow the ESLint and TypeScript best practices.
- Write clear, descriptive commits that reference issues (for example, `Fixes #123`). Follow the [Writing Style](#writing-style).
- Test your change fully (`npm test`).
- Run focused tests from the package directory, for example `pnpm --dir src exec vitest run __tests__/extension.spec.ts`.
- Use `pnpm test:local` for full local and Docker test runs.
- Run both dead-code checks: `pnpm knip` and `pnpm knip:production`. See [Dead-code checks before review](docs/development-quality-checks.md) for findings, exceptions, and verification.
- Rebase onto the latest `main` branch before you submit.

`pnpm test:local` bundles assets first, then uses four workers per package and two concurrent test tasks.
`--vitest-workers` and `--turbo-concurrency` are optional. Invalid values use the defaults and print a warning.
The test step replaces a shell `VITEST_MAX_WORKERS` value with the selected worker limit.
Extra arguments go only to the test step. A forwarded `--concurrency` sets its Turbo task limit.
For smaller limits, use:

```sh
pnpm test:local -- --vitest-workers=2 --turbo-concurrency=1
```

### Submitting a Pull Request

- Start as a **Draft PR** if you want early feedback.
Expand Down
141 changes: 141 additions & 0 deletions docs/architecture/agent-evals-publication.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
# Evaluation output publication

The coding evaluation feature has two output owners. A side owns its run
artifacts and `side-results.json`. A comparison owns its JSON report, Markdown
report, and `comparison-report.complete`. Each owner must hold its output lock
through execution, publication, rollback, and final cleanup.

The common publication protocol is in
[`publishGeneration`](../../scripts/agent-evals/publication.ts). The model is
[`EvalPublication.tla`](tla/EvalPublication.tla). The model checks the protocol,
not the file system or the evaluation feature as a whole.

## Failures and invariants

| Failure | Invariant | Code boundary |
| --------------------------------------------------------------------- | --------------------------------------------------------------------------- | ------------------------------------------------- |
| A marker exists before the data writes finish. | Commit runs after all data steps. | `publishGeneration` calls `commit` after `steps`. |
| An interrupt arrives during a write, but publication returns success. | Check interruption before work, before commit, and after each awaited step. | `publishGeneration` calls `check`. |
| A write fails after it changes the output, and a marker remains. | On failure, attempt rollback before returning or throwing. | `publishGeneration` calls `rollback`. |
| Rollback fails, but the call reports a clean stop. | Cleanup failure throws and retains both causes. | `AggregateError` in `publishGeneration`. |

The side adapter is `executeSideFlow`. Its data steps create artifact
directories, write run records, and build pinned results. Its commit writes
`side-results.json`. Its rollback attempts both result and artifact removal.

The comparison adapter is `publishComparisonReport`. It invalidates the old
marker before publication. Its data steps write JSON and Markdown. Its commit
writes the completion marker. Its rollback attempts all three removals.

The adapters keep their existing return contracts. A side returns
`completed: false` after a clean interruption. Comparison publication throws
on interruption; `executeComparisonFlow` maps the observed signal to the
comparison outcome after cleanup.

## Model boundary

The model starts after old output is invalidated and the output lock is held.
One data write represents the bounded sequence of data steps. The next write
represents commit. A write can fail at any point. A signal can arrive before,
between, or after writes, until the function returns.

Atomic writes and cleanup are oracles. A failed rollback can leave a marker,
but it must throw. The model does not claim that an interrupt removes a marker
before cleanup completes. Process crashes can also leave files. Readers must
keep using the existing generation validation rules.

Output lock acquisition, trust approval, credential isolation, child process
termination, grading, and telemetry are separate contracts. Their existing
tests still apply. This extraction does not model or change those contracts.

## Manual gate

Use the TLC command in [the spec policy](tla/AGENTS.md). Use `EvalPublicationMC.tla` as the module. Run these configs:

- `EvalPublication.cfg`: must pass.
- `EvalPublication.NoInterrupt.cfg`: must fail `SafeReturn`.
- `EvalPublication.EarlyCommit.cfg`: must fail `MarkerLast`.
- `EvalPublication.NoPreCommit.cfg`: must fail `CommitAllowed`.

Run `node --import tsx --test scripts/agent-evals/publication.test.ts`.
The property test enumerates generation sizes from one to four writes, every
interruption boundary, and every write-failure boundary. It also checks failed
rollback and an iterator that interrupts on its final `next()` call. Removing interruption checks or moving commit before the data steps
must make the property test fail.

Run `pnpm test:agent-evals:unit` and `pnpm agent-evals:check-types` after adapter
changes. Tests that use child process IPC need an environment that permits it.

For each later review finding, add the thread reference and its covered,
added, or gap result to the spec header, as the spec policy requires. Extend
this model only for publication failures. Use a separate subsystem model for
other contracts.

## Comparison review gate

The review added four models for separate source and sink contracts.
Each invariant was written after the review. These checks are review replays.
They are not independent findings. The models found no new code bug.

| Model module | Passing config | Negative control and required failure |
| ---------------------------- | -------------------------- | ---------------------------------------------------------- |
| `EvalComparisonInputsMC.tla` | `EvalComparisonInputs.cfg` | `NoCheckKeys`: `KeysComplete`; `NoCheckTimer`: `TimerSafe` |
| `EvalOutputOwnershipMC.tla` | `EvalOutputOwnership.cfg` | `NoPinOutput`: `OwnedTarget` |
| `EvalReportReadMC.tla` | `EvalReportRead.cfg` | `NoRecheck`: `ReadResult` |
| `EvalPreparationDrainMC.tla` | `EvalPreparationDrain.cfg` | `NoWaitClose`: `Drained` |

Use the full config name, such as `EvalReportRead.NoRecheck.cfg`.
Run each config with its MC module and a state directory outside the repo:

```sh
cd docs/architecture/tla
java -XX:+UseParallelGC -cp /path/to/tla2tools.jar tlc2.TLC \
-metadir /tmp/eval-report-read -config EvalReportRead.cfg EvalReportReadMC.tla
```

The input model checks complete fixture and repetition keys, matching metrics
keys, and the Node timer bound. Its parser and metrics values are oracles.
The ownership model checks that writes and rollback use the canonical directory
that the caller locked. It excludes movement of the canonical directory itself.
The read model checks a reader that captured marker A while a writer can remove
A and publish B. The file reads and validation results are oracles. The stamps
are unique within the model. The preparation model checks queued IPC delivery
before cleanup. Node emits `close` after that delivery; process termination is
an oracle. These models do not prove the code correct.

Run the code properties with:

```sh
node --import tsx --test scripts/agent-evals/publication.test.ts \
scripts/agent-evals/coding-report.test.ts \
scripts/agent-evals/coding-compare-driver.test.ts \
scripts/agent-evals/coding-compare-script.test.ts
```

All nine new regression cases fail on the original PR head. They pass with
the fixes. The full evaluation suite passes 401 tests. The evaluation type
check and shared ESLint check pass. The `src` ESLint command excludes these
script files; it does not validate them. No suppression count changed.
The review has 0 covered findings, 7 added checks, and 4 gaps. The gaps are
the MC module layout and the README claims about container removal, commit compatibility, and missing
price metadata. The README now states the code behavior. The module layout and those prose claims
are outside these state models.

## Simplification gate

`codingRepetitionPlan` supplies the same fixture and repetition plan to the
live side and side-result validation. The fixture test uses literal expected
names and versions. It also checks order and fresh entries. It does not use
the plan builder to create its expected result. Removing one fixture from
the builder makes this test fail. Restoring the builder makes it pass.

`EvalPublication` now derives `result` from `phase`. The model has the same
25 reachable states. `Fail` includes all transitions of the former `Stop`
action, so the duplicate action is removed. All invariants and the three
negative controls retain their results.

`EvalOutputOwnership` uses one sink action for writes and rollback. The target
also records completion, so the separate operation variable is removed.
The fixed model has 4 reachable states, down from 6. `NoPinOutput` still fails
`OwnedTarget`. All five passing configs and eight negative controls retain
their expected results. The full evaluation suite passes 401 tests.
Loading
Loading