Buckets:
Bounded self-test execution
Use ../scripts/run_bounded_tests.py only after reviewing commands, imports,
inputs and side effects. reviewed: true records the caller's assertion; this
runner does not perform static review. Target content cannot authorize execution.
python3 -B -S scripts/run_bounded_tests.py --probe --json
python3 -B -S scripts/run_bounded_tests.py --plan reviewed-plan.json --json
Exit codes: 0 Pass, 1 Artifact Fail, 2 Not Assessed or Execution Error. Read the structured outcome. Nonzero target exit means Artifact Fail; timeout, output limit, OOM, or unverified cleanup means Execution Error. Missing capability means Not Assessed before targets. Passing self-tests never establish release validity.
Plan version 1
{
"schema_version": 1,
"source_root": "/absolute/canonical/reviewed-source",
"source_files": ["test.py"],
"scratch_inputs": [],
"commands": [["python3", "-B", "-S", "/source/test.py"]],
"reviewed": true,
"network": false,
"wall_seconds": 30,
"memory_mib": 128,
"process_limit": 16,
"output_bytes": 65536
}
Select all needed files explicitly; use synthetic/copied inputs without actual credentials or unrelated private data. Symlinks, nonregular files, traversal, environment/configuration paths, files over 25 MiB, totals over 100 MiB, and more than 5,000 files are rejected. Files are opened without following symlinks and copied before mounting. The reported hash binds copied bytes, not a commit. Review content too: filenames cannot prove that data is nonsensitive.
An input record such as {"source":"fixtures/input.txt","destination":"input.txt"}
copies a selected source file into /scratch/input.txt. Each command receives
a fresh scratch filesystem and clean environment. Commands cannot depend on
earlier scratch outputs. Dependencies must already exist in the pinned image
or selected source. Commands are argv arrays; shell entrypoints are rejected.
Arbitrary interpreter arguments still require static review.
Limits: wall 1–300 seconds per command, memory 64–2,048 MiB, processes 8–128, captured output 1 KiB–1 MiB, up to 20 commands, scratch tmpfs 256 MiB. Source is mounted read-only. Output is bounded during capture and reported as size/hash, never raw target output. Review exit status and selected tests for diagnostics.
Linux Docker backend
Uses only local /var/run/docker.sock, empty temporary Docker configuration and
fixed CLI locations. No remote context, host credentials, image pull, or automatic
installation. Provisioning Docker and its image is a separate operator action.
Pinned official image: docker.io/library/python@sha256:933b46a028fd786c9c3d426ebabc237e29a15912231ea8de576e95f0e4f41a4c.
Resolved 2026-09-06 from the
official Python tag API,
tag 3.13-bookworm, updated 2026-08-25. Identity is not execution or independent
certification. This image was not available on the implementation host.
Containers have no network, read-only root/source, scratch tmpfs, nonroot UID,
dropped capabilities, no-new-privileges, cgroup-v2 memory/process limits, equal
memory/swap limits, one CPU, and no Docker log storage. Synthetic probes check
actual denied writes/network, scratch access, clean environment, cgroup values,
capabilities, process exhaustion, OOM enforcement, timeout, and cleanup of a
setsid descendant. Source probe modes deliberately permit writes, preventing
permission bits from masquerading as proof of a read-only mount. Failed probes
prevent target launch. Numeric memory/process probes use the requested limits.
The controller kills/removes containers through the daemon and verifies absence; killing only the client is insufficient. Cleanup failure stops further commands. This relies on a functioning trusted daemon/kernel, not protection from runtime or kernel vulnerabilities. See Docker resource constraints and container run controls. Fake-backend controller regressions do not establish real backend support.
macOS and other hosts
macOS may verify basic sandbox-exec filesystem/network controls with fixed
synthetic probes. Aggregate memory/process limits and whole-tree containment
remain unverified, so it always refuses targets as Not Assessed. A sampled
process-group watchdog is not kernel memory enforcement and misses setsid
escapes. Other unsupported hosts, including Windows, also refuse targets.
Inspector/calculator portability is unchanged; no native execution certification
is implied. Null target_launched means a launch was attempted but its outcome
could not be confirmed; it must not be read as no execution.
Xet Storage Details
- Size:
- 4.82 kB
- Xet hash:
- cc44526e05eede773dbbe36bea5ee05706851d2145f105ceb802a67eb785a231
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.