Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.

9 downloads

dbbasic-object-server/CHANGELOG.md
Install on DigitalOcean Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-object-server.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-object-server.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-object-server.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

Daniel Quellhorst Changelog for this batch. 65ef78d 3 hours, 8 minutes ago History
CHANGELOG.md · 121.2 KB · 2102 lines

Changelog

What changed in the DBBASIC object server, written for the people who run a business on it rather than the people who build it. Entries are grouped by the problem a business would recognise ("a customer could mark someone else's invoice paid", "a coupon could be used twice", "a person who left still had access") and not by code package.

Where the problems come from: the platform is exercised by simulated companies (a café, a clinic, a shop and others that buy, sell, book, ship and close their books on it) and by research into what real businesses complain about in their software. Each entry below names the commit that fixed it, and each fix landed with a test that fails without it. Commit messages say what went wrong and what happens now; where a message says how a problem was found, this file says so, and where it does not, this file does not guess.

Hashes are short git commit ids: git show <hash> shows the change and its test. scripts/changelog_check.py lists any commit since the latest release that is missing from the Unreleased section below.

Unreleased

An identity upstream that refuses this server is reported

When the identity upstream answers 403 (this server's shared secret or audience is not accepted), every sign-in through it is refused, as before, but the box now writes an auth row to the ops log and shows an /admin/status alert naming the settings and headers to check, never their values. A 401 (one user's token is not valid) stays silent. Upstreams should answer 401 for a bad token and 403 only for a server they do not accept; an upstream that answers 403 for bad tokens will raise this alert. (757934b, 44ab567)

Tests of the real sandbox run on Linux

scripts/test_linux_sandbox.sh builds the image from one commit and runs the sandbox, launcher, fork-server and worker-pool tests inside it, with the launcher as root and the tests as the server user, so the tests that skip on macOS and on CI runners run against the real setup; full runs the whole suite there. The test image (never the production image) carries a small root helper that lets four tests kill a launcher-owned worker. Tests no longer pick up a deployed box's DBBASIC_* settings from the environment, and one no longer writes into the checkout. (ac4de4b, 2bbf16d, 142b784, 9232264, 4e5c1d7)

Access modes no longer open users' own objects to others

Under the public, registered and subscription access modes, a site route pointing at a user's object (u_<id>_<name>) ran it for anyone the mode let in. The docs always said a user object is reachable only by its owner, the operator, or a rule naming it; now that holds in every mode. Others get 403 "user object is not shared with this caller" unless a rule names the object, for example {"effect": "allow", "principal": "public", "actions": ["read", "execute"], "object_id": "u_42_report"}. System and package objects are decided exactly as before. POST /permissions/check now answers for an object with the same decision the gate makes, so a preview can no longer say "allowed" where the request would be refused. (adc10de, ebdba2d)

DRON patterns mean the same in every engine

A field's validation.pattern is now a DRON regular expression: a dialect Python and ECMAScript (browsers, JSON Schema validators) read alike, matched against the whole value. A package pattern outside it (lookbehind, inline flags, backreferences, \b and the like) is refused at install with the fix in the message; stored schemas keep working. $ no longer matches before a trailing newline, \d and \w are ASCII, and \s is ECMAScript's white space, so three shipped fields that use \s now treat a few rare control and Unicode space characters as browsers do. The dialect is in docs/dron.md, "Regular expressions". (d3b12a0, 0b5372a, 8241b32)

Smaller changes

  • The sandbox launcher reports how a worker it reaped ended, so the

worker-death warning carries the exit status and the memory hint for launcher-owned workers too. Replace the root-owned object_sandbox_launcher.py and restart the launcher to get it; an older launcher keeps working and reports "exit status unknown". (886f530)

  • A misspelt top-level policy key such as rulez or admin_role survives a

package install, so its finding and alert stay until it is fixed. (e54d09f)

  • Seven more unreachable cross-origin cookie checks removed; a test pins the

global refusal for each route. (f204543)

  • scripts/test_versions.sh runs the CI Python versions locally in

containers, sharded: about 3 minutes a version instead of 15. (ef4bd9c)

  • Changelog and generated docs pages kept in step with each batch. (926ceaa)

A collection's allow rules no longer open users' own objects

A user's object (u_<id>_<name>) was checked as a member of the collection its name spells, so an allow rule on tools also governed u_1_tools_x. The object route refused non-owners first, but a site route pointing at a user object did not: with allow public execute on tools, an anonymous caller could run user 1's object. Allow rules that name a collection no longer apply to user objects; the owner, rules naming the object_id (sharing), rules naming no resource and the access mode still do. Deny rules still apply by collection. A site route to a user object now needs a rule naming that object. /collections and /admin/collections list user objects per owner under a new user_objects key instead of inside a system collection. (6f011a9, 3cf56d2)

Attention counts use only fields the viewer may read

With permission enforcement on, a declared count, sum, age or detail sentence is built only from fields the viewer may read in each row, and a number that package code computes is hidden from a viewer when a schema could hide a field it reads. With enforcement off nothing changes. One shipped effect: an admin without the moderator role no longer sees the two comment-moderation counts, matching the record API, which already hides comment status from them. Field permissions are now parsed once per schema instead of once per row. (56232df, 57dd936, cc0dfca, 3a84167)

A stored allow rule wider than written can be switched off

DBBASIC_POLICY_FAIL_CLOSED_WIDENED_ALLOWS (off by default) stops applying a stored allow rule whose mistake makes it wider than written, such as a misspelt row_filter. The rule stays in the file and in the alert until it is fixed. Deny rules are never affected. A package install now keeps such a rule exactly as stored, typo included, so its finding and alert survive the install; decisions are unchanged either way. (b20da2b, 689a1c8, f77e277)

Clearer failures

  • The identity upstream answering without the expected audience (an

upstream not yet updated) still refuses every sign-in, but now writes an auth row to the ops log and raises an /admin/status alert saying what the upstream must return.

  • A warm or spare user-code worker that dies logs why (exit status or signal,

memory limit, and a hint when the memory limit looks like the cause), rate-limited, and the fallback to the single-use path is logged.

  • An object returning a value JSON cannot hold, such as bytes or a set,

answers 500 naming the type and where it is, instead of "exited without a result".

  • object_sandbox.py --status run as the wrong user says to rerun it as the

service user instead of "REFUSED".

  • The migration tool waits out the old server's rate limit (HTTP 429), and

reports objects it could not re-read as "could not verify" (exit 3) instead of as mismatches.

(ee11de4, 5c4212e, c3af70e, 93480a6, 4b2cfaa, bdcaef6, 174fa13)

Smaller changes

  • Revoking a share runs the delete hook, removes only the row it judged, and

publishes the change event, like any other delete. Its answers are unchanged. Unreachable cross-origin checks were removed from DELETE /api/files and the share routes; tests pin the global refusal. (a2b235f, 24c6306, 897b93b)

  • /admin/status, /collections and /admin/files no longer resolve every

stored file's path: about 3 s down to 0.1–0.2 s with 11,000 files. (cbce3f2)

  • The tools image includes markdown. (dcd2d7d)
  • The conformance replay can record one intended change for every step that

issues a request, used for the new keys on /permissions/status and /collections. (368d2f9)

  • The built-in /docs pages are generated from docs/ by

scripts/sync_app_docs.py, and a test fails when they drift; the install pages now give the commands install.sh runs. Reinstall app-docs 0.1.1. Docs no longer cite line numbers, and a test keeps it that way. (afa6c7a, a7f539d, 3fb8890, 88bbf18, e1c40f1, 4620a24)

A mistyped permission policy is refused when saved, and reported when stored

Saving the policy (PUT /permissions/policy, or installing the starter policy) is held to DRON. A misspelt rule key, an unknown effect, action, principal, operator or $-variable, a value of the wrong kind, or a date that does not parse is refused with a 400 naming the rule and key, before anything is written. Before this, a misspelt row_filter was dropped without a word, so an own-rows allow applied to every row, and a deny with an unknown principal or a bad expiry never applied.

A policy file already on disk is read exactly as before, so nothing changes on upgrade. Its mistakes are now reported on /admin/status, /permissions/status, /permissions/unshipped, the startup log and the restore preview, saying which rule, what the engine does with it today and how to fix it. Mistakes that widen access are marked serious; while one stands, a save that writes the affected rule back unchanged is refused, so re-saving cannot quietly make the mistake look intended. A script that saves a hand-written policy with a mistake now gets a 400. (94a6681, 0a4c717, 239129a, 2cfe252)

Every record write goes through one gated path

A record create, update or delete arriving over the record API, the MCP bridge, file uploads, DELETE /api/files or WebDAV (PUT, DELETE, MOVE, COPY) now runs the same checks in the order docs/dron-write-semantics.md states, instead of a copy per route. A test fails if a handler writes around them. Three file routes were looser than the rest by accident and now match:

  • an upload asks field permissions, like any other create;
  • an upload asks relation.requires, so a signed-in user can no longer file

