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_manyandSandboxexecute a program in thearrisdialect or thecqsubset in an isolated worker and return a frozenExecResultwith one of eight statuses. The sandbox caches results anddigesthashes them in order.scoregives 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_targetreads a STEP as a target.arris-gym census --corpus benchcadand--corpus cadrecodecount the API forms and compute static reach without running the programs. From a repository checkout,arris-gym rescore benchcadscores a 300-program slice against committed STEP targets from CadQuery. These commands need thearris-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.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| arris_gym-0.2.0.tar.gz | 164.8 kB | With provenance | Details for arris_gym-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| arris_gym-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for arris_gym-0.2.0-py3-none-any.whl |
Total release size: 359.7 kB
Release files / arris_gym-0.2.0.tar.gz
| Download URL | arris_gym-0.2.0.tar.gz |
|---|---|
| Size | 164.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcf4d775e253d394894b16affad9d78aed15d79994a443907884da2b5a7f6366
|
|
BLAKE2b-256 checksum How to use checksums |
e720bf30c5dd87246ab9a1b7639f4ccbea2cf996365f43018920cbe05e9c6d44
|
| 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 27, 2026.
Transparency logRelease files / arris_gym-0.2.0-py3-none-any.whl
| Download URL | arris_gym-0.2.0-py3-none-any.whl |
|---|---|
| Size | 194.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32ee932664ef51ff98493184253009f8c58d0e685bc8c10199728b8173f9f5af
|
|
BLAKE2b-256 checksum How to use checksums |
0db71019f7ca331d08e952594ca8107d140dfc0277434d2d9063720bcfeed07e
|
| 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 27, 2026.
Transparency logSecurity for arris-gym 0.2.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.
Attestation for arris_gym-0.2.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 27, 2026.
Transparency logA 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.