SkillsReviewed · tailcallhq

Forge Test Reasoning Serialization

Test Reasoning Serialization is a Forge skill for developers checking AI reasoning settings, but it cannot confirm that an AI service accepts those settings. Its Bash helper builds Forge and checks captured request JSON for OpenRouter, Anthropic, GitHub Copilot and Codex.

Researched 16 Nov 2026

In short.

Test Reasoning Serialization is a Forge skill for developers debugging AI reasoning settings, but a successful script exit can still leave provider cases unchecked. Its Bash helper builds Forge, captures request bodies and compares provider-specific JSON fields with expected values. Missing captures become skips, and invalid-effort checks do not verify the cause of failure. No execution results are available; actual provider acceptance, runtime compatibility and costs are unknown.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete supplied skill folder: .forge/skills/test-reasoning/SKILL.md and .forge/skills/test-reasoning/scripts/test-reasoning.sh, plus the repository-root LICENSE, at commit a22b49288856d5b3f3ca57e8532683d54a662c8c. Original source addresses are retained. The wider Forge implementation, external API documentation and provider accounts are outside this scope. Nothing was executed; build success, request transmission, provider acceptance and runtime results remain unverified.

The overview

Identity

The resource is the test-reasoning skill in Tailcall's forgecode repository. It contains assistant-facing instructions in SKILL.md and an executable test procedure in scripts/test-reasoning.sh. Its purpose is to check serialization: how Forge turns reasoning configuration into fields in an API request.

The supplied files belong to commit a22b49288856d5b3f3ca57e8532683d54a662c8c. Original source folder: [https://github.com/tailcallhq/forgecode/tree/main/.forge/skills/test-reasoning].

Assessment

This is useful for Forge contributors investigating whether configuration changes produce the intended request fields across several provider adapters. The script makes expected mappings explicit and checks that selected unwanted fields are absent.

Its strongest evidence would be a captured payload matching an assertion. A passing assertion does not establish successful authentication, server acceptance or correct model behavior. The script can also finish successfully while ordinary provider cases are skipped.

Users

The primary users are developers maintaining Forge's provider integrations or diagnosing reasoning configuration regressions. Effective use requires familiarity with a repository checkout, shell environment variables and JSON request fields.

Beginners can use the instructions to understand why the same reasoning setting has different names across services. They will still need help configuring and building Forge; the supplied skill does not teach that broader setup.

Capabilities

For OpenRouter, the script checks reasoning.effort across none, minimal, low, medium, high and xhigh for openai/o4-mini, plus token-budget, exclude and enabled cases. Additional cases check reasoning.max_tokens for anthropic/claude-opus-4-5, moonshotai/kimi-k2 and minimax/minimax-m2, and high effort for the latter two.

For direct Anthropic access, it expects output_config.effort with low, medium, high or max for claude-opus-4-6, with no thinking object. For claude-3-7-sonnet-20250219, it expects thinking.type set to enabled and thinking.budget_tokens set to 8000, with no output_config.

For GitHub Copilot's o4-mini, it checks top-level reasoning_effort. For Codex's gpt-5.1-codex, it checks nested reasoning.effort and reasoning.summary, including a concise summary when exclude=true. Four additional cases expect an invalid effort value to produce a nonzero exit without a request file. These are encoded expectations, not demonstrated provider capabilities.

Using it

Requirements

The helper requires a Forge repository checkout that can build with Cargo, a Rust toolchain, Bash with array support, Python 3 and utilities including mktemp and grep. It expects the resulting executable at target/debug/forge. Required toolchain versions and operating-system compatibility are not specified.

Ordinary request cases need usable provider configuration. The script does not supply account setup or authentication instructions. Existing Forge configuration and inherited environment variables can affect results because each case overrides only selected settings.

Mechanism

After cargo build, the helper launches cases in background subshells. Each invokes Forge with the prompt Hello!, provider and model environment variables, reasoning overrides and a FORGE_DEBUG_REQUESTS output path. Python's JSON decoder reads only the first JSON value from each capture, then assertions compare values at dotted field paths.

The helper collects tagged results and exits successfully when its failure counter is zero. Passed counts represent field assertions and invalid-effort cases; skipped counts represent skipped cases, so the totals do not count working providers. Temporary request captures and per-job result files are deleted when the script exits.

Setup

From the Forge repository root, an invocation matching the captured folder layout is bash .forge/skills/test-reasoning/scripts/test-reasoning.sh. Running from the root matters because cargo build and target/debug/forge are resolved relative to the current directory.

SKILL.md gives ./scripts/test-reasoning.sh as its quick-start command, but that shorthand does not identify the captured script from the repository root. The supplied files do not establish a separate installation procedure, required Forge release or credential configuration method.

Example

The Codex exclude case selects provider codex and model gpt-5.1-codex, then sets FORGE_REASONING__EFFORT=medium and FORGE_REASONING__EXCLUDE=true. After invoking Forge with request capture enabled, it expects reasoning.effort to equal medium and reasoning.summary to equal concise.

This example shows the exact mapping the script checks: exclude=true becomes an expected summary setting in this case. It does not demonstrate that reasoning is removed from a response. No execution or captured output is supplied.

Assessment & evidence

Limitations

Ordinary cases suppress Forge's output and ignore its exit status. If no capture file appears, the script reports that the provider is not configured without establishing the actual cause. If a capture exists despite an execution failure, its fields can still pass assertions. Server rejection therefore need not produce a failed serialization check.

Invalid-effort cases accept any nonzero exit with no capture file. An unrelated early failure could satisfy that condition, so these checks do not isolate configuration parsing as the cause. The script also requires no minimum number of ordinary provider cases to run.

Only the first captured JSON value is examined, and absent fields are treated the same as explicit null values. Later requests, response contents, reasoning quality and server-side token budgets are not checked. Comments describe Forge defaults, but the configuration implementing those defaults is outside the supplied files.

Reasoning

The resource addresses a concrete integration problem: similar reasoning controls are represented differently across provider APIs. Its explicit assertions help developers inspect the intended translation and identify accidental field placement changes.

The OpenRouter exclude assertion and Codex concise-summary assertion also show why similarly named settings should not be assumed to have identical effects. Matching these payload expectations does not establish equivalent reasoning effort, compute use or answer quality across models.

Alternatives

The skill supplies a manual single-case procedure using FORGE_DEBUG_REQUESTS, provider and model selectors, and a reasoning override. This can focus investigation on one mapping without launching the full matrix; the instructions direct the reader to inspect .forge/forge.request.json.

No separate serializer unit-test package, provider-acceptance suite or comparative results are included. Alternatives that verify server responses would need additional evidence beyond the captured request-field checks provided here.

Evidence

The original skill instructions are captured at [https://raw.githubusercontent.com/tailcallhq/forgecode/a22b49288856d5b3f3ca57e8532683d54a662c8c/.forge/skills/test-reasoning/SKILL.md]. The complete Bash helper is captured at [https://raw.githubusercontent.com/tailcallhq/forgecode/a22b49288856d5b3f3ca57e8532683d54a662c8c/.forge/skills/test-reasoning/scripts/test-reasoning.sh].

These files establish the documented purpose, case matrix, assertions and result handling. Forge's serializer implementation, dependency manifests, provider configuration, captured request examples and execution results are not supplied. External API documentation is linked by the skill but its contents are not included.

Access & freshness

Costs

Provider prices, subscription requirements, token consumption and total run cost are unknown. The helper invokes Forge against configured providers and does not itself substitute mock responses, so provider usage charges are possible.

Several cases run concurrently. Inspecting the first captured request cannot establish how many requests Forge might make during an invocation or how much a complete run would cost.

Rights

The supplied repository-root LICENSE is Apache License 2.0 and names Copyright 2025 Tailcall. It permits use, modification and redistribution subject to its conditions, including providing the license, retaining applicable notices and marking modified files. Applicable NOTICE attributions must also be preserved if the original distribution includes them; no separate NOTICE file is supplied here.

The license provides no general trademark permission and disclaims warranties. License source: [https://raw.githubusercontent.com/tailcallhq/forgecode/a22b49288856d5b3f3ca57e8532683d54a662c8c/LICENSE].

Freshness

The supplied snapshot was captured on 2026-11-16 at 07:36:49.443 UTC and identifies commit a22b49288856d5b3f3ca57e8532683d54a662c8c. That pins the file contents; it does not establish when they were last changed.

The named models and expected fields belong to this snapshot. Current model availability, accepted effort values, API compatibility and differences from the moving main branch are unknown.

Actions

Use the skill when investigating Forge request serialization, and inspect which required provider cases actually ran before interpreting the totals. For a focused investigation, start with the documented manual capture procedure and retain the resulting request file; the full helper deletes its temporary captures.

Before using the helper as a required CI gate, strengthen missing-capture diagnostics, verify the cause of invalid-effort failures and require the intended provider coverage. Confirm current model support and account pricing before a full provider run, and use response-level checks when server acceptance is the question.

Evidence for this report

.forge/skills/test-reasoning/SKILL.mdselected · checked 2026-11-16
LICENSEnotice · checked 2026-11-16