# UKMesh, CoreScope and Beacon in DEV The companion repositories are Git submodules. Each has its own branches, changes, commits and remotes; UKMesh records the commit to check out. HopReach keeps its existing vendored layout. | Directory | Fork | Upstream branch | Preserved UKMesh branch | | --- | --- | --- | --- | | `third_party/corescope` | `gadgethd/CoreScope` | `Kpa-clawbot/CoreScope:master` | `hermes-gadget/CoreScope:burn/corescope-hunt-20261023` | | `third_party/beacon-server` | `gadgethd/beacon-server` | `MeshCore-Beacon/beacon-server:dev` | `security/remediation-20260912` | | `third_party/beacon-web` | `gadgethd/beacon-web` | `MeshCore-Beacon/beacon-web:dev` | `security/remediation-20260912` | The local integration branch in each submodule is `ukmesh-dev`. Integration commits are local until explicitly pushed to each fork; publish those commits before sharing the UKMesh submodule pins. These branches merge upstream without rewriting the fork's existing commits. CoreScope's preserved branch is the published recovery reconstruction, as documented in that repository; it does not establish the ancestry of the separate deployment. Beacon 2 replaces the 1.x migration chain and requires its own fresh database. The DEV launcher creates that database independently of UKMesh. CoreScope's `ukmesh-dev` branch is published on the `gadgethd` fork. In an existing UKMesh checkout, run `git submodule sync -- third_party/corescope` to pick up the new fork URL. ## Start and edit Docker Engine with Compose, Git, Node and npm are required. Go builds run in a pinned Docker toolchain with cgo enabled; Go need not be installed on the host. Run Docker commands with the account's Docker group access. ```sh bash scripts/dev-all.sh init bash scripts/dev-all.sh start bash scripts/dev-all.sh status ``` `start` runs the complete lean stack, including workers, websites and monitoring. It resumes retained fixture storage or prepares it on first use. Builds run one at a time. There is no reset or data deletion action in this launcher. See [the lean runtime guide](lean-runtime.md) for resource overrides and qualification. | App | Local URL | | --- | --- | | UKMesh | | | UKMesh API | | | CoreScope | | | Beacon | | | Beacon API | | All published companion ports bind to loopback. Beacon PostgreSQL is on `127.0.0.1:5435`; Redis remains inside the companion network. CoreScope owns a separate SQLite file under ignored `plans/companion-dev/runtime/corescope`. Beacon owns the `ukmesh-companions_beacon-db` volume. The launcher's local credentials are fixture values, defined in `scripts/companion-dev/compose.yml`. Both ingestors subscribe to the existing **local sample broker**. They receive new fixture traffic together with UKMesh. Starting them does not copy UKMesh's historical database or replay packets. Each app keeps its own data model. CoreScope's restricted PostgreSQL/public-stream adapters remain in the source, but this fixture configuration uses MQTT and does not grant it UKMesh database or Redis credentials. CoreScope uses its built-in OSM basemap option for this fixture, so its default map does not need a CARTO API key. The production network and deployment Compose files are not used. Edit any repository directly in its `third_party` checkout. Websites serve built assets by default. Use `bash scripts/dev-all.sh hot beacon-web` for Vite, or `bash scripts/dev-all.sh hot ukmesh` for the UKMesh frontend. A normal `start` returns to built assets. CoreScope serves its checkout's static files. Restart the service that owns a change; only its component is rebuilt: ```sh bash scripts/dev-all.sh restart corescope-ingestor bash scripts/dev-all.sh restart corescope bash scripts/dev-all.sh restart beacon bash scripts/dev-all.sh logs beacon ``` `build` builds application images, companion binaries and web assets without starting services. The launcher discards inherited application settings and passes Compose an empty env file. The apps use explicit fixture configuration, and Beacon Web selects an empty Vite env directory. A deployment `.env` is not needed. ## Replay the local archive `bash scripts/dev-all.sh replay start` loops the local 10 November 2026 capture. The replay has its own broker. Two outbound bridge routes deliver packet and status events to the existing DEV broker over Docker's private sample network. UKMesh, Beacon, CoreScope and Health Check use their regular MQTT subscribers. The replay broker has no published ports. Playback advances in capture order at up to 60× recorded time and sends at most 16 events per second. The local archive is excluded from Git. The prepared input contains unscoped ACKs and advertisements, authenticated Public and DEV test chat, and selected numeric observer telemetry. Archive observer topics get stable replay IDs. Their map locations use rounded IATA area centres as estimates. The original observer coordinates stay in the archive. Message timestamps and packet identities stay intact. Repeated packets still deduplicate. Health Check can receive observer activity from the archive. Receipts for new test codes require a radio message with that code. Use `bash scripts/dev-all.sh replay status` for the current position and cycle count. Normal DEV starts resume the replay on this VM after opt-in. Use `bash scripts/dev-all.sh replay stop` to disable it before choosing a qualification fixture. Production Compose uses its configured MQTT intake independently. ```sh bash scripts/dev-all.sh stop bash scripts/dev-all.sh start ``` `stop` stops the complete stack and retains its data. Use `companions` instead of `start` to start only companions against an already running sample broker. ## Commit and update independently Commit a change inside the repository that owns it. Run that repository's checks, then publish its development branch before publishing a new UKMesh submodule pin. This keeps the pin fetchable by another checkout. ```sh git -C third_party/beacon-server status git -C third_party/beacon-server add path/to/changed-file.go git -C third_party/beacon-server commit -m "Describe the Beacon change" git -C third_party/beacon-server push origin ukmesh-dev git add third_party/beacon-server git commit -m "Update Beacon development revision" ``` `init` registers missing upstream remotes and creates a development branch for newly initialized, detached submodules. It preserves existing checkouts and pending edits. Updating UKMesh's recorded pins may leave a submodule detached; check its status before editing and explicitly return to the intended branch. Fetch and merge upstream inside each repository when an update is wanted: ```sh git -C third_party/corescope fetch upstream git -C third_party/corescope merge upstream/master git -C third_party/beacon-server fetch upstream git -C third_party/beacon-server merge upstream/dev git -C third_party/beacon-web fetch upstream git -C third_party/beacon-web merge upstream/dev ``` Resolve overlaps, run checks and rebuild before updating pins. The launcher never pulls, merges, force-pushes or resets source branches automatically. The licenses and attribution remain in each checkout.