§ Writing8 min read

The tool arguments are still model output

A clean final answer can hide a leak in tool arguments or streamed text. Inspect each model-produced object before it reaches a person or a tool.

An agent can give a tidy final answer and still send text it should not release in a tool call. That is the detail I took from OpenAI’s 20 November account of its anti-distillation safeguards: its output classifiers check assistant messages and tool-call arguments, for both streamed and non-streamed responses. OpenAI says a model can expose protected reasoning in tool arguments without including it in its final answer (OpenAI).

A tool call is still model-produced data. It may be structured, routed to a backend and hidden from the person using the product. None of those properties make its contents safe to pass on.

This is design analysis with illustrative TypeScript. I have not run the code or measured a filter. The incident and test figures below are OpenAI’s reports, not independently reproduced results.

What the incident changes

OpenAI describes adversarial distillation as using another model’s outputs or reasoning to train, reproduce or improve a model without authorisation. Its September disclosure says the operators it investigated manipulated model interactions to elicit protected reasoning. OpenAI says they did not break encryption or gain direct access to stored conversations. The report describes 16,000 requests using one extraction pattern from more than 4,000 users, then a related cluster of prompt-pattern activity across more than 15,000 users. Those are activity counts, not proof that each attempt succeeded; the footnote says the 16,000 requests were attempts (OpenAI’s September report).

That attack path matters to application teams for a simpler reason: a response can contain several different things. A user-facing sentence, a JSON argument, a streamed delta and a piece of reusable model state have different consumers and different release points. If the only check runs over the string shown in the chat window, it never sees the other routes.

The output classifier OpenAI describes is a control in its own service, not a package application teams can lift unchanged. The post does not say third-party developers can use that classifier or inspect a provider’s protected reasoning. The design lesson is narrower: enumerate the objects that cross your boundary, then decide what must happen before each one is released.

Model-produced surface Who receives it Check before
Assistant text Person or downstream service Sending or displaying it
Tool name and arguments Tool executor Authorising or running the call
Streamed response part Client connection Writing the part to the stream
Reusable state Later model request Reusing it in a conversation

The rows are related, but they are not interchangeable. A tool call may be authorised and still contain sensitive text. A safe-looking answer does not prove the arguments beside it are safe. A stream can expose a part before the final response exists. State can cross a boundary later, after the request that created it has ended.

Inspect each part before use

I would make response inspection a step in the application gateway, before the response is fanned out to the interface or a tool runner. First, normalise provider-specific responses into a small internal type. Preserve the part type and the complete arguments; do not flatten a tool call into a string and accidentally leave it out of the inspection path.

A small sketch makes the ordering explicit:

type ModelPart =
  | { kind: "text"; text: string }
  | { kind: "tool_call"; id: string; name: string; arguments: unknown };

async function dispatch(part: ModelPart, run: RunContext) {
  const verdict = await inspectOutput(part, run);
  if (verdict !== "allow") return { kind: "held" as const };

  if (part.kind === "tool_call") {
    const authorised = await authoriseTool(
      run.principal,
      part.name,
      part.arguments,
    );
    if (!authorised) return { kind: "denied" as const };
    return executeTool(part.name, part.arguments, run);
  }

  return publishText(part.text, run);
}

The names are illustrative; the important part is the order. inspectOutput checks the complete model-produced object. authoriseTool checks whether this principal may perform this action. The executor applies its own permissions. A content filter cannot grant authority, and a permission check cannot tell you whether an argument contains data you should not send.

The guard also needs a decision for uncertainty. A timeout, malformed classifier response or unavailable policy service cannot silently become allow. For a call that can move private data outside the system, I would hold the call and surface a recoverable failure. For low-risk text, the product may have a different fallback. The policy should be explicit per action class rather than buried in a generic retry.

Do not log the material you are trying to protect just to explain why a classifier blocked it. Keep the operational record small: run ID, response-part type, tool name where relevant, policy version, verdict, latency and a redacted correlation ID. Store raw inputs only when there is a documented need, access control and retention period. The incident report is about one provider’s protected reasoning; an application may have its own customer data in ordinary tool arguments.

Streaming is a release decision

A non-streaming call gives the application a complete response to inspect before sending it on. Streaming changes the order. If the gateway forwards each delta as it arrives and only checks the final assembled text, the check happens after the data has left the gateway.

There are two practical choices. Buffer a complete response part, inspect it, then release it. That is simpler to reason about, but it delays the first visible output. Or inspect bounded pieces as they arrive, while retaining enough context to catch material that only becomes clear across pieces. That can reduce delay, but creates more boundary cases: chunk ordering, partial tool arguments, cancellation and a filter that changes its mind late in the stream. I would start with whole-part buffering for tool calls. Their arguments must be complete and parseable before execution anyway.

