---
id: DEC-000006
title: Hosting, URL structure and artifact storage
summary: One origin with flat identifier paths instead of eight subdomains; static hosting on Cloudflare; artifacts in object storage under storage-independent keys.
schema: 1
revision: 1
status: draft
visibility: public
created: 2026-12-03
taxonomy: [TAX-000012, TAX-000043]
relations:
  - {type: depends_on, target: DEC-000002}
  - {type: depends_on, target: DEC-000004}
contributors:
  - {name: xmzr, role: author}
  - {name: Claude Opus 5.5, role: drafting, agent: true}
changes: Initial draft. Public domain set to record.xmzr.dev by the maintainer on 2026-12-03.
---

## Context

The project brief proposed separate subdomains for wiki, archive, media, data, code, API, lab and standards. STD-000001 R2.4 requires identifiers that do not depend on URLs, and R7.3 requires storage-independent artifact keys.

## Options

Table 1. Service layout.

| Option | Components to operate | Cross-linking |
|---|---|---|
| Eight subdomains | Eight deployments, eight sets of DNS, TLS and access rules | Absolute URLs between services |
| One origin with paths | One static deployment; one resolver for artifacts added later | Relative URLs |

## Decision

1. One origin serves all public outputs. Paths: `/<ID>` (object), `/<ID>@<N>` (revision), `/<ID>.json`, `/<ID>.md`, `/catalog.json`, `/taxonomy.jsonld`.
2. Artifacts are served later under `/a/<ID>/<version>/<name>` by a small resolver that reads object storage. The resolver is the only component that knows the storage provider.
3. Hosting is static on Cloudflare. Public and private artifacts use separate buckets with separate credentials.
4. A subdomain is added only when a component needs different access control or runtime. Candidate: a private instance behind access control for the private repository.
5. The public origin is `record.xmzr.dev`, a Cloudflare Pages project named `record`. The subdomain `docs.xmzr.dev` is not used, because it serves informal product documentation.
6. The source repository is not yet published on a code-hosting site. Deployment runs from the maintainer's machine until it is.

## Consequences

- A redesign or host change does not change any object URL path.
- Object storage on the current Cloudflare account is not enabled yet. Dataset registration waits for it, or for an interim provider.
- If the domain changes, old URLs need redirects. Identifiers remain valid regardless.
