Uma verdadeira mudança de código.Quatro testes de aprovação.

OpenCode 1.19.0 · Qwen3.8-27B · Windows · 14 de outubro de 2026. Evidência de execução original, apresentada como código e um log de operação.

1 → 4Aprovação nos testes / 4
25,256sJanela de evento do agente
30,911Tokens relatados pelo cliente
0Falhas de ferramentas registradas

Esta é a execução retida de 14 de outubro, não uma nova API executada em 15 de outubro. Os 25,256 segundos abrangem o primeiro step_start até o step_finish final;a instalação, a inicialização do processo e a reexecução independente do teste estão excluídas.O tempo total do processo não foi registrado.

Reproduza o ponto de partida

Node.js 25.2.1 e OpenCode 1.19.0.A versão, configuração, starter e testes estão fixados no exemplo de origem.O provedor configurado é apenas IteraCompute, com operações de arquivo e node --test permitidas.

Exemplo fixado e arquivo de bloqueio → · Evidência de aceitação original · CLI OpenCode · Referência do provedor

1 · Configuração (Bash)
git clone https://github.com/IteraCompute/migration-kit.git
cd migration-kit
git checkout b71ebf5e09b761f958c643075b8e0a5d3032e44f
cd examples/opencode
npm ci
npm run code -- --version
export ITERACOMPUTE_API_KEY="your-api-key"
mkdir workspace
cp opencode.json starter/slugify.mjs starter/slugify.test.mjs workspace/
cd workspace
node --test slugify.test.mjs
Configuração do provedor verificada
código aberto.json
{
  "$schema": "https://opencode.ai/config.json",
  "model": "iteracompute/qwen/qwen3.8-27b",
  "small_model": "iteracompute/qwen/qwen3.8-27b",
  "enabled_providers": ["iteracompute"],
  "provider": {
    "iteracompute": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "IteraCompute",
      "options": {
        "baseURL": "https://api.iteracompute.com/v1",
        "apiKey": "{env:ITERACOMPUTE_API_KEY}"
      },
      "models": {
        "qwen/qwen3.8-27b": {
          "name": "Free Qwen3.8-27B",
          "cost": { "input": 0, "output": 0, "cache_read": 0, "cache_write": 0 },
          "limit": { "context": 131072, "output": 8192 },
          "options": { "chat_template_kwargs": { "enable_thinking": false } }
        }
      }
    }
  },
  "permission": {
    "*": "deny",
    "read": "allow",
    "glob": "allow",
    "grep": "allow",
    "edit": "allow",
    "bash": { "*": "deny", "node --test*": "allow" }
  }
}
Antes · slugify.mjs
export function slugify(text) {
  return text.toLowerCase().replaceAll(" ", "-");
}
Depois · slugify.mjs escrito em modelo
export function slugify(text) {
  return text
    .toLowerCase()
    .replace(/[^a-z0-9]+/g, "-")
    .replace(/^-+|-+$/g, "");
}
Todos os quatro testes originais (inalterados)
slugify.test.mjs
import assert from "node:assert/strict";
import test from "node:test";
import { slugify } from "./slugify.mjs";

test("lowercases and joins words", () => {
  assert.equal(slugify("Hello World"), "hello-world");
});
test("trims whitespace and collapses punctuation", () => {
  assert.equal(slugify("  Hello,   World!  "), "hello-world");
});
test("collapses repeated separators", () => {
  assert.equal(slugify("API___  migration---kit"), "api-migration-kit");
});
test("keeps digits and returns empty for punctuation only", () => {
  assert.equal(slugify("Version 42"), "version-42");
  assert.equal(slugify(" !!! "), "");
});

Registro exato de entrada e operação

2 · Alerta exato
Fix slugify.mjs so all four existing tests pass. Lowercase ASCII letters, preserve digits, replace runs of other characters with one hyphen, and trim leading/trailing hyphens. Do not change slugify.test.mjs. Run node --test slugify.test.mjs and report the result.
3 · Executar a partir do espaço de trabalho (Bash/PowerShell)
npm --prefix .. run code -- run --dir workspace --agent build --format json "Fix slugify.mjs so all four existing tests pass. Lowercase ASCII letters, preserve digits, replace runs of other characters with one hyphen, and trim leading/trailing hyphens. Do not change slugify.test.mjs. Run node --test slugify.test.mjs and report the result."
  1. Linha de base: 4 testes, 1 aprovação, 3 reprovações;saída 1. As três falhas expõem pontuação, separadores repetidos e recortes.
  2. +0.769s · glob · completed Listar arquivos de projeto
  3. +4.708s · read · completed Função de leitura
  4. +5.641s · read · completed Ler testes
  5. +13.577s · edit · completed Função de edição
  6. +19.899s · bash · completed Execute node --test slugify.test.mjs · saída 0
  7. Resposta final: preenchimento não vazio;nova execução independente: 4 aprovações, 0 falhas, saída 0. O arquivo de teste SHA-256 permaneceu idêntico.
