# Profile for the COMPLETE mode: the whole process runs under `python-sb`, so
# this profile has to allow the framework's own dispatch too. The partial mode
# has its own profile, `.py-sandboxes`, deliberately separate. Relearn both with
# `learn.py`; see its docstring.
py-sandbox=true
os-sandbox=${OS_SANDBOX:-subprocess}

net=ALLOW|TCP|www.google.com|443|OUT

# Add rules (2026/09/10 at 07:36)
env=CONDA_HOME=${CONDA_HOME}
env=HOME=${HOME}
env=PWD=${PWD}
env=PYDANTIC_DISABLE_PLUGINS=${PYDANTIC_DISABLE_PLUGINS}
env=PYENV_ROOT=${PYENV_ROOT}
env=PYTHONUSERBASE=${PYTHONUSERBASE}
env=TEMP=${TEMP}
env=TMP=${TMP}
env=TMPDIR=${TMPDIR}

# ⚠ Dangerous!
python-import=atexit, ctypes, importlib, inspect, mmap, subprocess

# Standard Python
python-import=__future__, _codecs_cn, _codecs_hk, _codecs_iso2022, _codecs_jp
python-import=_codecs_kr, _codecs_tw, _compression, _elementtree, _hashlib
python-import=_markupbase, _multibytecodec, _multiprocessing, _posixshmem, _queue
python-import=_sysconfigdata__linux_x86_64-linux-gnu, _thread, _zoneinfo, abc, array
python-import=ast, base64, binascii, bisect, calendar, codecs, collections, colorsys
python-import=concurrent, configparser, contextlib, contextvars, copy, copyreg
python-import=dataclasses, datetime, decimal, email, encodings, enum, errno, fnmatch
python-import=fractions, functools, getpass, gettext, gzip, hashlib, heapq, hmac
python-import=html, http, io, ipaddress, itertools, json, logging, math, mimetypes
python-import=multiprocessing, numbers, operator, os, pathlib, pickle, platform
python-import=posixpath, pprint, queue, random, re, reprlib, runpy, secrets, select
python-import=selectors, shlex, shutil, signal, socket, ssl, stat, string
python-import=stringprep, struct, sysconfig, tempfile, termios, textwrap, threading
python-import=time, traceback, types, typing, unicodedata, urllib, uuid, weakref
python-import=xml, zipfile, zlib, zoneinfo

# External modules (Are you sure about the origin?)
python-import=81d243bd2c585b0f4821__mypyc
python-import=annotated_types
python-import=anyio
python-import=attr
python-import=attrs
python-import=boto3
python-import=botocore
python-import=bs4
python-import=certifi
python-import=charset_normalizer
python-import=click
python-import=dateutil
python-import=docstring_parser
python-import=h11
python-import=httpcore
python-import=httpx
python-import=idna
python-import=importlib_metadata
python-import=jmespath
python-import=jsonschema
python-import=jsonschema_specifications
python-import=markdownify
python-import=opentelemetry
python-import=packaging
python-import=pydantic
python-import=pydantic_core
python-import=pyexpat
python-import=pygments
python-import=referencing
python-import=rich
python-import=rpds
python-import=s3transfer
python-import=six
python-import=sniffio
python-import=soupsieve
python-import=strands
python-import=strands_agents_demo
python-import=typing_extensions
python-import=typing_inspection
python-import=urllib3
python-import=watchdog
python-import=wrapt
python-import=yaml
python-import=zipp

# The repository root, which uv installs as an editable dependency (see
# `[tool.uv.sources]`), so the sandbox must be able to read it. Relative to the
# working directory, which is this sample's own directory: an absolute `~/...`
# form only resolves on a machine that checked the repository out there, and
# fails on any CI runner. Learning mode cannot emit this form -- it never walks
# above PWD -- so `make learn` puts the absolute path back.
expose-ro=../..

net=ALLOW|TCP|ip6-localhost|0|IN
net=ALLOW|TCP|ip6-loopback|0|IN

# ⚠ native: native code and arbitrary memory access
python-api=ALLOW:ctypes.CDLL

# Add rules (2026/09/10 at 10:06)
env=PSUTIL_DEBUG=${PSUTIL_DEBUG}
env=VIRTUAL_ENV=${VIRTUAL_ENV}

# Standard Python
python-import=_decimal, _socket, glob, keyword, pwd, resource

# External modules (Are you sure about the origin?)
python-import=psutil


# The calculator tool evaluates a string the model produced. `closed` rather
# than the adaptive default: the caller already passes {"__builtins__": {}},
# so the resulting namespace is identical, and a profile handling model output
# should declare its surface here rather than at the call site.
eval-namespace=closed
eval-syntax=arith, compare
eval-max-iterations=100_000
eval-timeout=2s

# Add rules (2026/09/21 at 10:15)
env=SSL_CERT_FILE=${SSL_CERT_FILE}

expose-ro=/proc


# Add rules (2026/09/21 at 10:15)

# Add rules (2026/09/21 at 10:15)

# Add rules (2026/09/21 at 10:15)
# Standard Python
python-import=_ctypes, _hmac, annotationlib, compression


