Changelog

Unreleased

Security

Added

Changed

Fixed

0.4.0 — 2026-12-04

The platform runs without Firebase, posts and pages become the blog's, and setup needs no cloud console (D22). The kernel reaches its datastore, files, identity, logging and HTTP only through ports, so the same endpoints run on Cloud Functions or in one Bun process on SQLite (serve:local). Posts and pages move into the installable blog manifest (D28), and the asset manager ships as service-compris/assets. The ceremonies (claim, install approval, authorization) are pages, pages are rendered when content is stored (D23), and game rooms run on a small host of their own (D26, D27).

Security

Holes this release closes in versions already published, with the versions affected and what to do.

None of these is in the npm package: they are in the host code deployed from this repository. So no published version is deprecated, and npm audit has nothing to find. Host operators learn of them from this entry, its upgrade steps and the three GitHub advisories, which name the repository (ecosystem "other"), not the npm package.

Two more were found and fixed before release, in code this release adds: the rooms host read up to 32 MB of body on any path for anyone (now 4 KB, on its two routes that take one), and serve:local's unsigned dev identities could be used by any web page (it now answers only loopback names, and only pages served from the same machine).

Added

Changed

Fixed

Upgrading a host

Run bun run deploy (or deploy functions, rules and hosting: this release changes all three).

0.3.0 — 2026-09-30

File storage: storage areas and the /blob endpoint (board #1136).

Added

Changed

Fixed

Upgrading a host

Deploy storage.rules and hosting too (firebase deploy --only storage,hosting), before installing a manifest that declares an area.

Deploy the functions (the new one is blob), and add {"source": "/blob/**", "function": "blob"} to firebase.json's hosting rewrites before any catch-all. A first deploy normally makes a new function publicly invokable; check that blob is. Signed-URL delivery additionally needs the functions service account to hold "Service Account Token Creator" on itself; without it, files are streamed (correct, just proxied).

0.2.1 — 2026-09-26

Two fixes reported by tosijs-virta, the proving consumer.

Fixed

⚠️ Action required on existing hosts

Documents written before 0.2.1 may carry an email address in _by.name, and publicly readable ones (posts) are still served with it. The filter applies to new writes only. To find what to fix:

Verified:

0.2.0 — 2026-09-26

The first stable release since 0.1.0. The npm package is the decision kernel: RBAC, the write pipeline, and role resolution. The repository is a host you can deploy, claim, install onto and hand to agents. Two production hosts run it: tosijs-virta's, the consumer that broke the betas and got every break fixed, and loewald.com. The beta entries below are the detailed history. This entry is what changed since 0.1.0, which is what npm install service-compris gave you until now.

Verified for this release:

Upgrading the npm package from 0.1.0

Upgrading a host (from 0.1.0 or 0.2.0-beta.1/beta.2)

Security: what was affected

Each of these was a HOST issue. The npm kernel was not affected by any of them.

Issue Affected Fixed
Seeded role documents granted owner to claimable real addresses hosts seeded from 0.1.0 – beta.2 (remediate with audit-host.js) beta.3
A contact-email grant resolved for an UNVERIFIED email hosts with password sign-in, 0.1.0 – beta.2 beta.3
A library named system could declare the platform's system:* collections beta.1 – beta.2 beta.3
Error responses cached by the Hosting CDN across credentials hosts behind Hosting rewrites, ≤ beta.3 beta.4

Repository

0.2.0-beta.5 — 2026-09-26

The platform's own collections can run on the same rules engine as everyone else's (D19, step 2), behind a switch that is off by default. With PLATFORM_CONFIGS_FROM_REGISTRY=true, post, page, role, config, module and the install records are served from stored configs in system:registry instead of compiled TypeScript. It is rehearsed on a production clone and not yet enabled in production.

Added

Changed

Fixed

Found by the review before production

The pre-release review (reviews/0.2.0-beta.5-registry-swap.md) blocked this twice, correctly. The stored configs did not match the shipped code in five ways, any of which the swap would have put live:

A behavioural parity test (seed-parity.isolated.ts) now runs the real compiled rules and the stored ones over fixtures for every role and method, and over schemas. The seeded and compiled collection names are pinned equal.

0.2.0-beta.4 — 2026-09-25

One fix, found by the first consumer the day they put the API behind their own domain.

Fixed

0.2.0-beta.3 — 2026-09-24

A log you can trust. The first consumer (tosijs-virta) found that a sequenced collection could be silently re-sequenced by an upsert, and silently truncated by an upgrade. Both are now refused rather than applied. The pre-release review (reviews/0.2.0-beta.3-log-integrity.md) then found three security holes and a broken verify script, all fixed here.

⚠️ Action required on existing hosts

The seed fix below protects hosts seeded from now on. A host seeded from an earlier version, or one the verify scripts have run against, may still carry grants that anyone can claim — and nothing removes them.

  1. Audit (read-only; needs this repo and gcloud user credentials):

    bun scripts/audit-host.js --alias <alias>
    

    It reports claimable grants — role documents keyed on the old seed addresses (role-named Gmail addresses: owner@, admin@, writer@, rando@), and FIXED sandbox identities (sandbox-<role>, -pin) whose password was once public — and separately, per-run verify leftovers, which are not claimable (random passwords) but worth deleting. Exit 1 means claimable grants; 3 means the Auth half could not be listed. Without the repo, check role documents and Auth users in the Firebase console for the same addresses.

  2. Replace before you delete. If a claimable grant holds owner or configurator, it may be your only path in. Grant that authority to a verified identity of yours first and confirm it with GET /hello. (The audit says when this applies. Deleting first is recoverable — re-run the claim ceremony — but needlessly.)

  3. Delete the claimable entries, then re-run the audit until it is clean.

  4. Check contact-email grants for lock-out. A role that reaches its holder only through a contact email now needs a verified email (see Security). A user who signs in with a password — which never verifies, because nothing here sends a verification email — loses it silently. Bind such users by uid (userIds), or have them sign in with Google.

Added

Security

Fixed

Contract changes

Still open

0.2.0-beta.2 — 2026-09-21

Everything the first consumer found. Eight issues, all filed within a day of picking up beta.1, all closed. See BETA.md for the current guide.

Verified end to end on the consumer's own host, not only in tests: 94 live assertions across six ceremonies (scripts/verify-*.js), re-run after every change. 663 functions + 655 root unit tests.

Fixed

Added

0.2.0-beta.1 — 2026-09-20

The first release a third party can install onto. See BETA.md for the walkthrough and, more usefully, for what is not ready.

Verified end to end against a real deployed host: 64 assertions across three ceremonies (scripts/verify-install.js 27, verify-token.js 17, verify-authorize.js 20). 617 functions + 655 root unit tests.

Added

Fixed

Changed

0.1.0 — 2026-09-17

Initial publish of the decision kernel, to claim the name.