4 · Saída de teste do agente
✔ lowercases and joins words (2.3435ms)
✔ trims whitespace and collapses punctuation (0.2539ms)
✔ collapses repeated separators (0.2248ms)
✔ keeps digits and returns empty for punctuation only (0.1989ms)
ℹ tests 4
ℹ suites 0
ℹ pass 4
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 212.5302
5 · Resposta final do agente
All 4 tests pass:

```
✔ lowercases and joins words
✔ trims whitespace and collapses punctuation
✔ collapses repeated separators
✔ keeps digits and returns empty for punctuation only
tests 4, pass 4, fail 0
```

The fix in slugify.mjs: lowercase, replace runs of non-`[a-z0-9]` characters with a single hyphen, then trim leading/trailing hyphens.
6 · Verificação independente: node --test slugify.test.mjs
✔ lowercases and joins words (1.8327ms)
✔ trims whitespace and collapses punctuation (0.2687ms)
✔ collapses repeated separators (0.178ms)
✔ keeps digits and returns empty for punctuation only (0.1737ms)
ℹ tests 4
ℹ suites 0
ℹ pass 4
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 198.9705

Uso, custo e falhas

PassoEntradaSaídaRaciocínioTotal
15,48432215,537
25,609131225,762
36,1431581956,496
46,31682836,481
56,5309696,635
Total30,08249933030,911

Estes são contadores step_finish do OpenCode somados em cinco etapas do modelo;o contexto repetido é contado novamente a cada etapa.Neste registro de cliente, a saída (499) exclui o raciocínio (330);o total já inclui raciocínio: 30.082 entradas + 499 saídas + 330 raciocínios = 30.911 tokens.Soma tokens.total sem adicionar raciocínio novamente.Leitura/gravação de cache: 0. Estimativa de custo do cliente: US$ 0.Este não é um recibo de cobrança do Console nem uma medição de tokenizador independente.

Baixe os eventos de tempo e token originais higienizados (JSONL) →

O trecho JSONL retém todos os cinco eventos step_start e cinco step_finish do stdout gravado.Os identificadores de sessão, mensagem, parte e instantâneo são omitidos;carimbos de data/hora, tipos de eventos, motivos, tokens e campos de custo permanecem inalterados.Subtraia o primeiro carimbo de data/hora (1791954305684) do carimbo de data/hora final (1791954330940) para obter 25.256 ms.O arquivo de aceitação mais antigo oferece suporte ao código e aos testes;ele não contém esses campos de tempo e token.

A execução bem-sucedida usou chat_template_kwargs.enable_thinking=false.Seu registro de cliente ainda inclui 330 tokens de raciocínio;esta configuração por si só não estabelece uso de raciocínio zero.

Falhas: três testes de linha de base com falha;zero ferramentas com falha na sessão bem-sucedida retida.Tentativas anteriores, novas tentativas de solicitação e uma taxa de sucesso de execução repetida não foram registradas.Um pequeno reparo não verifica o contexto de 128K, a compreensão da imagem, repositórios grandes, carga sustentada ou outros sistemas operacionais.

