Skip to content

docs: forges, CI systems and wardens, with a feature matrix and why only forges get a warden #5461

Closed

Description

@lex00

docs: forges, CI systems and wardens. Add a feature matrix, the cloud-native CI services, and why only forges get a warden.

Epic: #5351.

What exists

Nothing says what a warden is for, or why there is one per forge and none per cloud. Nothing compares what each forge and CI system supports. A reader on AWS CodePipeline, Google Cloud Build or Azure DevOps cannot tell what chant does for them.

What to add

1. A matrix in ci/your-forge.mdx, the reference

There is one row per forge and CI system chant renders for today:

The columns:

  • the pull-request pipeline (--generate), and the release workflow (chant release workflow);
  • the plan note and status, comment commands, and approvals;
  • the cloud login (OIDC), and the forge token it needs;
  • keyless signing (signingIdentity in lifecycle/publish-signing.ts);
  • chant ci forge-check, and how ci.green.source reads green;
  • the warden that governs the forge.

Each cell is checked against the code at the commit the page names, not taken from other pages. A cell that does not work says "no" and gives the reason in a footnote, such as "Forgejo: no OIDC token for keyless signing".

2. A concept page, concepts/forges-ci-and-wardens.mdx (explanation)

  • Forge, CI system, cloud. The forge holds the repository, pull requests, reviews and branch protection. The CI system runs the jobs. The cloud holds what the jobs deploy. Sometimes one product is two of these: GitHub with Actions, GitLab with CI, Forgejo with Actions, and Azure DevOps with Repos and Pipelines. Sometimes it is one: Prow, AWS CodePipeline, Google Cloud Build.
  • What a warden is. A warden keeps a forge's organization and repository settings in a declared state, with guardrails and drift correction. Examples are branch protection, required checks, teams and permissions. It reads the job names chant generates and requires them as checks, and it shows up in the workspace as a forge-governance member.
  • Why only forges get one. A warden exists for settings that no chant lexicon can declare, because they live in the forge's own API and not in a cloud's resource model:
    • GitHub, GitLab and Forgejo settings are of that kind.
    • CodePipeline, CodeBuild, CodeConnections, Cloud Build triggers and worker pools are cloud resources, which the aws and gcp lexicons already type (AWS::CodePipeline::Pipeline, AWS::CodeBuild::Project, CloudBuildTrigger, CloudBuildWorkerPool). A team declares and diffs them as part of its estate, and governs them with IAM and the cloud's own policy (governance.ts in each lexicon).
    • A setting missing from a lexicon is a lexicon gap, not a reason for a warden.
    • The chant-native git forge has no forge API, so there is nothing for a warden to reconcile. Its policy lives in the repository: .chant/trust.json and the pre-receive hook the ref gate writes (cli/workspace-ref-gate.mdx). A warden is needed only where a forge keeps policy in its own API.
    • Cloud-hosted git (CodeCommit, Secure Source Manager) is a cloud resource too.
  • Cloud-native CI today. Describe what works today: these services are declared as resources through the aws and gcp lexicons. Say plainly that chant does not render its pipeline for them, and does not render one for Azure DevOps, and stop there. Under the workspace rules, the page names nothing as coming.
  • TypeScript as data. Pipelines, forge policy and cloud resources are all typed values in one estate (concepts/typescript-as-data.mdx), so the matrix's rows are generators over the same jobs rather than separate tools.

3. A team on the chant-native git forge (in the concept page, or a guide it links)

This walks through what a team does when the forge is a git server, a hook and one chant ci serve host, with no forge API and no hosted CI. The page describes what works when it is written. The release step reads as today (by hand) until #5462 lands, and #5462 updates it.

Setup, once:

  1. A git server: Soft Serve, or a bare repository over SSH.
  2. The ref gate's pre-receive hook on it (cli/workspace-ref-gate.mdx). A push to main whose commit lacks the evidence .chant/trust.json at base requires is refused.
  3. One host runs chant ci serve --forge git --env <env> --secrets <file>, with a runner key from --setup-key --trust that signs its runs.
  4. chant.workspace.json declares ci.green: the quick preMerge phases, the full phases that make a commit green, and source: "runs".

A change:

  1. A developer commits with a Chant-Record: work:<id> trailer, which links the commit to its work item.
  2. They push it to a land branch: git push origin HEAD:chant/land/<name>.
  3. ci serve runs the pre-merge phases on it and fast-forwards main when they pass.
  4. On the new main commit it runs the record job and the full phases, then ci tick tags the commit green from its own signed runs.
  5. Review is of the work item and of the change set a gate approves (chant approve), not a diff. behold shows what is in flight: open work items, flags, and green commits waiting at each gate.

A release:

Where it fits: air-gapped or regulated sites that cannot use a hosted forge. A team on GitHub, GitLab or Forgejo uses the rendered pipelines, and can still serve jobs from its own host.

4. Links

  • concepts/comparison.mdx, reference/workspace-kinds.mdx (forge governance) and the warden READMEs link to the concept page.
  • The concept page links to each warden's site.

Done when

Activity

  1. added
    epic:forges
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic:forges

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions