Files changed: engine/.embcache.json engine/changelog.md engine/lint-report.md vault/.trash/2026-06-19.md vault/docs/hardware/environment.md vault/docs/hardware/ip-allocation.md vault/docs/matrix/archivist.md vault/docs/matrix/matrix_host.md vault/docs/matrix/mautrix_signal.md vault/docs/matrix/synapse.md vault/docs/matrix/synapse_retention_discovery.md vault/docs/navi/cc-rules.md vault/docs/navi/deployment.md vault/docs/navi/themes.md vault/docs/services/ots-setup.md vault/docs/services/services.md vault/docs/services/usenet.md vault/docs/software/authentik.md vault/docs/software/caddy.md vault/docs/software/central.md vault/docs/software/dns.md vault/docs/software/geo-tools.md vault/docs/software/navi.md vault/docs/software/recon.md vault/docs/software/searxng.md vault/glossary.md vault/notes/echo6-landing-page-data-export.md vault/notes/ia-download-queue.md vault/projects/advbbs-project.md vault/projects/argus.md vault/projects/deploy-livesync.md vault/projects/fleet-patch-audit.md vault/projects/fleet-platform-baseline.md vault/projects/matrix-synapse-deployment.md vault/projects/meshai-config-hot-apply.md vault/projects/meshai-region-routing-plan.md vault/projects/meshai.md vault/projects/meshcore-transport.md vault/projects/meshtastic-headscale-runbook.md vault/projects/mmud-project.md vault/projects/nominatim-v5-reimport.md vault/runbooks/add-peertube-channel.md vault/runbooks/authentik-access-groups.md vault/runbooks/authentik-create-invitation.md vault/runbooks/authentik-oidc-application.md vault/runbooks/authentik-upgrade.md vault/runbooks/central-deploy-cutover.md vault/runbooks/ct-runbook.md vault/runbooks/edge2-access-reference.md vault/runbooks/expose-service-contabo.md vault/runbooks/expose-service-edge2.md vault/runbooks/expose-service-home.md vault/runbooks/fleet-magicdns-resolved-migration.md vault/runbooks/headless-browser-page-verification.md vault/runbooks/headscale-oidc-boot-order.md vault/runbooks/headscale-onboard-node.md vault/runbooks/ia-cli-reference.md vault/runbooks/ia-download-mirror.md vault/runbooks/idahomesh-bridge-setup.md vault/runbooks/idahomesh-vpn-device-setup.md vault/runbooks/lxc-service-migration.md vault/runbooks/mailcow-create-mailbox.md vault/runbooks/meshai-prod-compose-override.md vault/runbooks/meshmonitor-password-reset.md vault/runbooks/meshtastic-sidecar-node.md vault/runbooks/meshtasticd-sim-nodes-runbook.md vault/runbooks/nordvpn-lxc.md vault/runbooks/peertube-remote-runner.md vault/runbooks/pg-backup.md vault/runbooks/pi-nas-omv-runbook.md vault/runbooks/pipeline-patterns.md vault/runbooks/proxmox-create-ubuntu-vm.md vault/runbooks/proxmox-onboard-node.md vault/runbooks/pymc-repeater-kiss-tnc-reenumeration.md vault/runbooks/recon-operations.md vault/runbooks/recon-service-integration.md vault/runbooks/syncthing-add-node.md vault/runbooks/toc-cortex-pve9.2-update.md vault/session-resume/SESSION-HANDOFF-meshai-test.md
3.1 KiB
3.1 KiB
| title | type | tags | aliases | related | updated | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Navi: Claude Code Rules | reference |
|
|
2026-07-13 |
Navi: Claude Code Rules
Repository & SSH
All navi SSH goes to: recon-vm (VM 1130, 192.168.1.130)
Never SSH to cortex for Navi work. Previous attempt to deploy from cortex wrecked production by deploying from a stale clone.
Work directory: /home/zvx/projects/repos/navi on VM 1130
Never touch: /home/zvx/projects/navi-work on cortex (stale clone, do not use)
Git / Repository Rules
GitHub (zvx-echo6) is the source of truth for all repos.
Remote Convention
- origin = GitHub (github.com/zvx-echo6/{repo})
- forge = Forgejo backup (forge.echo6.co/matt/{repo})
Creating New Repos
- Create on GitHub first (public unless told otherwise)
- Create matching repo on Forgejo
- Configure Forgejo repo as pull mirror from GitHub (8h interval)
- Local clone: origin = GitHub, forge = Forgejo
Exceptions
- echo6-docs is the sole exception — Forgejo only, no GitHub copy
Rules
- Never force-push to origin without explicit approval
- Never use
git add -A— stage files explicitly
Critical Constraints
- Never re-export namedTheme through any intermediary module — import directly from protomaps-themes-base in MapView.jsx
- Never use
git add -A— stage files explicitly - Never deploy without smoke tests — run full checklist (see deployment.md)
- Never start preview servers — deploy to production and test there
Build & Deploy
ssh recon-vm
cd /home/zvx/projects/repos/navi
npm run build && rsync -av --delete dist/ /mnt/nav/frontend/
Git Workflow
- Feature branches: name descriptively (theme-, fix-, feat-*)
- Always merge to master before deploying
- Check for unmerged commits:
git log branch..master --oneline
Code Patterns
queryRenderedFeatures for Optional Layers
Guard with map.getLayer() — USFS/BLM hit layers may not exist:
const layers = [USFS_TRAILS_HIT, USFS_ROADS_HIT].filter(id => map.getLayer(id))
const features = layers.length > 0
? map.queryRenderedFeatures(e.point, { layers })
: []
buildStyle Theme Colors
const theme = getTheme(themeName)
const colors = theme.colors || namedTheme(themeName) // direct import
PlaceCard useEffect Changes
Investigation-before-implementation — fragile race conditions between:
- Boundary fetch from Wikidata/OSM
- selectedPlace state updates
- AbortController cleanup
Architecture Notes
- Boundary highlight is NOT an overlay toggle — it's a dynamic click-response layer
- Route polyline uses GeoJSON source.setData() — silent failure if namedTheme is re-exported
- Measure tool also uses GeoJSON — same failure mode
Smoke Test Checklist
After every deploy:
- Route between two addresses — polyline renders
- Click city label — boundary outline appears
- Theme switching (all 4 themes)
- Overlay toggles (hillshade, contours, public lands)
- Console: no "bt is not defined" or "f is not defined"