Evidência totalmente higienizada (JSON)
opencode-workflow.json
{
  "date": "2026-10-14",
  "platform": "Windows",
  "model": "qwen/qwen3.8-27b",
  "base_url": "https://api.iteracompute.com/v1",
  "versions": {
    "node": "25.2.1",
    "opencode": "1.19.0"
  },
  "source_commit": "b71ebf5e09b761f958c643075b8e0a5d3032e44f",
  "prompt": "Fix slugify.mjs so all four existing tests pass. Lowercase ASCII letters, preserve digits, replace runs of other characters with one hyphen, and trim leading/trailing hyphens. Do not change slugify.test.mjs. Run node --test slugify.test.mjs and report the result.",
  "event_window_ms": 25256,
  "timing_scope": "First step_start to final step_finish; excludes install, process startup and independent test rerun. Process wall time was not recorded.",
  "steps": [
    {
      "elapsed_ms": 1421,
      "reason": "tool-calls",
      "tokens": {
        "total": 5537,
        "input": 5484,
        "output": 32,
        "reasoning": 21,
        "cache": {
          "write": 0,
          "read": 0
        }
      },
      "client_cost_usd": 0
    },
    {
      "elapsed_ms": 6373,
      "reason": "tool-calls",
      "tokens": {
        "total": 5762,
        "input": 5609,
        "output": 131,
        "reasoning": 22,
        "cache": {
          "write": 0,
          "read": 0
        }
      },
      "client_cost_usd": 0
    },
    {
      "elapsed_ms": 14321,
      "reason": "tool-calls",
      "tokens": {
        "total": 6496,
        "input": 6143,
        "output": 158,
        "reasoning": 195,
        "cache": {
          "write": 0,
          "read": 0
        }
      },
      "client_cost_usd": 0
    },
    {
      "elapsed_ms": 20584,
      "reason": "tool-calls",
      "tokens": {
        "total": 6481,
        "input": 6316,
        "output": 82,
        "reasoning": 83,
        "cache": {
          "write": 0,
          "read": 0
        }
      },
      "client_cost_usd": 0
    },
    {
      "elapsed_ms": 25256,
      "reason": "stop",
      "tokens": {
        "total": 6635,
        "input": 6530,
        "output": 96,
        "reasoning": 9,
        "cache": {
          "write": 0,
          "read": 0
        }
      },
      "client_cost_usd": 0
    }
  ],
  "exit_code": 0,
  "baseline": {
    "tests": 4,
    "pass": 1,
    "fail": 3,
    "exit_code": 1
  },
  "tools": [
    {
      "tool": "glob",
      "status": "completed"
    },
    {
      "tool": "read",
      "status": "completed",
      "file": "slugify.mjs"
    },
    {
      "tool": "read",
      "status": "completed",
      "file": "slugify.test.mjs"
    },
    {
      "tool": "edit",
      "status": "completed",
      "file": "slugify.mjs"
    },
    {
      "tool": "bash",
      "status": "completed",
      "command": "node --test slugify.test.mjs",
      "exit_code": 0,
      "output": "✔ lowercases and joins words (2.3435ms)\n✔ trims whitespace and collapses punctuation (0.2539ms)\n✔ collapses repeated separators (0.2248ms)\n✔ keeps digits and returns empty for punctuation only (0.1989ms)\nℹ tests 4\nℹ suites 0\nℹ pass 4\nℹ fail 0\nℹ cancelled 0\nℹ skipped 0\nℹ todo 0\nℹ duration_ms 212.5302\n"
    }
  ],
  "client_estimated_cost_usd": 0,
  "tests_unchanged": true,
  "test_sha256": "a86b36c60e8d19281abbd656dafc9eabe87e66053bed8e57e466696e65e04884",
  "final_code": "export function slugify(text) {\n  return text\n    .toLowerCase()\n    .replace(/[^a-z0-9]+/g, \"-\")\n    .replace(/^-+|-+$/g, \"\");\n}\n",
  "final_reply": "All 4 tests pass:\n\n```\n✔ lowercases and joins words\n✔ trims whitespace and collapses punctuation\n✔ collapses repeated separators\n✔ keeps digits and returns empty for punctuation only\ntests 4, pass 4, fail 0\n```\n\nThe fix in slugify.mjs: lowercase, replace runs of non-`[a-z0-9]` characters with a single hyphen, then trim leading/trailing hyphens.",
  "independent_rerun": {
    "exit_code": 0,
    "stdout": "✔ lowercases and joins words (1.8327ms)\n✔ trims whitespace and collapses punctuation (0.2687ms)\n✔ collapses repeated separators (0.178ms)\n✔ keeps digits and returns empty for punctuation only (0.1737ms)\nℹ tests 4\nℹ suites 0\nℹ pass 4\nℹ fail 0\nℹ cancelled 0\nℹ skipped 0\nℹ todo 0\nℹ duration_ms 198.9705\n"
  },
  "tool_events": [
    {
      "elapsed_ms": 769,
      "tool": "glob",
      "status": "completed"
    },
    {
      "elapsed_ms": 4708,
      "tool": "read",
      "status": "completed"
    },
    {
      "elapsed_ms": 5641,
      "tool": "read",
      "status": "completed"
    },
    {
      "elapsed_ms": 13577,
      "tool": "edit",
      "status": "completed"
    },
    {
      "elapsed_ms": 19899,
      "tool": "bash",
      "status": "completed"
    }
  ],
  "recorded_tool_failures": 0,
  "scope": "One retained successful session, five model steps. Earlier attempts and multi-run reliability were not recorded. No long-context boundary, image quality or sustained load test."
}

Evidências e limites de Qwen → · Voltar para seleção de modelo e ferramenta →