Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Maintained registry

In the app: Server package library → Maintained package and adapter registry

Who can do this: an installation administrator.

The maintained registry lets a Code as Usual installation learn about reviewed environment-package versions and compatible declarative terminal-adapter artifacts without waiting for a new application release. It is not a plugin store and cannot supply Java classes, shell scripts or provider lifecycle code. That executable logic remains part of the reviewed Code as Usual provider.

What happens during an update

Code as Usual starts immediately from a local snapshot and performs the remote check in the background. The default endpoint is https://stefilcoder.ledgecode.com/code-as-usual-registry/v1/registry-index.json. An operator can replace it with the fixed HTTPS URL in CODE_AS_USUAL_REGISTRY_URL, and can replace the pinned Ed25519 public key with CODE_AS_USUAL_REGISTRY_PUBLIC_KEY for a separately maintained registry.

For a new revision the server:

  1. verifies the Ed25519 signature over the exact index bytes;
  2. rejects an older revision or changed bytes under the same revision number;
  3. downloads every declared asset from the same fixed HTTPS origin;
  4. verifies every SHA-256 and parses the complete package catalog, immutable adapter artifacts and separate adapter-compatibility registrations in a staging directory;
  5. atomically switches the local current pointer only after all checks pass.

The cache is stored below the installation data root in registry/. The current and immediately preceding verified snapshots are retained. If the network, signature, checksum or format check fails, the active snapshot is not changed. If no downloaded snapshot is usable, the copy bundled with the installed release is used. Registry availability is therefore never required to start the web application or use versions already known locally.

What an update does not change

A registry update only changes which reviewed versions an administrator may choose. It does not build a package, publish it into a workspace, change a project profile, update an environment or enable a terminal integration. Those existing approval steps remain explicit.

The first format keeps adapter identity and provider compatibility separate. An adapter artifact is identified by adapter key, adapter version and digest. A compatibility registration binds that exact digest to the provider versions that have actually been tested. A later registry revision can therefore add, for example, Codex 0.172 or a newer Claude Code version to an existing adapter without rebuilding the adapter or releasing a new CAU binary. The provider still reads the installed program’s real version and runs the adapter’s real validation before activation.

Compatibility rules can contain exact alternatives such as =0.166.0 || =0.171.0, or reviewed ranges. Adding an untested package version to the package catalog does not make it adapter-compatible automatically. When a verified snapshot becomes current, CAU synchronizes the new rule onto the existing adapter catalog row; no SQL migration or ORM regeneration is needed for each newly approved provider version.

Publication contract

The public files are under downloads/registry. The format 1 JSON Schema documents the publication structure. A publisher must increase registryVersion, update all asset hashes and sign the exact index with the offline Ed25519 private key by running:

CODE_AS_USUAL_REGISTRY_SIGNING_KEY=/absolute/private.pem \
  tools/sign-maintained-registry.sh

The private key must never be stored in the repository, a CAU release or the public web root. An already published revision is immutable; a correction is a new, higher revision.