Developer workflows
Developer workflows take a change from local work to trusted validation. They join the Rust workspace, web console, service-backed tests, cross-SDK telemetry acceptance, GitHub Actions, dependency checks, and release-upgrade checks so an engineer can choose a fast local check or a broader contribution gate.
Development environment
The development environment joins the Rust platform with its web console and local service dependencies. A new contributor needs tools for both parts because the server build embeds web assets and some tests need Docker or TimescaleDB.
Local setup
The supported setup starts with the required compilers and service tools. Rust builds the workspace, Bun builds the console and browser tests, and Docker supplies the container and database services used by local and integration checks. The normal path is:
- Install the prerequisites listed in the fully qualified CONTRIBUTING.md, including Rust, Bun, Docker, PostgreSQL with TimescaleDB,
protoc, andwasm-pack. - Build the captcha WebAssembly module with the canonical Linux/AMD64 toolchain when its checked-in package must be regenerated.
- Install web dependencies and start the console when working on the UI.
- Start a local TimescaleDB instance and run the
tempsserver against it. - Install the repository hooks before creating commits.
The web development server sends API requests to the Rust backend. This lets an engineer change the console and platform code in one local loop without treating them as separate products. Cargo also provides a fast profile for a quick runnable server build and for the shared CI binary.
The captcha package has a host-independent rebuild path. scripts/rebuild-captcha-wasm.sh builds the repository toolchain image and runs the rebuild on Linux/AMD64, while scripts/verify-captcha-wasm.sh checks that the generated package has no tracked, deleted, or untracked drift. Native macOS or ARM64 output is not the comparison target.
References: CONTRIBUTING.md• L12-26 CONTRIBUTING.md• L64-117 scripts/rebuild-captcha-wasm.sh• L5-17 scripts/verify-captcha-wasm.sh• L5-18 Cargo.toml• L377-390
Local service state
Local tests use real service boundaries when a feature depends on them. A TimescaleDB instance is the main shared service for database-backed checks, while Docker supports container and provider tests. Interrupted test runs can leave testcontainers behind, so scripts/cleanup-testcontainers.sh provides a scoped cleanup path that avoids touching normal application containers.
The managed S3 end-to-end check adds a focused local path for storage features. It uses a running temps serve with Docker-backed RustFS and Garage services to verify environment credentials, bucket isolation, restart behavior, migration, backup and restore, and access revocation after unlinking. Use a scratch instance because the backup source stays while a backup record refers to it.
References: CONTRIBUTING.md• L88-109 CONTRIBUTING.md• L246-259 scripts/README.md• L72-93 scripts/README.md• L127-139 scripts/test-managed-s3-e2e.sh• L5-22
Distributed local cluster
The dev cluster provides a small multi-worker Temps installation for distributed and high-availability work. It runs one control plane and three workers with a real database and an overlay network, so an engineer can exercise cross-node container traffic without real servers.
Use tools/dev-cluster/dev-cluster to start, inspect, shell into, restart, stop, or reset the cluster. The control plane creates the initial state and join token. Workers use that token to register and then establish their overlay network. The cluster keeps database, build, and worker Docker state across down; reset removes that state for a fresh run.
The cluster builds inside Linux containers. This keeps the binary format aligned with the worker runtime and gives all roles a shared build cache. The inner Docker daemon also uses address ranges separate from the overlay compute pool, which prevents ordinary container networks from blocking overlay setup.
References: tools/…/README.md• L1-8 tools/…/README.md• L66-131 tools/…/README.md• L155-195 tools/…/entrypoint.sh• L5-14 tools/…/entrypoint.sh• L73-137
Change validation
Validation is layered so a small change can receive a fast local check while a pull request receives a broader proof. Formatting and compile checks catch basic workspace drift. Unit, integration, browser, scenario, SDK acceptance, upgrade, security, supply-chain, and AI workflow checks then exercise behavior that depends on databases, containers, the console, a running Temps instance, external SDKs, or an AI provider.
Local checks
The scripts/ci-local.sh helper mirrors the core pull-request checks for Rust. It can run all checks or one check at a time:
| Check | Purpose |
|---|---|
scripts/ci-local.sh fmt | Confirms workspace Rust formatting. |
scripts/ci-local.sh check | Compiles all workspace targets. |
scripts/ci-local.sh clippy | Runs workspace lint checks with warnings treated as errors. |
scripts/ci-local.sh --fix | Applies available format and lint fixes. |
The main test commands complement this helper. cargo test --lib covers Rust library tests, a package filter narrows the run to one crate, and cd web && bun run test covers console source tests. Browser behavior uses cd web && bun run e2e against a running local instance. These checks use browser-visible outcomes and relevant request contracts rather than only status codes.
References: scripts/ci-local.sh• L5-15 scripts/ci-local.sh• L73-109 CONTRIBUTING.md• L246-259 web/package.json• L19-35 web/…/cloud-delivery-failure.spec.ts• L100-206 web/…/cloud-trace-time-bounds.spec.ts• L93-451
SDK acceptance
The Sentry SDK acceptance workflow checks that official client libraries can send telemetry into a real local Temps instance and that native queries recover the intended records. It combines Rust-owned protocol and storage assertions with short fixtures in Node, browser JavaScript, Python, Go, and Rust. The fixtures cover errors, traces, logs, feedback, browser reports, releases, scheduled checks, replay, and outcome reports without using customer data.
The acceptance command creates an isolated database and temporary SDK installations. It runs native assertions first, then drives the official SDKs through their real transports. The result checks delivery, query shape, retry behavior, cross-signal links, project isolation, and cleanup. CI reuses the shared Rust test archive and runs the job only when Rust inputs can affect it.
This diagram shows how SDK traffic becomes native acceptance evidence.
flowchart LR
SDK[Official SDK fixtures] --> Transport[Real SDK transport]
Transport --> Ingest[Local Temps ingestion]
Ingest --> Store[Native error, trace, log, replay, and outcome stores]
Store --> Query[Native API assertions]
Query --> Result[Acceptance result]
References: scripts/sentry-acceptance.sh• L5-35 scripts/sentry-acceptance.sh• L38-97 scripts/sentry-protocol-conformance.py• L18-57 scripts/sentry-feedback-conformance.py• L41-122 scripts/sentry-errors-conformance.mjs• L16-73 scripts/sentry-signals-conformance.mjs• L23-184 .github/…/rust-tests.yml• L1399-1490
Managed storage checks
The managed storage check validates the service lifecycle from the platform boundary instead of testing only individual API responses. It creates isolated services and projects, checks that each environment receives controlled access, moves data between the supported S3 backends, and verifies that backup, restore, unlink, and relink preserve the intended data and access rules.
Run it with TEMPS_E2E_API set to the server API base URL and TEMPS_E2E_API_KEY set to an admin key. The script uses the local Docker network for an AWS CLI helper and removes its temporary services and projects when it exits, except for backup sources that remain referenced by backup records.
This diagram shows the managed storage validation path from service setup to access cleanup.
flowchart LR
Server[Running Temps server] --> Services[Managed RustFS and Garage services]
Services --> Access[Environment credentials and bucket isolation]
Access --> Lifecycle[Restart and backend migration checks]
Lifecycle --> Recovery[Backup and restore checks]
Recovery --> Unlink[Unlink and relink access checks]
Unlink --> Cleanup[Remove test resources]
References: scripts/test-managed-s3-e2e.sh• L5-24 scripts/test-managed-s3-e2e.sh• L130-180 scripts/test-managed-s3-e2e.sh• L198-224 scripts/test-managed-s3-e2e.sh• L226-285
Pull request checks
GitHub Actions checks pull requests to main through several gates. The Rust workflow classifies changed areas, checks workspace compilation and formatting, validates the OpenAPI document, type-checks and tests the web console, checks release and build-input contracts, runs Clippy, and runs official Sentry SDK acceptance. It builds or reuses one musl fast Temps binary and publishes it as an artifact for deployment end-to-end checks, scenario checks, upgrade checks, and Compose security checks.
Pull requests skip jobs for areas that the change cannot affect. The classifier emits Rust, web, and CLI signals so each gate runs when its inputs change. A pull request with no Rust input can reuse a compatible binary from main; when that happens, browser checks serve the current checkout's console in front of the reused server. Required matrix checks still report successfully. Pushes to main run the complete path because they seed shared caches and support later release decisions.
The test jobs use the level that matches the risk:
- Unit groups run Rust tests against a shared TimescaleDB instance.
- Integration groups exercise Docker providers, deployments, migrations, telemetry stores, backups, storage backends, and MariaDB point-in-time recovery.
- Browser end-to-end checks use Playwright against the prebuilt or reused binary and a live server.
- Scenario shards drive a prepared instance through core, observability, service, recovery, edge, and example flows. A separate multinode scenario checks the worker join and mTLS topology.
- SDK acceptance runs official client traffic against an isolated instance and checks the native result through the API.
- Upgrade checks compare a prior release with the candidate. They verify data preservation, pre-migration backup behavior, schema refusal, and rollback.
- Compose security checks validate the effective container image and network security behavior.
- A separate network workflow runs privileged kernel and Docker-in-Docker checks when network code changes or a maintainer requests them.
The deployment end-to-end workflow downloads the musl artifact produced by the Rust workflow. It installs the web dependencies needed by Playwright, starts the required local services, checks the console, and exercises example deployments. When the binary came from main because only the console changed, it serves the console built from the current checkout in front of that binary. This keeps browser checks on the current UI while still using the tested platform binary.
The Rust workflow builds test binaries into two shared archives before the unit and integration groups run. One archive serves default-feature checks. The other enables Docker-backed features for groups that provision the matching services. Test groups use filters and controlled parallelism so shared database and container state does not race. The scenario workflow reuses the same application artifact, links the API and Node SDK packages, starts external fixtures, and runs isolated scenario shards. Separate jobs cover the multinode mTLS topology and distributed runtime health. The Sentry acceptance job reuses the default archive, starts its own TimescaleDB container, installs the pinned foreign runtimes, and removes the database after the run.
Pull-request runs cancel superseded runs on the same branch, while main runs continue to populate the shared build caches. Cache writes are restricted to readable default-branch scopes. The build cache pruner removes stale Cargo output before a new main cache is saved, and a scheduled or post-run cleanup removes superseded cache generations and dead tag-scoped entries. This keeps feedback focused on the newest change without removing the cache source used by later runs.
This diagram shows how a pull request moves from change classification to shared build output and behavior checks.
flowchart LR
Change[Pull request change] --> Classify[Classify Rust, web, and CLI impact]
Classify --> Static[Format, compile, type, contract, and lint checks]
Classify --> Binary[Build or reuse shared musl Temps binary]
Static --> Binary
Binary --> Unit[Unit tests from shared archives]
Binary --> Integration[Docker and database integration tests]
Binary --> E2E[Console and deployment end-to-end tests]
Binary --> Scenarios[Scenario and multinode test shards]
Binary --> SDK[Official SDK acceptance]
Binary --> Upgrade[Upgrade and rollback checks]
Binary --> Compose[Compose security validation]
Change --> Supply[Dependency and workflow checks]
Change --> History[DCO and commit checks]
Main[Main branch] --> Cache[Prune and save shared build caches]
References: .github/…/rust-tests.yml• L13-161 .github/…/rust-tests.yml• L176-356 .github/…/rust-tests.yml• L363-436 .github/…/rust-tests.yml• L438-654 .github/…/rust-tests.yml• L677-795 .github/…/rust-tests.yml• L809-1172 .github/…/rust-tests.yml• L1180-1276 .github/…/rust-tests.yml• L1399-1490 .github/…/upgrade-tests.yml• L4-17 .github/…/e2e-tests.yml• L4-21 .github/…/e2e-tests.yml• L94-142 .github/…/e2e-tests.yml• L331-400 .github/…/apps-e2e-tests.yml• L4-17 .github/…/apps-e2e-tests.yml• L80-120 .github/…/apps-e2e-tests.yml• L242-347 .github/…/check-cache-save-guards.py• L5-29 .github/…/prune-cargo-build-cache.py• L5-31 .github/…/prune-superseded-caches.py• L5-20 .github/…/cache-cleanup.yml• L4-48
Action workflow validation
The Actionlint workflow checks GitHub Actions definitions when workflow files change. It validates expressions, job dependencies, permissions, action inputs, and shell commands so an invalid automation contract fails before the wider workflow can run. The tool is downloaded from a pinned release and checked by SHA-256; shellcheck findings at warning level also block the check.
References: .github/…/actionlint.yml• L4-18 .github/…/actionlint.yml• L22-51
First-run validation
The first-run workflow checks that a new installation can serve useful work and remain quiet when idle. It runs nightly and on demand, while pull requests run it only when the suite or its fixtures change.
The suite builds a fresh binary, starts a new instance with a bootstrap administrator, and exercises public, Git-based, preset, Compose, static, and managed-service deployments. It also checks the console's flexible image flow. The quiet-log path uses a small installation with an alert rule and uptime monitor, waits for the configured idle period, and rejects error output or excessive warning output for a module.
This diagram shows the two fresh-install checks that share one built binary.
flowchart LR
Source[Selected revision] --> Binary[Build musl Temps binary]
Binary --> Fresh[Fresh instance]
Fresh --> FirstRun[Deployment and console checks]
Fresh --> Quiet[Idle workload and log-rate check]
References: .github/…/first-run.yml• L4-45 .github/…/first-run.yml• L65-157 .github/…/first-run.yml• L159-267 .github/…/first-run.yml• L269-353
Upgrade validation
Upgrade validation proves that a new release can take over an existing installation without losing data or weakening rollback safety. The test seeds a database and data directory with the previous release, starts the candidate against the same state, and then checks the live service and its stored records.
The workflow runs in two ways. Pull requests and main reuse the musl candidate binary already built by rust-tests.yml. Scheduled and manual runs download the newest nightly candidate and compare it with the newest non-nightly release, or with a manually selected previous version. The test validates the upgrade path and the release-to-release path rather than only compiling migration code.
The end-to-end sequence is:
- Seed users, projects, environments, variables, an external service, and a completed deployment with the previous release.
- Upgrade the same installation with the candidate and verify that the data and deployed site remain available.
- Confirm that a pending migration creates a pre-migration backup, while a restart with no pending migration does not create another backup.
- Confirm that the candidate refuses a database marked as newer than its supported schema.
- Restore the pre-migration backup into a fresh database and confirm that the previous release starts and serves the seeded data.
The test disables telemetry, verifies release archives with their checksums, uses an isolated database and data directory, and removes created databases unless retention is requested. Failure logs are uploaded so an upgrade failure can be diagnosed without rerunning the full job first.
References: .github/…/upgrade-tests.yml• L6-17 .github/…/upgrade-tests.yml• L19-35 .github/…/upgrade-tests.yml• L40-65 .github/…/upgrade-tests.yml• L70-135 .github/…/upgrade-tests.yml• L137-144 .github/…/rust-tests.yml• L380-388 scripts/test-upgrade-from-release.sh• L5-35 scripts/test-upgrade-from-release.sh• L220-381 scripts/test-upgrade-from-release.sh• L384-435
AI workflow evaluations
The AI workflow evaluations check the full Temps chat path instead of judging prompt text alone. Promptfoo sends each case to a disposable local instance and a dedicated project. It then checks server-owned tool calls, pending actions, permissions, and redacted output.
The current executable case diagnoses missing automatic deployments. It must gather project, environment, and deployment evidence before it proposes the smallest matching change. The proposal must remain proposed; the evaluation must not execute it. The catalog records the wider failure-driven backlog for deployments, Git, services, backups, observability, schedules, and authorization.
The provider runs the supported Claude and Codex subscription paths one case at a time. It records ordered tool metadata, reads pending actions back from Temps, archives temporary conversations, and rejects remote non-HTTPS targets. Assertions also ensure that credential-shaped values do not enter output or captured metadata.
References: apps/…/README.md• L1-39 apps/…/promptfooconfig.yaml• L9-110 apps/…/scenario-catalog.yaml• L4-7 apps/…/scenario-catalog.yaml• L139-145 apps/…/temps-chat-provider.ts• L81-116 apps/…/temps-chat-provider.ts• L231-389 apps/…/assertions.cjs• L10-95
Security and supply-chain checks
The contribution pipeline also checks risks outside normal functional tests. Rust dependencies are checked against the RustSec advisory database, web dependencies are checked with Bun, and scheduled or manual runs scan the published container image. These checks target the platform's own build inputs and release image. They are distinct from customer-image vulnerability scanning performed by platform features.
The dependency workflow runs on pull requests that change Rust manifests or locks, web dependency manifests or locks, or the workflow itself. The Rust audit checks the resolved Cargo.lock and fails on advisory matches except for documented cases whose reachability is reviewed in the repository. The web audit fails on high and critical findings. The root Cargo manifest centralizes workspace dependency versions, records the remaining upstream blocks, and patches an unused transitive protocol crate locally so its vulnerable dependency chain is not built. The manifest also keeps security-sensitive dependency choices and their review notes beside the workspace contract. Both dependency caches restore broadly but save only from main, which prevents pull requests from creating unreadable copies in the shared cache pool.
The container scan runs on a schedule or by manual dispatch because pull requests do not publish a fresh release image. It scans both the stable latest channel and the beta channel. Each mutable tag is resolved to an immutable digest before Trivy produces SARIF results and runs the high and critical gate. This keeps the report and pass/fail result tied to the same image even if a tag moves during the job.
The Compose security job adds a runtime check for secure defaults. It verifies required credentials, loopback-only publication, network separation, proxy authentication, connection limits, secret-file use, non-root and read-only containers, persistence, and the absence of telemetry in the harness. It can build the image locally or validate a prebuilt image from the shared binary job.
References: .github/…/dependency-scan.yml• L4-37 .github/…/dependency-scan.yml• L43-159 .github/…/dependency-scan.yml• L160-229 .github/…/dependency-scan.yml• L230-280 .github/…/dependency-scan.yml• L281-373 Cargo.toml• L119-142 Cargo.toml• L387-400 Cargo.toml• L412-515 Cargo.toml• L594-601 .github/…/rust-tests.yml• L390-436 scripts/test-compose-security.sh• L8-35 scripts/test-compose-security.sh• L194-248 scripts/test-compose-security.sh• L893-954
Contribution contracts
Contribution contracts keep code review, release notes, and source ownership consistent across contributors. They apply to the commit and pull request as well as to the code itself.
Commit history
Every non-merge human commit must use Conventional Commits and include a matching Developer Certificate of Origin sign-off. The commit type and scope become release-note input, while the sign-off records that the author has the right to submit the change. CHANGELOG.md is generated from these messages and must not be edited by hand.
The local hook setup checks formatting, linting, and commit message form before a commit. The pull request workflows repeat the important history checks, so a contribution remains valid even when a contributor does not use the local hooks.
References: CONTRIBUTING.md• L153-226 CONTRIBUTING.md• L261-281 .github/…/dco.yml• L4-98 .github/…/changelog.yml• L4-114 scripts/setup-hooks.sh• L98-126
Generated contracts
Some developer-facing files are generated from source contracts. The typed API client is generated from the OpenAPI specification, and the web console consumes the same API shape. The OpenAPI workflow checks that the committed specification stays in its canonical form, which keeps generated client changes reviewable and prevents a formatting-only rewrite from hiding a real API change.
When a change affects an API contract, the safe order is to update the server contract, regenerate the client, build or type-check the affected package, and inspect the generated diff. The API package exposes generation, build, and type-check commands for this workflow.
References: packages/…/package.json• L1-41 web/package.json• L19-31 .github/…/rust-tests.yml• L695-716
Automated release path
Release automation turns a tagged or manually selected revision into platform artifacts. It first validates the release reference and the exact-commit Rust test gate. It then builds shared web assets, verifies revision-bound runtime images, builds platform binaries, and publishes only after the required artifacts pass.
The release path is separate from pull-request validation. Pull requests prove that a change is suitable for review, while release jobs prove that the selected revision can produce distributable binaries, images, and related artifacts. Before publication, the workflow gathers the required runtime image digests into one manifest and promotes aliases only after the release binaries pass. Managed-database images are ensured as a separate release input without moving tags that running databases may already use. Manual dispatch supports a dry run that builds and checks the path without publishing registry aliases or creating a GitHub release. Release jobs restore caches but do not write Actions caches; shared cache cleanup manages entries created by default-branch validation instead.
Nightly release selection
The nightly workflow creates a prerelease from main only when the branch has moved since the last nightly or the previous nightly release failed or is missing. It also checks the Rust test result for the selected commit, so a failed main validation does not receive a new nightly tag.
After it creates or reuses a nightly tag, the workflow explicitly dispatches the release workflow at that tag. This is required because a tag pushed with the GitHub token does not start the other tag-triggered workflow automatically.
References: .github/…/nightly-release.yml• L4-17 .github/…/nightly-release.yml• L19-147 .github/…/nightly-release.yml• L149-168
Runtime image validation
The reusable daemon image workflow validates the runtime images that support managed application workspaces. It builds the Node.js, Python, and combined flavors for both Linux AMD64 and ARM64, runs lifecycle checks without provider credentials, and publishes only when the selected release policy allows it.
Release jobs call this workflow in revision-only mode so each image is tied to the selected commit before the server binaries are built. The release then assembles the daemon images with the sandbox and preview gateway images into a complete multi-architecture manifest. Published images are signed by digest. A dry run builds and checks the images without changing registry aliases.
The main branch has a separate beta path for sandbox and preview gateway images. It prepares the shared runtime context once, publishes only beta and revision tags, and leaves stable aliases to the tagged release path. This keeps frequent main builds from changing the stable channel.
This diagram shows how runtime image checks protect the release artifact path.
flowchart LR
Ref[Release ref] --> Gate[Validate ref and exact-commit Rust tests]
Gate --> Daemon[Build revision-bound runtime images]
Daemon --> Smoke[AMD64 and ARM64 lifecycle checks]
Smoke --> Digest[Record image digests]
Digest --> Manifest[Assemble and verify runtime image manifest]
Manifest --> Binaries[Build platform binaries]
Binaries --> Promote[Promote release aliases]
References: .github/…/release.yml• L30-171 .github/…/release.yml• L618-691 .github/…/release.yml• L1277-1392 .github/…/release.yml• L1395-1480 .github/…/daemon-images.yml• L4-169 .github/…/daemon-images-check.yml• L4-56 .github/…/sandbox-images-beta.yml• L4-36 .github/…/sandbox-images-beta.yml• L74-347 tools/…/smoke.sh• L5-18 tools/…/smoke.sh• L29-99 .github/…/release_image_manifest.py• L12-76
Managed database image publication
The managed database image workflow keeps database images available for fresh installations without changing an image tag under a running database. It plans only the image contexts that need work, verifies the database and backup-tool versions, publishes multi-architecture images, signs their digests, and checks that the required tags can be pulled without credentials.
Pull requests verify touched database images without publishing them. Main-branch and weekly runs refresh floating tags and discover new upstream database minors. Release calls use ensure mode, which publishes only missing tags and then requires every release input to be publicly pullable. A shared publishing group serializes release and scheduled work so each run plans against the registry state left by the previous run.
References: .github/…/database-images.yml• L4-20 .github/…/database-images.yml• L22-79 .github/…/database-images.yml• L88-182 .github/…/database-images.yml• L184-282 .github/…/database-images.yml• L284-337
Supporting image publication
Supporting image workflows publish the database backup image and the beta sandbox image set outside the main server artifact flow. The MariaDB WAL-G workflow produces an AMD64 and ARM64 image and records its immutable manifest digest so platform defaults can use a reviewed image reference.
References: .github/…/mariadb-walg-image.yml• L4-79 .github/…/sandbox-images-beta.yml• L38-65
Related workflows
The CLI and automation page explains the command-line and agent-facing interfaces that engineers use to operate the platform.
Change checklist
When these files or sections are changed, remember to consider these:
- Changes to the server API contract require regeneration and type checks for
packages/apiand the web client. Keep openapi.json canonical so the generated diff remains reviewable. - Captcha source or generated package changes require a canonical Linux/AMD64 rebuild and a local drift check before the package is committed. The CI application build must still rebuild the module before compiling Temps.
- Changes to the shared Temps binary build, reuse lookup, console-from-source handoff, or the Cargo
fastprofile must preserve the executable artifact contract consumed by the deployment E2E, scenario E2E, upgrade test, and Compose security jobs. - Changes to CI change classification must keep Rust, web, and CLI signals aligned with the jobs that consume them. A reusable binary must be matched to unchanged Rust inputs, while web changes must still test the current console.
- Changes to the Sentry acceptance workflow, SDK pins, synthetic fixtures, or native query checks must preserve the isolated database, real transport path, credential-safe output, retry checks, and cleanup contract across every supported runtime.
- Changes to Docker-backed tests may need the matching test feature, service fixture, and serialized test group in .github/…/rust-tests.yml.
- Changes to managed S3 service, credential, migration, backup, restore, or unlink contracts must keep scripts/test-managed-s3-e2e.sh aligned with the API paths, backend defaults, access rules, and cleanup behavior it verifies.
- Changes to the first-run suite, its fixtures, or its fresh-instance contract must keep the workflow path filters, bootstrap credentials, binary artifact, report files, and quiet-log thresholds aligned.
- Changes to the Cargo build cache key, prune rules, or cache cleanup families must preserve the live build output, the default-branch save guard, and the ability of later runs to restore the newest usable generation.
- Changes to dependency workflow path filters, audit exceptions, or cache policies must keep Rust and web dependency changes covered while limiting cache writes to readable
mainscopes. Recheck the reachability notes in Cargo.toml when advisory IDs change. - Changes to managed database image contexts, tag planning, version checks, or release ensure mode must keep the planner, multi-architecture publication, digest signatures, public pull check, and release inputs aligned.
- Changes to Compose defaults, ingress boundaries, secret sources, or network ranges must stay aligned with the effective-runtime assertions in scripts/test-compose-security.sh and the prebuilt image override.
- Changes to AI workflow cases must keep the scenario catalog, evidence operations, proposal operation, provider metadata, and assertions aligned. Keep mutation cases on a dedicated disposable project.
- Changes to scenario names or their required services must stay aligned across apps/…/package.json, .github/…/run-temps-e2e-shard.sh, and .github/…/apps-e2e-tests.yml. Keep the shared binary handoff, SDK links, fixture network, shard timeouts, and the separate multinode and runtime-health jobs aligned.
- Changes to the upgrade binary handoff, release selection, migration setup, or rollback data must stay aligned across .github/…/rust-tests.yml, .github/…/upgrade-tests.yml, and scripts/test-upgrade-from-release.sh.
- Changes to the release test gate, release reference rules, or dry-run behavior must preserve the exact-commit check and the boundary between validation and publication in .github/…/release.yml.
- Changes to Actionlint inputs, workflow shell blocks, or workflow permissions must keep the pinned tool checksum, warning-level shellcheck gate, and read-only default permissions intact.
- Changes to the dev cluster's overlay or Docker address pools must keep the compute pool separate from inner and outer Docker routes.
- Changes to commit or release-note rules must stay aligned across local hooks, CONTRIBUTING.md, the DCO workflow, and the changelog workflow.
- Changes to daemon image flavors, publication channels, or lifecycle checks must stay aligned across .github/…/daemon-images.yml, tools/…/image_metadata.py, and the release runtime manifest.
- Changes to runtime image kinds or architectures must preserve the complete revision-bound manifest before binary builds and alias promotion can run.
- Changes to beta image path filters, version extraction, or stable aliases must stay aligned between .github/…/sandbox-images-beta.yml and the release workflow. A new image input that is missing from the path filter can leave the beta channel stale.
- Changes to the MariaDB WAL-G image version or build context must keep the published multi-architecture digest and the platform's reviewed default reference aligned.
- Changes to authenticated browser coverage must keep product-level request stubs, user-visible assertions, and cleanup or non-mutation safeguards aligned. Time-range tests must preserve URL and request bounds across reloads, paging, and detail links.
- Changes to Cloud onboarding or telemetry delivery must preserve capability gating, enrollment and disconnect order, feature-setting state, live failure alerts, historical delivery gaps, and safe recovery behavior.
- Changes to environment-variable or HTTP-check flows must preserve write-only secret behavior, provider detection, check state transitions, history paging, and responsive detail navigation.
- Changes to log search or layout must preserve cursor resets on filter changes, store-backed facet counts, URL state across reloads, error-versus-partial-result wording, and no-overflow behavior on narrow screens.
- Changes to platform capability discovery must preserve the distinction between a stateless platform and a temporary capability-service failure. Upload controls must not be disabled by an unavailable discovery response.
- Changes to plugin installation or update flows must keep source revision checks, permission grants, progress states, and failure recovery consistent. Plugin management checks must not install or stop binaries on a shared instance.
- Changes to activity-report or telemetry consent flows must preserve settings revision checks, provider failure states, evidence links, and the distinction between preview and saved state.
- Pebble TLS checks need the test network and host reachability setup. Self-update checks must continue to intercept update requests so they do not replace the instance under test.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A workflow file contains an invalid expression, dependency edge, permission, action input, or shell command. | The workflow can fail at dispatch or during a step instead of reaching its intended validation gate. | The Actionlint workflow runs on workflow changes and uses actionlint plus warning-level shellcheck. |
| The classifier marks a web or CLI change as unaffected, or the classifier fails. | A needed check can be skipped, or every affected gate can run with extra cost. | Area-specific outputs gate jobs, and empty outputs after classifier failure make gated jobs run rather than reduce coverage. |
| A pull request reuses a binary whose Rust inputs are not unchanged, or the console handoff is omitted. | End-to-end checks can test stale server code or the wrong web console. | Reuse requires a compatible main artifact; the E2E workflow serves the current console when the binary is reused and falls back to a fresh build on lookup or download failure. |
| A required matrix job is skipped for a pull request without Rust input. | Branch protection does not receive the expected check result. | Matrix jobs remain present and skip their steps instead of being skipped as a whole. |
| Shared database or Docker-backed tests run with unsafe parallelism. | Tests deadlock, race for ports, or consume excessive service resources. | CI uses a shared TimescaleDB where appropriate and assigns serial or limited parallel execution to groups with shared state. |
| SDK acceptance uses a shared or remote instance, or a fixture prints raw process output. | Test data can leak across runs, or credentials can enter CI logs. | The runner requires a local dedicated instance, uses an isolated database, suppresses SDK failures, and removes the test database. |
| An SDK, CLI, browser, or native protocol fixture changes without a matching native query assertion. | Client traffic may still receive HTTP success while the stored signal, link, retry count, or access boundary is wrong. | The acceptance suite uses pinned official clients, real transports, and native API checks for the resulting records. |
| A scenario shard loses its linked SDK, external fixture, or exact prebuilt binary. | The shard can fail for setup reasons or test a different platform build than the other end-to-end gates. | The scenario workflow builds and links the API and Node SDK packages, starts the required fixtures, and downloads the shared binary artifact. |
| The distributed runtime-health or multinode job is removed from the scenario workflow. | Runtime topology and worker-join regressions can pass the ordinary scenario shards. | Dedicated jobs keep distributed runtime health and multinode mTLS checks separate from the application scenario matrix. |
| A changed database image is not included in the planner's path or tag plan. | A fresh installation can receive a missing or stale database image. | Path filters and the image matrix plan changed contexts, while release ensure mode checks every required tag after publication. |
| The release starts without a successful Rust test result for the exact commit. | Published artifacts can come from an unverified revision. | The release waits for rust-tests.yml; only an explicit maintainer emergency bypass can skip the gate. |
| A release dry run pushes aliases or creates a GitHub release. | A validation run can change an operator-facing channel or publish incomplete artifacts. | Dry runs use synthetic versions, avoid pushes, and skip release creation. |
| A runtime image or architecture is absent from the release manifest. | Binaries can embed an incomplete or unverified runtime image set. | The manifest assembly requires every expected image and both architectures before binary builds and promotion. |
| Release workflow caches are written in tag or pull-request scopes that later runs cannot read. | Large duplicate caches evict the shared build data and make validation slow. | Release caches restore only; shared writes use readable main scopes and contract checks guard cache writers. |
| A dependency exception no longer matches the resolved graph or reachability. | A real advisory can remain hidden, or a stale exception can block updates. | Recheck Cargo.toml, Cargo.lock, and the dependency path whenever an advisory or upstream version changes. |
| The managed S3 check runs against a non-scratch instance, or its backup source remains referenced. | The check can leave a backup source or test data in an active installation. | Run it against a scratch instance and use its cleanup output to remove any source that backup records still reference. |
Key files
| File | Why to read it |
|---|---|
| CONTRIBUTING.md | Defines prerequisites, local setup, coding rules, tests, and the pull request contract. |
| Cargo.toml | Defines the workspace, dependency policy, the fast build profile, and the documented security context. |
| scripts/README.md | Documents the repository helper scripts and the local managed storage check. |
| scripts/ci-local.sh | Provides the short local mirror of Rust format, compile, and lint checks. |
| scripts/test-managed-s3-e2e.sh | Exercises managed S3 service isolation, lifecycle, migration, recovery, and access revocation through a running server. |
| scripts/rebuild-captcha-wasm.sh and scripts/verify-captcha-wasm.sh | Define the canonical captcha regeneration and generated-package drift workflow. |
| web/package.json | Defines web unit, browser, type, lint, build, and API-generation commands. |
| packages/…/package.json | Defines the generated typed API client's generation and build contract. |
| scripts/sentry-acceptance.sh and scripts/sentry-protocol-conformance.py | Define the cross-runtime SDK acceptance entry point, isolated fixture setup, native protocol checks, and credential-safe result path. |
| scripts/sentry-errors-conformance.mjs, scripts/sentry-feedback-conformance.py, and scripts/sentry-signals-conformance.mjs | Illustrate official client traffic for errors, feedback, traces, logs, replay, scheduled checks, and mixed signal delivery. |
| scripts/sentry-replay-demo.mjs and scripts/…/sentry-demo-telemetry.js | Define the visible synthetic browser journey and its privacy-safe replay and telemetry behavior. |
| .github/…/actionlint.yml | Defines static validation for workflow expressions, permissions, inputs, and shell commands. |
| .github/…/rust-tests.yml | Shows change classification, binary reuse, shared artifacts, service groups, SDK acceptance, cache policy, workflow contracts, and release handoffs. |
| .github/…/first-run.yml | Shows fresh-install deployment checks, quiet-log soak checks, binary reuse, and report handling. |
| .github/…/e2e-tests.yml | Shows how the shared binary and current console are prepared and how deployments are exercised. |
| .github/…/apps-e2e-tests.yml | Shows scenario shards, shared binary handoff, external fixtures, recovery checks, the multinode path, and linked SDK validation. |
| .github/…/upgrade-tests.yml | Defines release selection, candidate binary handoff, database service setup, and failure-log retention for upgrade validation. |
| scripts/test-upgrade-from-release.sh | Defines seeded-data preservation, migration backup, schema guard, and rollback checks. |
| .github/…/cache-cleanup.yml, .github/…/check-cache-save-guards.py, .github/…/prune-cargo-build-cache.py, and .github/…/prune-superseded-caches.py | Show how shared build caches stay readable, bounded, and safe to prune. |
| .github/…/test-prune-cargo-build-cache.py | Shows the regression proof for stale Cargo output removal and cache-save guard rules. |
| scripts/test-compose-security.sh | Defines the live security checks for the Compose runtime and its network and secret boundaries. |
| apps/…/promptfooconfig.yaml and apps/…/temps-chat-provider.ts | Define the executable AI workflow evaluation and its server-backed conversation and metadata path. |
| apps/…/scenario-catalog.yaml | Defines the failure-driven backlog and the invariants required before cases become executable. |
| tools/…/README.md and tools/…/entrypoint.sh | Explain the local multi-worker topology and the container runtime setup that supports it. |
| .github/…/dco.yml | Defines the required commit sign-off check. |
| .github/…/changelog.yml | Defines Conventional Commit validation, PR commit-range handling, and changelog preview behavior. |
| .github/…/dependency-scan.yml | Defines Rust, web, and published-container supply-chain checks, including their trigger and cache boundaries. |
| .github/…/database-images.yml | Defines managed database image planning, verification, multi-architecture publication, signing, and release pull checks. |
| .github/…/daemon-images.yml and .github/…/daemon-images-check.yml | Define cross-architecture daemon image builds, lifecycle checks, publication policy, signing, and pull-request image validation. |
| .github/…/sandbox-images-beta.yml | Defines the main-branch beta image path and its stable-channel boundary. |
| .github/…/mariadb-walg-image.yml | Defines the reviewed multi-architecture MariaDB WAL-G image publication path. |
| tools/…/smoke.sh | Shows the runtime lifecycle and isolation guarantees required before daemon images publish. |
| .github/…/release_image_manifest.py | Binds runtime images to release revisions and verifies the complete multi-architecture image set. |
| .github/…/nightly-release.yml | Defines nightly tag selection, Rust test gating, and explicit dispatch into the release path. |
| .github/…/release.yml | Defines the artifact build path for tags and dry runs, including the exact-commit test gate, shared web assets, runtime image verification, managed database image handoff, restore-only release caches, attestations, and promotion. |