# 30.8 How today's tools realize it (/building-ai-workers/shipping-claude-applications/how-todays-tools-realize-it)

---
type: Document
title: "30.8 How today's tools realize it"
description: "How Claude's products, OpenAI's and open-source tools fill each row of the environments table, with dated facts, and what stays true on every option."
status: stable
order: 330.08
ksor:
  owner: team:panaversity
  audience:
    - public
  approval:
    by: process:panaversity
    at: 2026-11-30T10:58:03Z
chapter: '30'
part: III
expert_status: builder-only
concepts: [ "30.8" ]
last_verified: '2026-11-30'

sources:
  - id: anthropic-vision
    title: Vision (Claude API docs, verified 2026-11-30)
    resource: https://platform.claude.com/docs/en/build-with-claude/vision
  - id: agent-sdk-system-prompts
    title: Modifying system prompts (Claude Agent SDK, verified 2026-11-30)
    resource: https://code.claude.com/docs/en/agent-sdk/modifying-system-prompts
  - id: agent-sdk-claude-code-features
    title: Use Claude Code features in the SDK (Claude Agent SDK, verified 2026-11-30)
    resource: https://code.claude.com/docs/en/agent-sdk/claude-code-features
  - id: anthropic-google-managed
    title: Claude Models on Google Cloud, Google managed (Claude API docs, verified 2026-11-30)
    resource: https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed
  - id: anthropic-foundry
    title: Claude in Microsoft Foundry (Claude API docs, verified 2026-11-30)
    resource: https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry
  - id: anthropic-files-api
    title: Files API (Claude API docs, verified 2026-11-30)
    resource: https://platform.claude.com/docs/en/build-with-claude/files
  - id: anthropic-deprecations
    title: Model deprecations (Claude API docs, verified 2026-11-30)
    resource: https://platform.claude.com/docs/en/about-claude/model-deprecations
  - id: anthropic-errors
    title: Errors (Claude API docs, verified 2026-11-30)
    resource: https://platform.claude.com/docs/en/api/errors
  - id: anthropic-model-ids
    title: Model IDs and versions (Claude API docs, verified 2026-11-30)
    resource: https://platform.claude.com/docs/en/about-claude/models/model-ids-and-versions
  - id: anthropic-rate-limits
    title: Rate limits (Claude API docs, verified 2026-11-30)
    resource: https://platform.claude.com/docs/en/api/rate-limits
  - id: anthropic-refusals-and-fallback
    title: Refusals and fallback (Claude API docs, verified 2026-11-30)
    resource: https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback
  - id: anthropic-versioning
    title: Versions (Claude API docs, verified 2026-11-30)
    resource: https://platform.claude.com/docs/en/api/versioning
  - id: claude-code-github-actions
    title: Claude Code GitHub Actions (Claude Code docs, verified 2026-11-30)
    resource: https://code.claude.com/docs/en/github-actions
  - id: claude-code-gitlab
    title: Claude Code GitLab CI/CD (Claude Code docs, verified 2026-11-30)
    resource: https://code.claude.com/docs/en/gitlab-ci-cd
  - id: claude-code-headless
    title: Run Claude Code programmatically (Claude Code docs, verified 2026-11-30)
    resource: https://code.claude.com/docs/en/headless
  - id: openai-codex-action
    title: Codex GitHub Action (OpenAI, verified 2026-11-30)
    resource: https://developers.openai.com/codex/github-action
  - id: openai-codex-agents-md
    title: Custom instructions with AGENTS.md (Codex, OpenAI, verified 2026-11-30)
    resource: https://developers.openai.com/codex/guides/agents-md
  - id: openai-codex-config
    title: Config basics (Codex, OpenAI, verified 2026-11-30)
    resource: https://developers.openai.com/codex/config-basic
  - id: openai-error-codes
    title: Error codes (OpenAI, verified 2026-11-30)
    resource: https://developers.openai.com/api/docs/guides/error-codes
  - id: openai-file-inputs
    title: File inputs (OpenAI, verified 2026-11-30)
    resource: https://developers.openai.com/api/docs/guides/file-inputs
  - id: openai-files-create
    title: Create file, API reference (OpenAI, verified 2026-11-30)
    resource: https://developers.openai.com/api/reference/resources/files/methods/create
  - id: openai-openapi
    title: OpenAI's OpenAPI specification, openai/openai-openapi on GitHub, the Upload file operation and FileExpirationAfter (verified 2026-11-30)
    resource: https://github.com/openai/openai-openapi
  - id: opencode-cli
    title: CLI (OpenCode docs, verified 2026-11-30)
    resource: https://opencode.ai/docs/cli/
  - id: opencode-config
    title: Config (OpenCode docs, verified 2026-11-30)
    resource: https://opencode.ai/docs/config/