an upload under a project they cannot read (which made it readable to that project's members);

  • the upload's answer shows only the fields the uploader may read.

Everything else answers as before. Share grants, preferences, page views and chat history are not record writes by a caller and are marked as such. (5540ea8, 1f43584, fecc8f3, dd670b2, 9e2629c, 8938cc5)

Notifications and feeds no longer show fields the reader cannot read

With permission enforcement on, a notification is checked for each recipient when it is delivered: the recipient must be an active user who may read the row; the text is built only from fields they may read; a rule matching on a field they cannot read does not fire for them; and a change confined to fields they cannot read tells them nothing. The activity feed titles a row from readable fields only, and the cafe counter's history shows only readable fields (app-counter 0.9.1, reinstall). With enforcement off or in audit mode nothing changes. Notifications already delivered are not re-checked if access is narrowed later. (1dce722, 314ed23, f89ed17)

DRON: manifests checked fully; policy and exchange documents described

  • A package install refuses the remaining manifest values the schema already

refused: a null section, and nav, attention, schedule and connector values of the wrong kind. Clear an attention door by leaving nav_id out (a blank nav_id is refused).

  • dron/dron-policy.schema.json describes the deployment policy file, and

dron/dron-document.schema.json the signed exchange envelope and its ten document kinds. Neither changes how anything is loaded or signed.

(4f7ee1a, 776703e, 38572ba, acf9602)

The fast path for user code never started on free-threaded Python

On a free-threaded Python build (3.14t) the warm worker that runs user objects stopped right after starting, without a word, so every call took the slower single-use path. The memory limit it set on itself was already below what that kind of interpreter reserves at start. The limit is now counted on top of that reservation on free-threaded builds; ordinary builds are unchanged. A spare worker taken at the instant its replacement finished was also not replaced, costing one slow call later. (878b63e, cfcf8f4, 6189b35, 5a5c3be)

A record's revision could be used to guess a hidden field

The _rev returned with a record was a plain fingerprint of the whole stored row, so someone who could see every field but one could try each possible value of the hidden one against it. It is now keyed with a secret each server makes for itself. If-Match works as before. Upgrade note: every revision changes once, so a client holding an old one gets a single 409 and succeeds after reading the record again. The key is kept with the server's other secrets and is not in backups. Reinstall app-documents (0.1.3). (5dfde37, b80ad9c, 7d7537b)

More package mistakes are caught at install

A package install now also refuses a section or value of the wrong kind that used to be silently dropped or misread: hooks or views written as text, a field list that is not a list of names, a length that is not a whole number, a pattern that does not compile, a field with both a formula and a rollup, a blank name, and a list of principals in a field's permissions under a key the engine ignores. Stored data is read as before. (6c4a23d, b718f2c, ed43a48, a79b026, f359173, a7aebfd, 2781378)

A list filter could reveal a field the caller cannot see

A person who could not see a field on a row could still filter the list on it, and learn its value from whether the row came back. The answer to a create, update or delete also returned the whole stored row, including fields the same person's read hides. And when a time-limited rule expired partway through a list request, the row came back with every field. A filter now matches a row only where the caller can read that field on that row; write answers show the row as the writer's own read would (only the id, if they may not read it); and a list uses one clock reading for every decision it makes. Clients that read back a field they may write but not read no longer receive it. (92b6f1e, ae7dd9c, 2649a97)

An edit could land on a record that had just changed hands

Permission to update or delete a record was judged on a copy read before the write lock, so an edit could land on a record reassigned in between. The write is now refused with 409 and "code": "conflict" when the record changed after it was judged; read it again and retry. (c479cb3)

A "deny before this date" rule refused nothing

A rule comparing a date with a stored timestamp never matched, because the two could not be compared and the failure was read as "no match". Dates and timestamps in rules and list filters are now all read in UTC (a date alone is midnight UTC). A deny whose condition cannot be judged (a blank or missing value) now holds. Upgrade notes: a deny written as "on or after a date" also refuses rows where that field is blank, unless the rule adds a not-blank condition; and an allow rule with a date bound, which granted nothing before, now grants what it says. No shipped package has such a rule. (a0b6227)

Comments could not be approved by anyone

No one, the admin token included, could move a comment's status over the API. Moderators (role:moderator) can now read every comment and approve or reject it, on forum threads and on profile guestbooks; they cannot change its text or author, delete it, or approve their own. An AI agent that moderates is a user with that role and an API key, not the admin token. Moderators get a count of comments waiting and a page listing them. Other roles can no longer edit the text of someone else's comment. Reinstall app-thread (0.2.0) and app-worker (0.2.0) and assign the role. (6ffb779, 476e56d, d38b42e, 45e89bc, b93c301)

Scheduled jobs never ran on a Docker or one-click install

The Docker image and install.sh left out the library that works out when a cron schedule next runs, so invoice aging, recurring journals, the biller and every other scheduled pass could never run, and the daemon's warning did not show in docker logs until it stopped. Both now install it, and the daemon's output is no longer held back. Docker: rebuild the image. Installed with install.sh: run pip install -e '.[server,scheduler]' and restart the daemon. (629645b, bcceca9, 8c8df1c)

DRON 0.2: packages say which version they were written for

A package manifest may declare "dron": "0.2". An install is refused when the value is malformed, names another major version, or names a later minor version than the server reads; a package without the key installs as before. A package install also now refuses the remaining values only the schema caught: a min or max that is not a number, a field permission level that is not edit, read or hidden, a relation with no collection, a formula or rollup on a field that is not computed, a rollup that could never compute, a hook name that is not an object id, and an unknown list_mode. Stored data is read as before. What the engine does on a create, update and delete is written down in docs/dron-write-semantics.md, each statement held by a test. (b03c26c, 6dff507, ba3a8bc, ff9c99e, dd2e965, 79261dc, b33ab96, ca4d0cb, 562c091, 8981837)

The collections list missed a collection on Python 3.10 and 3.11

A collection whose records file was a dangling link was found by name but left out of the listing on Python 3.10 and 3.11. Three tests that failed or flaked on Python 3.10 to 3.13 are also fixed. (2de77cf, 9c89033, baf5fc4, 275c8e1)

A new user could inherit sessions or API keys left under its id

A session or API key whose user had been removed stayed dormant until it was next used. If a user was later created with the same id, whoever held the old token was signed in as the new user. Creating a user now refuses when a password, a live session or an API key is stored under the id, and says how to clear them (new command clear-leftovers --user-id <id>). Signup clears them. First-time setup and create-superuser keep only the password they have just set and clear the rest. An operator rebuilding a lost users file should restore it from backup, or run clear-leftovers for each id first. (4311b7f)

A user listed under two different accounts is refused

A user with two rows naming different accounts was treated as belonging to no account, which skipped the checks for a disabled or missing account. Such a user is now refused with 403 account_unusable (reason conflicting) until the extra row is removed. Rows that agree, and users with no account, behave as before. (2e765d1)

The status page says when an identity source was refused

When DBBASIC_IDENTITY_VERIFY_URL was set but the source failed the new rules, the only sign was a line in the startup log. GET /admin/status now shows an alert with the reason and the settings to fix, and GET /permissions/status reports it too. A test also confirms that credentials left under a user id give an upstream identity with the same id nothing. (31c2b9c, e7ea693)

Identity sources: stricter rules for trusting an upstream sign-in server

A server set up to accept sign-ins verified by another server (DBBASIC_IDENTITY_VERIFY_URL) now applies five rules. Anyone using an identity source must change configuration when upgrading; a source that does not meet the rules is refused with a startup error and the server starts without it.

  • The verify URL must be https, or http only to this machine. Redirects

are not followed. A shared secret (DBBASIC_IDENTITY_VERIFY_SECRET) is sent with each request and is required for any upstream that is not on this machine. The upstream's answer must name this server (DBBASIC_IDENTITY_AUDIENCE, required), so an answer meant for another server is not accepted here. (42f03c9)

  • An upstream identity whose user id matches a local user is refused unless

that user has been linked to the source (set-identity-source, or identity_source when creating the user). Before, the upstream could sign in as any local user by naming its id. (0f8d99d)

  • The upstream confers only the roles listed in

DBBASIC_IDENTITY_VERIFY_ALLOWED_ROLES, and none when it is unset. Administrator roles are never conferred. (d40d208)

  • A verified identity is remembered for at most 60 seconds, whatever is

configured. (260864a)

  • The 3 second limit on a verify call now covers the whole exchange, so an

upstream that answers one byte at a time can no longer tie up the server's verify slots. (b991bec)

A supported way to change an account's subscriptions

There was no supported way to change what an account is subscribed to. An administrator can now set the list with PUT /identity/accounts/{id}/subscriptions or the set-account-subscriptions command; an empty list removes them all. The change applies on each member's next request without signing anyone out, and who changed what is recorded. API keys carry only the user's own subscriptions, as before. (1842e61)

A user whose account record is missing is refused, not let through

If a user belonged to an account whose record was missing or unreadable, the account checks were skipped and the user was treated as if the account were in good standing. Sign-in, sessions and API keys for such a user are now refused with 403 account_unusable, and the refusal is logged. Users who belong to no account are unaffected, and restoring the record restores access. After upgrading, check for users whose account has no record (GET /admin/ops?kind=auth&event=account_unusable). (a882630)

Package restore kept no history and could quietly loosen permissions

Rolling a package back to an earlier restore point overwrote the change histories with the snapshot's copy, so everything recorded since then was lost, including the record of the install itself. A restore now keeps every history (object versions, source changes, schema versions, record changes, file changes, the package change log and the logs) and adds the restore to each one it touched, naming who did it and from which restore point. (3a1e3cd)

A restore also puts the permission policy back to its older state. It now shows the difference first: rules added, removed and changed, with anything that loosens access called out. Over HTTP, POST /packages/{id}/restore with "preview": true returns the difference and a policy_diff_hash; a restore that changes policy is refused with 409 unless it sends that hash back, and refused again if the policy changed in between. On the command line, object_backup restore --overwrite prints the difference and asks for confirmation; --yes applies without asking and --preview only prints. If the difference cannot be worked out, the restore is refused. Scripts and clients that restore packages must add the preview step or --yes. (bb4d403)

Records created since the restore point are still removed from the live data by a package restore; their trail stays in the record change history.

Managers can settle any dispute; staff can open one about a shop sale

Under the shipped rules nobody but an administrator could pay out a dispute that another staff member had opened, and staff were refused when opening a dispute about a shop order. Managers and owners may now update every dispute, and only they may resolve one with a refund, a replacement or store credit (others get 403 payout_needs_manager and can still close their own dispute as no action). No role was given a right to edit orders: the action reads the order, its bill and its payments itself, checks they belong together and to one account, and caps credit at what was paid, never above the order total. Staff open a dispute about a shop sale through the new action_open_dispute. Reinstall app-disputes (0.5.0) after upgrading. (ec443cb, 41bcf96, b842221)

The reset form no longer reveals which addresses have accounts

A password reset request did less work for an address with no account, so the response time could show which addresses were registered. Every request now does the same work and gets the same answer; the email is queued after the answer is sent. (dbb3903)

Lookalike spellings of an email address count as one address

Fullwidth letters, ligatures and similar compatibility forms are now folded together, along with case, for sign-in, signup, password reset and the sign-in lockout, so a lookalike spelling cannot open a second account or earn its own run of password guesses. Addresses with invisible or control characters are refused. Stored addresses are not rewritten and existing users sign in as before. Letters borrowed from another alphabet (Cyrillic for Latin) are not detected. (ea464d6)

A new user could inherit a password left under its id

If a password was still stored under a user id with no user behind it, a user later created with that id could be signed in to with the old password. Creating a user now refuses in that case and says how to clear it (remove-password now works for an id with no user); signup clears it. create-superuser writes the password before creating the user and takes it back if creation fails. (b5ad241)

The operator is told when the sign-in lockout stops working

When the lockout cannot read the log it counts failed attempts in, sign-in still proceeds, as before. The server now logs an error at most every five minutes and shows an alert on /admin/status until the log can be read again. (21af000)

Two tests failed on a busy machine

Two tests could fail when the machine was heavily loaded, although the product behaved correctly. One expected a single refusal message where two are correct when two deliveries of the same payment arrive together; it now accepts either and checks that the order ships exactly once. The other measured elapsed time to show that requests overlap; it now proves the overlap directly. No product code changed. (970d05b, 09a3e93)

A password-reset link kept working after the password was changed

If an administrator set or removed a person's password after a reset link had gone out, for example after a break-in, the link could still choose a new password for the rest of its hour. A confirmation link could likewise overwrite a password set after it was sent. Every emailed link is now tied to the password as it stood when the link was issued and is refused once that changes. Links sent before this upgrade stop working; people ask for a new one (76f620f). A reset link also served a user whose status was neither active nor pending; only those two are served now (48c4872).

The sign-in lockout could be sidestepped by re-typing the address

Sign-in matches an email address whatever its capitals and surrounding spaces, but the lockout counted failed attempts per spelling, so each new spelling bought five more guesses. Failures are now counted once per address. Sign-in events in the operations log record the address in lower case (e64bbbf).

First-time setup could leave a password behind when it failed

When setup could not end existing sessions it stopped with an error but left the new password stored with no user behind it, for whoever next got that id to inherit. A failed setup now removes the password and hands the setup code back, so trying again works (8019457).

An account can be disabled, and that now means something

There was no way to disable an account short of editing a file, and a disabled account's people kept their sessions, roles and API keys. An administrator can now disable and re-enable an account (a route and two command-line commands). While it is disabled every request from its people is refused, by session or by API key, including people arriving through an identity server or a trusted gateway. Their sessions are ended. Their API keys are kept and work again when the account is re-enabled, because deleting them would break a customer's integrations for good. A missed payment is not a disable: remove the account's subscription instead, and the customer can still sign in to pay (a76d4d3, 137282d).

Rolling a package back could bring back a disabled user

Restoring a package to its state before an install also put back the user and account files from that moment, so a person disabled since then became active again with a working password, and roles removed since came back. A package rollback now leaves users and accounts as they are (afc4cfa). It also rolled back the permission audit log, erasing the record since the install; the audit log is now kept (2d4ba64). A full restore from the command line is unchanged. A restore's temporary file could be redirected by a planted link; it no longer follows one (b2bedab).

A sign-in token could be sent to the identity server when it should not

A server that checks sign-ins with an upstream identity server sent it API keys that were unknown or revoked here, and still forwarded the caller's token when its own session file could not be read. Neither is sent now; an unreadable session file is a 503 under enforcement (65b01ee, c917fd8).

A hosted server can refuse to start with permission enforcement off

Permission enforcement is a setting, and a lost or mistyped setting brought the server up with it off, without complaint. A server that has DBBASIC_REQUIRE_PERMISSION_ENFORCEMENT=true now refuses to start unless enforcement is fully on, and says why in one line. Without the variable nothing changes. Anyone hosting this for several users should set it (5882931).

With enforcement off, any signed-in user could start a scan reading pass

Reading pending scans spends the owner's AI budget and touches everybody's scans. The rule that kept this to administrators was only asked when enforcement was on. The processor now checks the caller itself, whatever the setting; the hourly schedule still runs it (f43ec82). Reinstall app-intake.

Audit mode left no record when a file was attached to an AI chat

In audit mode the server records what it would have refused. Attaching a file to a chat skipped that, so a would-be refusal never reached the audit log. It is now recorded like every other audited decision (19d7e4d).

The dispute rule said the wrong thing about who can pay out

The explanation on the dispute rules named the wrong safeguard. What limits a refund or store credit is the resolver's own right to change the order and its payments, which the payments package gives to managers. The text now says so, and a test over the shipped rules pins that a cashier can close their own dispute but cannot refund or credit (39b11e1). Known gap, not yet fixed: under the shipped rules a manager cannot resolve a dispute that someone else opened.

A cancelled subscription or an account move did not take effect until the next sign-in

A signed-in session kept the subscriptions and the account its user had at sign-in. A subscription cancelled on the user or on their account went on matching subscription rules until the session ended, and a person moved to another account, or taken out of one, kept the old account for account rules and row filters. A session now reads both from the user's current rows on every request, the same way it already reads roles. An account that is disabled or gone gives its users no subscriptions. A session created by an administrator with an explicit list of subscriptions keeps that list, less anything the user no longer has, and is now also held to the roles it was created with. API keys already read the user's current row. The cost is one file-status check per request for a user who belongs to an account (a0b05e9, e4c0c32).

A page could fail once in a while on a busy server, for no reason of its own

To answer quickly, the server keeps one sandboxed process started ahead of the next call to a user's object. If that process was killed just as a call arrived, the call could be handed to it anyway and come back as an error, although nothing of the call had run. This showed up as a test that failed about one run in twelve on a loaded machine. Each process now confirms it has taken a call before it reads it. When a process dies without confirming, the call runs once on a fresh process; a process that confirmed, or might have, is never run a second time, so no user code can run twice. Checked on macOS and on Linux, including inside the Landlock wall (a6779e0).

Finding and listing objects does less disk work

Each time the server listed its object sources it worked out the real location of the root folder and of every file twice per file, and each lookup of an object did the same for candidate files that did not exist. A listing now resolves the root once and each file once, and a lookup skips candidates that are not files. On the busiest simulated company this removed about four in ten of those lookups. Nothing is cached, and every file is still checked to lie inside its root, including through symbolic links (ab7d10e, aa99c35).

A customer could settle their own complaint and credit their own wallet

Resolving a dispute can refund a payment or put credit in a customer's wallet. Every signed-in user was allowed to run that action, and the only other check was that the dispute was theirs, which a customer passes for their own complaint. The action now checks for itself that the caller is staff (cashier, shift lead, manager or owner, or an administrator) before it looks anything up, and it refuses everyone but administrators when no rule names a staff role. A business whose operator resolved disputes without holding one of those roles needs to give that person the role (c9970ce). Reinstall app-disputes.

Store credit could be issued into a wallet held in another currency

A dispute credit was written into the customer's wallet as a plain number of minor units, without comparing the order's currency with the wallet's. Five dollars credited to a wallet held in another denomination would have been a different amount of money. The action now refuses when the two differ, or when the wallet's denomination cannot be read; nothing is issued and the dispute stays open (df46abd). The help text for a dispute's customer email said it was copied from the order; it is typed by whoever opens the dispute, and the text now says so (7e711e7).

Who counted the cash could be rewritten

The counted_by field on a cash count could be set through the record API, so a count could be filed under another person's name. It is now set only by the count action, which stamps the signed-in user (0eb7a36). Reinstall app-banking.

For people who build on it: the tests can run in about a quarter of the time

The full test run took seven to eight minutes on a laptop in one process. scripts/test_fast.sh runs the same tests across several processes at once and finishes in about a minute and a half. It refuses to pass if the processes together ran a different number of tests than the plain run selects, so a test cannot be dropped without notice. The plain pytest command is unchanged and stays the reference. No test and no product code changed (9dc3ca6).

Everything after the 2026.11v3 tag.

A file's owner could still read and delete it over WebDAV when the policy said no (2026-12-02)

With permissions enforced and a policy that grants nothing on files, the JSON file routes refused the owner, as the permissions guide says they should. The WebDAV folder did not ask the same question: the owner could still list, download and delete their own files there, and a delete is not something a policy change can take back. Both surfaces now go through one shared check, so they cannot drift apart again. A refused folder answers 403 and never an empty listing, because a sync client that sees an empty folder deletes its local copies. Two things get stricter as a result: a policy that grants create on files without read no longer works over WebDAV, and a WebDAV move by someone who is not the owner is refused before the file is looked up. Found by reading the two code paths side by side after an operator console reported odd answers. 2f818dd

A file's owner could still send it to the AI when the policy said no (2026-12-02)

The same gap as the WebDAV one above, by a third door. A chat attachment was read with only an "is this your file" check, so under an enforced policy that grants nothing on files, an owner could still attach a file and have its contents sent to the AI provider. An attachment now gets the same answer as reading the file through the file API. A refusal stops the turn before anything is sent to the provider, and if one attachment is refused none are sent. A refused file reads the same as a missing one. Nothing changes with enforcement off. Found while fixing the WebDAV gap. 8c2183b

A manager could hand any record to another person by editing its owner (2026-12-03)

Creating a record under someone else's name was already refused, but editing an existing record's owner was never asked about. Anyone holding a blanket "may update" on a collection, a manager on invoices, expenses and time logs, or the person a task is assigned to, could change who owns a row, and the new owner then got an owner's rights over it: on an invoice, reading the bill and resetting the client's pay link. Now an update may only change the owner if the caller could have created the record under that owner: an admin, or a role the package has expressly given "on behalf" rights. Sending a record back with its owner unchanged is not a change and still works. No shipped app reassigns ownership this way today; one that wants a role to do so must grant it. 447841f

A bill raised from logged hours went to whoever logged the first hour (2026-12-03)

An invoice generated from time and materials took its owner from the request, or failing that from the first time entry billed, so an employee could end up owning the client's whole bill. It now belongs to the staff member who raised it, like one typed by hand; only an admin can put it under another sign-in; and the customer it names must be one the caller may see. The client is unaffected: they read and pay through the emailed pay link. 26b2074 3eac85a

A cashier could record payment against any invoice, and other gaps at the counter (2026-12-03)

The counter's actions are deliberately their own permission: a cashier takes payment without being allowed to edit invoices. But the actions did not check enough themselves.

  • Given an invoice id, "pay" accepted drafts, void invoices and credit

notes, and one test recorded a 500,000 cash payment on each. It now takes payment only for an issued bill with money open, never more than is open, and everything else gets one answer. 88158bd

  • With permission enforcement off, any signed-in user could run the

counter actions. Each now checks the caller's staff role itself. 7df7975

  • A refund approval that named no item was a blank cheque. An approval

must now name what it approves, and old blank ones are not honoured. 68074a1

  • A cashier could write off any quantity of stock alone. Above a per-entry

setting (3 unless the shop changes it) waste needs a second person's approval. Cashiers gain no new sight of products or costs. fe7f2f3 After upgrading, reinstall the counter app: two of its schemas changed.

The "witness" on a cash count was whatever name the counter typed (2026-12-03)

Where an account requires a second person at a cash count, the counter could type any name, a colleague's or an invented one, and the count was rated as witnessed. A shortage then looked attested by someone who never saw it. The witness must now be another active user, and the count stays "named, not confirmed" and rated weak until that person confirms it from their own sign-in by stating the figure themselves. A different figure marks the count disputed. The count and its over/short entry are still booked at once: the platform records, it does not hold up the close. On one shared device the second closer signs in, or confirms from their own phone. There is no page for this yet, only the action. 18bc33e

Credit from a resolved complaint could be sent to the wrong wallet (2026-12-03)

Resolving a dispute with store credit accepted any wallet id, so the person resolving it could send a customer's credit to their own wallet, a friend's, or a gift card, and could tell from the answers which wallet ids exist. The credit now goes only to a wallet belonging to the customer on the order (the order, not the complaint's editable email, decides who that is), a named wallet must be one of theirs, and every refusal reads the same. An admin can still name another wallet. 969cddf

Changing someone's password did not sign out whoever was using the old one (2026-12-02)

When an admin set or removed a user's password, by the admin route or the command line, the user's existing sessions went on working. So if a password had leaked, changing it did not put the other person out. Only the emailed reset link ended sessions. Now every way of setting, changing or removing a password ends all of that user's sessions, in one shared place so a new path cannot forget it. An admin changing their own password keeps the session they are on and loses the others. API keys are a separate credential and are not ended: if an account may be compromised, revoke its keys or switch the user off as well. If the password is saved but the sessions cannot be ended, the request now says so plainly (it used to look like an unexplained error after the reset link) and sending it again finishes the job; the new password is kept rather than putting a leaked one back. b87305f

A timer or an expense could be attached to someone else's task or project (2026-12-02)

Two more of the same kind as the scan fix below. Starting a timer took the task from the request without asking whether the caller may see it, so a signed-in user could log time against another person's private task. Confirming a scan took the project the same way, so a draft expense could be put on someone else's project. In both, a real id and a made-up one answered differently (one of them with a server error), which told the caller which ids exist. Both now ask the same question the record API asks, before anything is written, and give the same refusal either way. Confirming also re-checks the books a scan points at, for scans stored before that fix. To make this possible without locking out honest users, the check that packaged apps use now understands project membership and shared records exactly as the record API does: a project member or a person a task is shared with is still allowed. A side effect: the counts on attention badges now include rows you can see through a project or a share, the same rows the lists already showed. b7612d6 a9ddaac (tests first in c300f31)

A person whose access was taken away could keep it until they signed out (2026-12-02)

A session copied the user's roles at sign-in and went on using that copy. Removing a role or switching a user off through the admin routes already ended their sessions, but any other way did not: a change made by another process, a hand edit of the users file, or deleting the user's row. In those cases a session kept its old roles, an admin role included, and a deleted user's API key went on working as a signed-in user. Now every request reads the user's current row. A removed role is gone on the next request; a disabled or deleted user's sessions and keys are ended when next presented, and switching the user back on does not revive them. The other direction got better too: a role you grant applies at once, with no new sign-in. A users file that is missing or unreadable is never read as "everyone was deleted": an enforced box answers 503 until it is back. One change to know about: a session an admin mints with explicit roles is now capped to the roles that user really holds. Measured cost: about one microsecond per request. Sessions for users deleted before this upgrade cannot be told apart from never-registered ones; use the status route to end them. Found while explaining a 403 an operator console saw as a superuser. ad621cf 458ad55

A scan could be filed against someone else's books (2026-12-02)

Document intake also took the set of books (the entity) for a new scan from the request without the check the record API makes. A signed-in user could point a scan at another person's books, confirm it, and so create a draft expense that, once approved, would post there. A real id and a made-up one also answered differently, which told the caller which ids exist. Intake now asks the same question as the record API, through one shared check, before it stores anything, and both cases get the same refusal. 8fe313b

A signed-in user could file a scanned document under someone else's name (2026-12-02)

Document intake took the owner of a new scan from the request, ahead of who was actually signed in. So one user could create a scan owned by a colleague and store its bytes in that colleague's folder, with permissions enforced or not. They could not read the result, but they could plant documents in someone's receipts queue, use up their storage, and learn from the "duplicate" answer whether that person already held a given document. A scan now always belongs to the signed-in caller; only an admin can ingest for someone else. Two more locks went on beside it: the scan processor opens only the file intake stored for that scan, so a row written by an import or a restore cannot point it at another person's file, and a scan's file reference can no longer be set or changed through the record API. Found by testing a suspected leak in the processor, which turned out to be closed from outside but unguarded inside. 2cee46a

Smaller fixes (2026-12-02)

  • An AI chat reply is no longer lost when the usage row cannot be written

(for example while the policy file is broken). The reply is returned and the missing row is logged. 0308dc4

  • The admin status page and the startup line now say which commit the

server was built from (build_commit), when the image was built with BUILD_COMMIT set. Only the admin sees it. 5db3b84

  • The Talk page's script no longer triggers Python escape warnings, and a

test keeps every source file free of them. 4a04a25

  • The permissions guide now says plainly that the daemon and the scheduler

run outside the policy, and what an admin should take from that. 09052e7

  • The tests that keep internal names out of the packages no longer read

compiled bytecode, where a short name can appear by chance. 4a358ec

A server asked to enforce permissions could quietly stop enforcing them (2026-12-02)

The most serious fix in this section. With permission enforcement switched on, the server re-checked on every request whether it was "ready" to enforce, and when a check failed it served the request anyway, to strangers too, only logging what it would have decided. So a server that started fenced could later serve every record and run every object for anyone: when the last signed-in session expired on a server where sessions were the only way to sign in, when the last such user was disabled, when the users file or the policy file became unreadable or invalid, or when the policy was set to its password mode. Found by reading the code after a new server refused to start, confirmed by running each state, fixed, and then attacked by a separate reviewer whose further findings are fixed below.

What changes when you upgrade:

  • A server with enforcement switched on that was in fact running

unenforced now enforces. Expect refusals (401, 403, 503) where pages used to answer. Check the alerts in GET /admin/status and the new permissions.mode field afterwards. To run unenforced on purpose, set DBBASIC_ENABLE_PERMISSION_ENFORCEMENT=false and DBBASIC_ENABLE_PERMISSION_AUDIT=true.

  • Audit-only servers (audit on, enforcement off) lose anonymous reads:

collection reads, record detail, search and user files need the admin token again, exactly as with no permission setting, and WebDAV with API keys does not work in that mode.

  • A record or a file asked for by id that the caller may not read answers

404, the same as one that does not exist. It used to answer 403, which told strangers which ids exist.

  • DBBASIC_ALLOW_START_WITH_BLOCKED_ENFORCEMENT no longer means "run

open". For one release it starts the server enforced without an admin token (no way in over HTTP until a token is set), then it goes away. DBBASIC_ALLOW_UNREADY_PERMISSION_ENFORCEMENT does nothing; remove it.

  • Startup refuses only when there is no admin token. An invalid policy, an

unreadable users file or no way to sign in now start with a warning, enforced.

The fixes:

  • Enforcement that is switched on is always in effect. Readiness is a

report, not a switch. b27210c c7a7372

  • A broken or unreadable policy answers 503 to everyone but the admin

token, without the parse error; the admin token can still repair it with PUT /permissions/policy. WebDAV and the feed answer the same 503 instead of an empty folder or feed, and a signed-in admin is refused admin pages until the policy is repaired. 67849ee 41d01ff aea2f39 51eec90 dca2bc2

  • A sign-in that cannot be checked is told to try again (503 with

Retry-After) instead of being treated as a stranger: sessions, trusted headers and API keys, when the users or keys file is unreadable. 4d31215 9711e4d

  • Records and files by id no longer reveal which ids exist. 193e698
  • Audit mode serves exactly what "off" serves. 124b4e3
  • The missing-admin-token refusal runs before anything that could fail.

dcbb953

  • The status says the mode in one word (off, audit, enforced),

and problems that appear or clear while running are logged and listed under /admin/ops?kind=permission_readiness. ae847aa 6c58f2a a0b966a

  • Smaller ones: odd characters in a sign-in header are refused instead

of crashing the request; an AI chat attachment that is someone else's file no longer shows its name. 30c588c 2868f7e

  • The admin's own pages keep working while something is broken. With

the policy file invalid, the admin status page and the page that reads the policy crashed for the admin token, just when an operator needs them. The status page now answers with an alert, and reading the policy returns the error and the file's text (admin token only) so it can be repaired. Pages that need the policy or an unreadable users, sessions or keys file answer 503 with the reason for the admin token, never a crash. Every admin page is now tested in every broken state. Reported by the Scroll operator console. 1faa042

  • Tests and docs: websocket, MCP, AI chat tools and the feed are

tested in each broken state; the docs describe all of the above. eb4318f 5dd0160 47c4435

Reinstalling packages after an upgrade failed for seven of them on the first pass (2026-12-02)

Found by the new release gate on its first run. Upgrade a server from the 2026.11v3 release, reinstall every package in directory order as the deploy guide says, and seven packages (banking, catalog, disputes, finance, intake, invoices, mail sync) failed with "Record field 'object_id' is required"; a second pass worked. They register an attention count in a collection that app-nav owns, and app-nav, which sorts after them, had not yet brought that collection's rules up to date. No data was lost, but the deploy reported errors.

  • **A package installed before app-nav is refreshed holds its attention

count back with a warning**, and installing app-nav registers it, so the order no longer matters. A real validation error still refuses the install. 820d8af

The one-click installer's starter-policy step never ran, and is gone (2026-12-02)

  • **A one-click server's permission rules are the rules its starting apps

ship.** The installer had a step to save a "starter" policy, but only when no policy existed, and the app installs before it had always written one, so it never ran. The step is removed rather than made to work: its extra public grants were for pages a one-click server does not have. Nothing changes on a running server; the installer's comments and the docs now say what happens. 072d254

A release gate that tries a new server, an upgrade and the browser-script tests (2026-12-02)

Two faults reached the main branch this week that the usual test run on the maintainer's machine could not see: a brand-new server that would not start, and a test that only runs where node is installed. One command now checks for both kinds before a push or a release.

  • scripts/release_gate.sh (Docker only) starts a brand-new server

with real settings and installs the starting apps, upgrades a server from the previous release with a user, records and an object on it, and runs the tests that need node. See CONTRIBUTING.md, "Release gate". 82175ab

  • Tests that need node say so when it is missing: they are reported

as skipped instead of passing without running, and carry a node marker. 3af5fb9

A brand-new server would not start with permission enforcement on (2026-12-02)

Two days earlier the server learned to refuse to start when enforcement was asked for but could not take effect, because running open while the operator believes customers are fenced is the worst failure. That check was wrong for a new server: it counted password sign-in only once a user existed, and a new server has none until its owner finishes setup. So a freshly installed server, the one-click installer's included, refused to start. Sites that already had users were not affected. Found by the Scroll operator console's test of a fresh server.

  • A new server starts with enforcement actually on. Password sign-in

counts as a way to sign in before any user exists. While setup is waiting only the health and setup pages answer; the admin token gets through. 0b75c1c

  • A policy that grants nothing is enforced as deny-all, not treated as

a reason to run unenforced: an empty server starts closed and is set up with the admin token, and a running server whose policy is deleted or emptied now denies non-admins instead of serving everything. The permissions status warns about it. 0b75c1c

  • The refusal message gives the order to set up a new server, for the

cases that still refuse (no admin token, no way to sign in, an invalid policy). 0b75c1c

Two tests that failed for reasons unrelated to the code (2026-12-02)

  • **The shell and Talk example-sync test passes again where node is

installed.** It cut the shell's chat request past the system prompt into the new context field, so the piece it evaluated was no longer valid JavaScript; this Mac has no node, so it passed here without running. Neither page's script was broken: both are now checked whole with node --check. Reported from a machine that has node. 729ecf2

  • The packing slip price check ignores the random shipment id. The

slip prints the shipment's id, and the test looked for the price digits "1200" anywhere on the page, so a random id that happened to contain them failed the run. Reproduced by running the test 6,000 times; the check still catches a price in any cell. 10a0944

Backups leave the box on a schedule, and every one is restore-tested (2026-12-02)

Until now a backup happened when somebody ran the command, and nothing proved a backup could be restored. Losing a business's records is the one failure that cannot be undone, so the server now backs itself up to a place off the box and checks each backup by restoring it.

  • Scheduled backups to a destination off the box: set

DBBASIC_BACKUP_DESTINATION and the daemon writes a snapshot there on an interval and keeps the newest N. Unchanged files are hard-linked to the previous snapshot, so each run writes only what changed. A destination inside the data directory, missing (an unmounted disk) or unwritable is refused. Passwords, keys and sessions stay out, as in runtime backups. db030f6

  • Every backup is restore-tested in a throwaway directory with the

server's own loaders: every file's hash, record counts and content hashes per collection, schemas, the permission policy and users. A corrupted snapshot fails and names the file. db030f6

  • The daemon runs backups on its own thread and logs each one; a

failed backup or restore test is an ERROR line. d292228

  • **Admin status shows the last backup and restore test and alerts when

either fails or goes stale**; admins can back up now or test now over the API. a8389d7

  • A failing or stale backup is an urgent attention count for admins,

with a /backups page and a dashboard tile. a3d987e

  • Operator guide: setup, what a snapshot holds, how to restore for

real, what the restore test proves and does not (docs/scheduled-backups.md). 2f7ddb1

  • A backup interrupted by a crash no longer shows as running. 319a439

The Docker image starts faster and carries less (2026-12-02)

Measured on the same machine before and after: Python inside the image starts in about 7 ms instead of 14 (every sandbox worker pays that), the server answers its first health check 0.58 s after the container starts instead of 0.82 s, and the image is 28 MB smaller. Behaviour is the same; the sandbox tests pass inside the new image.

  • The image no longer installs the code as an editable package, compiles

bytecode at build time, checks health with Python instead of curl, and installs dependencies before copying the source, so a code change does not reinstall them. 0daef2f

  • The server reads its version from the pyproject.toml beside it when

the package is not installed, so the image does not depend on installed metadata. 7f5cca8

A site whose users sign in through another app could be refused at startup (2026-12-02)

A server can let another application check its users' sign-ins (DBBASIC_IDENTITY_VERIFY_URL). The startup check that refuses to run with permission enforcement requested but no way for users to sign in did not count that as a way to sign in, so a site whose users all came through the other application was judged blocked and would not start. Found while preparing a site of exactly that shape.

  • A configured identity source counts as a sign-in path in the startup

check and in the permissions status. A verify address that is set but not valid does not count, and nothing is fetched at startup. 2327c56

The shell's AI answers as it writes, on current Claude models, and its spend record counts cached tokens (2026-12-02)

The AI in the shell and on the Talk page now runs on Claude Haiku 5.5 by default and shows its answer word by word instead of after the whole turn. Tools still run between rounds with the person's own permissions, and every turn is still priced and recorded by the server, the same way, whether it streamed or not. Builder mode (the tools that write object source) gets a bigger answer budget: at the old 1024-token limit, a model that thinks before it answers had little room left for the object it was writing. When the model declines, runs out of room or pauses, the person is told which, rather than shown a half answer as if it were whole.

The spend record was undercounting cached turns: Anthropic reports cached prompt tokens beside the ordinary input count, not inside it, so a turn that hit the cache was recorded as nearly free. Cached tokens are now recorded and priced at their own rates. The Claude 5.5 rows carry cache rates; where Anthropic has not published one, it is worked out from their published multipliers (reads 0.05x input, 5-minute writes 1.25x) and rounded up to a whole cent, so a recorded cost may be a little high but is never low. For older models with no cache rate, the turn's cost is left blank (its tokens are still recorded) rather than guessed. A Claude Haiku 5.5 turn whose prompt goes over 100K tokens, where the per-token rate is five times higher, is also left unpriced: the price table holds one rate per model, so it records no cost rather than the wrong one. Docs: shell-and-ai.md "Streaming", "When a Turn Stops Early", "Prompt Caching", "Cost Recording"; http-api-contract.md "AI Chat".

  • Claude Haiku 5.5 is the default model in the server, the shell, Talk

and the stored preference, with price rows for the Claude 5.5 models; stored model choices keep working. ecd5a7f

  • Cached prompt tokens are recorded and priced, with blank (not zero)

cache rates leaving the cost unknown. 1e9c886

  • Claude 5.5 cache rates are filled in: Haiku 5.5 reads 1 and writes

13 cents per million, Sonnet 5.5 10 and 250, Opus 5.5 20 and 500. The Sonnet and Opus read rates are published; the rest are derived and rounded up. Operators can edit the rows. 32bdd9c

  • Checked against the live API: chat, tool rounds, streaming, builder

mode and cache reads all work on Claude Haiku 5.5 and Sonnet 5.5. The check found one fault: a request marking more than 20 tools strict is refused, so at most 20 are marked, the ones that change something first. 2279e2c

  • The stable part of each request is cached: tool definitions and

instructions are marked for prompt caching, and the shell and Talk send the changing local time separately so it no longer makes every request unique. 1d8660f

  • Builder mode gets 8192 output tokens and high effort; conversation

gets 4096 and low effort. Both are configurable, and effort is sent only to models that accept it. 51ff31c

  • Tool calls are schema-checked by the provider for every tool whose

input can be described exactly; the five that take free-form records, changes, filters or payloads stay unchecked. 9a08eab

  • Refusals, cut-off answers and paused turns say so, and a tool call

cut off mid-argument is never run. de3510e

  • Answers stream to the page as server-sent events, with tools run

between rounds and the turn recorded before the final event; a tool call whose streamed input did not assemble is refused, not guessed. The JSON endpoint is unchanged. c8ddc2b e8b20c0 a4aae9f

  • The public /docs copy of the shell and AI guide and the chat API

section match. f101ea7

Customers' own objects answer about five times faster on current kernels, behind the same wall (2026-12-02)

Every call to a customer's own object (u_<id>_*) ran in a freshly booted, walled-off process. Measured in the production setup, most of a call's 6-13 ms was waiting, not work: for the replacement process to be started, for the used one to finish shutting down, and under steady traffic for a new one to finish booting (about 42 ms each). Now a customer who called recently has a warm parent: a process booted behind the same wall, as the same separate user, that never runs their code and never sees their data, and forks one fresh process per call. A call takes about 1.6 ms (p95 under 2.5 ms) instead of 6-13 ms (p95 20-37 ms), and four customers at once get about 920 calls a second instead of about 150. Warm parents are on by default only on kernels whose Landlock can keep one customer's code from signalling another customer's processes (ABI 6 or later: Ubuntu 24.04's 6.12+ HWE kernels, not its stock 6.8); elsewhere calls take the old path, now somewhat faster, unless the operator opts in.

What a call can see or leave behind does not change: each call is still a new process that is killed when it ends, nothing from one call (module state, the environment, files, processes, the random generator, another visitor's request) reaches the next, even for the same customer, and one customer's warm parent is never used for another. If a warm parent cannot be started or misbehaves, calls go the old way. Docs: runtime-contract.md "Warm parents" and "Cost".

  • A customer's call no longer waits for a whole process to start. Each

recent customer has a warm parent that forks one walled process per call, keeps one forked ahead, and imports what a failing call needs once. 9035137 3bb421c 021eaa6

  • The old path is faster too, for a customer's first call: the next

process is started in the background, a finished one leaves at once, and a process boots without about 9 ms of imports it rarely needs. 39fe592 4741fd8 7df6f96

  • The one part that runs as the system administrator can hand a warm

parent its channel, kills everything a finished process left behind (including processes that tried to slip out of its reach) and cleans up after processes whose parent died. 25f4623 81db6a0

  • **On an older kernel one customer's code could have stopped or killed

another customer's warm parent**, slowing that customer down. Warm parents are therefore off by default where Landlock cannot scope signals (ABI below 6); DBBASIC_USER_CODE_WARM_PARENTS=on turns them on anyway, and the startup banner and /admin/status say which applies and why. 16ad528

  • The isolation and latency documentation describes warm parents, their

limits and the new measurements. 5a8a734

An app with a typo in its rules no longer installs as if it were right (2026-12-01)

An app declares its data, its permission rules and its menu in a few JSON files, and DRON's published definition of those files already refused mistakes the server itself let through: it dropped a key it did not know, re-cased a word it half recognised and read "no" as yes. The server now refuses the same things when an app is installed or upgraded, before anything is written, and the message names the file, the rule or field, the key and the right spelling. A refused upgrade leaves the running version exactly as it was. Every app shipped here still installs; schemas and rules already on a box are read as before.

  • A misspelt row filter in a permission rule gave everyone every row. The

filter was dropped, so a rule meant to show people their own records showed them all. A rule with a key, action, principal, operator or $-variable the server does not know (row_filtr, "principal": "admin" for role:admin, $userid), a yes/no filter value, a capitalised effect or a bare list of rules is now refused. 5b394fc

  • **A misspelt section of an app's manifest installed nothing and said it had

worked** (schedule for schedules), and a misspelt key in a schema or manifest entry was a setting nobody applied. Both are refused, with the closest spelling, as are the engine-only synonyms (readonly, validation.regex and the like), with the one DRON uses. ce40d0a c483c4e

  • "required": "no" made a field required. Values written as the wrong

type (required, read_only, nav_optional as text, a schema version as text or a fraction, a description that is not text) are refused rather than guessed at. 427bc87

  • **Types, schedule kinds and menu surfaces in the wrong case were quietly

re-cased, and an unknown field type was stored as unchecked text.** Both are refused with the right spelling, and so is a transition guard naming a $-variable that does not exist (the move could never happen) or a capability written as text. fdaf5a4 cea0252

  • Two shipped schemas carried a key that never did anything (a length limit

on currency codes and a label on unit prices); they were removed rather than made to start working, so nothing anyone can save changes. 76bd778

  • The DRON and app-authoring guides say what is refused now and what is still

open. 4930453 A test that needs node now skips where it is not installed instead of failing. 0389278

Sign-in, error messages and schedules tightened after a simulation round (2026-12-01)

Found by four simulated users and attackers working against offline copies of the server: someone signing in through another app, someone writing code inside the wall, a business owner, and someone scheduling jobs. None of them got into anyone else's data; these are the rough edges they found.

  • **When the other app's sign-in check was busy or down, honest customers were

treated as strangers.** They got a normal-looking answer in which their own objects simply did not exist. They now get "temporarily unavailable, try again in a moment" (503), and are recognised again the instant the check is back, because a failed check is no longer remembered as "not signed in". 26c6cc3

  • A token the other app revoked kept working for up to a minute. The

remembered answer now lasts 30 seconds by default (a setting), and the other app can tell this server to forget one token, or all of them, the moment it revokes. Nothing in that exchange carries the token itself. 26c6cc3

  • Two sign-in headers on one request were resolved by "the last one wins".

A front proxy and this server could therefore disagree about who was calling. Such requests are now refused outright. 26c6cc3

  • The other app's answer was believed too loosely. An id like "007" or

" 7", an account name like "../x", or a web page that merely looked like an answer were accepted. Only a plain whole-number user id, a valid account name and a proper JSON answer count. 26c6cc3

  • A customer's error message exposed how the server is built. When a

customer's own object failed, the message listed the server's internal files and folders. It now shows only the customer's own lines, with their own line numbers, and the error itself. b2c9d4b efa116e

  • Customers could not see what they had scheduled. An owner can now ask

their object for its schedules: what runs, how often, when next, when last, how many times, and the last error if one was recorded. Other customers get "not found". f11fecf

  • **Scheduling mistakes were reported in inconsistent ways, and a method named

like a web request (GET, POST and so on) could be scheduled.** Every refusal is now the same kind of error with a plain message, and those names are refused. bc3cf00

  • The written contract now says all of this. Sign-in, the forget call,

error messages and the schedules view are documented. b8c4dc4

One customer can no longer crowd out the others (2026-12-01)

Found by four simulated customers and attackers run against copies of the server: one probing the wall around customer code, one signing in, one scheduling work, one running a shop.

  • **One customer's slow requests made the whole server say "busy" to

everyone.** Forty slow requests from one customer used up all eight places the server has for running objects, and another customer's ordinary request was turned away. Each customer's objects now run three at a time at most (you can change the number); a fourth gets "slow down, try again in a second" and nobody else notices. The shop owner's own requests and the system's are not held to it. e477a77

  • A customer could fill the disk. One stored 30 MB of data and created 60

objects in a row without a single refusal. Customers now have limits, each one adjustable: 100 objects, 5 MB of saved data per object, and 100 MB of stored files in all. Going over gets a plain message naming the limit and how to change it. A customer already over a limit can still delete things to get back under it. 429198e

  • Asking for permission enforcement and not getting it went unnoticed.

With the switch on but no usable permission policy, every request quietly ran without the protections the owner thought they had; only one obscure page said so. The server now refuses to start, logs the reason and what to do, and shows the same warning at the top of the admin status page. Starting anyway is possible but has to be asked for by name. 7994543

  • A scheduled job could fail every time and look healthy. A job that

crashed, ran too long or was stopped for using too much memory still counted as a successful run, with no error shown and nothing in the object's log. The job's row now records the last error, when it happened and how many runs in a row have failed (a good run resets the count), the object's log gets a line, and the scheduler page shows "failing" with the reason. e86f632

  • **Customer code could run anything an administrator had put on the

server.** A customer's object could call any shop or system object, including ones with side effects. Now it can call only those whose author has said so on purpose, one line at the top of the object. Everything else is refused with a message saying how to allow it. This is the safe default: allowing more later costs one line, taking back access already given would not. f68d796

  • Customers could see the names of the server's internal objects. A

signed-in customer's object list now shows their own objects and the system objects marked as public; administrators still see everything. f68d796

Written up in the runtime contract, the HTTP contract, the permissions model and both deployment guides. c4d9143

One customer's code can no longer break another's (2026-12-01)

Found by a simulated customer probing the wall around customer code.

  • **A customer's object could break another customer's object, and see

their files.** The wall stopped it reading other customers' files, but not changing their permissions: one line made another customer's object unreadable, and it stopped working. It could also learn the size and age of other customers' files, and which ones existed. Customer code now runs as a separate account on the machine that owns nothing and cannot even look inside the server's data. A tiny, separate starter program, the only part that runs with full rights, creates that account's processes and does nothing else. 05b4a3c

  • Customer code needed a newer Linux than most servers have. With code

running as its own account it can no longer interrupt the server, so Ubuntu 24.04's standard kernel is now enough. Without the starter program, customer objects are refused on any kernel rather than run with the hole open. 05b4a3c

  • Both ways of installing set this up by themselves. The Docker image

starts the starter program and then runs the server without full rights, with no extra permissions to grant; the server installer adds it as its own locked-down service. 4877ec0 fc1f209 912823f

  • One gap stays and is reported, not hidden. In Docker on Ubuntu 24.04,

customer code can still send network messages of one kind (UDP); the status check says so. On a server installed with the installer it cannot. 912823f

  • One test of the wall was stricter than the wall needed to be: it treated

"no access" as a failure where "not permitted" was expected; both are refusals. 0b1db70

  • A test of the books failed every evening in American time zones

because it used the local date while the server uses UTC; it now uses UTC like the server. 6eff59e

Code written by users runs behind a wall (2026-12-01)

  • **An object could read the server's admin token, other customers' data and

files, run programs and reach the network.** Only admins could write object code, so this was safe so far. It had to change before customers write their own, because on the old askrobots server a test object did exactly those things. Now each run of a customer's object gets its own short-lived process. That process cannot see secrets, files, other customers' data or the network, and reaches its own saved data only by asking the server. On a server whose Linux is too old to build that wall (Linux 6.12 or newer is needed), customer objects are refused with a clear message instead of running unprotected. 6e2b999 c0a7533 e35290a

  • **Turning on "customers may write their own objects" could hand them the

server before that wall existed.** That switch is now refused wherever customer objects cannot run behind the wall, whatever the setting says. b8bb698

Another web app's users can use their own objects (2026-12-01)

Found by pointing the askrobots web app, unchanged, at this server and running its own pages and client against it.

  • A web app's signed-in users were turned away. The server only knew its

own admin token and accounts. It can now ask a trusted app "whose token is this?" (an identity source; the first asks a Django-style verify address), remembers the answer briefly, and never treats such a user as an admin. de102a9 913e2e5

  • Objects a user created landed in the shared space. A user's objects are

now named for them (u_<id>_<name>), and only that user (or an admin) can see, run, change or delete them; anyone else is told the object does not exist, the same answer as for one that never did. de102a9

  • **Deleting an object through the API ran the object instead of deleting

it**, so an object with its own DELETE method would have run that and kept existing. DELETE ?destroy=true now removes the object, keeps its history so it can be brought back, and stops anything it had scheduled. 5003ace

Objects moved from the old askrobots server keep working (2026-12-01)

All 73 objects of the server this one replaces were run on both, side by side.

  • Counters, stored files and objects calling other objects broke. Objects

get the three helpers the old server gave them: an exact counter that never loses a count when two requests arrive together, a small file store of their own, and a way to call another object (a customer's object can call its own or the shop's objects, never another customer's). 80704e9 a15924c

  • Dashboards that refresh themselves stopped refreshing. Objects can

schedule their own work again ("every 30 seconds, refresh the weather"); the background worker now runs in every deployment, and customer objects have a slower minimum and a cap on how much they schedule. 088c738 091927f

  • Two things happening at the same moment could lose one of them. When two

requests recorded an event at once, one event was lost; now neither is. 4978b23

  • Moving a shop's objects needed hand work. A migration tool copies them

from the old server with their saved data and full history, checks every one afterwards, and changes nothing until told to. 06a6057

Running it in Docker (2026-12-01)

  • Object calls ran about 9 a second out of the box. The image now uses a

newer Python and keeps four warm workers ready: about 2,000 a second on the same machine. f032772

  • Building from a working copy produced a 6.6 GB image full of local tool

files; it is back to about 280 MB. An optional "tools" image adds the few libraries some older objects need (images, YAML, web requests). b43cd8e

Money rules the owner decided (2026-11-30)

Seven decisions from the research into how small-business software gets money wrong, accepted by the owner and built. Where a decision left a question genuinely open, it is written down in docs/logic-decisions.md ("Open: not settled by these decisions") and the system refuses rather than guesses.

  • **A refunded, bounced or deleted payment left an invoice saying "paid"

with the whole amount still owing.** Nobody chased it. An invoice's status now follows the money: once sent, its total never changes; a payment taken back reopens it and the overdue reminders start again; a credit note settles it. It can also say what used to have no word: the shop owes the customer (credit owed), the sale was refunded, or it was credited away with nothing paid. A payment can no longer be taken for money a credit note already cancelled. 7881747

  • **"Refund this soup" left the soup owing on a bill the customer had

paid.** A refund at the counter is now a credit note (the soup is no longer owed) plus the money back, so the bill reads paid for what was kept, or refunded when everything came back. Taking an item off a bill that has been sent but not paid no longer rewrites the bill: a credit note takes it off, and the bill still shows what was charged. 88fefc3

  • **Editing an item's description on a web order changed what the

customer owed.** With delivery taxed, an invoice of 23.00 became 20.90; an order dropped its 6.00 postage, or put a 2.80 discount back on; the same delivery charge was taxed 0.54 at checkout and 0.53 on the invoice. Tax is now worked out once per tax rate across the whole sale, rounded half up, and each item carries its share at the rate it was sold at; a sent invoice is never recalculated; orders keep their postage and discount. Taking an item off a sale whose tax was worked out over the whole bill now takes off exactly that item's tax instead of refusing. Tax collected goes to Sales Tax Payable instead of being counted as income. 5014b15

  • Credit notes never reached the books. A credited sale stayed in

income and its tax stayed owed to the tax office. A credit note now reverses the income and the tax at the rate the sale was charged. e735830

  • **A spreadsheet-style formula could store a fraction of a cent, or lose

the last digits of a very large amount.** Formulas now count in whole numbers exactly, round a division half up, and offer round() and floor(). 03bb296

  • **Subscriptions billed each month after it was used, and usage made at

the end of one month could be charged against the next month's allowance.** The monthly fee is now billed at the start of the month and usage at the end, each in the month it happened. Usage that turns up after its month was billed is shown, not quietly added or moved. On accrual books a fee billed ahead sits as Deferred Revenue and is counted as earned month by month. Cancelling runs to the end of the paid month; staff can instead end it now with a credit for the unused days. ef8bb29

  • **Any signed-in customer could keep a chart of accounts and post

journals, and read the journals booked for their own payments.** The books now belong to the bookkeeper and the owner. The setup lists the roles a business assigns: customer, manager (staff), cashier and bookkeeper (both optional), and owner above them. 7f95a07

  • **Selling scrap or getting a supplier rebate could only be booked as

income, and a swap of goods for services could not be booked at all.** Both now reduce the cost of goods sold, and a swap is booked as a sale (with its sales tax) and a purchase at fair value. 5266444

  • **A new set of books said "not ready" for bank reconciliation, with no

account for interest earned.** The chart now has Interest Income and Bank Fees, and setting up the accounts points the settings at them, and at Sales Tax Payable, Deferred Revenue and the new accounts above, unless the owner already chose. 37cd753

Milestone: two companies' own boxes traded with each other

  • **A supplier and a café exchanged a whole purchase cycle, box to box, with

nothing retyped.** Each runs its own box. The buyer's purchase order became a draft order at the supplier; a short shipment came back as an amended confirmation and was flagged; the invoice became a bill that only a person pays; the payment notice became a payment only after a manager matched it to the bank; a credit note arrived linked to its bill. Every document is signed with the sending company's key and kept exactly as it arrived. Failed deliveries arrived once, resends and replays were stored once, a key change kept trading, and a forged invoice, a stranger, an edited amount, a stale replay and a disconnected partner were all refused. Most small businesses' software never talks to the other company's at all: orders and invoices travel as PDFs and are retyped. Proven so far in one process without real HTTPS; partial payments, credit notes that reduce balances, units and line-by-line confirmation come next (docs/box-to-box-exchange.md, "Proven" and "What is left"). 1991977 134c9b3 3f6f39b d1c260b 25a1528 46c04f7

Counter service: corrections, voids and waste

Found by a simulated counter café ("Corner Cup", played by Haiku agents as the owner, cashiers, a shift lead and customers). This work was built alongside the box-to-box exchange and joined to it: a correction made at the counter keeps the two companies' books agreeing.

  • Cashiers and managers could not see the shop's own orders. A guest

sale is filed under the shop's account, and every grant was "your own rows", so a cashier listing orders, refunds or complaints saw nothing and the staff all used the owner's login, which made every act look like the owner's. Cashier, shift lead, manager and owner roles now see the shop's orders, invoices, payments, refunds and complaints, and the credits applied to invoices; a customer still sees only their own. 769ea60

  • A paid order could be rewritten after the money was taken. Staff

changed a paid soup into a salad by editing the order and, separately, the invoice, with no reason and no approval; the two documents then disagreed and the "paid" invoice showed money still owing. Removing an item from an unpaid order left the invoice still billing it. Now, once a bill has been paid nothing on it is edited or deleted by anyone, including the unit an item was sold in (ten kilograms cannot become ten bags): corrections are new records (a refund, a credit note, goodwill or a remake) that point at the item they correct. Once a bill has been issued and not paid, an item is taken off only by voiding it with a reason, which takes it off the order and the invoice together. 93e56d4

  • Taking an item off an unpaid order left the customer billed for it.

A cashier can now void an item before payment, choosing a reason (wrong item made by staff, customer ordered the wrong thing, quality, and others the shop adds itself). The item comes off the order and the invoice at the same moment, both totals go down by exactly that item, and the record keeps who voided it, when and why. Where the tax or a discount was worked out over the whole bill, the void is refused rather than guessing how much of it belonged to the item, because that is a decision the owner has not made yet. An invoice already sent to another company's box is not changed this way either, since their books already hold it: the item is credited with a credit note instead. f9129c0

  • Refunds did not say what they were for, and nobody approved them. A

refund carried only a line of free text, so nobody could answer "which item was refunded, how many, why, and who agreed?". A correction after payment now names the item and how many, carries a reason code, and is either money back (a refund) or a credit note that names the invoice and the item it credits. A cashier can correct up to a limit the shop sets; above it a shift lead or manager gives a one-time approval that the correction records. The same item can never be given back more times than it was sold, by refund and credit note together, even when two people try at once. Cashiers can also record the money they take at the counter themselves instead of using the owner's login. 32797ba

  • **A credit note given at the counter and one sent to another company

were two different things.** There is now one kind of credit note. One given at the counter lowers what the credited invoice still owes the moment it is issued, and owes nothing itself, exactly as one sent through the exchange does. Sent to the customer's own box afterwards, it goes with its lines, says which line of the invoice it credits, and is not counted twice. In the supplier-and-café test (374.00 invoiced, 60% paid, 18.50 credited at the counter) both companies' books say 131.10 is still owed. 32797ba

  • Food sold over the counter never came off the shelf. Stock only went

down when a shipment was sent, so a café selling soup all day still showed every bowl in stock. Now handing an order over (served at the counter, or collected at pickup) takes what was sold off the shelf at that moment, at its cost, and then marks the order collected. Goods already taken off by another route are not taken off twice, and an online order's reservation turns into the sale rather than being counted as well. If the shop has not said which shelf goods leave from, the hand-over says so instead of silently doing nothing. 0c953d3

  • **"We charged you correctly but here is something anyway" could only be

recorded as a mistake.** The only tools were a refund or an edit of the sale, both of which say the price was wrong. Goodwill is now its own record: what was given and what it was worth, why, which manager approved it, and the words the customer was told. The sale stays as charged. If the goodwill is money back, the refund points at it and can never exceed what the manager approved. ed88dc9

  • A remade dish was recorded by editing the paid order. Now a remake

keeps the original sale as it was, adds the new dish to the kitchen ticket at no charge (in the same unit as the original), records the ruined one as waste, and links all three, so stock goes down by exactly the two dishes the kitchen used. ed88dc9

  • **Recording waste with no chart of accounts left an empty journal and

said nothing.** The café had filled in which accounts waste should go to but had never set up the accounts themselves, so every waste entry left a blank draft in the books. Now nothing is written to the books until every account exists, and the answer names the accounts that are missing. Where the books are installed but no account has been chosen for waste or refunds, the system now says which setting to fill in instead of quietly skipping. 72c247a

  • There was nowhere to write down what was thrown away. A kitchen can

now log waste two ways: by count for whole items (three stale croissants), which also takes them off the shelf, or by weight per bin (a bin of peelings), turned into an estimated cost using a price per kilo the shop sets. Each entry says why, who recorded it, where it went (bin, compost, animal feed, donation, rendering, digester) and who took it. Where a destination needs a licence, the licence number and expiry are kept and the entry warns when none is recorded or it has expired; the system never claims to know what is legal where you are. Without a price per kilo the estimate is left blank rather than shown as zero. 22649f8

  • **Only the system administrator could see who changed a sale, and never

why.** Shift leads, managers and the owner can now read the history of the shop's orders, invoices, payments, refunds, complaints and corrections, for the records they are allowed to see. Each change can carry a reason, and the counter's own actions always record one ("void, customer ordered the wrong thing: changed their mind"). Managers also get each customer's complaints month by month (complaints, refunds, goodwill and remakes, and what they cost), to decide on goodwill or spot a pattern. c10030c

Who can see and change what

  • **A new install let any signed-in user run any action and read any

collection.** The starter policy carried one allow rule naming no resource, which matches everything, so on a fresh box any account could run the billing runner, the manager-only time-and-materials invoice generator, and read the email outbox. The rule is gone from the starter policy. 25b8788

  • Boxes that already had that rule were not told. The permissions report

and the startup log now flag any allow rule that names no resource as wide, and the docs say how to remove it. 3e3240c

  • A person who left, or was disabled, kept working credentials. Their

existing API key and sessions kept working and the admin route even minted them new keys, because status was checked only when a session was created. Every request now checks the user's status, leaving "active" revokes all sessions and keys (so re-enabling does not bring them back), and admins get routes to set status, set roles and offboard a user. 7e1ead7

  • **Any registered user could refund anyone's payment or record a payment

against anyone's invoice.** A relation can now declare that its writer must be allowed to update (or read) the thing it points at; refunds and payments do. A target the writer cannot see is answered like a missing one. a9e8cfe

  • **The same hole existed for lines on anybody's invoice or order, stock moves

on anybody's product, journal lines in anybody's books, messages in anybody's thread and disputes about anybody's payment.** Every such pointer now says what its writer must be allowed to do to the target, a test fails on a new one that says nothing, and an HTTP probe covers each. 1954d14

  • **A dispute of your own about somebody else's payment credited your own

wallet.** Resolving a dispute and receiving a return now check you may act on the order, the payment and each product they touch. Gift-card issue, fulfilment and the order tracking page also stopped following an invoice id typed as free text to a record with a different owner. f439403

  • **A create that named someone else as owner was quietly rewritten to the

writer, and one that named nobody was refused.** An omitted owner is now filled in with the caller; naming another person is refused with 403 unless you are an admin or a rule explicitly allows creating on behalf of others. db9b96c

  • Records with no owner showed up on staff screens. An order with no owner

appeared, with its customer's name, note and lines, on the kitchen queue for every signed-in account. 2772b98 The same for the pick list 87a8b0e, and a shipment's recipient and tracking number on the shipping manifest 3172ebd.

  • Any signed-in account could print any shipment by id (recipient,

address, tracking number, lines and the order's notes). It now asks the permission engine. 5cc3c21

  • **A record with no owner could be mailed, with its lines, by any signed-in

account.** f5e1b56

  • **Bank statements went onto an account with no owner for any signed-in

account (CSV 826aa81, OFX 9019ff0), and any user's import profile could be read by id** 826aa81.

  • **An account with no owner could be cash-counted, and its variance booked,

by any signed-in account.** 83f8dfa

  • **A bank line with no owner could be resolved, and its journal posted, by

anyone signed in; an NSF bounce hit whatever payment id it was given.** 05f7a4d

  • Signed-in customers could edit the pickup slot board on a public café:

raise a full window's capacity to 99, reopen a closed one, reset the count or post a window of their own. Customers now read the board only; managers edit it. e1f44bd

  • Attention counts could reveal numbers from rows a viewer may not read. A

code-defined count now reaches only viewers who may read every row it folds, and the count list is no longer readable by every signed-in user. 143d5c1

  • **A page or action could read records without asking who was asking, and

nothing noticed.** A guard test now fails when one does; 190 existing calls were annotated with why they need not ask. 324514a

Money and payments

  • **A recorded payment or refund could be deleted by its writer, and a

stock move edited or deleted, with only a hook standing in the way.** The permission rules now grant none of those, so they answer 403, and the early ceiling and headroom checks come from the one check every writer faces. 6a8a2aa

  • **Bank lines, expenses and time logs could be changed after they were

settled.** Evidence on a bank line, an approved or billed expense and approved time are now frozen by declaration for every writer, deletes included. aaa6787

  • Duplicates slipped past hand-written checks on wallets, settings, scans,

wallet entries and usage events; those are now plain uniqueness and frozen-once-confirmed rules in the schema, so a duplicate is refused as a duplicate. dba9e55

  • **A positive-quantity or matched-needs-a-target rule lived in code and was

skipped by trusted writers.** Usage events, stock moves, bank lines and shipment lines now declare these in the schema and every writer is held to them. 44f5fd2

  • A customer could mark their own invoice paid, reprice it or delete it.

Checkout and the subscription biller raise invoices owned by the customer they bill. An invoice's status, dates, money and tokens, and every amount on its lines, are now staff's (role:manager) to change; customers read their invoices and cannot delete them. 81d5222

  • **A customer could refund their own payment, or record a payment against

their own invoice**, which marked it paid and let the shop ship with no money moved. Payments and refunds are now recorded by staff; customers read their own. Money back for a customer goes through returns and disputes. 3c9915b d70cc2e

  • **A subscriber could reactivate, reprice or extend their own

subscription.** They can still cancel it and change their contact details; plan, status, dates and billing are staff's. 4df0dba

  • A wallet holder could point auto top-up at somebody else's saved card,

or turn their balance into a gift card or another currency. They keep their top-up settings; the card, kind, code and denomination are staff's. 15de90e

Shop and checkout

  • **Any customer could write a 100%-off discount code, or list every code

and every other customer's redemptions.** Codes are written and read by managers; a customer reads only their own redemptions. 5b606ca

  • Twenty shoppers checking out at once could all use a one-use code. A

code's limits are now decided inside the write lock, and a plus-tag on an email no longer makes a new customer for a per-customer limit. 985a8fa

  • One unit on the shelf could be sold to two online orders. An online

order now holds its goods from checkout until it is paid, cancelled or its hold lapses, decided atomically, so the last mug goes to one buyer; a pay-at-pickup order holds until its window ends. Back-office orders do not hold stock. 6b02eae

  • A product sold only to people in the shop could be basketed online. A

product can be marked in store only (never reserved or sold online, and optionally not shown), or limited per online order. bd0a679

  • The shop said "In stock" for goods other orders were holding. It now

shows what it can promise: "Only N left", "Sold out", or "In stock", with nothing about other customers' orders. 9252072

  • **Anybody signed in who held a buyer's tracking link could authorize a

return in their name.** The link works only signed out; a signed-in person acts as themselves. 96cf5d2

  • A shopper could set the price of an extra. A latte with "oat milk" in the

note at 0c went to the kitchen and through checkout. Products now declare their extras and prices, the basket looks the price up, and checkout re-checks it. Quantities must be finite, whole unless sold by measure, and never round a priced line to 0c. 2661e5f

  • A shopper could redeem an expired code by sending their own date.

Checkout now ignores a public request's own "today" and "now". 2661e5f

  • A basket was found by whatever token the client sent, so "a" opened a

basket, a second caller with the same token read it, and a checked-out basket gave away its order's pay and tracking links. The shop now mints the token, refuses short or hand-made ones over HTTP, and checkout refuses short ones. b93d642

Booking and pickup

  • An unpaid checkout held its pickup slot forever. A shopper who checked out

and never paid left a one-place 6pm window refusing everyone after them. A window is now judged by its live count: cancelled orders and unpaid drafts older than the hold (30 minutes by default) no longer count. c82541c

Books and tax

  • **An expense or payment recorded after its month was closed posted into the

closed month.** The closed-period rule is now enforced for every writer. A late fact is booked on the first open day, keeps its real date, and raises an attention count for review; hand reversals still refuse a closed date. 71626fc

Expenses, mileage and benefits

  • An expense could be approved without what an audit asks for. Expense

categories now say whether a purpose, the attendees and a receipt are needed and how much is deductible; they are stamped onto the expense and enforced for every writer, and a report folds deductible and non-deductible totals. 1db3971 What an audit asks of an expense, and a year of it worked by hand. db566af

  • Mileage was claimed as a typed amount. A mileage log with vehicles and a

rate per year: readings that go backwards or overlap are refused, and approving a trip in a personal vehicle creates the expense at the year's rate. 77f1d8a

  • Fringe benefits lived in a spreadsheet. A register finance keeps and

exports to the payroll provider; nothing computes withholding. ee99b84

Assets and losses

  • Equipment and losses had no register. app-assets keeps fixed assets,

improvements and repairs, monthly depreciation, disposals with the gain or loss, and one record for any loss, approved by somebody other than its reporter; every journal it books is replay-safe. dab9e65 Documented with recipes and what is left to the accountant. 8e7d9a1

  • Evaporation and shrinkage had no reason to be recorded under. Stock

moves gain both, and a count says when a shortage is above what is normal for the product. e850291

Exchanging documents with other companies

  • Signing a business document needed a library the server does not ship.

Box-to-box exchange signs with Ed25519 through the optional exchange extra (pip install 'dbbasic-object-server[exchange]'); the base install still has no dependencies, and without the extra the exchange refuses and says what to install. The canonical bytes a signature covers are fixed and written down, the private key file is readable by the server alone, and no backup contains it. 1991977

  • Every order and invoice that crossed to another company was retyped.

With app-exchange two companies' boxes become trading partners (one owner asks, the other accepts, either can end it) and send each other signed documents. A document is accepted only from a connected partner, signed with a key that partner's domain published, addressed to this box and not a replay; it is kept exactly as it arrived and answered with a signed receipt, and sending it again stores nothing twice. A partner that is down is retried with growing gaps; a refusal is shown, not retried. 134c9b3

  • A partner's documents now become the right records on arrival. A

customer's purchase order becomes a draft sale order; a confirmation is checked against the order it answers and differences are shown, not applied; a supplier's invoice or credit note becomes a bill waiting for approval in the new Bills app, and nothing ever pays it but a person; a customer's remittance waits until somebody sees the money in the bank and confirms it, which records the payment; a goods receipt lands against its order. A document that cannot be placed waits with the reason. What a partner can cause is a short list in a rules file: create those records, nothing else. 3f6f39b

  • How to trade with another company's box, written down. Installing,

naming the box, backing up its key, connecting, sending, confirming a remittance, rotating a key, and exactly which bytes are signed, so another implementation can check them. Email for partners without a box is not built yet. d1c260b

  • **A customer who owned an invoice could have confirmed a remittance for it,

recording money received on their own bill, or sent it to a partner in the business's name.** Both are now for staff only, and the remittance check asks whether the person may record a payment before anything is written. A partner's purchase order never holds stock on the shelf. 25a1528

  • Ten kilograms of coffee and ten paper bags arrived as the same "10".

Every line crossed as a count. Each line now says what its quantity counts, in the international unit codes invoicing networks use (kilogram, litre, bag, box, hour and so on), taken from the line or from the product's unit; quantities can be fractional, like 10.5 kg; and the unit is kept on the other company's order and bill. A unit the box cannot name, such as "bunch", is refused with what to set instead, rather than sent as a count. 8ef8d6f

  • **On a box with the totals reactions switched off, an order or invoice

would have been sent for nothing.** The sending box now works out the total from the lines the way those reactions would, fills it in when it was never filled, and refuses to send a record whose total disagrees with its lines, showing both numbers and how to fix it. 8ef8d6f

  • **A café that paid 60% of an invoice had no way to say so, and a

supplier's credit note reduced nobody's balance.** A payment to a supplier is now recorded as an amount on each bill it pays (part of one bill, or several bills at once), and the payment notice sent to the supplier says exactly that; the supplier records exactly that once someone sees it in the bank, and refuses a notice for more than is still owed. A credit note now comes off the invoice it credits on both sides, and the supplier no longer shows its own credit note as money the customer owes. After a 374.00 invoice, a 60% payment and an 18.50 credit, both companies' books say 131.10 is outstanding. A payment the supplier has been told about can no longer be edited. A credit is not a payment, so how an invoice's status reads after a refund is unchanged and still an open decision. aaa1d39

  • **A supplier's amended confirmation showed only that the total was

different, and nothing could be done about it but retyping.** The confirmation now answers each line of the order: as ordered, changed, not supplied, or added. The buyer sees every difference line by line (8 kg instead of 10, bags at 40c instead of 35c, no oat milk, a sample added) and a manager accepts it, which changes the buyer's order to match with each change recorded under their name, or rejects it, which leaves the order alone. A supplier cannot call a changed order "accepted". 459d714

  • **Ending a trading relationship, or refusing a document, told the other

company nothing.** Its box still showed them connected and kept sending, and a refused invoice stayed open. Disconnecting now sends a signed notice and the other box shows the partner as disconnected, with the reason. A refused document comes back with a signed refusal the sender keeps; the sender's invoice or order then reads "Refused by <partner>: <reason>" and shows up on the home page as something to look at. A manager can also refuse a document after it arrived, with a reason, and the sender is told the same way. de95084

  • Getting a box ready to trade needed someone who knew its insides. One

check now lists what the box needs, each with how to fix it in plain words: its trading name, where its signing key is and whether someone has said where it is backed up, whether the background worker that delivers documents is running, whether totals are kept up to date automatically, who can send and who can confirm payments, partners waiting, and missing apps. a8cbf37

  • How to do all of the above, written down, with what is still not

built and which decisions are still the owner's (whether a fully credited invoice reads "paid", among them). b70ce06

Getting your data out

  • A subject access export left out a package's own personal data. A

clinic's patients (keyed by email) and their appointments and treatment notes were missing, and nothing said so. Fields now declare whether they hold a person's data, the export follows declared relations from the person's own rows, and it names any collection with an undeclared email-like field. Erasure is still an open owner decision. 3cc9672

  • The shop's carts declare their customer email as subject data. The café

fixes landed, so the stand-in entry in the export is replaced by the real declaration. 265e640

  • **A restored backup was missing uploaded files, the permission rules and

the user list, while "verify" said all was well.** Backups now hold file bytes, the permissions policy and the users and accounts (with their roles, never passwords or keys, which are re-issued); verify names any file record whose bytes are missing. fc2e80a The conformance replay was told a restore point now holds three more files 6e9d489, stated as "three more" rather than two counts, which every new package changed. 09ece66

  • An export could not be imported back. Computed fields are skipped with

a note instead of failing every row, and an import can map an export's columns to themselves. 5cac69d

Building on the platform

  • **The behaviour check compared against an old version that could not load

today's apps.** The check that replays a long session against an earlier version of the server now gives that version any helper module it did not have yet, so the comparison is about behaviour again rather than a missing file. 06d1933

  • The server said it ran on Python 3.10 and 3.11, and its tests did not.

One test message used f-string syntax only 3.12 accepts, which stopped five test files loading there; a benchmark script had the same problem, and two timestamp readers (the activity feed's ordering and a deployment check) misread times written with a trailing "Z" on 3.10. All fixed. 7ddc0f3

  • A test now catches code that needs a newer Python than the one promised.

It reads every Python file in the repository for syntax and standard-library names newer than 3.10, so the break above fails on the machine that makes it rather than a day later in CI. afeafce

  • The permission audit log could drop a decision on a busy box. When the

log was split into a new file, a server worker that had paused at just the wrong moment could write its entry into the old file as it was being compressed away, and the entry was gone. The worker now notices and writes to the current file instead. 46d2395

  • **The document-exchange tests failed wherever the exchange extra was not

installed.** CI now installs it, and without it those tests are skipped with a note saying what to install, instead of failing. 9dcc30e

  • **Turning reactions on after money had arrived silently skipped everything

before.** Paid invoices stayed "sent" and paying subscribers went past due. The first pass now says what it stepped over, the operator can choose a replay point, and a backlog larger than one page is no longer dropped. 57b42d1

  • This changelog. Entries are grouped by the problem a business would

recognise, and scripts/changelog_check.py lists any commit since the last release that the Unreleased section does not cite yet (a commit that only edits the changelog is exempt). e38b2b1 57056b6

  • DRON, the declaration format, gets JSON Schemas. They describe every key

and refuse the ones the loaders silently drop; a test holds them to the loaders. a958466

  • Fields can declare a strict bound and a required-when condition. Both

are enforced for every writer. c0aef63

  • Fields can be frozen by name. A locked_when rule can name which fields

to freeze, and DRON describes seeded view blocks. de9a826

  • Attention counts can be declared instead of coded. A count is a

collection plus a condition, counted per viewer with the permission engine. 504814f Moved over: expenses, time, backorders and disputes 066c973; scans, returns, runs needing review and bank lines 1514709; invoices past due, stuck parcels and failing mailboxes 38ea6c4.

  • Payments, calendar and forum pages became view records with the same

answers for owner, other user, admin and visitor, pinned by a test. 72bd729

  • Two queues on one menu entry showed a badge of 1. The badge now sums

them. 86daa56

  • Installing app-nav left earlier packages without menu entries. A package

installed before app-nav had its nav and attention skipped with no warning; app-nav now writes the missing ones for every installed package, and an install whose own entries are skipped says so. 4992704

  • A new package version could not improve a seeded view. Seed rows merged

by id and never changed. An upgrade now replaces a column nobody edited, and keeps and reports one somebody did. 70e471f

  • A refused search looked like a bad request. ?search= on the records list

now says where search is. ca90ffc

  • Hooks drop checks the schema now declares for pickup slots, receipt lines

and shipment lines. 6666265

  • Package authoring tooling. A scaffold and an upgrade helper 0881347; a

try-it-as-a-user sandbox 585a696 with --brief and --rows b2f6864; tested recipes and docs 6c26a12 9ef7e80; package tests stop pinning lists a package may grow a44e129.

  • Test housekeeping. A settings test no longer fails on a box that ran an

old hook ba041f3; the differential baseline moves past intended changes b014147 0733f65.

  • A proposal for how boxes would exchange business documents. Docs only;

not built. 9f84876

  • The README says what this is today. One page for a newcomer, person or

AI: the declarations (DRON), the 58-app suite by area, box-to-box exchange and its honest limits, how simulated businesses and research feed the changelog, and what is not claimed yet. The module inventory, endpoint list and settings moved out to the docs that already hold them. 53244a7

2026.11v3 (2026-11-29)

A hardening release. Most entries were found by reading the shipped actions against what a customer or a clumsy double click could do; the commit messages describe the failing case for each. Summarised; see the hashes for detail.

Money and payments

  • **Two payments, or two refunds, submitted at once could pass a ceiling

together.** Two 6000 payments on a 10000 invoice both passed and 12000 was received. A schema can now declare a check that runs inside the write lock, and payments and refunds use it for every writer, including Stripe and checkout. 276bb6c e7dba4e 7b4e67e

  • **A payment could be raised after the fact, a refunded payment deleted from

under its refund, and the overpayment ceiling was a total the owner could type.** Non-admins can now change only status and notes on a payment; the ceiling comes from the invoice's lines. 8d783b5

  • **The Stripe webhook told Stripe "duplicate" when it could not read

payments, recorded unpaid sessions as money received, and ignored currency.** It now answers 503, records only paid sessions and refuses a currency mismatch. An NSF bounce that could not reverse its journal now refuses. 5c8f223

  • Two clicks on Pay made two card sessions for one bill, and an invoice

already paid could be offered a card checkout again. 17f9995

  • **Two clicks resolving one dispute refunded twice, and a store credit had no

ceiling** (a 36.00 order could get 999,999.00 of credit). e9784ff

  • A paid shipping label could be bought twice by a double click, and an

unknown outcome from the carrier invited another purchase. e4b9291

  • A gift card could pay for two orders, and wallet debits (runs, top-ups,

gift cards) could overspend a balance when overlapping. 5bfc1e8 e25d7a0

  • **Time-and-materials invoices could share a number and bill an hour

twice** (30000 for 15000 of work). d0e8cfb

  • Subscriptions and recurring journals skipped or double-handled a period:

a daily template advanced a month, a failed read advanced the subscription so the month was never invoiced, and a crash double-counted usage. 17e2bcf

  • Many money paths read "could not read" as "nothing there". Matching bank

lines 605ce97, receiving and checkout 12ecf6b, returns 7418bd6, drop-ship f078bdf, runs 7db0220, and the shared read helpers 9e2810e now refuse with 503 and write nothing instead of guessing. A refusing hook's 503 now reaches the client as 503 8afaa9f.

Who can see and change what

  • **Many pages and actions let any signed-in user act on someone else's

record**: print their kitchen ticket, raise a return, resolve a dispute, run a private template. They now ask the permission engine. aa217fe

  • The same for receiving, shipping, drop-ship, labels and returns, and

repeated lines in one request could receive or refund twice. 4e8f0c4 Counting stock and rendering a PDF: 5b45d38.

  • Grants for objects no package ships (anything created under those ids

would have been public) were deleted. d281173

  • A deny rule with a row filter turned every list into a 403; it now hides

just those rows. 00aba62

  • Upgrading a package left its old, wider permission rules in place.

Upgrades now retire rules a package no longer ships, and a test requires it. f38cacb 1f56af9

  • A package can switch the owner fallback off for a collection, so a user

cannot rewrite or delete their own settled run just because they own it. 22d8e0d

  • A person could plant or clear a journal's provenance marker, stopping a

payment from ever being booked or letting it be booked twice. 220479d

  • Opening a document or invoice link in a mail scanner marked it viewed.

Views are now recorded by a POST from a real browser. 38803f7

Shop and checkout

  • A double click on Pay raised two orders and two invoices, and two orders

booking one pickup window both wrote the same count. Checkout now claims the basket first. 5bfc1e8

  • **A retried checkout showed and sent the shopper to pay an order they had

already paid.** 6426fae

  • **Shipping, receiving, drop-ship and returns could run four times on four

clicks** (four shipments for one order, a returned mug restocked and refunded four times). Each now claims the record first and answers 409 to the second. 8d3d5b3

  • A shipped sale could leave the shelf untouched or be costed blindly.

If stock cannot be read, the result now says the stock did not move 34e7b0c; an unreadable cost is written uncosted and flagged 246b3e5.

  • **Shop fulfilment answered "settled" when it could not read payments, so a

part-paid or refunded order shipped.** 12ecf6b

  • **Lost parcels left orders stuck as shipped, and the confirmation email could

lack its tracking link.** 5845186

Books and tax

  • A posted journal's owner could re-date, edit, delete or empty it, and lines

could be moved out of a closed year. Posted journals, closed periods and approved time are final, lines included; the fix is a reversing journal. e59cd6a

  • Reversing a journal posted into a closed period. e131b7c
  • Four overlapping reversals of one journal posted four mirrors. One

journal per provenance marker now. 8646501

  • Stock moves could be edited or deleted (a purchase of 10 edited to

-1000); they are now append-only for non-admins and a sale is never costed blind. c86abb0 The weighted-average cost mistook sales for transfers, and a double-submitted count adjusted twice. c145348

  • **A cash count booked its journal before its evidence, and a double click

booked a shortage twice.** 7b06322

  • Confirming a scan could book several expenses, one per retry. 15033d7
  • A bank import that stopped part-way could never be finished; importing

the file again now resumes it. c03eab0

  • Rejecting an approved expense left it on the books. 5845186
  • Duplicates were possible by overlap: schemas can declare unique keys

checked inside the write lock, and usage events, scans, bank lines and setting keys use them. cafcec2 487b322

  • Settled records could be deleted or edited by an overlapping write.

locked_when freezes them inside the write lock. b143f39 6032694

Getting your data out

  • **The data export implied it was complete when it searched only five email

collections.** It now searches seven more and says which are not searchable. e7ccdc5

Building on the platform

  • Installed handlers and schedules could silently not run. The server now

says which are inert and why. 5589e7e

  • A write could be reported refused after it landed; 08ba48f.

A cache could skip another process's write 8e77d47 b98a7d1. A broken seed row or a held marker silently skipped ff0d8a4 567ca78. A package install can reuse an existing backup as its restore point b3c1922. The permission audit log grew forever bede2a3.

  • Faster requests, measured against the previous tree with a differential

test that replays one session and compares every response: aed8beb f053b00 9dcf5ab 2d279a7 82493d5 7bd5776 167cd64 128555d 8103c97 f4c3d22 4c5a849.

  • Plain-language refusals and docs: f7a906f c7ecbd5 192c6d1 53fda75.
  • Tests pinning 136 known problems as expected failures 6067a81, and the

benchmark tools 8be3671.

2026.11v2 (2026-11-23)

  • One-click installs now install the starting apps in dependency order,

with a readable owner id; cloud-init clones the release. 9ea1fef

2026.11v1 (2026-11-23)

The first tagged release: about 490 commits of platform and starting apps (records, permissions, packages, sites, invoices, stock, wallets, banking, pickup, shop and more). Fixes within it that a business would notice:

  • Checkout's tax was zeroed by a later recompute (a quoted 2116 became 2000)

and an order could ship twice from one payment (four units for an order of two). Both were found by buying a mug through the live shop; the tests had exercised objects directly and could not see either. 2d26493 f5aa125

  • An edit in a datetime field silently shifted times by the viewer's zone.

5d2da24

  • A setting saved twice could be ignored with no warning. 3f7684b
  • Restore points filled the disk in about a day on the production box; they

are now swept. d9ef710

  • One bad request could take a worker for good until the server said "busy".

a180596

  • Cheap AI models recorded a cost of 0 on every call. a23cbff
  • Getting data in and out: import/export with dry run 38ab189, admin

backups you can download b5a7e7a, your files as a mountable folder 4791a1b.

  • Self-service signup, email verification and password reset, off by default

and refusing to turn on until the policy is safe. 8470d5c