Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/outer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,7 @@ mod tests {
}

#[test]
fn stale_celld_names_are_ignored_after_the_wipe() {
fn stale_tenant_names_are_ignored_after_the_wipe() {
// No rename shims: a carried-over `CELLD_*` or `OUTER_CELLD_BIN`
// is dead config, not a refusal. (The runtime still refuses to
// start a fleet with `CELLD_*` set; that reservation lives in
Expand Down
2 changes: 1 addition & 1 deletion crates/outer/src/deploy/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3526,7 +3526,7 @@ mod tests {
}
#[test]
fn astro_website_config_passes_key_validation() {
// The shape the website template's `celld-config` integration derives
// The shape the website template's `cello-config` integration derives
// into `dist/wrangler.json` from the Cloudflare adapter's
// `dist/server/wrangler.json` (verbatim from a real `bun run build`):
// `main` rewrites to `server/…`, assets to `client`, `vars` to `{}`.
Expand Down
16 changes: 8 additions & 8 deletions crates/outer/src/http/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3354,14 +3354,14 @@ mod tests {
#[tokio::test]
async fn failed_wake_is_a_503_with_retry_after() {
let fix = fixture().await;
// A closed loopback port: nothing answers, and the binary does not
// exist, so the wake fails without touching the network.
let closed = tokio::net::TcpListener::bind("127.0.0.1:0")
.await
.unwrap()
.local_addr()
.unwrap()
.port();
// A held-but-silent loopback listener, and a binary that does not
// exist, so the wake fails without touching the network. Holding
// the socket (rather than binding and dropping it) keeps the port
// out of the ephemeral pool: under parallel load another test's
// fake fleet could otherwise bind the freed port and answer the
// wake probe, flaking the expected 503 into a proxied 200.
let _held = tokio::net::TcpListener::bind("127.0.0.1:0").await.unwrap();
let closed = _held.local_addr().unwrap().port();
insert_app(&fix.pool, "app-down", "down", closed, "public").await;
let state = ProxyState::new(
fix.pool.clone(),
Expand Down
7 changes: 6 additions & 1 deletion crates/outer/src/mcp/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2379,7 +2379,12 @@ async fn action_rows(state: &McpState, slug: &str) -> Vec<crate::mcp::actions::A

#[tokio::test]
async fn agent_action_commit_logged_with_redacted_summary() {
let (state, _) = setup().await;
let (mut state, _) = setup().await;
// The rows below assert terminal outcomes, so pin the tool's own inline
// completion arm: under parallel load the fake deploy can outlast the
// 200 ms test `tool_wait`, and the dispatch-time row would stay
// `building` (see `slow_deploys_return_in_progress` for that path).
state.tool_wait = INLINE_WAIT;
let token = api_key_for(&state, "ana@example.com").await;
create_app(&state, &token, "groceries").await;

Expand Down
2 changes: 1 addition & 1 deletion crates/outer/src/templates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use crate::store::Store;
pub const TEMPLATES_URL: &str = "https://github.com/ryuzcorp/outer-templates";
/// The pinned commit `outer templates sync` vendors. Repinning is a
/// one-line change, then `outer templates sync`.
pub const TEMPLATES_SHA: &str = "dee7c8197a0ef489ab95141e4886c5caebf1c15f";
pub const TEMPLATES_SHA: &str = "23573d7e34b0a26dfb909bfe0ec88913e69c53a1";

/// The store pointer to the vendored bundle.
const CURRENT_KEY: &str = "outer/templates/current.json";
Expand Down
2 changes: 1 addition & 1 deletion deploy/WIPE.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Kept untouched:
7. Verify empty:
- `/health` + `/ready` (200 once the fresh DB and bucket answer; the
first snapshot writes a fresh `owner.json` claim under `outer/state/`).
- `docs` tool lists `cello`, not `celld`; `outer check-config` clean.
- `docs` tool lists the `cello` spellings throughout; `outer check-config` clean.
- Create one scratch app, deploy, `GET /.well-known/cello/health`
(synthetic, no wake), stop the fleet, delete the app (exercises the
`fleets/`, `git/`, `outer/backups/`, `outer/exports/` delete paths),
Expand Down
9 changes: 4 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
#
# outer terminates TLS itself (rustls) on OUTER_LISTEN: the Cloudflare
# Origin CA certificate plus Authenticated Origin Pulls (mTLS).
# cello is the renamed celld continuation (ryuzcorp/cello): the same code
# and formats as celld `0.6.3-ryuzcorp.13`, new names, published as semver
# with SLSA provenance attestations. The two ARG lines below are the
# cello (ryuzcorp/cello): the runtime each app fleet runs, published as
# semver with SLSA provenance attestations. The two ARG lines below are the
# single source of the pin: a bump changes these values (the tag, then the
# digest from the release's publish summary).
ARG CELLO_VERSION=0.1.0
ARG CELLO_DIGEST=sha256:3d6943b69b2201f8980f73178d3530c4b7f558c2bcb3cbb99badbc67deb87689
ARG CELLO_VERSION=0.2.0
ARG CELLO_DIGEST=sha256:d0aaa5492d376139c62a0dcd6bd5717ff21f5ab1921ec48b434738cbb0b98d95
ARG CELLO_IMAGE=ghcr.io/ryuzcorp/cello:${CELLO_VERSION}@${CELLO_DIGEST}
ARG ESBUILD_VERSION=0.28.2
# Pinned formatter for agent commits. Keep in step with the template's
Expand Down
26 changes: 25 additions & 1 deletion scripts/check-pins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# - every workflow action is pinned to a full commit SHA (a moved tag can
# change what CI runs without a commit here);
# - the release image builds with the same Rust as rust-toolchain.toml
# (a floating `stable` broke clippy on every PR on 2026-11-14).
# (a floating `stable` broke clippy on every PR on 2026-11-14);
# - the Cello runtime is pinned by tag + digest (a floating tag would
# change what the release image runs without a commit here).
set -eu
cd "$(dirname "$0")/.."

Expand All @@ -23,4 +25,26 @@ if [ -z "$channel" ] || [ "$channel" != "$image" ]; then
status=1
fi

# - the Cello runtime is pinned by tag + digest, and the image ref is built
# from exactly those two values (a floating tag would change what the
# release image runs without a commit here).
version=$(sed -n 's/^ARG CELLO_VERSION=\(.*\)$/\1/p' docker/Dockerfile)
digest=$(sed -n 's/^ARG CELLO_DIGEST=\(.*\)$/\1/p' docker/Dockerfile)
imageref=$(sed -n 's|^ARG CELLO_IMAGE=\(.*\)$|\1|p' docker/Dockerfile)
# Anchored regexes: a shell glob's `*` would accept any trailing bytes.
if ! printf '%s\n' "$version" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$'; then
echo "docker/Dockerfile CELLO_VERSION '$version' is not a semver pin" >&2
status=1
fi
if ! printf '%s\n' "$digest" | grep -Eq '^sha256:[0-9a-f]{64}$'; then
echo "docker/Dockerfile CELLO_DIGEST '$digest' is not a sha256 pin" >&2
status=1
fi
# The Dockerfile holds the unexpanded form literally.
# shellcheck disable=SC2016
if [ "$imageref" != 'ghcr.io/ryuzcorp/cello:${CELLO_VERSION}@${CELLO_DIGEST}' ]; then
echo "docker/Dockerfile CELLO_IMAGE '$imageref' is not built from the pinned version and digest" >&2
status=1
fi

exit "$status"
2 changes: 1 addition & 1 deletion web/docs/agents/frontend/website.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const POST: APIRoute = async () => {

## Ship config and schema the Cello way

1. Edit `astro.config.mjs` (`celld-config` integration), never hand-write `dist/wrangler.json`.
1. Edit `astro.config.mjs` (`cello-config` integration), never hand-write `dist/wrangler.json`.
2. Read derived keys from `dist/wrangler.json` after `bun run build`.
3. Commit migration files under `db/migrations/`; never edit an applied migration.
4. Keep the route's `CREATE TABLE IF NOT EXISTS` as a local-dev backstop matching the migration.
Expand Down
Loading