registry-reconcile Job applies them on every install and
upgrade. Edit them to point an air-gapped install at your own index, to add or
drop a source, or to change how one is mirrored.
A workspace adds its own sources itself, without the operator; see
add a skill registry.
Prerequisites
- The chart installed as in deploy on Kubernetes, with
object storage configured. A
mirrorskills registry stores its content there during the Job; without storage credentials the Job fails that registry. - Each source reachable from the cluster: an index URL, or a GitHub repository.
Without credentials, GitHub is read at
github.comandcodeload.github.com; with them, atapi.github.comandraw.githubusercontent.com.
Steps
List the registries
registryReconcile.registries is a list of entries, passed to the Job as
the REGISTRIES_CONFIG environment variable and read by
agentarea-api reconcile.registries in your values replaces the whole default list, so
copy the shipped entries you want to keep from the chart’s values.yaml.Change an existing registry
For a registry that already exists, the Job applies every field of its
entry, logs the fields that changed (
Updated mode, source_url), and then
syncs it: the source (source_url, source_type, source_ref,
source_path), mode,
trust, recommendation_priority and credentials_secret_ref. A field the
entry leaves out takes its default, so dropping credentials_secret_ref
drops the credentials. A changed source or mode clears the stored ETag,
so that sync reads the source in full: upstream to mirror stores every
skill’s content; mirror to upstream deletes nothing already stored.
Items the new source does not publish leave the catalog as any dropped
item does.A changed type is refused: retire the old name and add the new source
under a new name.Retire a registry
external_id in a registry the same run
reconciled, if one exists; otherwise it stays, and the installed skill keeps
working and shows “Removed upstream”. Retired entries run after every
active one, so their replacements are synced first.Removing an entry from the list instead leaves the registry and its items
exactly as the last sync left them.Sync workspace registries, if you want them scheduled
--workspace-registries: it syncs every active
registry a workspace admin added, each under its own workspace. A tenant’s
failing source is recorded on that registry and reported in the log; it
does not fail the Job.The chart runs the Job on install and upgrade only and ships no schedule.
For periodic syncs, run the same command, agentarea-api reconcile --workspace-registries, with the Job’s environment from a CronJob of your
own. Concurrent runs are safe: each registry is synced under a PostgreSQL
advisory lock, and a run that finds it held skips that registry.Verify
Reconciling: <name>, then Created registry or Found existing registry, then Synced: {...} with its counts, and the run ends with
Reconcile complete: N succeeded, 0 failed. A retired one prints Retired registry: <id> (<n> items deleted). In the web app, Settings → Registries
lists them under Platform registries with their trust and last sync.
Troubleshooting
"a mirror registry stores its content in object storage"
"a mirror registry stores its content in object storage"
The Job has no storage credentials. The chart passes the same storage
variables to the Job as to the backend; check
global.storage and the
storage Secret. Or set mode: upstream for that registry."Skipped <name>: another reconcile is syncing it"
"Skipped <name>: another reconcile is syncing it"
Another run holds that registry’s lock. If no other run exists, the
database connection goes through a transaction-mode pooler, which keeps the
session lock past the run; point the Job at the database directly or at a
session-mode pooler.
A synced registry shows the old content
A synced registry shows the old content
The source’s ETag (or head commit) did not change, so it was not read again.
Run
agentarea-api reconcile --force to re-read every source.Installs or syncs of GitHub sources fail with rate-limit errors
Installs or syncs of GitHub sources fail with rate-limit errors
Without credentials, syncs and installs never call GitHub’s REST API: refs
are read over git at
github.com and files from codeload.github.com
archives, neither of which counts against the 60 anonymous requests an hour.
A rate-limit error then means GitHub throttled those endpoints (HTTP 429).
It clears on its own: the sync stops asking for the rest of that run, and
the next run retries. A registry with credentials reads through the REST API
with its token, at that token’s limit.Related
Registry and catalog
Scope, mode, trust, pinned installs and content by digest
Add a skill registry
What a workspace admin adds on top of the platform’s
Deploy on Kubernetes
The install whose Jobs run the reconcile
Upgrades
When the Job runs again