Skip to main content

arris-gym

Run and score model-written CAD programs with deterministic rewards and typed outcomes.

arris-gym is a Python library. It runs model-written CAD programs on the arris B-Rep kernel in a sandbox, returns a typed outcome for every program, and scores the result against a target. It speaks arris.build and a CadQuery-compatible subset for programs from public CAD-code benchmarks and models. MIT OR Apache-2.0.

Status

Pre-alpha, Linux only (x86-64 and AArch64, with user namespaces, Landlock, mount_setattr and seccomp). What runs today:

  • run, run_many and Sandbox execute a program in the arris dialect or the cq subset in an isolated worker and return a frozen ExecResult with one of eight statuses. The sandbox caches results and digest hashes them in order.
  • score gives every result a reward. Valid bodies receive IoU, surface, measures and topology terms alongside BenchCAD's voxel IoU and Chamfer metrics. The IoU uses B-Rep interference where the kernel answers and seeded mesh sampling otherwise. read_target reads a STEP as a target.
  • arris-gym census --corpus benchcad and --corpus cadrecode count the API forms and compute static reach without running the programs. From a repository checkout, arris-gym rescore benchcad scores a 300-program slice against committed STEP targets from CadQuery. Use arris-gym rescore benchcad --score-timeout SECONDS to set the deadline per score worker, which defaults to 30 seconds. To use the CI replay settings, run arris-gym rescore benchcad --workers 4 --score-timeout 60. These commands need the arris-gym[corpus] extra.

The CadQuery subset covers workplane and sketch operations, booleans, axis selectors, drilling, blends and supported loft, draft and shell forms. arris_gym.cq.subset() lists the declared forms and selectors. Calls outside the subset, including CadQuery STEP export, return unsupported_api. The library provides execution and scoring for external training loops. Supported forms · Changelog

With arris 0.12.0, static reach is 15,656 of 17,900 BenchCAD programs and all 968 CAD-Recode validation programs. Against committed CadQuery reports, 12,791 BenchCAD rows and 893 CAD-Recode rows agree. Both fidelity digests match on x86-64 and AArch64. BenchCAD fidelity · CAD-Recode fidelity

import arris_gym as ag

program = """\
import cadquery as cq
result = cq.Workplane("XY").box(10, 8, 6)
"""
target = ag.run(program, dialect="cq")
assert target.body is not None, target.message
result = ag.run(program, dialect="cq", timeout=5.0)

s = ag.score(result, target.body)
print(result.status, result.message)
print(s.reward, s.iou, s.iou_route, s.field)

Contributing

See CONTRIBUTING.md.

Licence

Dual-licensed under MIT or Apache-2.0, at your option.

Metadata

Release files for arris-gym 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arris-gym 0.3.0
File Size Uploaded Provenance Actions
arris_gym-0.3.0.tar.gz 165.5 kB With provenance Details for arris_gym-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for arris-gym 0.3.0
File Interpreter ABI Platform Actions
arris_gym-0.3.0-py3-none-any.whl Python 3 none any Details for arris_gym-0.3.0-py3-none-any.whl

Total release size: 361.0 kB

Release files / arris_gym-0.3.0.tar.gz

Download URL arris_gym-0.3.0.tar.gz
Size 165.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cb3ba12b1e81f94441178a5b000c32b8ef6b9221d56522ff6f78b5f55d977c62
BLAKE2b-256 checksum
How to use checksums
24cffb4947d8f6f5e7bc3e6dba9dad6550a50178e6378a462e530b92479c51af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / arris_gym-0.3.0-py3-none-any.whl

Download URL arris_gym-0.3.0-py3-none-any.whl
Size 195.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5aad406fecf420fdc3c88e13f956208074f1ab2bee3b8bb11074fe174e45060
BLAKE2b-256 checksum
How to use checksums
02e98faa4221e308fe5529ee7bcd0f3be2700578d6613348d9b8af8e9cfa1e80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for arris-gym 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for arris_gym-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page