Project (cicord.yaml)
cicord.yaml at the root of the repository holds the Project: settings that apply to the
whole repository. Schema: spec/schemas/project.schema.json.
apiVersion: cicord.dev/v1alpha1kind: Projectmetadata: name: ma-commuspec: engine: ">=0.1.0 <0.2.0" source: provider: github repo: https://github.com/example/ma-commu-cicord branch: main runtime: url: https://cicord.ma-commu.example registries: - name: acme url: https://github.com/acme/cicord-plugins.git writeBack: defaultMode: pullRequest policies: - paths: ["bots/**"] mode: commit - paths: ["servers/**"] mode: pullRequest portal: allowedOrigins: ["https://ma-commu.example"]| Field | Type | Default | Description |
|---|---|---|---|
engine |
semver range, required | Cicord versions this repository works with, e.g. ">=0.1.0 <0.2.0". The runtime refuses a revision whose range excludes its own version, and cicord validate checks it against the CLI. |
|
source |
object | none | Where the runtime reads the repository from. Without it, the served directory is used as is. |
runtime |
object | Information about the runtime. | |
registries |
list | [] |
Plugin registries (sources of the Store). |
writeBack |
object | How edits from the admin console are committed. | |
portal |
object | Custom portal build and embedding. |
spec.source
Section titled “spec.source”| Field | Type | Default | Description |
|---|---|---|---|
provider |
github | git | embedded, required |
github and git clone and poll a remote repository; embedded imports the served directory into a bare repository in the data directory on first start, which then is the source of truth. |
|
repo |
string | Repository URL. Required for github and git. |
|
branch |
string | main |
Tracked branch. |
path |
string | . |
Sub-directory containing cicord.yaml, for monorepos. |
pollInterval |
duration (^[0-9]+(s|m|h)$) |
1m |
Polling interval. Webhooks (/hooks/github) and cicord sync trigger immediate fetches; polling remains as a fallback. |
Private repositories, write-back pushes, GitHub pull requests and commit statuses use
CICORD_GIT_TOKEN (an HTTPS token) or a GitHub App (CICORD_GITHUB_APP_*, see
GitHub access). cicord serve --local ignores spec.source and serves the directory as is.
spec.runtime
Section titled “spec.runtime”| Field | Type | Description |
|---|---|---|
url |
URI | Public URL of the runtime. The CLI never sends the runtime token to this URL (a pull request controls this file): cicord plan --remote, cicord status and cicord sync use --remote=URL or CICORD_RUNTIME_URL. |
spec.registries[]
Section titled “spec.registries[]”| Field | Type | Description |
|---|---|---|
name |
key, required | Registry name, used in plugin references (<name>/<plugin>). cicord is reserved for the official plugins. |
url |
string, required | Git repository with an index.yaml. The admin console accepts https:// only; the CLI also accepts file:// URLs and local paths, for development registries. |
secretRef |
string (CICORD_REGISTRY_<NAME>_TOKEN) |
For a private registry: the secret holding its access token. It must be CICORD_REGISTRY_<NAME>_TOKEN for this registry’s own name, so an edit can never send another secret to a registry host. Never the token itself. |
Registries are unofficial: trust is computed from the URL, never declared. Manage them
with cicord registry add|remove or from the Store. See Publishing.
spec.writeBack
Section titled “spec.writeBack”| Field | Type | Default | Description |
|---|---|---|---|
enabled |
boolean | true |
Allow the admin console and the API to write configuration. |
branch |
string | source.branch |
Target branch. |
defaultMode |
commit | pullRequest |
pullRequest |
Mode when no policy matches. |
policies[] |
list | Evaluated in order; the first policy whose paths match the changed file wins. |
|
policies[].paths |
list of globs, required (≥ 1) | E.g. ["bots/**"]. |
|
policies[].mode |
commit | pullRequest, required |
A change touching several files uses the strictest mode. See Write-back.
spec.portal
Section titled “spec.portal”| Field | Type | Description |
|---|---|---|
path |
relative path | Build output (index.html + assets) of a custom portal committed in the repository, e.g. ./portal/dist. The runtime serves it at / instead of the default portal. |
url |
URI | External portal URL, when the portal is hosted elsewhere: the base of the links made by ctx.portal.link(). |
allowedOrigins |
list of origins (≤ 20) | Origins of third-party sites that embed the portal SDK in token mode (CORS without credentials, login redirects, bearer sessions). Cookie sessions across origins need the operator’s --cors-origin instead. |
The theme, texts and pages of the portal are per server: see Server → portal. Custom portals: Custom portal, Embedding.
Validation
Section titled “Validation”cicord validate (offline, -o json for CI) checks this file against the schema, then the
engine range. The same checks run in the runtime before a revision is activated and before
any admin console edit is written.