CMS Git deployment domain
The accepted CMS pipeline is live: SILVER/DC_CMS, repository 33, master → exact
qualification → Gitea artifact → outbound durable queue → canonical installer.
The accepted application release is r55, source
5ea737318bc49d23cf90121224e5e4296ab579a5. Bootstrap 002 and the incident-specific
reconciliation transitions are terminal; do not replay them.
Read CI_RUNBOOK.md before modifying this domain or onboarding another repository. The living operational card is DCPLATFORM-78 — CMS Git CI. DCPLATFORM-21 remains the mandatory deployment canon; DCPLATFORM-37 is the shared CI and Device Core reference.
Authority and isolation
CMS has its own repository-scoped synology-cms-build registration, controller,
SQLite queue and systemd service/timer. Registration identity is read from the
verified root-private record; it is not copied from Device Core. Its read client
uses the existing private read identity with access to repository 33. Enrollment,
application secrets and site workspaces never enter Git or release artifacts.
The daemon has the reviewed Synology CPUSet/memory isolation profile; job containers
have no Docker socket, production credentials or arbitrary host volumes.
Only the installed root-owned /usr/local/sbin/nodedc-deploy executes production
transitions. Source/controller modules are embedded deterministically, never
imported from writable SMB at runtime. A new application cannot choose roots,
services, Compose context, build commands or acceptance through its manifest.
Application release contract
dc-cms-release accepts only registered flat admin/server application files,
the exact two dependency files and server/cms-release.json. Runtime dependencies,
Dockerfile and Compose changes require a separate reviewed foundation transition.
The initial foundation pins adm-zip 0.6.1. UI build dependencies are separate;
qualification verifies the committed UI assets against the frozen package build.
The clean temporary build context has an empty projects directory. The inherited
Node base must match accepted image ancestry and full configuration. A registered
immutable base can be restored only after exact proof; plan never pulls. Build
uses a proved local image ID and preserves Compose-owned labels. See
R41_NODE_BASE_ACQUISITION.md for exact digests and limits.
The source Dockerfile is not rewritten. Application recreation selects only
cms-app, with fixed Compose/env/project, --no-deps and no implicit pull.
Rollback restores the prior image without rebuilding it.
Acceptance checks authentication/health, exact running application bytes, image/generation, env/mounts/network/ports, other services and site/project data. CMS fingerprint v2 normalizes only validated bind ordering and explicitly empty DNS representations. Synology metadata is classified narrowly and preserved; unknown paths, orphan streams and symlinks are rejected.
Qualification and verification
CMS owns .gitea/workflows/ci.yml and infra/ci/release.py. Only successful exact
push runs on master are admitted; workflow dispatch is not a production trigger.
The controller checks repository/run/attempt/source/job/steps/registered runner,
artifact ownership/digest and installed → candidate → current-branch ancestry.
Its durable queue reconciles canonical receipts after interruption and blocks on
uncertain rollback. No manual NAS command is needed for an ordinary qualified push.
For changes to deployment policy:
python3 infra/cms-deploy/embed_runtime.py
python3 -m unittest discover -s infra/cms-deploy -p 'test_*.py'
python3 -m unittest discover -s infra/deploy-runner -p 'test_device_core_*.py'
Embedding is needed only after source changes to the embedded modules. Also check Python 3.8 grammar, deterministic artifact bytes, negative authority/rollback cases and the real Compose/runtime path. Documentation-only updates do not promote or install a runner. Existing source commits, artifacts and acceptance evidence are listed in the runbook; a green CI run alone is not production deployment evidence.
Failure contracts
- R39 runtime proof: exact bind/DNS reconciliation, no runtime mutation, immutable failed receipt.
- R40 base drift: mutable tag changed inherited image state; strict rollback remained intact.
- R41 scoped discovery: bounded ancestry/cache lookup, no broad Docker inventory assumptions.
- R41 Compose labels: reproduced Compose additions are preserved; this alone did not prove a matching NAS filesystem base.
- R41 registered acquisition: one exact public base, full ancestry/config proof, then successful application installation.
These documents preserve the conditions and limitations of the investigated cases. Their intermediate pending states are not current operational status. Use the runbook and fresh canonical receipts for current state. CMS content publication and portable site backups are separate product flows documented in DC-9.