Projects, repositories, and buildables
Projects are the local workload units that Arcane can run from Compose files. Git repositories provide versioned source for those projects. GitOps connects a repository revision and Compose path to a project or Swarm stack, while buildable resources turn Compose build declarations into images that deployment can use.
Domain model
Projects
A project is a Compose workload with a name, a workspace path, service counts, runtime status, and optional GitOps ownership. Arcane loads the Compose definition to support deployment, status reporting, image checks, and workspace access.
Project state follows the live workload where possible. Arcane checks live service state before it archives a project, so a stale database status cannot hide running containers. An archived project must be unarchived before deployment or another mutable action. Project details and list rows expose live service status, image update state, tags, and whether the workload has build directives.
Project paths stay under the configured projects root when Arcane repairs or updates a project record. Imported projects can still be read from an external path, but an unsafe stored path is normalized to a safe project directory before a path-sensitive operation continues. Compose names are normalized for lookup, so a display name can still resolve to the same workload after punctuation or spacing changes.
Compose file selection is part of the project identity used by views and deployment. An explicit COMPOSE_FILE from the effective environment takes priority, then the GitOps sync path, then standard Compose file detection. An explicit file set also controls whether the usual override file is active. Project details show the selected file set and hide an override that deployment will ignore.
Compose metadata is cached by the files and settings that shape the loaded model. Compose files, included files, and environment files invalidate the cached identity or metadata when they change. Project content updates and workspace changes also invalidate the related project caches before Arcane derives new image, name, tag, and service data.
GitOps ownership links one project to one sync configuration. Arcane persists both sides of this link as one domain operation and rejects a project that another sync already manages. A managed project keeps source files in its workspace while the repository controls its Git-owned files. Operators can still edit local overlay files without making the repository-managed workload drift from its source.
GitOps project creation uses the expected project directory instead of silently creating a suffixed duplicate. Interactive project creation can still use a suffix to resolve a directory collision. This keeps the project binding stable when a sync expects a specific project path.
References: backend/…/service.go• L135-226 backend/…/service.go• L458-487 backend/…/service.go• L597-639 backend/…/service.go• L658-789 backend/…/service.go• L1843-1989 backend/…/service.go• L56-145 backend/…/service.go• L77-176 backend/…/service.go• L302-347 types/…/compose_cache.go• L5-15
Project updates
Project updates change Compose content, environment content, or an override as one validated workload change. Arcane protects the current files until the new state is accepted, then refreshes the project name, service image references, tags, service counts, and status data that depend on the Compose files.
Project mutations use one lease per project. A deploy, update, rename, workspace change, or image action waits for the current operation or fails when its context expires. Archived projects are excluded from mutable actions before the operation starts.
Environment changes use the effective environment as the user-facing value. For a Git-backed project, Arcane derives the local override from that value and rebuilds the effective file with the repository source; for a project without Git environment content, it removes stale override content and keeps one effective environment file. This keeps local values separate from repository values while ensuring later Compose loads use the saved result.
Git sync updates use the same safe content boundary. A local environment file that the runtime user cannot read does not block a Compose update, and Arcane leaves that protected file untouched rather than replacing it with repository content. This lets source delivery continue without taking ownership of a local value that Arcane cannot safely inspect.
A rename is a stopped-project operation because it can change the project directory and Docker-managed volume names. Arcane plans the related volume migration before moving the directory, then records enough state to recover after an interrupted rename. This keeps the database record, workload files, and volume names consistent.
Image tag changes are source edits, not only runtime actions. They are limited to projects that are not GitOps-managed and to a single authoritative Compose file with a direct service image. Multi-file selections, overrides, includes, and extended services remain under their source rules instead of receiving an unsafe generated edit.
Project actions use a common activity and progress contract for long-running deploy, redeploy, pull, and build operations. The API exposes progress while the project service performs the workload action. Service image updates use the same activity path but return a completed action response when the selected services are updated.
References: backend/…/handler.go• L287-360 backend/…/handler.go• L537-561 backend/…/handler.go• L815-870 backend/…/service.go• L467-486 backend/…/service.go• L1054-1154 backend/…/service.go• L1233-1317 backend/…/service.go• L2861-2997 backend/…/service.go• L23-78 backend/…/service.go• L138-300 backend/…/service.go• L182-309 backend/…/service.go• L534-615
Project tags
Project tags provide a small, shared way to group workloads in project views. Tags can come from Arcane or from Compose metadata, and the effective project view keeps both sources visible.
Compose-owned tags are controlled by the Compose source. Arcane rejects UI changes to those tags, while UI-owned tags can be attached or detached within the project limit. This keeps repository-defined classification with the repository and operator-defined classification with the project record.
References: backend/…/service.go• L18-20 backend/…/service.go• L49-117 backend/…/service.go• L149-179 types/…/project.go• L59-100
Filesystem reconciliation
Filesystem reconciliation keeps project records aligned with the configured projects directory. It discovers Compose project folders, refreshes their service and Compose names, and removes stale records only when path and Compose checks show that removal is safe. The discovery and cleanup pass is serialized so one scan cannot remove a record that a newer scan has just restored.
GitOps-managed projects are not removed only because their files are temporarily absent during a sync. Rename recovery state also protects old paths from deletion and prevents a new path from being treated as an unrelated project while the move is completed. Live containers can still identify Compose workloads that Arcane does not track, so update views can surface those workloads without turning them into persisted projects.
Cleanup also uses a mass-removal guard. If one scan would delete most of the candidate records, Arcane keeps those records because an empty or mis-mapped projects directory may be the cause rather than real project removal.
References: backend/…/project_listing.go• L154-258 backend/…/project_listing.go• L261-433 backend/…/project_listing.go• L445-595 backend/…/service.go• L363-476 backend/…/service.go• L70-112 backend/…/service.go• L2631-2748
Git repositories
A repository is a reusable source record with a remote URL, an authentication mode, and an enabled state. A sync refers to this record instead of storing a separate source definition, so several delivery flows can use the same repository connection and credentials. Arcane does not allow the record to be deleted while a sync still uses it.
Repository access supports unauthenticated, HTTP token, and SSH key connections. Arcane tests reachability, lists branches, browses files, and clones a selected branch for a sync. Sensitive credentials stay separate from the public repository description and are protected before storage.
A repository can also define the identity Arcane uses when it writes commits back to the source. Arcane supplies a default identity when none is set and validates an optional signing key before it is stored or used.
Enabled repositories can also match normalized remote Git build contexts. This lets a buildable service that uses source from a Git URL reuse the repository record when the source URL has an equivalent form.
References: types/…/gitops.go• L5-56 backend/…/model.go• L5-17 backend/…/service.go• L84-115 backend/…/service.go• L117-171 backend/…/service.go• L298-332 backend/…/service.go• L335-406 backend/…/service.go• L409-491
GitOps syncs
A GitOps sync is the delivery rule that joins an environment, a repository, a branch, a Compose file path, and a target name. The target can be a regular project or a Swarm stack. The project link is created after the first successful project sync, which lets a configuration describe a workload before that workload exists locally.
The sync records the last attempt, result, commit, and synced file set. It can copy only the Compose file or the full directory that contains it. Full-directory mode supports workloads that need Dockerfiles, scripts, or configuration fragments beside the Compose file.
References: backend/…/model.go• L68-127 types/…/gitops.go• L58-237 backend/…/gitops_sync.go• L590-697
Buildable resources
A buildable resource is a Compose service with a build directive. Arcane identifies these services when it reads a project and stores their derived image references separately from ordinary pullable image references. Project details and list rows can then show build capability without treating a pull-only service as buildable.
Arcane refreshes both image sets after Compose content changes or project file changes. It stores an empty build set for projects with no build services and backfills only projects whose build metadata is absent. A build-only service receives a stable local image name when the Compose file does not provide one. That name connects the build result to the image used by the later deploy step.
When a build context points to a remote Git source, Arcane can relate that source to an enabled repository record. The repository remains the shared source and credential boundary, while the Compose service remains the unit that declares what to build.
Manual build requests can select named buildable services and can choose a provider, image push behavior, or image load behavior. An empty service selection means that all services with build directives are eligible; it does not make pull-only services buildable.
References: types/…/project.go• L148-154 types/…/project.go• L619-622 backend/…/service.go• L2525-2628 backend/…/service.go• L82-100 backend/…/service.go• L225-264 backend/…/handler.go• L840-870 backend/…/service_test.go• L218-334
Repository-to-workload flow
The delivery path turns a selected Git revision into Compose content, a local project or stack, and an optional redeploy. The same path serves an initial sync, a manual sync, and an automatic sync.
flowchart LR
A[Repository and branch] --> B[Clone selected revision]
B --> C[Read Compose and environment files]
C --> D{Target and sync mode}
D -->|Project, single file| E[Create or update project]
D -->|Project, directory| F[Stage and promote project files]
D -->|Swarm stack| G[Deploy stack]
E --> H[Record commit and sync result]
F --> I{Managed content changed?}
I -->|Yes and workload running| J[Redeploy project]
I -->|No or not running| H
G --> H
J --> H
Source preparation
Before delivery, Arcane validates the repository, clones the selected branch, records the checked-out commit, and confirms that the configured Compose path exists. It resolves the project environment and detects a standard Compose override when the Compose path follows the normal file naming rules.
The project file writer uses a shared preference order for supported base and override Compose names. When an override is renamed or removed, stale alternate override files are removed so a later Compose load does not select old content. Directory sync also preserves executable source files for scripts that the workload needs to run.
Directory delivery validates its staged Compose tree with the same project settings and path rules used for a managed project before it promotes the files. This prevents a source tree that cannot load as a Compose workload from reaching the target workspace.
The project environment has three roles: the Git source file, the local override file, and the effective .env file used by Compose. A Git-provided environment file can combine with a local override to produce the effective environment used to validate and run the workload. When a user saves effective values, Arcane updates the local override instead of changing repository values. When Git environment content is removed, Arcane removes the old source and override files and rebuilds the effective file from the remaining state.
The clone is temporary. The sync copies only allowed source content into the project or passes it to the stack deployment path, then removes the clone. File count and size limits bound directory syncs, and unsafe paths or symbolic links do not become part of the delivered workspace.
References: backend/…/service.go• L658-789 backend/…/service.go• L3089-3197 backend/…/service.go• L192-300 backend/…/service.go• L302-347 backend/…/gitops_sync.go• L871-920 backend/…/gitops_sync.go• L1003-1150
Target delivery
After source preparation, the target type and sync mode select the delivery behavior:
- A project single-file sync updates the Compose content and related environment or override content.
- A project directory sync stages the source tree, validates it as a Compose project, and promotes changed content into the project path.
- A Swarm stack sync sends the Compose content and any selected files to the Swarm deployment service.
When a directory sync changes a running project, Arcane redeploys it. An unchanged sync records success without an unnecessary redeploy. Every path updates the sync result with status information and the source commit when that commit is available.
References: backend/…/gitops_sync.go• L871-920 backend/…/gitops_sync.go• L1003-1150 backend/…/service.go• L1233-1317 backend/…/service.go• L3089-3197
Build delivery
Build delivery connects Compose build declarations to the image service used by project deployment. Arcane keeps the Compose service model as the source of build intent, then translates that intent into a build request without changing the meaning of the service.
Build input resolution
For each buildable service, Arcane resolves the build context relative to the project workspace unless the Compose file names a remote Git build context. It uses the configured Dockerfile or the default Dockerfile, and carries the service's build controls into the build request.
The build provider can be selected by the operation or by the configured build service. Local builds can load the result for deployment, while a provider that pushes images requires the Compose service to define an image name. These rules keep the produced image addressable by the deployment step.
References: backend/…/build.go• L12-39 backend/…/service.go• L82-100 backend/…/service.go• L103-135 backend/…/build_translation.go• L110-146
Deploy-time build selection
During deployment, Arcane decides for each service whether to build, pull, use a local image, or fail when a required local image is absent. A service with a build directive can fall back to a build when its image pull fails. Build-only services first receive the stable local image name described above, and the in-memory Compose model uses that name for the rest of deployment.
Build and pull actions report progress through the project operation stream and record activity for the requesting user. Archived projects cannot receive build, pull, deploy, restart, or update actions until an operator unarchives them.
Deployment also prepares missing local bind directories when Compose allows their creation. It creates safe paths with Arcane's runtime identity and leaves existing, escaping, or uninspectable paths for Docker to handle.
References: backend/…/service.go• L1233-1317 backend/…/service.go• L1682-1723 backend/…/service.go• L82-135 backend/…/service_selection.go• L10-57
Scheduling and run coordination
Automatic GitOps delivery uses the shared scheduler as a set of per-sync jobs. The scheduler provides timing and lifecycle control, while the GitOps service owns the meaning of a sync and re-reads its current record before each run.
Dynamic sync jobs
Each auto-sync-enabled record gets one dynamic job with an @every interval. The job is registered when auto-sync is enabled and restored at startup. Enabling auto-sync or finding an overdue sync also starts an immediate background run, so a workload does not wait for a full interval after a state change or restart.
The job checks the database record on every fire. A disabled sync skips its run, and a deleted sync removes its own job. This makes database state the source of truth even when a scheduler entry outlives a configuration change.
References: backend/…/gitops_sync.go• L373-454 backend/…/entityjobs.go• L20-100
Durable workflow jobs
Durable workflow jobs run multi-step automation through the scheduler's workflow engine. A workflow stores its run state and target progress so the scheduler can resume an interrupted run or use a controlled recovery path instead of repeating an unknown set of actions.
Automatic image updates run when both automatic updates and polling are enabled. The job uses the configured schedule, resumes an active workflow when possible, and falls back to pending-work reconciliation when the prior workflow cannot resume. Retry validation limits replay to an outcome that the updater can safely repeat.
Automatic image patching is a separate opt-in workflow. It requires vulnerability management to be enabled and uses a configurable schedule with a daily default. This keeps security-driven image changes distinct from normal image update delivery.
The workflow engine also owns activity records and step progress. It marks a workflow instance as the scheduler target before work starts, monitors unfinished instances after startup, and retires instances that no longer match the current workflow version.
References: backend/…/flow.go• L61-78 backend/…/flow.go• L149-183 backend/…/flow.go• L199-225 backend/…/flow.go• L263-353 backend/…/flow.go• L459-520 backend/…/auto_update_job.go• L13-31 backend/…/auto_patch_job.go• L14-32
Automated update jobs
The automatic update path reports each target and distinguishes a complete result from a partial result or a run that needs review. A retry is limited to explicitly failed container targets. This prevents a scheduler retry from repeating targets whose earlier result is not safe to replay.
References: backend/…/auto_update_job.go• L15-31
Container healing
The auto-heal job checks unhealthy containers on its schedule and restarts eligible containers. It excludes Arcane's own container, internal resources, and configured exclusions. A per-container restart limit prevents a failing workload from entering a restart loop.
The job records target progress before and after a restart. If a run is interrupted, recovery checks the container's state against the saved baseline before it treats the restart as complete. Successful restarts create a system event and can send a notification.
References: backend/…/auto_heal_job.go• L97-179 backend/…/auto_heal_job.go• L182-225 backend/…/auto_heal_job.go• L228-323 backend/…/auto_heal_job.go• L533-622
Run admission
Run admission prevents overlapping delivery attempts for the same sync or automation scope. Manual actions, scheduled fires, startup kicks, and other triggers use the same admission boundary, so only one conflicting operation can be active at a time.
The workflow engine records an active instance before its tasks run and projects step progress into the scheduler run. Together with workflow version checks and bounded workflow time, these boundaries prevent cancellation or duplicate triggers from leaving an uncontrolled workload operation behind.
References: backend/…/gitops_sync.go• L871-885 backend/…/entityjobs.go• L41-107 backend/…/flow.go• L355-403 backend/…/flow.go• L459-520 backend/…/scheduler.go• L45-53 backend/…/scheduler.go• L314-379
Analytics heartbeat
The scheduler also sends a rate-limited heartbeat that identifies the Arcane version and server role. It claims the next send window before the request and moves a failed send to a shorter retry window, so restarts do not create duplicate daily reports.
The heartbeat is skipped in test environments and when analytics is disabled. Server errors can retry within one run, while rejected requests do not repeat immediately.
References: backend/…/analytics_job.go• L26-37 backend/…/analytics_job.go• L73-179 backend/…/analytics_job.go• L186-221
Source ownership and safety
GitOps delivery must protect the repository as the source of truth without blocking local files that the repository does not manage. Arcane therefore tracks the paths written by the last sync and applies ownership rules to workspace actions.
Managed workspace paths
Files listed as synced, plus the Compose file, are read-only in the project workspace. Operators can still view them and can edit other local overlay files. A workspace change that touches a managed file or a directory containing one is rejected because a local edit would be overwritten by the next sync.
Ownership data is normalized before it is used for access checks. If the synced-file record cannot be parsed, Arcane rejects workspace changes rather than treating an uncertain path set as editable. Rename and move requests check both their old and new paths, so a folder operation cannot bypass ownership by changing a parent or destination.
References: backend/…/service.go• L39-124 backend/…/service.go• L142-173 backend/…/service.go• L176-197 backend/…/service.go• L246-293
Lifecycle hooks
A sync may run an optional repository script in a short-lived runner before project deployment. The script is repository-trusted code, so its runner image, environment, mounts, network mode, and timeout are administrator-controlled settings rather than values taken from repository content.
Lifecycle hooks apply to project syncs and require full-directory sync so the script is present in the delivered files. Their configuration has a separate permission and a global enable switch. The default runner network mode denies network access unless an administrator opts in.
The hook validates that the script is a relative, non-symlink file inside the project workspace. It records bounded output and a last-run status, and a timeout or non-zero exit stops deployment. The runner has no new privileges, drops all capabilities, and is removed after the attempt so a failed or cancelled hook does not leave a workload container behind.
If Arcane cannot inspect a script because the host permissions block its runtime user, it allows the runner to perform the read. This supports mounts where the runner can access the file even when Arcane cannot inspect it directly, while path and symlink checks still apply whenever inspection is possible.
References: backend/…/service.go• L845-987 backend/…/service.go• L38-59 backend/…/service.go• L108-136 backend/…/service.go• L138-291 backend/…/service.go• L294-335 types/…/gitops.go• L116-162
See also GitOps and project automation for the broader system view.
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the repository, sync, and project binding rules aligned. A sync must not point to a project that is already managed by another sync.
- Keep repository deletion checks aligned with sync references. An active sync must not lose its shared source record.
- Keep project path normalization aligned with filesystem discovery, imported-project handling, and destructive file actions. A repaired path must not escape the configured projects root.
- Keep filesystem reconciliation serialization and the mass-removal guard aligned with project discovery and cleanup. A missing or mis-mapped projects directory must not delete most project records.
- Keep Compose name resolution aligned across project creation, filesystem discovery, container matching, and project lookup. A display name and a runtime Compose name can differ.
- Keep project operation leases and archived-state checks aligned with every mutable project action. A concurrent or archived operation must not bypass the admission boundary.
- Keep environment-source merging and Compose-file selection aligned between Git sync, environment saves, manual project updates, project details, and deploy. An explicit
COMPOSE_FILEset can suppress automatic override selection. - Keep Compose cache fingerprints and dependency tracking aligned with Compose files, includes, environment files, settings, and path mapping. A changed input must not return stale service or metadata data.
- Keep
SyncedFilesparsing and workspace ownership checks aligned. Invalid ownership data must not turn repository-managed files into editable overlays, and rename or move checks must cover both ends of the change. - Keep update backup, rename journal, volume migration, and filesystem reconciliation rules aligned. An interrupted rename must not create a duplicate project or orphan a volume migration.
- Keep build-reference extraction aligned with project image summaries, project details, list rows, and image update scans. Build images must remain distinct from registry-pulled images.
- Keep build-only image naming aligned with the Compose model used for both build and deploy. A changed name can make a successful build invisible to the following deploy.
- Keep streamed project actions aligned with activity lifecycle and progress output. A client must receive one terminal result after the activity and operation agree on success or failure.
- Keep dynamic job names stable and unique per sync. Changes to the prefix or entity ID scheme can leave old jobs active after an update or delete.
- Keep workflow versions and fingerprints aligned with their step graph. A changed workflow must not attach to an old instance with incompatible state.
- Keep automatic update fallback and retry validation aligned with target outcomes. A partial or unconfirmed batch must not be replayed as if every target were safe to retry.
- Keep auto-heal admission, restart limits, exclusion rules, and recovery baselines aligned. A recovered run must not restart Arcane itself or repeat an unconfirmed action.
- Keep directory sync limits and lifecycle-script requirements aligned. A hook must be delivered with the files it needs and must remain inside the configured sync boundary.
- Keep Compose tag ownership aligned between source parsing, UI tag actions, and project list filters. Repository-owned tags must not become UI-editable tags.
- Keep live container matching aligned with stored project names and Compose names. A list row must not show status from an unrelated workload or hide a running one.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Repository credentials or remote URL are invalid | Clone, branch lookup, or sync fails before workload delivery | Repository connection tests and bounded Git operations surface the failure before the project is changed |
| Configured Compose path is absent or unreadable | The sync cannot identify the workload source | Source preparation checks the path and records a failed sync |
COMPOSE_FILE names a missing file or excludes the expected override | Project details and deployment use an incomplete or invalid file set | Compose selection is resolved before loading and the selected set controls override visibility |
| A project path is outside the configured projects root | File operations could affect an unintended directory | Path checks normalize unsafe stored paths before path-sensitive project work |
| A filesystem scan sees most projects as missing | A bad mount or path mapping could remove valid project records | Reconciliation skips the cleanup pass when it would remove most candidates |
| Directory sync exceeds file or size limits | The sync stops without promoting an incomplete source tree | File count, total size, and large-binary limits apply during the walk |
| A sync-owned workspace file is edited locally | The change would be overwritten by the next sync | Workspace writes reject paths owned by the sync |
| Synced-file ownership data is malformed | Workspace changes cannot be safely matched to repository-owned paths | Ownership parsing fails closed and rejects the update |
| A local environment file is unreadable by the runtime user | A strict sync could fail or overwrite a local value it cannot inspect | Git sync leaves the locked file untouched while applying the Compose source |
| An archived project receives a deploy, build, pull, restart, or update action | The workload stays unchanged and the action is rejected | Project lifecycle actions check the archived state before mutation |
| Two mutating actions target the same project together | File, image, or runtime changes can race | A per-project operation lease allows one mutating action at a time |
| A project rename starts while services are running | Directory, volume, and runtime names could diverge | Rename requires live service state to be stopped before moving the project |
| A target directory or volume already exists during rename | The project may be split across old and new names | Rename planning checks conflicts before the move and volume migration |
| A Compose file, include, or environment dependency changes without cache invalidation | Project identity, metadata, or service data can remain stale | Cache entries track dependency files and project changes invalidate affected entries |
| A build-only service has no image name | The build result has no stable deployment target | Arcane derives a deterministic local image tag |
| A missing safe bind source cannot be created by the runtime user | Deployment can fail when a service expects an auto-created directory | Deployment creates only safe, inspectable missing sources and leaves other paths to Docker |
| Auto-sync is disabled or its record is deleted while a job remains registered | A stale scheduler entry could continue delivery | Each run re-reads the record and skips or unregisters itself |
| A durable workflow has an unknown version or missing instance | The scheduler cannot safely resume the old step state | Workflow version checks retire the old instance and use the configured recovery path |
| An automatic update run has unresolved or unconfirmed targets | A retry can repeat work without a confirmed safe target set | The job marks the run for attention and validates retries against explicit target outcomes |
| Auto-heal sees Arcane's own container or a container at its restart limit | The manager could restart itself or loop on a broken workload | Self-container exclusion and per-container restart windows limit healing |
| An interrupted auto-heal restart has no changed baseline | Recovery cannot prove that the restart happened | The job leaves the target unconfirmed instead of repeating it blindly |
| A lifecycle script is outside the workspace, is a symlink, or exits non-zero | The pre-deploy step fails and deployment does not continue | Path validation and the runner exit result gate deployment |
| A lifecycle runner image cannot be pulled or the hook exceeds its timeout | The pre-deploy step fails without a valid workload change | The image service applies pull limits and the hook uses a bounded run timeout |
| A lifecycle script path is unreadable to Arcane but readable to the runner | Direct inspection cannot prove the file type or content | Arcane records path access detail and lets the isolated runner surface the real read result |
| An analytics heartbeat is not due or analytics is disabled | No heartbeat is sent for that scheduler run | The persisted next-attempt window and feature checks skip the request |
| An operator deletes a repository that a sync still uses | The shared source record would be removed from an active delivery rule | Repository deletion checks sync usage and rejects the operation |
| A UI tries to change a Compose-owned tag | Source-defined project grouping can drift from the Compose file | Tag updates reject Compose-owned assignments |
Key files
| File | Why to read it |
|---|---|
| backend/…/gitops_sync.go | Main GitOps lifecycle from source preparation through project or stack delivery and scheduled execution |
| backend/…/module.go | Project API surface for listing, lifecycle actions, builds, and workspace access |
| backend/…/handler.go | Project API actions, streamed operation progress, build requests, and activity boundaries |
| backend/…/model.go | Persistent relationship between projects, repositories, syncs, build references, tags, and ownership state |
| backend/…/service.go | Project binding, path-root rules, Compose-file selection, environment persistence, deployment entry points, cache invalidation, filesystem reconciliation, and lifecycle hook coordination |
| backend/…/helpers.go | Shared project records, Compose-name lookup cache, and child-service persistence helpers |
| backend/…/service.go | Runtime service state, selected Compose files, include files, and image update checks |
| backend/…/service.go | Live project status, discovered Compose workloads, list filters, and buildable-project visibility |
| backend/…/service.go | Environment source, local override, effective .env, and cached Compose identity during Git sync and project updates |
| backend/…/service.go | Workspace revision checks and the boundary between repository-managed files and local overlays |
| backend/…/service.go | Image source edits, rename journals, rollback, and restart recovery |
| backend/…/service.go | Shared image pulls, local image checks, build provider wiring, and bind-directory preparation during deployment |
| backend/…/service.go | Isolated pre-deploy runner behavior, path checks, output capture, timeout, and cleanup |
| backend/…/service.go | Ownership and limits for Compose-defined and UI-defined project tags |
| backend/…/project_update.go | Validated project content changes, protected environment handling, atomic rollback, volume migration, and rename recovery |
| backend/…/deployment.go | Project deploy, redeploy, pull, build, archive, bind-directory preparation, and mutable-action rules |
| backend/…/service.go | Repository records, credential handling, remote build-context matching, branch access, browsing, cloning, and commit identity entry points |
| backend/…/git.go | Shared Git access, path checks, temporary clones, and bounded directory transfer behavior |
| backend/…/fs_writer.go | Safe project file writes, Compose file selection, override cleanup, and preservation of synced script permissions |
| backend/…/build.go | High-level build context and Dockerfile resolution |
| backend/…/build_translation.go | Translation of Compose build intent into stable image and build attributes |
| types/…/compose_cache.go | Contract for cache inputs and dependency-aware invalidation of Compose-derived values |
| backend/…/flow.go | Durable workflow definition, run binding, activity progress, startup recovery, and workflow version handling |
| backend/…/auto_update_job.go | Automatic workload update workflow scheduling, fallback recovery, and retry validation |
| backend/…/auto_patch_job.go | Vulnerability-gated automatic image patch workflow scheduling |
| backend/…/auto_heal_job.go | Unhealthy-container selection, restart limits, admission, notifications, and restart recovery |
| backend/…/analytics_job.go | Rate-limited analytics heartbeat scheduling and retry window |
| backend/…/entityjobs.go | Per-entity job registration and single-run admission used by auto-sync |
| backend/…/scheduler.go | Shared scheduling contract and runtime control of timed jobs |
| types/…/project.go | API-facing project details, runtime state, tags, build capability, and build or deploy options |
| types/…/gitops.go | API-facing vocabulary for repositories, syncs, file sets, results, and lifecycle settings |