# Run402 Platform Updates > URL: https://run402.com/updates.txt > Format: Machine-readable changelog, newest first > See also: https://run402.com/humans/changelog.html (human-readable) --- ## 2026-11-06 - **A function's triggers are part of its release.** `functions.replace` with an `app_repo`, `schedule` or `email` trigger no longer fails its plan with `RUNTIME_KERNEL_PLAN_DIVERGENCE`. Adding, changing or removing a trigger on a function whose code did not change plans as `functions.changed` with `fields_changed: ["triggers"]` and takes effect, where it used to plan as a noop and store nothing. Redeploying the same triggers stays a noop. An omitted `triggers` means none, so a function sent again without them loses them, and the plan names the change first. - **A function trigger can watch every app repo of a project.** `{ type: "app_repo", repo: "*", paths?, run }` runs the function on a commit to any repo of the project, including repos created after the deploy, so an app that makes a repo per user or document needs no redeploy for each one. `payload.event.repo_name` names the repo. `"*"` is the only pattern `repo` accepts. - **`push.send` reaches the app's own phone app.** A project gives Run402 its Firebase service-account key once (`POST /projects/v1/:project_id/push/providers/fcm` with `{ service_account }`, `run402 push fcm set --service-account `, `r.push.setFcmCredential`): Run402 checks it with Google before storing it (`422 VALIDATION_FAILED`, `details.reason: "provider_rejected"`, when Google refuses it), keeps it encrypted and never returns it. The phone app, signed in with native sign-in, registers its Firebase token at `POST /_run402/push/devices` on the app's host with its session's Bearer (`{ provider: "fcm", token }`; a cookie never counts; `403 PUSH_PROVIDER_NOT_CONFIGURED` before the key is set). The same `push.send` then reaches the user's browsers and devices in one message against the same daily cap, answering `web_devices` and `native_devices` beside `devices`. `data` (string values, at most 2,048 bytes) reaches a device as a data message with `run402_message_id`, `run402_url` and `run402_tag`, never the title or body, so an app keeps its users' words off Google; without `data` the phone shows the title and body itself; browsers never get `data`. A device stops receiving the moment its native session ends (sign-out, sign-out-everywhere, revocation, 90 days idle, user or project deletion). `GET /projects/v1/:project_id/push` lists the devices and the key's public fields (`providers.fcm`, with `last_error` when Google refused it); each delivery in the message read carries `kind: "web" | "native"`. Needs the next `@run402/functions` for `data`. - **A phone app signs in with Google in the phone's own sheet.** A project lists the Google OAuth client IDs its phone apps sign in with (`PATCH /auth/v1/settings {"google_client_ids":[...]}`, `run402 auth settings --google-client-ids`, `r.auth.settings({ google_client_ids })`): the web client ID the app passes to Google and each Android or iOS client, from the app owner's own Google Cloud project. The app gets a nonce (`POST /auth/v1/native-sessions/nonces`), shows Google's sheet with it (Android Credential Manager), and sends the ID token to `POST /auth/v1/native-sessions` with `{ provider: "google", id_token }`. Run402 checks Google's signature, the issuer, that the token's `aud` and `azp` are listed, its expiry and the single-use nonce, then resolves the user as hosted Google sign-in does: the same Google account is the same user on the web and in the app, an invited user is claimed on first sign-in, and the email-domain allowlist and `public_signup` apply. The answer is a native app session: an opaque access token for an hour and a refresh token that rotates (`POST /auth/v1/native-sessions/refresh`) and keeps the app signed in until it signs out (`POST /auth/v1/native-sessions/end`) or the session goes 90 days without a refresh. A refresh token used twice ends the session. Errors: `401 R402_AUTH_ID_TOKEN_INVALID` (`details.reason`), `403 R402_AUTH_NATIVE_SIGN_IN_NOT_CONFIGURED`. - **A phone app calls its site's routes as its user.** `Authorization: Bearer ` on any routed path of the project's hosts, managed or custom domain, gives the function the same actor context a browser's session cookie gives it: `auth.user()`, `auth.requireUser()`, `requireAuth`/`requireRole` gates and `db(req)` see the user, and the function never receives the token. An expired token is `401 R402_AUTH_SESSION_EXPIRED` (refresh), any other dead one `401 R402_AUTH_SESSION_INVALID` (sign in again), both before the function runs. The account session list labels these sessions `kind: "native_app"`, and sign-out-everywhere ends them. ## 2026-11-04 - **A token for one app repo.** `POST /projects/v1/:project_id/app-repos/:repo_name/tokens` with the service key mints a token, `read` or `write`, for a minute to a day, usable as the git password and on that repo's read and commit routes, and nothing else. It expires by itself; `DELETE …/tokens/:token_id` stops it sooner, and it also stops with the credential that minted it, the repo, and a change of owner. `repos.open(name).createToken({ access, ttlSeconds })` in `@run402/functions`, `r.appRepos.createToken` in the SDK, `run402 app-repos tokens create` in the CLI. Used elsewhere it answers `403 APP_REPO_TOKEN_SCOPE`; expired or revoked, `401 CREDENTIAL_REVOKED`. - **Git prints why it was refused.** Every refusal on an app repo's git routes is now `text/plain`, which git shows as `remote:` lines, with what to do next. It was JSON, which git discards. - **A deleted project's files stop serving at once, and its content is released.** `GET /storage/v1/blob/:key` and the CDN origin answer 404 from the moment a project is deleted. Within hours the hourly retention sweep removes its blobs, URL refs, image and video outputs, asset versions, function bundles and releases, revokes any unexpired signed link, and bytes no other project holds are deleted after the 30-day garbage collection grace. A live project holding the same bytes is unaffected. - **A deleted project's snapshots are deleted, and a kept scheduled snapshot stays restorable.** Within hours of a project's deletion the hourly retention sweep removes every snapshot it had, `manual` ones and those a past restore referenced included, along with its restore records. A `scheduled` snapshot now reads `status: "ready"` with `expires_at: null` however old it is: rotation alone retires it, so an organization that stops capturing and renews can still restore its last seven. ## 2026-11-03 - **A deploy with no new migrations no longer pauses your database.** A commit whose migrations are all already applied with identical checksums takes no pre-migration snapshot, holds no write pause and sets no migrate gate, so SQL calls keep working through it. Its response carries `snapshot_skipped_reason: "migrations_unchanged"` and no `restore_point`. A commit with any new migration snapshots as before. - **An uploaded video can be prepared to play and be read.** A function-delegated upload of a `video/*` file declares `video: { transcript?, language?, max_cost_usd_micros? }` (`createUpload({ video })` in `@run402/functions`). Once the upload completes, run402 runs one GPU job that makes a web copy (H.264 MP4, at most 1280 px on the long side, `+faststart`, deinterlaced, HDR tone-mapped, square pixels, stereo whose channels cancel in mono corrected), a poster JPEG, and with `transcript: true` a timed transcript in the spoken language (`run402.transcript.v1` JSON, whisper large-v3-turbo with voice activity detection, `language` skips detection). The outputs are stored against the original's bytes, counted in the organization's storage, signed with `variant: "video_web" | "video_poster" | "video_transcript"` on both sign routes, listed under `video` on the upload read and in `GET /storage/v1/blobs`, and deleted when no blob holds the original any more. The upload's `on_complete` function hears the result in a second durable run (`asset_video.completed` / `asset_video.failed`; `uploads.handler`'s `onVideo` / `onVideoFailed`). Price: every started minute of source, at least 5, at $0.012 a minute plus $0.001 with a transcript (`video` in `GET /tiers/v1`), debited once from the allowance as `managed_job` when the outputs exist; a video longer than the ceiling fails `MAX_COST_EXCEEDED` before any work and costs nothing, and the longest accepted is three hours. The same bytes uploaded twice are prepared once. - **Managed jobs wait for capacity instead of failing.** A runner launch refused for capacity or quota tries the job type's other instance types and AZs on spot and then on-demand; when every placement is refused, a first attempt goes back to `queued` for the next dispatch tick, and fails `RUNNER_CAPACITY_UNAVAILABLE` only after about three hours of ticks. ## 2026-11-02 - **One mailbox can hold every address of a custom domain.** A ProjectDomain names a catch-all mailbox with `mailbox_addresses.catch_all: ""` beside `all_mailboxes: true` (full receive takeover or subdomain mode). Mail to any local part no binding or mailbox owns lands there, and a send from it names `from_address` to go out as any of them (`tal@example.com`, `barry@example.com`), with `from_name` as before; `run402 email send --from` and `run402 domains connect --catch-all` pass them. Every inbound message now carries `delivered_to`, the addresses of the mailbox it was written to, on the message, the `reply_received` payload and email-trigger runs. A catch-all admits a reply only to the addresses that wrote to its sender, and reputation is per address: three hard bounces or a complaint suspend that address (`SENDER_SUSPENDED`, a `sender_suspended` event) while the others keep sending, and the whole mailbox stops at ten bounced recipients across its senders or complaints on two of them. Refusals are `FROM_ADDRESS_NOT_ALLOWED`, `FROM_ADDRESS_NOT_EFFECTIVE` and `SENDER_SUSPENDED`, before any quota or provider call; `POST /mailboxes/v1/:mailbox_id/senders/status` reactivates a sender. A custom-domain local part bound to a differently named mailbox through `addresses[]` now reaches that mailbox instead of being dropped. Run402 Core refuses `from_address`. ## 2026-11-01 - **Security hardening across sign-in, payments, transfers, tenant SQL and the MCP sandbox.** A SIWX message must carry a domain on the gateway allowlist and an `issuedAt` no older than five minutes and no more than a minute ahead; admin sign-in uses the same checks. Starting a project transfer needs an owner or admin membership: no grant, not even `*`, authorizes it, and `transfer:initiate` is no longer a grantable capability. The paywall spends an organization's allowance for an x402 header only when the request's own `SIGN-IN-WITH-X` proves the paying wallet, a refunded charge's identity is debited again on retry, and one image charge buys one image. Hosted `/auth/*` routes act only for the project their host serves. Tenant SQL refuses advisory locks, `pg_sleep`, timeout changes, and functions named in quotes to get past the screen, and runs under a 300 s statement timeout. A redeemed handoff or invite key no longer replays for a principal whose membership ended (`HANDOFF_KEY_ALREADY_REDEEMED` / `INVITE_KEY_ALREADY_REDEEMED`). In the next SDK release, an MCP `run` snippet's local-file and local-state methods (`assets.uploadDir`/`syncDir`/`prepareDir`, `sites.deployDir`, `archives.inspect`/`verify`/`importToCore`, `doctor` with a path, `wallets.use`/`rename`/`bind`/`unbind`/`remove`, `orgs.use`/`clear`/`bind`/`unbind`) refuse with `SECRET_REQUIRES_CLI` and the CLI command. - **A service key acts only on its own project.** Every route that names a `:project_id` and takes a service key (functions, secrets, schedules, `promote-user`/`demote-user`, publish, events, push, REST) answers `403 PROJECT_SCOPE_MISMATCH` with an `edit_request` next action when the path names a project other than the key's own. Tier purchases (`POST /tiers/v1/:tier`) start, renew or change a lease only from a payment the x402 paywall verified, the allowance, or MPP; a request let through without one gets `400 TIER_PAYMENT_IDENTITY_REQUIRED`. An earlier payment never pays for a later request: each `POST /generate-image/v1` and each tier request is charged on its own, with or without a `SIGN-IN-WITH-X` header. - **The sign-in email speaks the page's language and names the site it was asked on.** `POST /auth/magic-link/send` and `POST /auth/v1/magic-link` take an optional `locale` (BCP 47): the email is rendered from run402's own translations in English, Hebrew (right to left) or Russian, and in English for anything else; the field selects a translation and never contributes text. A request on a custom domain of the project names the app by that domain in the sender name, subject and body: its registrable domain when the organization controls it (a delegated hosted zone or the apex bound to one of its projects), else the full host, so a code asked for on `tal.kinvestigator.com` arrives as `Sign in to kinvestigator.com (HH:MM UTC)`. A managed `*.run402.app` host, or a code-only SDK request with no `redirect_url`, keeps the project name. The SDK's `auth.requestMagicLink({ locale })` and the CLI's `run402 auth magic-link --locale` pass it. - **Operation statuses are the ones the gateway produces.** `GET /apply/v1/operations/:operation_id` and the operations list never reported `needs_repair` or `rolled_back`; the OpenAPI enum, the SDK's `OperationStatus` and terminal set, and the `status` filter now match (a filter naming either answers `400 Invalid status`). A commit error's `mutation_state: "rolled_back"` is unchanged. ## 2026-10-31 - **A function can hand its users direct uploads.** A deployed function opens an upload for one asset key on behalf of one of its users (`POST /apply/v1/asset-uploads`, service key) and returns only presigned part URLs; the user's browser PUTs the bytes straight to storage, so neither the gateway nor the function carries them, up to 5 GiB per file. `@run402/functions` 4.18 ships both halves: `uploads.handler({ identify, authorize, onComplete })`, a request handler that opens, renews, reads, completes and aborts uploads for the signed-in owner only, and `uploadFile(file, { endpoint, onProgress })` from `@run402/functions/browser/upload.js`, which sends 8 MiB parts four at a time, retries, renews expired URLs, and resumes after a page reload when the same file is picked again. The browser computes no hash: the gateway hashes the finished object, and the file becomes an ordinary asset (the same AssetRef as `assets.put`, metadata, EXIF policy, image variants; an image the encoder refuses is stored without variants). Opening reserves the size against the organization's storage quota (403 `QUOTA_EXCEEDED` up front); only a completed upload counts. Completion is asynchronous (202 `verifying`, then `completed` or `failed`), and `onComplete` runs once as a durable function run, even if the tab closed after the last byte; an upload whose parts all arrived is completed at expiry, never thrown away. The primitives are `assets.createUpload`, `renewUpload`, `getUpload`, `completeUpload` and `abortUpload`. The storage bucket now accepts browser `PUT`s from any origin. ## 2026-10-30 - **Each DNS record is judged at its own name.** A ProjectDomain's `dns_records[]` status compared every record with the connected name's own DNS, so a correct DKIM CNAME at `._domainkey.` read `conflict` on any domain with A or AAAA records (and made the recommended DNS action `destructive`), or `missing` on one without; a web ownership TXT at `_cf-custom-hostname.` never read `present`; and a Run402-hosted zone's NS pair was looked for at a subdomain instead of at the zone's apex. Each record is now judged at its own name: an observation (connect, `actions/check`, patch, repair) also asks every other name a record is at, at its zone's authoritative nameservers, and reports each as an entry of the new `observed.dns.names[]` (`{ name, nameservers, mx, a, aaaa, cname, txt, queried_nameservers, lookup_errors }`); the connected name's own fields are unchanged. A domain last checked before this change shows its records at other names as `unknown`, with `actions/check` first, until its next check; Run402's hourly email check refreshes domains that send or receive email on its own. - **Custom domains disconnected earlier stop resolving too.** A custom domain disconnected before the 2026-10-29 fix, or one whose removal at the edge failed, kept resolving and answered `404 HOST_NOT_CONFIGURED` (`x-run402-edge: kv-miss`). Run402 now looks for such leftovers every five minutes and removes any whose domain is no longer connected to a project, so the name stops resolving within about ten minutes. A connected domain, in any status, is never touched. - **A domain's DNS is read where it is published.** ProjectDomain checks now ask the name's authoritative nameservers (a delegated Run402-hosted zone's assigned pair, else the nameservers its zone is delegated to) instead of a caching resolver, so a name connected under a hosted zone shows its A and AAAA records on its first `actions/check`, and a manual-DNS record added after connecting is seen at the next check rather than after the zone's negative TTL. `provenance.observed_dns` is `authoritative_nameservers` (it was `public_dns_resolvers`), and `observed.dns.queried_nameservers` names the servers asked. A lookup that fails is listed in `observed.dns.lookup_errors[]` as `{ type, reason }` and its field is left out, where it used to read as an empty list; `dns_records[]` that rest on it read `unknown`, an MX instruction over an unread MX set asks for confirmation, and `receive.strategy: "auto"` is not re-resolved from it. - **A domain zone on Run402's DNS provider is held only by the organization that uses it.** A connect of a name under a zone that already exists on Run402's DNS provider but that no organization holds (a zone Run402 did not create) is refused with `409 HOSTED_DNS_ZONE_CONFLICT`, naming no holder, under either authority, unless the caller's organization is the only one with domains under that zone; that organization's connect adopts the zone into its custody (`hosted_zone` then appears on its names, with the nameserver pair present). Before, a project of any paid organization could serve its content on a name under such a zone, or take custody of the whole zone by connecting its apex with `hosted_dns_zone`. Run402 never deletes a zone it adopted: disconnecting its last name releases Run402's custody and leaves the zone and its records in place (`hosted_zone_released: false`, `hosted_zone_retained: true`, with a warning saying so). If Run402 cannot ask its DNS provider about the zone, the connect answers a retryable `503 UPSTREAM_UNAVAILABLE` and creates nothing. ## 2026-10-29 - **Disconnecting a custom domain removes its DNS record.** `DELETE /projects/v1/:project_id/domains/:domain` now detaches the domain's web binding at the edge, so the name stops resolving within seconds; before, the binding and its DNS record stayed and the name answered `404 HOST_NOT_CONFIGURED`. A subdomain of a delegated Run402-hosted zone also reports the zone's nameserver pair as present instead of a missing instruction. - **Outbound email takes blind copies.** `POST /mailboxes/v1/:mailbox_id/messages` accepts `bcc`, one address or an array of up to 5, in raw and template mode; `email.send({ to, bcc, ... })` in a function, `r.email.send` in the SDK and `run402 email send --bcc ` (repeatable) pass it through. It is one message to every address, and no header of any copy names a blind copy. Each blind copy is a recipient to every limit (the daily limit, pack overage, the unique-recipient cap, the mailbox rate window), and a send reaches every address or none: a suppressed blind copy refuses it with 400 `RECIPIENT_SUPPRESSED` naming `details.field: "bcc"`. The 201 and message reads carry `bcc: [{ address, status, bounce_type }]`; a blind copy's delivery, bounce or complaint is recorded there, never changes the message `status`, and fires no `delivery`, `bounced` or `complained` webhook, though a hard bounce or complaint still suppresses the address and counts toward suspension. Replies from a blind copy reach the mailbox like any reply. A `cc` field is refused (400 `VALIDATION_FAILED`) instead of being ignored, and a daily-limit refusal carries `details.requested`, the sends the request needed. Run402 Core refuses `bcc` and `cc`. - **An organization's projects share its Run402-hosted DNS zone.** When one project holds the hosted zone for `example.com`, any other project of the same organization can connect `barry.example.com` (web, and email in `subdomain_mode`, under either authority): Run402 serves the name from the zone, writes its records there, verifies it and issues its certificate, and `actions/check`, `actions/apply` and `actions/repair` work for it, each touching only that name's records. Before, every project but the holder got `409 HOSTED_DNS_ZONE_CONFLICT`. Once delegation is observed, a hosted name with a missing Run402-written record gets `actions/apply` as `next_actions[0]` rather than a manual-DNS instruction. Disconnecting a name removes only its web binding and records; the zone is deleted with the organization's last name under it (`hosted_zone_released: true`), and otherwise the response says `hosted_zone_released: false`, `hosted_zone_retained: true`, so disconnecting the apex no longer cuts DNS for the other names. A project of another organization still gets `409 HOSTED_DNS_ZONE_CONFLICT`, naming no holder, and now also with the default `manual_dns` authority, which before could bind a hostname inside another organization's zone. - **Private assets come from a CDN, and any page can read them.** A private blob's signed URL (`POST /storage/v1/blob/:key/sign`, `POST /storage/v1/blobs/sign`, `assets.sign` / `assets.signMany` in `@run402/functions`, `r.assets.sign` / `signMany` in the SDK) is now a CloudFront link (`https://.cloudfront.net/_cas/…`) signed for that one object, where it was an S3 presigned GET. It sends `Access-Control-Allow-Origin: *`, so WebGL textures, canvas and `fetch` can use the bytes from any origin; it answers `Range` with 206; every member who views the same blob shares the edge cache, so the second view comes from the nearest edge. Deleting or overwriting the blob revokes its outstanding links: they answer 403 within a minute, and `DELETE /storage/v1/blob/:key` reports it as `signed_url_revocation: { status: "submitted" | "queued" }` (null when no link was outstanding). The response fields, TTL bounds (60 s to 7 days) and errors are unchanged, so existing callers get the new link with no code change; an original over 50 GB is still signed as an S3 presigned GET. - **A transfer cuts off the previous owner's `service_key`.** Accepting a project transfer (wallet or email) or moving a project between your own orgs now supersedes every `service_key` derived before it: the old key answers 401 `CREDENTIAL_REVOKED` with a `mint_token` next action, and the `service_key` in the accept response is the one that works. Before, the previous owner's key kept full service-role access, delete included. The `anon_key` is unchanged. Deployed functions are re-keyed automatically; one calling back into the API can answer 401 for a few seconds after the accept. - **An error code no longer contradicts its status.** When a route names no code, the gateway infers one from the HTTP status, and the message text now only narrows it within that status. Before, text alone could pick a code another status owns: a 400 whose message said "too many" went out as a retryable `RATE_LIMITED`, a tenant SQL error such as `relation "payments" does not exist` (`POST /projects/v1/:project_id/sql`, 400) as `PAYMENT_REQUIRED`, and a 400 that mentioned a signature (the Stripe webhook, a function without a `handler` export, a CI delegation that does not verify) as `INVALID_AUTH` with an authenticate action. These are now `VALIDATION_FAILED` with an `edit_request` action (and `INVALID_STATE` for a 409). Only a 429 is `RATE_LIMITED`. Codes a route names are unchanged. - **Three refusals name a sharper code.** A demo project's resetting limits (row inserts and deletes, sign-ups, uploads, function calls) answer 429 `RATE_LIMITED`, `retryable: true`, with a `retry` next action before the fork link, where they said `QUOTA_EXCEEDED`, which read as "do not retry" beside a `Retry-After`; the subtype still rides `limit_code`, and a feature demo mode blocks stays 403 `QUOTA_EXCEEDED`. An unsigned or forged call to `POST /webhooks/v1/stripe` or `POST /webhooks/v1/lightning` is 400 `WEBHOOK_SIGNATURE_INVALID`, the code `POST /webhooks/v1/stripe-connect` already used. An allowance payment identity (an `Idempotency-Key`, a SIWX header or an x402 authorization) presented for a different purchase is 409 `IDEMPOTENCY_KEY_REUSED` with `funds_moved: false` and a `new_idempotency_key` action. - **Publishing an app that never used its database works.** `POST /projects/v1/admin/:project_id/publish` on a project whose database schema was never created (a site- or functions-only project) answered 500 `pg_dump failed: … no matching schemas were found`. It now publishes the version with an empty schema, and forks of it work as before. Asking such a publish for `include_seed.tables` is a 400 saying the project has no database tables to seed. - **Tenant SQL no longer fails while the platform deploys.** During a gateway rollout, `POST /projects/v1/:project_id/sql` and other tenant-SQL calls could answer 500 `too many connections for role "tenant_p…"` because the new gateway task was refused connections the old one still held. Each project's database role now admits both tasks' connections, so these calls keep working through a deploy. ## 2026-10-28 - **A mailbox send carries up to 100 attachments.** `POST /mailboxes/v1/:mailbox_id/messages` in raw mode accepts up to 100 `attachments` (it was 5), still at most 15 MB each and 15 MB together, decoded: the byte cap is the real bound. A request with 101 is a 400 naming the maximum. The SDK and CLI references state these numbers (they said 7 MB). The SDK's `email.updateMailbox` and `run402 email update` also set a mailbox's first-contact `inbound_policy` (`reply_only`, `allowlist`, `open`) and `inbound_allowlist`, which `PATCH /mailboxes/v1/:mailbox_id` already accepted. - **Prepaid metered usage, under one cap.** A hobby or team organization can turn its pooled quotas into metered usage: `PATCH /orgs/v1/:org_id/billing/metering { enabled: true, cap_usd_micros }` (`run402 billing metering --enable --cap `). The lease's pools become the included amounts; storage and vault bytes above them cost $0.10 per GB-month (prorated by the day) and API calls above the included amount $0.50 per million, charged daily from the allowance as `metered_usage` ledger debits and never past the cap in a UTC month (`GET /tiers/v1` lists the prices under `metered`). The same cap bounds a **card standing order**: save a card once through `POST /orgs/v1/:org_id/billing/payment-methods/setup` (`run402 billing card setup`), set `standing_order: { enabled, threshold_usd_micros, recharge_usd_micros }`, and the card refills the allowance when it falls below the threshold. Under metering the function and secret ceilings apply per project. The gates enforce the headroom the cap and the allowance can still pay for, so a write the budget cannot carry is refused `403 QUOTA_EXCEEDED` with `fund_allowance` / `raise_metering_cap` next actions. A day the allowance or the cap cannot cover is not charged: metering suspends (nothing deleted, everything serving, the flat pool again) until the next pass finds it covered. Four owner events: `metering_cap_nearing` (80% of the cap, once a month), `metering_suspended`, `metering_resumed`, `standing_order_failed` (three declines). `GET /tiers/v1/status` and `GET /orgs/v1/:org_id/billing` carry the `metering` block. Prepaid, capped, no invoice. Spec: `specs/run402/prepaid-metered-usage.md`. ## 2026-10-27 - **App repos: plain git repos your app writes.** A project now holds git repositories its own app commits to, many per project with an always-present `default` (needs no creation; empty until the first commit). They are unencrypted content storage, not KyGit vaults, which stay the encrypted home for source. A function reads and commits with `repo` / `repos` from `@run402/functions` (`read`, `readJson`, `list`, `commit(files)`, `revert`, `log`, `diff`, `head`, `at`); one request reads one commit and reads its own writes, and a commit names the signed-in end user as author with a verified `Run402-Actor: ` trailer (the app is the committer). Commits land without conflict when their paths are untouched (`409 APP_REPO_CONFLICT` with `conflicting_paths` otherwise) and are live on the next read with no deploy. `main` is linear and fast-forward only; files are capped at 4 MiB (`422 APP_REPO_FILE_TOO_LARGE`: store media with `assets.put` and commit a reference) and Git LFS is refused (`APP_REPO_LFS_UNSUPPORTED`); the bytes count toward the organization's pooled storage. Agents use plain git over HTTPS at `https://api.run402.com/projects/v1/:project_id/app-repos/:repo_name.git` with Basic auth (password: the service key or a grant key); `run402 app-repos clone ` sets up a credential helper, and `list|create|delete|log|cat|ls` cover the rest (`r.appRepos.*` in the SDK). The control plane is `/projects/v1/:project_id/app-repos` (list, create with `from`, read, delete with `?confirm=`, commits, reverts, files, tree, diff). A release can serve a repo's latest commit with the route target `{ type: "repo", repo, path?, requireAuth?, requireRole? }` (prefix-capable, GET/HEAD, gated like a function), and a function can run on each commit with the trigger `{ id, type: "app_repo", repo, paths?, run }`. Every commit emits the project event `app_repo_committed`. A fork does not copy app repos (`fork_warnings`: `FORK_APP_REPOS_NOT_COPIED`) and a snapshot does not capture them (`excluded: ["app_repos"]`). New codes: `APP_REPO_EXISTS`, `APP_REPO_NOT_FOUND` (with a `create_app_repo` next action), `APP_REPO_DEFAULT_UNDELETABLE`, `APP_REPO_CONFLICT`, `APP_REPO_FILE_TOO_LARGE`, `APP_REPO_LFS_UNSUPPORTED`, `APP_REPO_PATH_NOT_FOUND`, and `APP_REPOS_UNSUPPORTED` from `@run402/functions` on Run402 Core. ## 2026-10-26 - **A refused GitHub Actions deploy says which subject it was refused for, and how to link it.** When a workflow's token verifies but no binding on the project matches, `POST /ci/v1/token-exchange` still answers `403 access_denied`, now with the token's own subject in `details.subject`, `details.subject_format` (`default`, or `customized` for a repository or organization that customizes GitHub's OIDC subject template, which no `run402 ci link github` binding matches), `details.repository` and `details.repository_id`, and `next_actions` naming the step that links it: for a branch or an environment, the complete `run402 ci link github --project … --repo … --repository-id … --branch …|--environment … --no-workflow`. The body is built from the token alone, the same whatever bindings the project has. Matching no longer depends on spelling in either direction: a binding written as `repo:@/@:…` now also matches a name-form token whose `repository_id` and `repository_owner_id` claims carry those ids. `run402 ci link github --repo` takes `owner/repo`, `owner@/repo@` (taking the repository id from it; a disagreeing `--repository-id` fails `GITHUB_REPOSITORY_ID_CONFLICT`) or a github.com URL, and always writes the name form; `--no-workflow` creates the binding only, for a repository whose workflow already deploys. - **A desktop-site toggle after hosted Google sign-in no longer shows `R402_AUTH_OAUTH_BRIDGE_INVALID`.** On family.run402.app, Chrome on Android's "Desktop site" right after sign-in reloaded `/auth/sign-in/oauth/complete?ticket=…`; the ticket was already used, so a signed-in user got the `400` JSON envelope. A consumed bridge ticket is now kept for an hour (never consumable again), and a replay of it on the host and project it is bound to answers the same `200` return page for its `returnTo`, with no cookie and no session minted. An unknown, expired, or other-host ticket still fails with `R402_AUTH_OAUTH_BRIDGE_INVALID`. No app change is needed. ## 2026-10-25 - **Hosted Google sign-in survives a reload, a desktop-site toggle and a restored tab.** The chain used to end in redirects, so the tab kept `api.run402.com/auth/v1/oauth/google/callback?state=…` as its original URL; Chrome on Android's "Desktop site" reloads that URL, replayed the one-time state and showed "Sign in failed: invalid_or_expired_state" to a user who was signed in. `/auth/sign-in/oauth/complete` (and the callback's link branch) now answers `200` with a page that calls `location.replace(returnTo)`, so the tab's URL is the app page. A callback replayed within an hour of its sign-in goes back to the app's `returnTo` (the origin, for `redirect` mode) and mints nothing; an unknown state still answers `400 invalid_or_expired_state`, now telling the user to go back to the app. No app change is needed; a `/signed-in` bounce page added to work around this can be removed. - **A GitHub Actions deploy from a repository with GitHub's immutable OIDC subject exchanges its token.** GitHub issues the subject claim as `repo:@/@:ref:…` by default for repositories created on or after 15 July 2026, and for repositories renamed or transferred since. A binding made with `run402 ci link github` names the repository in the plain form, so `POST /ci/v1/token-exchange` answered `403 access_denied` ("no binding matches this token") for every push from such a repository. The exchange now matches a binding's `subject_match` against the token's subject as sent and, when the ids in it agree with the token's `repository_id` and `repository_owner_id` claims, against the plain `repo:/:…` form as well; nothing changes on the binding. Every refusal after the token verified is logged as `ci_token_exchange_rejected` with the subject it saw. - **A deploy into another organization commits on that organization's tier.** A wallet whose own organization has no tier could create an organization (`POST /orgs/v1`, free prototype), provision a project in it and have the plan validate, but `POST /apply/v1/plans/:plan_id/commit` answered `403 NO_ACTIVE_TIER`: the commit names only a plan, so it was judged by the wallet's own organization. Commit and rehearse (`/apply/v1/plans/:plan_id/*`), resume (`/apply/v1/operations/:operation_id/resume`) and promote (`/apply/v1/releases/:release_id/promote`) are now judged by the tier of the organization that owns the plan's, operation's or release's project, as the plan is, once the wallet may deploy to it. - **A site with no static files is served by its SSR function.** A release with a `class: "ssr"` function and no static files (a server-rendered-only Astro site) answered every request with `503 STATIC_MANIFEST_LOAD_FAILED`, on managed subdomains and custom domains alike, because such a release has no static manifest. Every path and method now goes to the `ssr` function. A release with no static files and no `ssr` function still answers `503 STATIC_MANIFEST_LOAD_FAILED`. `@run402/astro`'s `buildAstroReleaseSlice` sends an empty `site.replace` for such a build, so `run402 deploy --dir dist` no longer fails with "run402/client contains no deployable files". - **A long deploy is never run twice, and never reported as a payment failure.** A commit runs the deploy inside the request, and an image-heavy release can take minutes, longer than Node `fetch` waits for response headers (300 s). The SDK reported that as `INTERNAL_ERROR`, `retryable: false`, "before payment dispatch", and never re-sent it. It now re-sends the commit, which follows the running deploy to its result; if every attempt goes unanswered the error is `NETWORK_ERROR`, `safe_to_retry: true`, naming the operation and `run402 deploy status `. Every driver of an operation now holds its run lock, the commit included, so a resume (`POST /apply/v1/operations/:operation_id/resume`, a re-sent commit, or the auto-resume worker) during a long activation answers that it is already running (`202 resume_already_in_progress`, or `status: "running"`) instead of starting a second activation beside it. `GET /apply/v1/operations/:operation_id` says `activating` while a request is running the activation, and `activation_pending` only when nobody is, with a `resume_deploy` next action; the auto-resume worker now picks such an operation up within about a minute (then backs off) instead of in its hourly tick. `POST …/resume` on an operation that is still running in any status answers `202 resume_already_in_progress` with a `poll` action (the CLI and SDK follow it to its result); on a failed one, `409 NOT_RESUMABLE` with a `deploy` next action. CLI: `run402 deploy resume` accepts `--final-only` like `run402 deploy`. - **An SSR function may use one vCPU on team.** A function with `class: "ssr"` (the `ssr` function `@run402/astro` renders pages in) has its own memory cap: 1,769 MB on team (one vCPU; Lambda gives CPU in proportion to memory), 256 MB on hobby, 128 MB on prototype. Other functions keep 128 / 256 / 512 MB. An SSR function with no `config.memoryMb` gets its cap, so an Astro site on team renders at one vCPU from its next deploy of the `ssr` function. `@run402/astro`: `run402({ ssr: { memoryMb, timeoutSeconds } })`. A value above the cap is refused at plan time, `TIER_LIMIT_EXCEEDED` (403) with `fix.max_function_memory_mb` naming the cap that applied; `PATCH /projects/v1/admin/:project_id/functions/:name` checks a stored SSR function against the SSR cap too. - **Sign a page of private images in one request.** `POST /storage/v1/blobs/sign` takes `{ items: [{ key, variant? }], ttl_seconds? }` (1 to 1000 items) and returns `{ items, expires_at, expires_in }`, the items in order, each with `signed_url`, or with `error` (`RESOURCE_NOT_FOUND`; `details.available` for a missing variant) when the project lacks that key or variant, so one stale row does not fail the page. Same authority as the single sign route (a service key or `project_admin` key), one API call, local presigns. A server-rendered page with 57 private photos signed thumb and medium for each with 114 requests; it is one. A malformed body, an unknown variant name or a bad `ttl_seconds` is `400 VALIDATION_FAILED` naming the item. In a function: `assets.signMany(items)` (`@run402/functions`); SDK `r.assets.signMany(projectId, items)`; CLI `run402 assets sign … --variant thumb,medium`; Astro: `signAssetRef(ref, assets.signMany)` signs a whole AssetRef in one request and `signAssetRefs(refs, assets.signMany)` a page of them (`@run402/astro` 3.0, whose signer is now the batch signer). - **Look up a project user's id by email.** `GET /auth/v1/admin/users/lookup?email=` (service key) returns `{ id, email, is_admin, is_test, email_verified_at, created_at }` for a member or a watermarked test user and changes nothing, so a role table keyed by user id can be seeded; tenant SQL cannot read the auth schema, and the only other way to learn an id was the `POST /auth/v1/admin/users` upsert. No match is `404 AUTH_USER_NOT_FOUND`, whose `next_actions` name how to create the user (a test-session mint for a `