# Build trees
build/
build-*/
!desktop/electron/build-hooks/
cmake-build-*/

# desktop viz dev: local result bundle generated for testing serve-viz
.devbundle/

# Native desktop packaging outputs and downloaded/frozen toolchains.  The
# packaging recipes, locks, and verifier remain committed under this directory.
/desktop/packaging/.cache/
/desktop/packaging/.work/
/desktop/packaging/artifacts/
/desktop/packaging/dist/
/desktop/packaging/stage/

# Documentation site build output. docs-site/build.sh renders into
# website/docs/ so the existing leapfield Firebase site serves it at
# /docs; the rendered HTML is generated and never committed.
website/docs/

# Python
.venv/
venv/
__pycache__/
*.py[cod]
*.egg-info/
dist/
.pytest_cache/
.ruff_cache/

# Outputs / artifacts
out/
*.bin
*.hdf5
*.h5
benchmarks/results/local/
# generated acceptance reports (per-component PDF + npz + run log); CPU run ->
# reports/, a --device gpu run -> reports_gpu/. Regenerated by make_reports.py.
benchmarks/acceptance/reports/
benchmarks/acceptance/reports_*/
# Rented-GPU session bundles (tools/gpu_session.sh); scp home, commit only the
# results/*.jsonl under benchmarks/results/, never the raw logs/tarballs.
artifacts/

# Editors / OS
.DS_Store
.idea/
.vscode/
*.swp

# Claude scratch
.claude/*.local.json
/.claude/launch.json
/.claude/worktrees/

# Local agent/worktree state (never part of the product source tree)
/.codex/
/.worktrees/

# Local paper library and duplicate presentation export
/literature/
/*.pdf
/presentation/PhotonHub Intro.html

# benchmark run artifacts
benchmarks/waveguide/results.npz
# Component benchmark raw runs (sim.json echo + manifest + monitor .bin DFT
# fields): reproducible, gitignored. The curated sim/ph.json, results/*.json,
# compare.json and compare.png ARE committed.
benchmarks/components/*/run/
# GDS-import benchmark raw runs (same convention as components/); the curated
# gds/, sim/ph.json, results/ph_cpu.json, spectrum.png ARE committed.
benchmarks/gds/*/run/
# Raw field arrays (reproducible from a run); the field_z0.png / field_gpu25.png
# viz IS committed.
benchmarks/gds/*/results/*.npz
# §16.6 subpixel A/B/C sims + results (off/diagonal/full off-diagonal tensor):
# regenerated by gen_subpixel_compare.py / make_gpu_report.py, so gitignored.
benchmarks/gds/*/sim/ph_gpu25_nd_*.json
benchmarks/gds/*/results/ph_gpu25_nd_*.json
# CPU subpixel A/B/C run logs (transient); the report .json + .pdf ARE committed.
benchmarks/gds/report/cpu_run*.log
# Subpixel convergence benchmark raw outputs (reproducible from the script); the
# script + README + convergence.png ARE committed.
benchmarks/subpixel/results.json
benchmarks/subpixel/run.log

# Bent-mode Tidy3D reference: user-generated (needs an API key) + its preview.
# subpixel-parity run logs (transient); the .json/.md/.png ARE committed.
benchmarks/tidy3d/refs/*/subpixel_parity_run.log
# The PhotonHub side (refs/bent_modes/photonhub.json) IS committed.
benchmarks/tidy3d/refs/bent_modes/tidy3d.json
benchmarks/tidy3d/refs/bent_modes/tidy3d_crosssection.png
# co-location comparison run log (transient); the .json/.pdf ARE committed.
benchmarks/gds/report/colocation_run.log
.devrun/

# Local review/render scratch (never product source or evidence)
/tmp/
website/.firebase/
