Data operations
The device and planner consume built data, not a live source query. A region chooses the coverage. Product options choose what to build. Source versions choose the input bytes. Keeping these choices explicit makes a result repeatable and lets unchanged work be reused. The layers contract defines these boundaries.
Layer versions, not code
Each layer, such as the device map, has two numbers. Its format is the number that its readers check, so a reader that needs new data makes the layer stale with no other edit. Its revision changes by hand in the change that improves the output. A refactor changes neither number, so it rebuilds nothing. A rebuild that gives the same bytes stops there: the layers that read it keep their keys. The key contract defines what a key holds.
A layer is stale for exactly three causes. Its version changed. A source has a newer version to use. Or an input changed, such as a layer or a source that it reads, or its options. obc data gives one cause per layer, such as format 19 → 20: readers need new data or follows device/map. To see a code change without a version change, name the layer: obc data update local --only device/terrain builds it again. The layers that read it build again only when its bytes change.
Shared landmark and peak content
Landmarks and peaks use the same Wikimedia facts and selection policy. The prepared source wiki holds the facts of every OSM subject in geographic shards, so a region reads only the shards of its cells and asks Wikimedia nothing. Exact OSM links identify subjects. A new version of wiki rebuilds the content and what reads it; a new layer revision rebuilds outputs from the same shards.
A prepared wiki version can cover one region and selected article languages. This limits photo acquisition to the subjects of that region. A region can join several Geofabrik areas, such as all of Europe. A version keeps the facts of the version before and refreshes those it reads again, so a Europe version does not drop a region on another continent. Large input archives still cover the world, but preparation reads them in place and retains the selected content. The version records these choices so another machine can identify what it contains.
The device keeps short articles, photos and credits in its map. Planner detail views keep articles and source links, then load credited photos online. Routing packages carry photo references without image payloads. An unavailable photo leaves useful text available. Landmarks are selectable route stops. Peaks keep their summit coordinates and separate device collection.
An absent optional article or photo does not block a map, and a fact that the version of wiki lacks is no content. A failed request while the version is prepared remains unresolved work, so server pressure does not appear as missing content. Without a version of wiki, the content layers block until a person prepares one. The shared content contract defines identity, retained inputs and selection outcomes.
Targets and releases
A target is a place that serves data: the public bucket, or a folder on one machine. A target serves one release. The release records its settings, every output with the source versions that it read, and the pointers that clients read first. So a target needs no other state, and any machine can read what it serves. The target contract defines the files.
An update compares the steps of now with the serving release. It bakes only the stale layers and keeps every other output by reference. A kept output is read from the files of the release, not from the local store, so two machines that update the same target agree on the bytes. The settings stay in the release: the next update keeps the region, the layers and the policies that the last one used.
The switch is one conditional write of release.json, before the pointers change. The release that served becomes the rollback. A stopped update leaves the target on its serving release, and the next update reuses what it baked. Files of the older publishers are never written or removed.
obc data serve gives the apps a target, such as local on a laptop. It follows the target: the services of a new release start beside those of the current release, and clients get the new release only when its services answer. So a client never switches to a release whose routing or search does not answer. The rollback stays loaded, so a rollback is instant. The serve contract defines what it answers.
Use the data README for setup, credentials and daily commands.