registry.account-sync ​
Synchronize repositories for one registry account
Synchronize repository metadata for one registry account.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-registry |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
registry_account_uuid | uuid | Yes | — | UUID of the RegistryAccount to discover repositories for |
organization_uuid | uuid | Yes | — | Organization UUID for tenant isolation |
manage_account_state | boolean | No | — | When false, the parent DAG owns the account cached_sync_status; defaults to true |
workflow_run_uuid | string | No | — | Engine-stamped parent DAG run UUID when this workflow is started as a DAG step |
workflow_run_id | string | No | — | Engine-stamped workflow_run_id when invoked as a DAG step (ADR-015 E1) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
registry_account_uuid | uuid | Yes | — | Echoed registry account UUID |
organization_uuid | uuid | Yes | — | Echoed organization UUID |
backend_type | string | No | — | Backend type of the registry (github_ghcr, ecr, gcr, ...) |
manage_account_state | boolean | No | — | Whether this workflow manages the account's cached_sync_status |
repository_count | integer | No | — | Number of remote repositories discovered |
remote_repositories | list | No | — | Internal: remote repositories carried between fetch and reconcile |
reconciled_repository_count | integer | No | — | Number of repositories present after reconciliation |
created_repository_count | integer | No | — | Number of repositories created during reconciliation |
updated_repository_count | integer | No | — | Number of repositories updated during reconciliation |
stale_repository_count | integer | No | — | Number of repositories marked stale during reconciliation |
completed_at | string | No | — | ISO-8601 completion timestamp |
failed_at | string | No | — | ISO-8601 failure timestamp |
workflow_run_uuid | string | No | — | Engine-stamped parent DAG run UUID when this workflow is started as a DAG step |
workflow_run_id | string | No | — | Engine-stamped workflow_run_id when invoked as a DAG step (ADR-015 E1) |
failure_reason | string | No | — | Engine failure reason, present only on failed terminal state |
failure_type | string | No | — | Engine failure type classification (ADR-015 E2) |
failed_action | string | No | — | Action name that caused the failure (ADR-015 E2) |
failed_at_state | string | No | — | State name where the failure occurred |
failed_step | string | No | — | Failed DAG step name when reported by the engine |
failed_layer | integer | No | — | 1-based failed DAG layer number emitted by the engine |
error | string | No | — | Unexpected error message |
error_type | string | No | — | Unexpected error class or type |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | prepare | — |
fetching | No | No | — | reconcile | — |
preparing | No | No | — | fetch_remote_repositories | — |
reconciling | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | prepare | preparing | — |
preparing | fetch_remote_repositories | fetching | — |
fetching | reconcile | reconciling | — |
reconciling | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "registry.account-sync",
"initial_data": {
"registry_account_uuid": "value",
"organization_uuid": "value"
}
}