For text, choose the unit that matches the product’s data risk. A sentence or complete message may be an acceptable buffer. If the policy requires a decision about the whole turn, do not emit early tokens and hope a later check can retract them. Once a client has received a value, hiding it in a later event does not undo the release.

The gateway should own the stream. The model can propose text and calls; it should not decide whether an uninspected part is sent to the browser or executed. This is the same distinction I use in approval design: the model’s request and the application’s permission decision are separate events.

Keep reusable state in scope

A second path is replay. OpenAI’s September report describes attempts to copy encrypted reasoning from one conversation and ask a model in another to reveal it. The November follow-up says GPT-6.2 Astra and Sol tie protected reasoning to the conversation history that produced it, and that rewriting an earlier message drops reasoning that followed it. Those are provider-specific API safeguards, not a guarantee that every model API binds state the same way (November disclosure).

An application that stores or passes model state should make its own scope explicit. I would bind a state reference to the tenant, conversation, provider, model family and history version that created it. When the relevant history changes, discard derived state or rebuild it. Never treat an opaque response token as a portable cache key just because it is encrypted or difficult to inspect.

This does not require storing hidden reasoning in the application. Usually the safer choice is to keep only the identifiers and state the provider expects, and avoid copying private reasoning into logs, analytics or tool results. If state has to cross a service boundary, authenticate that boundary and check its scope there. A conversation ID supplied by a model is not proof that the caller owns the conversation.

Test the path, not just the answer

OpenAI reports that it replays previously successful attacks in static evaluations and uses automated red-teamers that adapt their approach in adaptive evaluations. In one internal adaptive black-box evaluation, it reports that earlier-request extraction fell from 54.0% on GPT-6 Astra with its original safeguards to 0.2% on GPT-6.2 Astra with updated safeguards. Current-request extraction fell from 22.9% to 0.9%. These results aggregate six attacker models and compare OpenAI’s own configurations. They are useful evidence about that system, not a cross-provider benchmark or a claim of zero risk (OpenAI’s methodology and results).

For an application gateway, I would turn each output surface into an assertion in the test harness:

  1. Give the mock model a harmless final sentence and a tool argument containing a marked confidential string. Assert that the tool executor receives no call when the output guard blocks it.
  2. Stream a response whose first part contains a marked string and whose final answer omits it. Assert that no bytes reach the client before the release decision.
  3. Try to reuse a response-state reference under a different tenant, conversation or model family. Assert that the gateway rejects it.
  4. Rewrite the history prefix and verify that the old derived state is not reused.
  5. Run clean explanations and ordinary tool calls alongside the attack cases. A filter that blocks everything has not met the product requirement.

These are test designs, not results from a system I have run. The first two tests in particular belong around the gateway’s actual transport and executor. Unit-testing a classifier in isolation will not show whether the stream or tool runner bypasses it.

What I’d do on Monday

  • List every response part the provider adapter can return, including tool calls and streamed deltas.
  • Put one inspection boundary before both user delivery and tool execution.
  • Hold complete tool arguments until they pass output checks and a separate authorisation check.
  • Decide, by risk class, what happens when inspection is unavailable. Make the default visible in configuration and tests.
  • Bind reusable state to a tenant, conversation, model family and history version. Invalidate it when that context changes.
  • Keep attack examples as regression tests, then add adaptive red-team cases. Record the verdict and policy version, not raw private reasoning.

Limitations

This post analyses OpenAI’s public disclosures and proposes an application design. It does not inspect OpenAI’s implementation, reproduce its extraction tests or establish that the same controls work for other providers. The TypeScript is illustrative and unrun. The safeguards and attack rates are OpenAI’s own descriptions and measurements. The examples do not replace provider documentation, data-protection review, tool authorisation or a deployment-specific threat model.

Sources


  1. 13 min read

    I ran 4,798 tests on Google's A2UI and its two rivals. Here is what it is worth.

    4,798 runs across six models and four methods. A2UI Direct JSON was the most accurate overall. Generated HTML broke on untrusted text with every small model.


  2. 6 min read

    A safety score is not a safety decision

    A safety evaluation should test the model, the controls around it and the exact configuration a release decision covers.


  3. 7 min read

    Perplexity needs a measurement contract

    OpenAI proposes perplexity as a shared progress metric. Compare scores only with their dataset, scorer, tokenizer and model stage attached.