generated:
  at: 2026-11-30T10:58:03Z
  by: esl-rewrite/1.2.0+ksor.1
trust_tier: unverified
build_id: sha256:d6ce3f28a2cf8e492a60bae1b426b7cc6466e35e83d70c3b9763db2c55009f4b
dirty: true
ksor_version: 0.0.60
---

**For reference.** *How today's products fill the six rows of `docs/environments.md`. Skim it now, and come back when you choose a surface or port the ingestion. Product details change often, so every product line here carries its date: checked November 30, 2026.* A line with no label was read on the product owner's own pages that day. A line marked *from an earlier chapter* is one this book already prints, with that chapter's date. A line marked *proposed design* is this book's way of building on a product. No line here is yet tested in a lab run.

**In everyday life.** You travel to a new country with your phone charger. The charger is the same everywhere. But each country has its own socket and its own voltage, so before you plug in, you check the socket. You ask the same few questions in every country. In this section, the countries are products, and the questions are the six rows of your table.

**What you will learn.** You practice this in Lab 30, Task 5.

- What does each product put in each row?
- What stays true on every option?

**Why it matters.** A row's value is set by the product as much as by your code. A cloud platform with no file store changes row 3. A product that moves no overloaded request to another model changes row 4. If you know where products differ, you know which cells to check again before a request moves.

**At work.** On Tuesday afternoon the change is in staging. Lab 30 ends with a port to OpenAI, so you need to know which of your six rows change on another vendor.

No standard that covers every vendor defines a deployment environment. So this section asks each product the chapter's own six questions, one row at a time.

### What does each product put in each row?

**The six rows are the same on every product. What changes is the value a product fills in when you set nothing.**

#### Claude

**Anthropic: the Claude API, the apps, Claude Code, the Agent SDK and the cloud platforms.**

*Row 1, who sends, and what it adds.* What each surface adds, with its dated lines, is in [30.1](#301-one-model-many-surfaces). One line more: Claude Code has a system prompt of its own, and `claude -p` uses it by default.[^agent-sdk-system-prompts]

*Row 2, what leaves, and what is kept.* What Anthropic keeps, and for how long, is in [30.2](#302-what-crosses-the-application-boundary), dated November 30, 2026. One line more: a file's expiry is set once, at upload, and it "cannot be changed".[^anthropic-files-api]

<!-- EDITOR: the spec's note for 30.2 put the dated retention lines in 30.8. Round 2 states them once, in 30.2, where row 2 is taught and its quiz rests, and this section points there. The other option: move them here, and let 30.2 point. -->

*Row 3, which workspace the file ids belong to.* Taught in [30.3](#303-images-documents-and-the-files-api). A file can be up to 500 MB, and an organization can store 1 TB.[^anthropic-files-api] Where the worker runs decides whether you have a file store at all.

| Platform | Files API | A file id in an image or document block |
| --- | --- | --- |
| Claude API | Yes | Works |
| Claude Platform on AWS | Yes | Works |
| Claude Models on Google Cloud (Anthropic managed) | Yes | Works |
| Microsoft Foundry, hosted on Anthropic | Yes | Works |
| Microsoft Foundry, hosted on Azure | No: "a `400 Bad Request` error by design" | Refused |
| Amazon Bedrock, and Claude Models on Google Cloud (Google managed) | No | None: images and PDFs go as base64 only |

The table's sources are Anthropic's Files API, vision and Foundry pages.[^anthropic-files-api][^anthropic-vision][^anthropic-foundry] Google's service is now called Google Cloud's Agent Platform, and its SDK client is still named `AnthropicVertex`.[^anthropic-google-managed] On a platform with no file store, row 3's cell is "none, the bytes go in every request". The worker's stored ids do not apply there.

<!-- OPEN: which of the other two ways in (base64 or a web address) each of the first five platforms accepts was not read platform by platform on November 30, 2026, so the table names only the file id. Bedrock and Google managed are confirmed base64 only -->

*Row 4, which models may answer.* From the 4.6 generation on, a dateless model id "maps to a single, fixed model snapshot", so a pin holds.[^anthropic-model-ids] Each platform names models its own way ([30.1](#301-one-model-many-surfaces)). On Microsoft Foundry, "The deployment name you choose becomes the value you pass in the `model` parameter", so the pin there is a name you chose.[^anthropic-foundry] Anthropic gives "at least 60 days' notice" before it retires a model, and a retired model answers 404 `not_found_error`.[^anthropic-deprecations]

The `fallbacks` parameter, which moves only a refused request, is behind the beta header `server-side-fallback-2026-07-01`.[^anthropic-refusals-and-fallback] Where it works, and where it does not, is in [30.4](#304-errors-by-class-retry-fall-back-or-fix).

*Row 5, which configuration the run reads.* The settings order is in [12.8](../agentic-coding/both-ai-vendors.md), and the model order and `settingSources` in [30.5](#305-configuration-that-travels). Two lines more. The flag `--bare` skips hooks, skills, plugins, MCP servers, auto memory and `CLAUDE.md`. Anthropic says it "will become the default for `-p` in a future release".[^claude-code-headless] So write CI's choice in row 5, and set the flag one way or the other, rather than rest on today's default. And for one company's data kept apart from another's, the Agent SDK's page says "Do not rely on default `query()` options".[^agent-sdk-claude-code-features]

The API version is configuration too. The SDK sends the `anthropic-version` header for you, and on Amazon Bedrock `2026-10-21` is "available for Claude 4.7 and later models".[^anthropic-versioning] A move to it goes through row 6 ([30.6](#306-one-change-three-environments)).

*Row 6, how a change arrives.* The GitHub Action's two traps are in [30.7](#307-claude-in-ci-and-the-release-pipeline). Two more lines. The Action rejects a bot as the actor "unless you list it in `allowed_bots`".[^claude-code-github-actions] And with a plain-text prompt, "Claude has no shell or GitHub API access until you grant the tools the prompt needs".[^claude-code-github-actions] Claude Code for GitLab CI/CD is in beta, and "This integration is maintained by GitLab."[^claude-code-gitlab]

**Status and price.** File calls are limited to "approximately 500 requests per minute".[^anthropic-files-api] What a file costs in a request is in [30.3](#303-images-documents-and-the-files-api).

#### OpenAI

**OpenAI: the Responses API, its Files API, and Codex.**

*Row 1, who sends, and what it adds.* The OpenAI pages read for this chapter do not say what ChatGPT adds around a person's words, or whether the API adds anything. So this page says nothing either way.

<!-- OPEN: no OpenAI page read on November 30, 2026 says what ChatGPT adds to a conversation (a system prompt, memory, projects) or confirms that the Responses API adds nothing. Row 1's OpenAI cell stays empty until one is read -->

*Row 2, what leaves, and what is kept.* An uploaded file is kept until you delete it, with one exception: a file uploaded for a batch expires after 30 days by default. You may set an expiry, `expires_after`, from 3,600 seconds (1 hour) to 2,592,000 seconds (30 days).[^openai-files-create][^openai-openapi] So the longest expiry is 30 days on OpenAI and 90 days on Claude. Brightline's production row deletes a file when its invoice closes, on either vendor.

<!-- OPEN: OpenAI's retention of API inputs and outputs, and its zero data retention terms for the Files API, were not read on November 30, 2026 -->

*Row 3, where the file ids belong.* The Responses API takes a file as `input_file`, by its bytes (`file_data`), a `file_id` or a `file_url`. Chat Completions "accepts only PDF files as `file` content parts", and no web address.[^openai-file-inputs] A PDF is read as "both text and page images", like Claude's. Other documents are read as text only.[^openai-file-inputs] Each file "must be under 50 MB". A request's files together are limited to 50 MB.[^openai-file-inputs] A file for the model is uploaded with the purpose `user_data`.[^openai-file-inputs] A stored file can be up to 512 MB, and "each project can store up to 2.5 TB of files in total".[^openai-files-create][^openai-openapi] An **OpenAI project** is a group inside an OpenAI organization. Its files have their own storage limit, and it can have its own spend limit, as row 4 shows. As far as the pages read say, it plays the part a workspace plays on Claude.

<!-- OPEN: whether an OpenAI file id is readable only inside the project that uploaded it is not stated on the pages read (the files reference gives only a per-project storage limit). The port's row 3 for OpenAI is "the staging OpenAI project", and the key for Task 5 records what a second project's key gets. Until then, this page does not say that a file id fails in another project -->

*Row 4, which models may answer.* OpenAI's error codes fall into the same classes, with different numbers.[^openai-error-codes]

| Class | Claude | OpenAI |
| --- | --- | --- |
| Rate limit | 429 `rate_limit_error`, with `retry-after` | 429, with `Retry-After`. If it is missing, "use exponential backoff with jitter", a small random wait added so many clients do not retry at once (21.9) |
| Grew too fast | 429 `ramp_limit_exceeded` | 429 `slow_down` |
| A spend limit you set | 400 `invalid_request_error` | 429, with a code such as `project_spend_limit_exceeded` |
| Overloaded | 529 `overloaded_error` | 503 `server_is_overloaded` |
| Server error | 500 `api_error` | 500 |

The Claude column is from Anthropic's errors and rate limits pages.[^anthropic-errors][^anthropic-rate-limits] The row that changes a decision is the spend limit. On Claude it is a 400, which is never retried. On OpenAI it is a 429, the same status as a rate limit. Your **error classifier** is the code that reads an error and returns its class. One that reads only the status would wait and retry against a limit that will not lift. So the port reads the error's code, not only its status. OpenAI's Python SDK names its classes `RateLimitError`, `InternalServerError`, `BadRequestError`, `NotFoundError`, `APITimeoutError` and others.[^openai-error-codes]

*Row 5, which configuration the run reads.* Codex reads `~/.codex/config.toml`, and a project's `.codex/config.toml` only "when you trust the project".[^openai-codex-config] Its order, highest first, is command-line flags, then the project, a profile, the user, cloud-managed settings, and the system file.[^openai-codex-config] Codex joins `AGENTS.md` files "from the root down", the closer files last, up to 32 KiB by default.[^openai-codex-agents-md]

<!-- OPEN: Codex's settings order was read on November 30, 2026 for the facts file, but the page answered a security checkpoint when the round-1 reviewer tried to read it again, and earlier Codex docs put a profile above the project layer. Read the page again from a browser before this page is approved. -->

*Row 6, how a change arrives.* The GitHub Action `openai/codex-action@v1` "installs the Codex CLI ... and runs codex exec". It takes a `prompt` or a `prompt-file`, an `openai-api-key` and an `output-file`. Its `safety-strategy` defaults to `drop-sudo`.[^openai-codex-action]

<!-- OPEN: the flags and exit codes of `codex exec` are not stated here. Its page (developers.openai.com/codex/noninteractive) returned a security checkpoint (HTTP 403) on every try on November 30, 2026 -->

**Status and price.** The pages read give no price for file storage.

#### Open source

**Open source: OpenCode in CI, and an open-weight model with no file store.**

*Rows 5 and 6.* OpenCode reads `opencode.json` or `opencode.jsonc` in the project, or in its `.opencode/` folder, and a global file in `~/.config/opencode/`. "Managed settings have the highest precedence, so users and projects cannot override the values they set".[^opencode-config] Its `opencode run` sends a prompt "without opening the interactive interface", and is "designed for scripts, CI jobs, and other workflows".[^opencode-cli] It runs headless in CI, as `claude -p` does (*from an earlier chapter*, [15.10](../code-review/both-ai-vendors.md), with its own date).

<!-- OPEN: OpenCode's GitHub page (opencode.ai/docs/github/) was read again on November 30, 2026, and still showed "You're viewing a previous version of the docs". Its action name, `anomalyco/opencode/github@latest`, is not printed here until the current version is read -->

*Rows 1 to 4, for an open-weight model.* An open-weight model runs on your own computer ([24.10](../evaluating-ai-workers/how-todays-tools-realize-it.md)). No vendor receives the request, so row 1 adds nothing you did not write, and row 2 is your own disk. No vendor keeps your files either, so row 3 has no ids: each scan is converted on your computer and sent as bytes. Row 4 is the model file you downloaded, and its version is your pin (*proposed design*).

*Security.* A project's `opencode.json` sits in the repository, so a pull request can change the configuration that CI reads. Make the file one of row 5's proofs, so that `check:environments` sees the change. A local model's scans stay on your computer, and their text is still data, never instructions (Chapter 28).

<!-- OPEN: no OpenCode page read on November 30, 2026 gives a security fact for `opencode run` in CI (such as what it may run without asking). The Security line is a principle from this chapter's rule. Add a product fact with its URL, or keep this line only -->

### What stays true on every option?

**On every product, the six rows are yours to write. A value that differs between environments differs on purpose, in a file, with a proof.**

A cell filled by a product's default is a cell you did not write. It can change with the product's next release, and `check:environments` cannot compare it, so name it in the cell.

**The operating rule:** before a request moves to another product or platform, read that product's pages for each of the six rows. Write in `docs/environments.md` what fills each cell when you set nothing, and then set it yourself.

**For the exam.** The developer exam's questions are about Claude only. The OpenAI and open-source boxes are practice for the lab's port.

<!-- EDITOR: the "For the exam" line above is hand-written, as 24.11 and 27.7 have one, and it has no entry in the plan's delta register. The other option: remove it until the register has an entry. -->

**Do this now.** Pick one product or cloud platform you might move a worker to. Open its documentation, and give your coding agent this prompt.

> Read the pages I name for this product. For each of six rows, tell me what the product does when I set nothing: who sends the request and what it adds, what it keeps and for how long, where an uploaded file can be read, which models may answer and what happens on an overload, which configuration a run reads, and how a change reaches it in CI. Quote the page's own sentence for each, and write "the page does not say" where it is silent.

Each "the page does not say" is a cell you fill yourself.

**Read next.** [Chapter 31](../self-improving-ai-workers/overview.md) builds a worker that improves itself. It carries each change through the same environments, and row 6 is the path it takes.

<!-- EDITOR: the plan says Chapter 31 "Builds on ... Chapter 30 (promotion through environments)" (book-plan.md:1213), but the published Chapter 31 lists prerequisites 21 to 23 and its lab is set in October 2026 (spec, point 18). Check this line against Chapter 31 once its owner answers -->

[^agent-sdk-system-prompts]: Modifying system prompts, Claude Agent SDK, Anthropic.
[^anthropic-files-api]: Files API, Claude API docs, Anthropic.
[^anthropic-vision]: Vision, Claude API docs, Anthropic.
[^anthropic-foundry]: Claude in Microsoft Foundry, Claude API docs, Anthropic.
[^anthropic-google-managed]: Claude Models on Google Cloud, Google managed, Claude API docs, Anthropic.
[^anthropic-model-ids]: Model IDs and versions, Claude API docs, Anthropic.
[^anthropic-deprecations]: Model deprecations, Claude API docs, Anthropic.
[^anthropic-refusals-and-fallback]: Refusals and fallback, Claude API docs, Anthropic.
[^claude-code-headless]: Run Claude Code programmatically, Claude Code docs, Anthropic.
[^agent-sdk-claude-code-features]: Use Claude Code features in the SDK, Claude Agent SDK, Anthropic.
[^anthropic-versioning]: Versions, Claude API docs, Anthropic.
[^claude-code-github-actions]: Claude Code GitHub Actions, Claude Code docs, Anthropic.
[^claude-code-gitlab]: Claude Code GitLab CI/CD, Claude Code docs, Anthropic.
[^openai-files-create]: Create file, API reference, OpenAI.
[^openai-openapi]: OpenAI's OpenAPI specification, openai/openai-openapi on GitHub, OpenAI.
[^openai-file-inputs]: File inputs, OpenAI.
[^openai-error-codes]: Error codes, OpenAI.
[^anthropic-errors]: Errors, Claude API docs, Anthropic.
[^anthropic-rate-limits]: Rate limits, Claude API docs, Anthropic.
[^openai-codex-config]: Config basics, Codex, OpenAI.
[^openai-codex-agents-md]: Custom instructions with AGENTS.md, Codex, OpenAI.
[^openai-codex-action]: Codex GitHub Action, OpenAI.
[^opencode-config]: Config, OpenCode.
[^opencode-cli]: CLI, OpenCode.
