For agents
AGENTS.md is the authoritative agent guide. Testing strategy defines markers, test groups, and the just test-unit → full-suite workflow. This page is a pointer — do not treat the docs site as a substitute for AGENTS.md.
Summary
- Structure — parts in
cad/parts/, assemblies incad/assemblies/, three-layer pattern (make_*→@artifact/@customizable) - Testing loop —
just test-unitwhile implementing; targetedtest-integration/test-render/test-functionalwhen those areas change; full suite only at completion (Testing strategy) - Completion gate —
just ciorjust quality && just export-smokebefore marking work done - Visual verify — after geometry edits to
cad/(ormain.pydisplay wiring), startjust viewin the background immediately so the user sees live updates in OCP CAD Viewer; re-launch on every geometry edit (independent of test runs) - MakerRepo —
from mr import artifact, customizable, cached; decorators on entry points only - External libs — use bd_warehouse, bd-vslot, etc. for catalog geometry; thin-wrap in
cad/parts/ - Part colors — assign
part.coloron leafPartsolids; validate top-level@artifactPNGs when using nested multi-color compounds (AGENTS.md — Part preview colors, troubleshooting) justcommand tests — destructive recipes (just init,just template-apply, …) only intests/functional/viaisolated_repo+run_just()— never on the real repo root (AGENTS.md → Testing just commands; markers in Testing strategy)
Documentation work
Follow the Documentation section in AGENTS.md. Keep the docs shaped like an iceberg: README for the pitch and shortest path, the docs intro as the concept map, quick start for first success, and deeper pages for technical detail.
No doc drift (mandatory)
Whenever you change code, config, justfile, or workflows:
- Open the matching guide under
website/docs/and confirm it still describes current behavior. - Search
website/docs/,README.md,AGENTS.md, andcad_tooling/README.mdfor the old command names, paths, and strings you replaced. - Update every reference in the same change — links, tables, and examples included.
Full rules: Keep docs in sync (mandatory) in AGENTS.md.
Troubleshooting pages
When you debug container, viewer, MCP, Dagger/CI, export, or GitHub setup issues, check the troubleshooting index and add any new reproducible symptom/fix to the matching page in the same change. Routing table and style: Troubleshooting documentation in AGENTS.md.
Template identity: edit template.repo.toml, then just init — or pass just init --owner … --repo …. Create and initialize your repository.