Tiered CI/CD¶
Routine PR updates run change-selected checks. Request full acceptance once the final head is reviewed and ready to merge; release tags run the platform and packaging matrix. See Contributing for the local development and review sequence and Source setup for toolchain prerequisites.
| Tier | Trigger | Coverage | Required gate |
|---|---|---|---|
| PR validation | Open, edit, reopen, synchronize, or mark ready | Selected Linux formatting, lint, unit, SDK, Desktop, documentation and dependency jobs | Colossus PR gate |
| Pre-merge acceptance | A repository writer applies ci:full to the reviewed final head |
Representative macOS/Windows, Linux integration, native Desktop/VS Code, fuzzing, supply chain, PostgreSQL, OCI, OPA and mTLS | Colossus pre-merge gate |
| Release | Annotated stable or approved prerelease tag | Six CLI targets, signed Windows packages, Control Plane/VSIX artifacts, stable SDK or macOS preview | Colossus release gate |
Every hosted job needs a timeout. Routine PR jobs use standard public Linux runners.
Complete Linux integration, OCI/OPA acceptance, release readiness and x86_64 Linux
release jobs use ubuntu-24.04. Stable SDK candidates and publisher rebuilds share
that image because it provides the pinned Python 3.10.18 build. Windows Desktop
acceptance, x86_64 CLI packaging and signed Desktop releases use windows-2025.
Manual unsigned Windows Desktop validation requires the paid windows-latest-l runner.
ARM64 and macOS jobs keep their native runners; short control, service-backed and
bounded single-process fuzzing jobs retain their existing standard or slim runners.
Provisioned runner names belong in .github/actionlint.yaml.
Ubuntu 26.04 LTS compatibility checks run the CLI release and bootstrap installer
smoke tests against the current source on ubuntu-26.04 (x64) and
ubuntu-26.04-arm (Arm64). The workflow runs on changes to its recipe, the Rust
toolchain or lockfile, or the installer and its tests. You can also run it manually.
It uses isolated runner builds. The packaged CLI is exercised with local release
fixtures. Public distribution verification tests
the actual published binaries separately. The standard AppArmor, SDK, and release
build jobs retain their Ubuntu 24.04 recipes as those workloads migrate separately.
Native ARM64 macOS jobs and their dependency and compiler-cache warmers use macos-15.
Keep producers and consumers on the same image. Partition native dependency archives
by image, using macos-15-desktop-acceptance-v1 and
macos-15-desktop-bundle-recipe-v3. x86_64 CLI packaging uses macos-15-intel.
Rust build caches¶
GitHub scopes PR-written caches to that PR's merge ref, so another PR cannot restore
them. Warm Rust build caches writes dependency build archives on main after Rust
manifests, lockfiles, toolchains or cache workflows change. Writers may dispatch it
manually; it uses standard Linux/macOS runners and is not a merge gate. Each cache
family shares an effective namespace between its producer and consumers. The pinned
rust-cache implementation
ignores key when shared-key is set. When changing a family's warm-up recipe,
version its shared-key, as in macos-15-desktop-bundle-recipe-v3, and update the
producer and every consumer together. GitHub cannot replace an existing entry.
Linux PR lint/unit jobs share a dependency archive. macOS Desktop acceptance and bundle
jobs use separate debug/release archives; unsigned macOS releases consume the same
release archive as the warmer. Match runner, target directory, recipe and compiler
environment, including the absence of RUSTC_WRAPPER. Each rust-cache target is
relative to its workspace (apps/desktop/src-tauri -> target). These jobs do not save
duplicate PR/tag archives. The cache retains dependency artifacts, not workspace crates
or application binaries; misses build normally.
The macOS bundle warmer builds the credential-free unsigned package using the same final Tauri configuration as acceptance and release. Pre-merge packaging invokes the canonical packager once; it does not first build a second Tauri configuration.
Other configured PR/pre-merge lanes use GitHub sccache read-only, or R2 read-only when
credentials are available. This covers the SDK/Desktop PR jobs and the five existing
pre-merge sccache consumers. Forks and unconfigured repositories keep the GitHub
fallback. Warm R2 compiler cache writes from main on Linux, macOS and Windows without
replacing the dependency archives. It runs after relevant dependency, toolchain and
cache-recipe changes reach main, and writers may dispatch it manually. Its protected
writer environment and main-only guard remain required; PRs cannot populate this cache.
All compiler-cache actions select the same explicit sccache binary version, separately
from the action's pinned installer revision. A new binary can change cache keys even
when Rust is unchanged. Update producers and consumers together, refill from trusted
main, and verify hits against the current inputs. The Windows warmer uses the same
verified clang-cl compiler selection as Windows Desktop acceptance.
Validated tagged CLI builds and stable SDK candidates use R2 read/write when enabled;
the stable SDK publisher reads R2. Manual release validation and signed Windows Desktop
retain GitHub sccache. macOS acceptance, bundles and unsigned releases retain their
credential-free archive path and do not receive R2 or signing credentials.
To enable R2:
- Keep the bucket private. Set repository secrets
SCCACHE_BUCKET,SCCACHE_ENDPOINT(https://<ACCOUNT_ID>.r2.cloudflarestorage.com, without a bucket path) andSCCACHE_REGION(auto). - Store an Object Read only token's S3 keys as
SCCACHE_R2_READ_ACCESS_KEY_IDandSCCACHE_R2_READ_SECRET_ACCESS_KEY. Same-repository PRs receive these secrets, so they must grant neither writes nor access to another bucket. Forks receive none. - Restrict
v*tag creation to administrators through the release tag ruleset. Createsccache-r2-write, allowing protectedmainandv*tags, with an Object Read & Write token stored asSCCACHE_R2_WRITE_ACCESS_KEY_IDandSCCACHE_R2_WRITE_SECRET_ACCESS_KEY. Only the main warmer and validated tagged builds use these write credentials. - Set repository variable
SCCACHE_R2_ENABLED=true, then dispatchWarm R2 compiler cacheonmain. Incomplete credentials, endpoint or region fail the job.
Refill R2 manually after initial enablement or when automatic warming missed an input change. Existing objects remain reusable while compiler inputs and cache-key formats match. Inspect hits, misses, errors and writes in the warmer and job summaries, then compare total duration and runner usage; a hit alone does not prove a shorter critical path. Three-platform warm-ups increase object storage and request usage.
Inspect or refill dependency archives with:
Pull-request validation¶
The path classifier fails closed. Documentation-only changes build the site and skip
Rust. Code, configuration, CI, renamed unknown paths and unknown new files select Linux
formatting/structure, Clippy including fuzz harnesses, and workspace library tests.
API/SDK changes add pinned Node/Python/Go generation, compatibility and packaging checks.
Desktop, launcher and Rust SDK paths add managed-sidecar checks and renderer audit,
tests and build. Changes confined to native/computer/ independently select Rust and
Desktop validation. The Desktop PR gate formats, lints and tests the portable native
bridge on Linux; it does not capture a desktop or send input.
Classification, Conventional Commit title validation and aggregate decisions execute contracts from the PR base revision, never their proposed replacements. The initial bootstrap fallback selects every tier and requires success. If an older classifier lacks SDK/Desktop outputs, the workflow selects both, preventing CI-changing PRs from skipping validation by weakening their own contracts.
Selected jobs run concurrently after classification with independent toolchains and
caches. Workflows retain trusted-base decisions and runner provisioning; cargo xtask
owns portable recipes. The PR aggregate runs the trusted seven-argument selector three
times across formatting, lint, unit, SDK, Desktop, documentation and dependency results.
A skipped job is accepted only when classification explicitly marked it unnecessary.
Documentation PR builds remain separate from deployment of main by the Documentation
workflow. The PR tier allocates no macOS or Windows runners.
Dependency policy¶
Dependency manifests and lockfiles add license, source, ban and advisory policy for
the root sidecar and independent Desktop, browser and native-computer graphs.
Tantivy and Ratatui use patched lru 0.18.2 without an advisory exception. Any
exception must identify the exact advisory, reporting scanners, reviewed scope and
removal condition. Distinguish evidence of exploit unreachability from explicit
acceptance of temporary maintenance/support risk.
OpenID Connect 4.1.0 removes the legacy P-256/P-384 verification stack, so neither
scanner retains a RUSTSEC-2026-0387 exception. Existing wrapper bans still constrain
legacy API imports; they do not exempt advisories. The remaining RSA public-key
verification exception and its removal condition are recorded in
ADR 0006.
The approved chrono support-risk exception covers only crates.io chrono 0.4.45
and the reviewed unmaintained finding RUSTSEC-2026-0543. It expires at
2026-12-19T00:00:00Z, without automatic renewal. The
policy record
owns the approval, fingerprints, parent graphs and removal obligations. Acceptance
prints accepted temporary support risk: chrono remains unmaintained; this is
neither a chrono fix nor a dependency-clean result.
cargo xtask check dependencies runs the policy fixtures and helper for the root
and Desktop graphs. Release readiness invokes the same helper with --root-only
to retain its existing root advisory scope. Root cargo-deny advisories and
cargo-audit retain -D warnings and the existing exact RSA exception. Desktop
audit retains its existing treatment of informational/yanked findings without
-D warnings; other independent graph gates retain their existing thresholds.
The helper requires the Python prerequisite,
using PYTHON when set or python3 otherwise. Hosted dependency jobs provision
the existing Python pin explicitly on Ubuntu 24.04. Ubuntu 26.04 compatibility,
canary and public installer checks retain their separate coverage.
Each invocation fetches a fresh authoritative advisory database and binds its
unchanged snapshot to the scans. Raw, unfiltered scanner stdout and stderr remain
visible; their bytes and exit statuses are retained with policy-receipt.json beneath
.local/dependency-policy/<unique-run>/. Missing or malformed evidence, scanner
errors, expiry, changed package/version/source, advisory content, classification,
aliases or affected scope fail closed. No blanket chrono ignore is added to
deny.toml, and new security information requires immediate reevaluation.
The approved all-features reverse graphs bind parent versions, sources, features and normal/build/dev/target edges. The direct Cloud server consumer also binds all 124 Rust source files, including files without a literal chrono reference; even unrelated Rust edits in that crate require independent scope review before updating those bindings. Its lexical reference inventory is not whole-program proof. Revalidation cannot extend the approved expiry, package, advisory or parent scope by mechanically refreshing hashes.
dependency_owner owns chrono-unmaintained-parent-graph-migration. Cloud
authentication, MCP and Desktop owners must supply its scope by
2026-11-26T00:00:00Z; maintenance_coordinator owns implementation review by
2026-12-12T00:00:00Z. Remove the exception or block before its December 19 UTC
expiry, following the canonical record rather than renewing it automatically.
Request pre-merge acceptance¶
Keep full acceptance at the end of development:
- Finish focused iteration and the local completion gate below. Wait for
Colossus PR gateon the current head and resolve merge conflicts. - Inspect and resolve every human and automated review conversation, addressing actionable findings in code and tests. Mark a draft PR ready for review.
- As a repository writer, request acceptance for that final head:
A cheap Linux eligibility job checks writer permission, non-draft status, the exact head and its successful PR gate before allocating acceptance runners. Current policy requires all pre-merge acceptance and packaging jobs, including for small or documentation-only PRs; routine path selection does not implement a lighter pre-merge tier. Shared CI and toolchain changes can affect every consumer and need broad evidence.
Linux's complete Rust/native sandbox suite runs on Ubuntu 24.04 with an exact-path AppArmor profile granting the temporary root-owned CLI Linux user-namespace authority. Control Plane server acceptance runs on Linux. The Linux Rust gate covers OIDC-to-runtime transport and cross-replica terminal recovery. The Linux Desktop gate exercises cloud connection and disconnect through a native Managed Local sidecar. Three macOS jobs run concurrently: native sandbox/sidecar acceptance, Desktop acceptance and Desktop packaging. The native job exercises real sidecar bootstrap, pinned gRPC, guardian lifecycle, native terminals and sandboxing. Desktop acceptance lints/tests the standalone bridge and checks Chromium keyboard behavior, accessibility, high contrast, drawers, approvals and 880×640 layout. Packaging independently builds release sidecar/CLI/Tauri binaries and verifies bundle structure. The Desktop jobs have separate build trees and transfer no build artifacts to each other. Acceptance allows 90 minutes for cold builds and the later native command-approval compilation. Packaging retains its 75-minute budget.
macOS native-debug and standalone Tauri graphs remain separate on bounded disks. Bundle
verification covers the pruned lockfile, ad-hoc two-phase signing, outer seal and final
nested-binary hashes. Ad-hoc ADHOC team identity proves structure and intentionally
refuses Managed Local startup. Distributable builds require the expected 10-character
Apple Team ID, Developer ID, notarization and exact app/sidecar/CLI code identifiers.
Windows runtime and Desktop jobs also run concurrently. The standard Windows 2025 runtime lane covers renderer typechecking/tests, platform contracts, worker, AppContainer sandbox and computer protocol tests; the computer check lints all native targets/features and builds acceptance examples. GitHub-hosted Windows runners are administrators, so this lane cannot establish ordinary-user capture/input acceptance. Computer-control changes also need maintainer interactive receipts from the final clean commit. The Windows runtime job exercises native human terminals. The Windows 2025 Desktop job prepares binaries and exercises the bridge, credentials, WebView2, plugins and approvals. One Cargo build supplies the default Desktop library tests and the native credential persistence, setup/reset and uninstall groups. Desktop checks require staged binaries. Each job reports all independent failures and the aggregate waits for both. Linux Desktop, credential-vault, VS Code lifecycle, fuzzing, supply-chain and live-service lanes also remain mandatory. Portable formatting belongs to the PR tier and is not repeated on platform runners.
The Windows Desktop job allows 120 minutes for cold compilation and the complete acceptance sequence on a standard runner. Its CEF step retains a separate 45-minute limit, and every acceptance result remains required.
The Windows runtime lane allows 75 minutes for cold compilation and every required acceptance command. Its final outcome aggregation remains mandatory. The release smoke configuration gives verified inventory operations a bounded 30-second effect budget for cold disk I/O; its echo provider retains a separate five-second budget. The Windows fixture reports inventory elapsed time on success or failure and keeps native errors fatal. These test budgets do not change production defaults or the fixture's filesystem, executable, network, process, memory or custody restrictions.
The Windows Desktop pre-merge job resolves the runner's
clang-cl executable and checks
its version before the first Cargo build, then sets that exact path as CC and CXX
for this job. This avoids MSVC compiler stdout interleaving with Cargo instructions
during inkjet's parallel parser builds while retaining compiler diagnostics. The Rust
MSVC target and native CEF Visual Studio toolset remain unchanged. This CI selection
does not change local or release compiler configuration.
Do not push another commit during acceptance. synchronize cancels the old run and
removes ci:full; the old result cannot authorize a new head. After any fix, wait for the
new PR gate, resolve review and reapply the label. The pre-merge sentinel runs on every
workflow event: synchronization or another label leaves a failing gate without allocating
acceptance runners. Only successful ci:full acceptance on the current head replaces it;
failed, cancelled or unexpectedly skipped work cannot satisfy protection.
The ruleset does not require a fresh commit solely because main advanced. If newer
main changes affect the same behavior or integration contract, update the branch and
rerun both gates; a conflict-free merge alone does not prove the combination was tested.
If classification is wrong or empty, repair its contract rather than forcing skipped
checks through the aggregate.
Release validation and publication¶
The six CLI platform/architecture builds belong to the release tier, separate from PR
acceptance. Annotated vX.Y.Z or approved vX.Y.Z-preview.N tags must point to main
and satisfy the source-version/changelog rules in
release operations. Each target runs security
acceptance, a locked release build, archive/checksum creation, clean installation,
offline echo/audit and signed-bundle smoke. The exact source generates changelog and
draft notes retained in release-history; see changelog generation.
Each of the six CLI release jobs has a 90-minute deadline for native security acceptance, optimized compilation and packaging. Cold macOS jobs have exceeded 60 minutes, so manual validation and tag builds use the same bounded budget with caches optional. The deadline bounds job wall time; billed runner usage is separate.
Signed Windows Desktop releases, including signed Developer Previews, allow 150 minutes for cold native builds, signing, NSIS packaging and installed smoke. A cold run spent 86 minutes building unsigned inputs and reached the former 100-minute limit during NSIS bundling. Every signature, inventory, installation, launch and uninstall check remains required; caches stay optional. The separate unsigned Windows Desktop validation job retains 100 minutes.
Windows Desktop builds its bundled CLI with dictation support in a separate Cargo invocation from the browser-enabled sidecar. Signed packaging builds that sidecar once using the sealed inventory of the signed browser components. Standalone Windows CLI archives use their own release configuration.
Stable releases additionally generate/test/package TypeScript, Python and Go SDKs, bind candidate metadata and checksums to the source commit, and require signed Windows x64 Desktop and x64/ARM64 CLI archives. SDK compatibility uses the latest reachable stable tag, or the release commit's parent for the first release, so rerunning an old tag does not treat newer APIs as removals. Stable releases need no Apple or Tauri updater keys.
Developer Preview channel¶
Developer Previews retain all six CLI targets and add ad-hoc signed macOS ARM and signed
Windows x64 Desktop previews without stable SDK publication. macOS uses the
developer_preview channel, COLOSSUS_DESKTOP_TEAM_ID=ADHOC and signing identity -,
with no Apple signing/notarization secrets. It remains unnotarized; packaging verifies
code identifiers, channel-bound manifest and nested hashes. The native banner identifies
the preview when Show security warnings is enabled (off by default).
See preview installation, source-version exceptions and browser edition.
The macOS archive is Colossus-Desktop-DEVELOPER-PREVIEW-vX.Y.Z-preview.N-aarch64-apple-darwin.zip
with an adjacent .sha256. Its draft is a prerelease titled
Colossus vX.Y.Z-preview.N - Developer Preview (Unnotarized).
Drafts and manual validation¶
Manual validation does not publish or receive signing authority:
Stable dispatches validate SDK candidates and skip Desktop; preview dispatches use the
non-runnable validation_only channel. Failures block publication of partial artifacts;
repair the source and create a new annotated tag.
Only the release draft job has contents: write. A human reviews and publishes the
draft after its selected gate passes. The protected stable SDK publisher receives
short-lived OIDC/tag authority after sdk-production approval and publishes only bytes
matching the immutable candidate; see create and approve the release.
Registry publication, production Desktop authority and macOS signing/notarization remain
separately protected.
Desktop update authority¶
Automatic updates require separately authorized stable builds, repository variable
DESKTOP_UPDATE_PUBLIC_KEY (one-line base64), protected secret
DESKTOP_UPDATE_PRIVATE_KEY and, when applicable, DESKTOP_UPDATE_PRIVATE_KEY_PASSWORD.
Windows stable and preview channels use manual updates until that authority and feed are
configured. Validation builds never produce updater artifacts.
macOS .app.tar.gz packaging requires nested/outer signing, notarization, stapling and
bundle verification. Stable draft metadata binds its signature to an immutable release
URL. desktop-update-channels.yml runs only when a published release contains an
independently produced stable.json; it validates tag, release kind, platform, HTTPS URL
and immutable path before replacing that asset on desktop-update-channels. Ordinary
stable core and preview releases omit it. Update clients use the shared additional-CA
configuration and reject HTTPS-to-HTTP redirects.
Update signatures are distinct from platform publisher identity. Windows signing hashes the signed CLI/sidecar into the manifest before Tauri patches and signs the app, support DLLs, uninstaller and installer. Installed Authenticode publisher/timestamp verification precedes upload; both CLI architectures are signed on x64 before ZIP hashing. See Windows signing authority.
Server, extension and documentation artifacts¶
The coordinated gate also requires native Linux x64/ARM64 Control Plane server/web and
offline container bundles and six platform-specific VSIX packages. After release
publication, control-plane-image.yml publishes exact tested candidates and verifies the
two-platform index; conflicting immutable tags fail.
See Control Plane and VS Code release operations.
documentation-candidate.yml builds and HTTP-smokes the public documentation image on
native Linux amd64/ARM64. Documentation/container PRs exercise the same smoke. Annotated
tag candidates on main retain tested offline images and source-bound manifests for
30 days without registry write credentials. documentation-image.yml uses one resolved
protected-main publisher revision, requires successful exact-tag release/candidate runs,
verifies retained archives/source identities and refuses conflicting version tags before
registry writes. It verifies the two-platform executable index and adds no CLI assets.
See recovery and anonymous verification.
Repository enforcement¶
The tracked ruleset starts in evaluation mode; an administrator uses the audited helper
to create ci:full and evaluate it before activating protection:
./scripts/ci/configure-repository.sh plan OWNER/REPOSITORY
./scripts/ci/configure-repository.sh evaluate OWNER/REPOSITORY
Exercise documentation and code PRs plus one ci:full run. Confirm both gate names,
stale-label removal, resolved conversations and billing, then activate:
The main ruleset requires a conflict-free PR, resolved conversations and both gates on the current head, with zero mandatory approvals, no bypass actors and no latest-main requirement. It blocks direct pushes, deletion and non-fast-forward updates. Merge queues are outside this topology; the ruleset uses the current-head PR and pre-merge gates directly.
Local development and completion¶
Iterate with focused package checks/tests from Source setup. Run the change-selected completion gate when the final change is ready for handoff or a PR:
When Rust is selected, this includes the complete Rust gate; do not repeat
cargo xtask check rust on unchanged source. Use that standalone command for Rust-only
completion without a PR. Hosted cost tiers do not replace local completion. Release
operators additionally run ./release/verify-release-readiness.sh.
Control Plane Helm validation and publication¶
control-plane-chart.yml owns cargo xtask check helm for affected pull requests and
release tags. The static gate covers Kubernetes 1.34 rendering, routing variants,
OpenShift security contexts, authentication, external database trust, version parity,
and packaging with vendored dependencies. It does not install or upgrade a cluster.
Successful annotated tag builds retain the exact chart candidate for thirty days.
control-plane-chart-publish.yml publishes those bytes to GHCR after reviewed
release publication using protected-main code, a dedicated registry environment,
and a job-scoped GITHUB_TOKEN with packages: write.
See Helm release operations.