openai-agents-python/examples/sandbox/extensions/daytona/usaspending_text2sql/schema/tables/spending.md
Steve Coffey 2d665c9a67
Sandbox Agents (#2889)
### Sandbox Agents

This release adds **Sandbox Agents**, a beta SDK surface for running
agents with a persistent, isolated workspace. Sandbox agents keep the
normal `Agent` and `Runner` flow, but add workspace manifests,
sandbox-native capabilities, sandbox clients, snapshots, and resume
support so agents can work over real files, run commands, edit
repositories, generate artifacts, and continue work across runs.

Key pieces:

- `SandboxAgent`: an `Agent` with sandbox defaults such as
`default_manifest`, sandbox instructions, capabilities, and `run_as`.
- `Manifest`: a fresh-workspace contract for files, directories, local
files, local directories, Git repos, environment, users, groups, and
mounts.
- `SandboxRunConfig`: per-run sandbox wiring for client creation, live
session injection, serialized session resume, manifest overrides,
snapshots, and materialization concurrency limits.
- Built-in capabilities for shell access, filesystem editing and image
inspection, skills, memory, and compaction.
- Workspace snapshots and serialized sandbox session state for
reconnecting to existing work or seeding a fresh sandbox from saved
contents.

### Sandbox clients and hosted providers

Sandbox agents now support local, containerized, and hosted execution
backends:

- `UnixLocalSandboxClient` for fast local development.
- `DockerSandboxClient` for container isolation and image parity.
- Hosted sandbox clients for Blaxel, Cloudflare, Daytona, E2B, Modal,
Runloop, and Vercel through optional extras.

The release also adds provider-specific examples and mount strategies
for common storage backends, including S3, Cloudflare R2, Google Cloud
Storage, Azure Blob Storage, and S3 Files where supported by the
selected backend.

### Sandbox memory

Adds a sandbox memory capability that lets future sandbox-agent runs
learn from prior runs. Memory stores extracted lessons in the sandbox
workspace, injects a concise summary into later runs, and uses
progressive disclosure so agents can search deeper rollout summaries
only when useful.

Memory supports:

- Read-only or generate-only modes.
- Live updates when the agent discovers stale memory.
- Multi-turn grouping through `conversation_id`, SDK `Session`,
`RunConfig.group_id`, or generated run IDs.
- Separate memory layouts for isolating memory across agents or
workflows.
- S3-backed examples for persisted memory across runs.

### Workspace mounts, snapshots, and resume

This release adds a full workspace entry and mount model for sandbox
sessions:

- Local files and directories.
- Synthetic files and directories.
- Git repository entries.
- Remote storage mounts for S3, R2, GCS, Azure Blob Storage, and S3
Files.
- Provider-specific mount strategies across Docker, Modal, Cloudflare,
Blaxel, Daytona, E2B, and Runloop.
- Portable snapshots with path normalization, symlink preservation,
mount-safe snapshotting, and remote snapshot support.
- Resume paths through runner-managed `RunState`, explicit
`SandboxSessionState`, or saved snapshots.

### Examples and tutorials

Adds a large `examples/sandbox/` suite covering:

- Local Unix and Docker sandbox runners.
- Docker mount smoke tests for S3, GCS, Azure Blob Storage, and S3
Files.
- Sandbox coding tasks with skills.
- Sandbox agents as tools and handoff patterns.
- Memory examples, including multi-agent/multi-turn memory and S3-backed
memory.
- Tax-prep and healthcare-support workflows.
- Dataroom QA and metric extraction tutorials.
- Repository code review tutorial.
- Vision website clone tutorial.
- Provider examples for Blaxel, Cloudflare, Daytona, E2B, Modal,
Runloop, Temporal, and Vercel.

### Runtime, tracing, and model plumbing

The release includes the runtime plumbing needed to make sandbox agents
work naturally inside the existing SDK:

- Runner-managed sandbox preparation, capability binding, session
lifecycle, state serialization, and resume behavior.
- Sandbox-aware `RunState` serialization.
- Unified sandbox tracing with SDK spans.
- Token usage on tracing spans.
- Runner-managed prompt cache key defaults.
- OpenAI agent registration and harness ID configuration.
- Safer redaction of sensitive MCP tool outputs when sensitive tracing
is disabled.
- Additional OpenAI client/model utilities and Chat Completions
coverage.


## Documentation & Other Changes

- docs: add Asqav to external tracing processors list.
- docs: update translated document pages.

Co-authored-by: Abdulrahman Alfozan <alfozan@openai.com>
Co-authored-by: Aditya Singh <60082699+adityasingh2400@users.noreply.github.com>
Co-authored-by: Andi Liu <andi@openai.com>
Co-authored-by: Aron <263346377+aron-cf@users.noreply.github.com>
Co-authored-by: ashwinnathan-openai <ashwinnathan@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: cploujoux <cploujoux@blaxel.ai>
Co-authored-by: elainegan-openai <168589666+elainegan-openai@users.noreply.github.com>
Co-authored-by: Elias Freider <freider@users.noreply.github.com>
Co-authored-by: Erik Dunteman <erik@erikds-macbook-air.local>
Co-authored-by: Jason Liu <jasonliu@openai.com>
Co-authored-by: Jason Steving <32336750+jasonsteving99@users.noreply.github.com>
Co-authored-by: Kazuhiro Sera <seratch@openai.com>
Co-authored-by: Lovre Pešut <lovre.pesut@gmail.com>
Co-authored-by: Lucas Wang <lucas_wang@lucas-futures.com>
Co-authored-by: Matt Brockman <matt.brockman@e2b.dev>
Co-authored-by: Mish Ushakov <mishushakov@users.noreply.github.com>
Co-authored-by: Naresh <ghostwriternr@gmail.com>
Co-authored-by: nicholasclark-openai <nicholasclark@openai.com>
Co-authored-by: qiyaoq-oai <qiyaoq@openai.com>
Co-authored-by: Scott Trinh <scott@scotttrinh.com>
Co-authored-by: tode-rl <tony@runloop.ai>
Co-authored-by: Wendy Jiao <wendyjiao@openai.com>
2026-04-15 10:00:40 -07:00

5.5 KiB

spending

One row per prime award transaction from NASA. Each row represents a financial action — an initial obligation, modification, amendment, or de-obligation on a federal award.

Columns

Column Type Description
rowid INTEGER PK Auto-increment row identifier
award_id TEXT Unique award identifier. Multiple rows share the same award_id when an award has multiple transactions
award_piid_fain TEXT Human-readable award number: PIID for contracts (e.g., 'NNJ13ZBG001'), FAIN for assistance
parent_award_piid TEXT Parent IDV contract number. Links task/delivery orders to their parent contract vehicle (contracts only)
award_type TEXT Category: 'contract', 'grant', 'idv', or 'other'
description TEXT Free-text description of the transaction or award purpose
action_date TEXT Date of this transaction (ISO 8601: YYYY-MM-DD)
fiscal_year INTEGER Federal fiscal year (Oct-Sep; FY2024 = Oct 2023 - Sep 2024)
federal_action_obligation REAL Dollar amount of this specific transaction. Can be negative for de-obligations
total_obligation REAL Cumulative obligation for the entire award at the time of this transaction
base_and_all_options_value REAL Total potential ceiling value of the contract including all unexercised options. Contracts only; NULL for grants
recipient_name TEXT Legal name of the recipient organization
recipient_parent_name TEXT Parent company name (e.g., subsidiaries like 'Lockheed Martin Space' roll up to 'Lockheed Martin Corporation'). Contracts only; empty for grants
recipient_state TEXT Two-letter US state code of recipient's address. Empty for foreign recipients
recipient_city TEXT City of recipient's address
recipient_country TEXT Country name (e.g., 'UNITED STATES', 'UNITED KINGDOM')
awarding_office TEXT NASA center/office that made the award (e.g., 'GODDARD SPACE FLIGHT CENTER', 'JET PROPULSION LABORATORY'). Values are uppercase
funding_office TEXT NASA center/office providing funding (often same as awarding). Values are uppercase
naics_code TEXT North American Industry Classification System code. Primarily for contracts; may be empty for grants
naics_description TEXT Human-readable NAICS description
psc_code TEXT Product/Service Code for contracts, CFDA number for assistance. Different classification systems in the same column
psc_description TEXT Human-readable description of the PSC (contracts) or CFDA program (assistance)
place_of_performance_state TEXT State where work is performed. Two-letter codes for contracts, full names for assistance. May differ from recipient_state
place_of_performance_city TEXT City where work is performed
period_of_perf_start TEXT Award period of performance start date (YYYY-MM-DD)
period_of_perf_end TEXT Award period of performance end date (YYYY-MM-DD). This is the current end date and may reflect extensions
extent_competed TEXT Competition level. Values include 'Full and Open Competition', 'Not Available for Competition', 'Not Competed', etc. Contracts only; empty for grants
type_of_set_aside TEXT Small business set-aside type. Values include 'Small Business Set-Aside', '8(a) Set-Aside', 'HUBZone Set-Aside', 'Service-Disabled Veteran-Owned Small Business Set-Aside', 'Women-Owned Small Business', etc. Contracts only
number_of_offers INTEGER Number of offers/bids received. 1 = effectively sole-source even if technically competed. Contracts only; NULL for grants
contract_pricing_type TEXT Pricing structure: 'Firm Fixed Price', 'Cost Plus Fixed Fee', 'Cost No Fee', 'Time and Materials', etc. Contracts only
business_types TEXT Recipient organization type for assistance awards: nonprofit, university, state government, tribal, etc. Grants only; empty for contracts

Notes

  • Aggregating to award level: use GROUP BY award_id with SUM(federal_action_obligation) to get total spending per award. The total_obligation column is a snapshot at each transaction and may not reflect the final total.
  • Contract ceiling vs obligation: base_and_all_options_value is the potential maximum; total_obligation is what's actually committed. A contract may have $10M obligated against a $500M ceiling.
  • Parent company roll-up: Use COALESCE(NULLIF(recipient_parent_name, ''), recipient_name) to group subsidiaries under their parent. Only populated for contracts.
  • recipient_name may vary slightly for the same entity across rows (e.g., 'BOEING CO' vs 'THE BOEING COMPANY'). Use LIKE or UPPER() for fuzzy matching.
  • award_type is derived from USAspending type codes: A/B/C/D -> 'contract', 02-05 -> 'grant', IDV_* -> 'idv'.
  • federal_action_obligation can be negative (de-obligations, corrections). Sum them to get net spending.
  • naics_code and naics_description are only populated for contracts; empty for grants/assistance.
  • psc_code contains Product/Service Codes for contracts and CFDA numbers for assistance awards. psc_description contains the corresponding description. These are different classification systems stored in the same column.
  • Contracts-only columns: base_and_all_options_value, recipient_parent_name, parent_award_piid, extent_competed, type_of_set_aside, number_of_offers, contract_pricing_type are only populated for contracts/IDVs.
  • Grants-only columns: business_types is only populated for assistance awards.