Project
Use this page to reference project workspaces, sandboxes, and continuous integration commands.
The Project manifest: the envelope (apiVersion, kind, metadata; see Manifests) plus spec.
Fields
ProjectSpec (spec)
| Field | Type | Default | Meaning |
|---|---|---|---|
workspace | Workspace or null | null | Where agents work. |
sandbox | Sandbox or null | null | The container their commands run in, when they run any. |
ci | CI or null | null | How the project is built and tested. |
access | ProjectAccess or null | null | The roles per subject. |
A project without a workspace serves only the flows that need none. A sandbox or a ci needs
one. An access says who may do what in the project.
ProjectAccess (spec.access)
| Field | Type | Default | Meaning |
|---|---|---|---|
viewer | list[Subject or RoleGrant] | [] | Who may see the project and its tickets. |
operator | list[Subject or RoleGrant] | [] | Who may start, rerun, pause, cancel and resume tickets. |
approver | list[Subject or RoleGrant] | [] | Who may see the tickets and answer their questions. |
administrator | list[Subject or RoleGrant] | [] | Who may do everything in the project, its audit trail included. |
A Subject is group:<name> or afeServiceAccount:<name>. Validation refuses an unknown role, a
subject without one of the two prefixes and an empty name.
group:<name>is a group of the identity provider. The groups come from the token claim named byAFE_OIDC_GROUPS_CLAIM.afeServiceAccount:<name>is a service account of afe, by name (see Service accounts). It is not a KubernetesServiceAccount.
A caller's roles in a project are the union of the roles its groups and its name reach. A project
without access is reachable only by global administrators.
RoleGrant (spec.access)
An entry of a role list may name the flows it covers:
access:
approver:
- group:payments-leads
- subject: group:support
flows: [refund, triage]
Its fields:
subject: who the grant is for.flows: the flows it covers, at least one.
A restricted grant keeps the rights the role already gives, and only on those flows. It never adds
a right. Two grants of one subject add up to the union of what each allows. A flow no Flow
defines fails validation, with the path of the entry.
Role matrix
The rights of each role, per project:
-
viewer: see the project's tickets, events, artifacts and BPMN.
-
operator: everything a viewer does. Start, rerun, pause, cancel and resume without an answer.
-
approver: everything a viewer does. Answer a question: a human node, the budget, the loop guard or a hand-over.
-
administrator: everything above. Read the project's audit trail.
-
The approver answers every question the engine raises, not only
humannodes. -
A global administrator (
AFE_OIDC_ADMIN_GROUPS) and thelocalcaller have every right in every project, and manage service accounts. -
The Workers and Revision pages show every project at once, so only global administrators see them.
-
A ticket of a project the caller cannot see answers "not found", like an unknown ticket.
-
A ticket with no project is visible to global administrators only.
-
A caller who may see a ticket but lacks the right gets
-32008, and the refusal is recorded. -
Starting a ticket needs a project, except for the
localcaller on a flow that needs no workspace.
Workspace (spec.workspace)
| Field | Type | Default | Meaning |
|---|---|---|---|
type | folder or git | required | folder for a path on this machine, git for a repository. |
path | str or null | null | folder: the path agents work in. |
url | str or null | null | git: the repository URL to clone. |
defaultBranch | str | main | git: the branch a new worktree starts from. |
forge | none or github | none | Which forge hosts the project's pull requests. |
forgeUrl | str or null | null | The forge's URL, for a self-hosted instance. |
tokenEnv | str or null | null | The environment variable holding the forge token. |
Sandbox (spec.sandbox)
| Field | Type | Default | Meaning |
|---|---|---|---|
image | str | required | The container image to start. |
cpus | float | 2.0 | How many CPUs the sandbox may use. |
memory | str | 2g | The sandbox's memory limit, as Docker spells it. |
timeout | int | 300 | Seconds one command may run before it is killed. |
egress | list[str] | [] | Hosts the sandbox may reach; empty means no network. |
env | list[str] | [] | Environment variable names the sandbox gets; Docker reads them from the worker, Kubernetes from envSecret. An engine credential, a model apiKeyEnv included, is refused by name and by value. |
CI (spec.ci)
| Field | Type | Default | Meaning |
|---|---|---|---|
script | str | required | The command that builds and tests the project. |
test | str or null | null | The command behind the ws.test tool; defaults to script. |
See also
- Built-in tools for workspace tool access.
- Runtime for sandbox runtime defaults.