Changelog
0.3.3
Additive: nothing that existed changed.
RowOwners: whose a row of the server's own log is, and who reads it. A row written at a place of an account is that account's; a row that names no place is the account's of the person who did it; every other row is the server's own. An account's reader is shown its account's rows, the server's reader the server's own, and a row of a place that still waits for its account is shown to nobody (RowOwners::account_of,RowOwners::shows). Moved here from Holger (holger-account'sOwners), so Gunnar's log reads (Admin.ReadLogs, the shop'slogsorder) can stand behind the same wall.
0.3.2
Additive: nothing that existed changed.
- The account form (
AccountForm<R, P = ()>,GrantForm<R>): one account written down, the same shape in every product:name,owner,admins,members,grants, andproduct, the product's own part (Holger's repositories, Gunnar's room). Plain data with public fields. AccountForm::check(policy), the ONE check of a form somebody wrote by hand (FormRefusal): a name that is no account id or is reserved, no admin, an owner who is not an admin, a person whose id cannot be one, a grant at a repository with no name, a grant across the wall, and where grants may cross a right an outsider never holds there.Declared<R, P>: an account in a product's declaration, the name of a file beside it or the form written out.rules::account_id_from(name, policy, taken): a valid account id made of a name, the first free one (acme,acme-2,acme-3...), never longer than 63.- Feature
serde: the form,DeclaredandGitLevelareSerializeandDeserialize; unknown fields are refused. Featureron:AccountForm::from_ron,to_ron(pretty, sets in order) andDeclared::read(beside). Both off by default: the model still has no dependency.
0.3.1
- The estate's operator may own one account (the owner's rule, 2026-11-11: who buys or installs an estate runs it and owns their account on it).
foundno longer refuses the operator: it founds its own account like anybody, is that account's owner and admin, stays the operator (Directory::is_operator), and stands outside every other account (Standing::Operatorthere, no row, no right). One account per person holds for it too (AlreadyHasAccount). No account enrols the operator (Taken: it is the estate's), andfound_forstill refuses a machine as owner (NotAPerson). MemoryAccountStore::bindbinds an operator that is in no account, as it binds any person registered in no account yet; an estate machine and the anonymous id stay refused.- No signature changed. A product that relied on
foundrefusing the operator (InvalidId, "it is the estate's operator") now gets the account.
0.3.0
The outside review of 2026-11-09 and its two follow-up reviews, on branch edda-stink. 0.3.0 breaks the API: every product store implements AccountStore::bind.
Breaking
AccountStore::bind(person) -> Result<bool, E>is new and has no default. It writes the person's one binding to the account, and it is insert-if-absent:false, with nothing written, when the binding names another account or the id is one of the estate's own (an operator, an estate machine, the anonymous id). The engine writes the binding first of a new member's rows and answers a refused bindingTaken.- A row binds only in its own account's store (guard 8). A person's account is the one binding
bindwrote, never a row another store holds of them, and the estate's own rows come first.MemorySnapshotgainsbindings. - The caller first (guard 6). Every operation decides who asks before it reads the account, so an outsider hears the same refusal whatever the call names and whether the account exists.
grant,revokeandset_visibilitydecide the caller before the scope. - Behind the wall (
Policy::holger), a call naming a principal outside the account answersNoSuchPrincipal, in the same words for every such id. - A refusal filed outside the account names the account as its target and its kind alone as its detail (
Refusal::kind), never what the actor typed. foundrefuses the estate's operator (InvalidId, "it is the estate's operator").forgetanswersStillKnownwhile this account's own store holds the id's row.rules::may_buyrefuses every machine (NotTheSeller), so a caller that skipsrules::is_sellerfails closed.Accounts::buystill lets the seller's machine buy.- Under
Policy::gunnar, a group is followed only when it is the account's own group in the directory. memory::MemoryEstate::with_personpanics for a person the bindings hold.
Added
Accounts::found_for(operator, owner): the operator, asking as a person, founds the account for a named owner. The account is the owner's; its audit row names the operator and saysfor <owner>. Anybody else hearsNotOperator.Refusal::kind, the refusal's variant name.MATRIX.md(one row per engine operation, a column per product) gains a ledger thattests/matrix.rscounts, and aneddacolumn that it resolves: each cell names the crate's test that holds the operation. The file ships in the crate.
Fixed
import_membersstays all or nothing when a store refuses a binding after others were bound: the members written before it are removed again. An id this account's own store already holds is taken forenroll,enroll_verifiedandimport_members, whatever the directory says, so that undo never removes a row that was there before.
0.2.0
The engine Accounts, the rules, the memory estate and the CSV import.