Files changed: .gitignore CLAUDE.md credentials engine/.embcache.json engine/changelog.md engine/config.yaml engine/lib/__pycache__/agent.cpython-312.pyc engine/lib/agent.py engine/lib/lint.py engine/lint-report.md engine/sweep-full.log engine/sweep.sh vault/.obsidian/graph.json vault/.obsidian/workspace.json vault/INDEX.md vault/archive/projects/mmud/last-ember-chronicle.html vault/archive/projects/mmud/last-ember-howto.html vault/archive/projects/mmud/last-ember.html vault/archive/projects/mmud/mmud-phase5-prompt.md vault/archive/projects/mmud/mmud-phase6-prompt.md vault/archive/projects/mmud/mmud-prompts/mmud-prompts/01-update-planned.md vault/archive/projects/mmud/mmud-prompts/mmud-prompts/02-npc-nodes.md vault/archive/projects/mmud/mmud-prompts/mmud-prompts/03-darkcragg.md vault/archive/projects/mmud/mmud-prompts/mmud-prompts/04-dcrg-node.md vault/archive/projects/mmud/mmud-prompts/mmud-prompts/05-phase5.md vault/archive/projects/mmud/mmud-prompts/mmud-prompts/06-phase6.md vault/archive/projects/mmud/mmud-prompts/mmud-prompts/README.md vault/archive/projects/mmud/mmud-prompts/mmud-prompts/mmud-project.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/dns.md vault/docs/software/geo-tools.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/plans/vaultwarden-plan.md vault/projects/advbbs-project.md vault/projects/argus.md vault/projects/deploy-livesync.md vault/projects/matrix-synapse-deployment.md vault/projects/meshtastic-headscale-runbook.md vault/projects/mmud-project.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/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/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/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/recon-operations.md vault/runbooks/recon-service-integration.md vault/runbooks/syncthing-add-node.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-06-18 |
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"