Repository navigation
osy 0.21.0
This release makes the first steps on Osyrin one command each: osy login signs you in in the browser, the first osy deploy
creates and links the app, and osy open shows it. osy setup claude connects Claude Code to Osyrin. Organisations get roles in
Admin, sign-in through their own provider, verified domains, and policy rules for API keys, kinds of application and build
systems. Apps gain [Stored] and [BindsBy] members, and a test can hold a part of what it spends to a budget. It is a minor
release with breaking changes: an onBehalfOf: must name a person the platform attests, and Admin 25.0.0 is a major version.
Every app on Osyrin Cloud moves to 0.21.0 automatically; an app whose code no longer compiles stays on its current version,
serving, until it is fixed. If you run the platform yourself, upgrade the control plane, Admin, the zone and the CLI together.
To upgrade, run osy upgrade, then osy update in a project.
Breaking changes
- ⚠
onBehalfOf:must name a person the platform attests. Inrunas (Actor, onBehalfOf: …)that isSession.CurrentUser,
a row's[CreatedBy]or[CreatedFor]stamp (orRecords.CreatedBy(row)),null, or a local set from one of these and
never written again. A person the code picked — a parameter, a field the code set, a lookup by an id — no longer compiles
(ON_BEHALF_OF_NOT_ATTESTED; 0.19.12 only warned). To act for a person later, store them on the row as a[CreatedFor]
stamp ([CreatedFor] Guid? ActsFor;, written by the platform when the row is made) and passonBehalfOf: row.ActsFor. In a
workflow body that runs as its actor, write noonBehalfOf:: the person who started the run is acted for. - ⚠ Every event of an actor workflow says who may raise it (
RunsAs = …):[Authorize(…)], or[Authorize(u => true)]
for anyone who can see the run. An event with neither no longer compiles (WORKFLOW_EVENT_HAS_NO_DOOR). - ⚠ A
CrudToolmust name itsOperations.new CrudTool<Item>()with none no longer compiles; it used to give an agent
all seven of the entity's tools. WriteOperations = [CrudOp.Read]for the read tools, and addCreate,Updateor
Deleteonly where an agent writes the entity directly. - ⚠ Whoever writes a schedule must be able to make what it makes. Writing a schedule, or any of its rules and times, is
refused when the writer could not create the row an occurrence would make (You may not schedule work that makes a …).
Under a person's security a schedule's rows are written one at a time: a set-basedUpdate,InsertorDeleteof them is
refused. A schedule made where the app itself acts ([OnStart], a workflow body, an[On]handler) is not asked. - ⚠ Sign-in through a provider is stricter. A sign-in with the provider's own script (
POST /api/app-auth/oauth) needs a
nonce fromPOST /api/app-auth/oauth/noncein the id_token; one without is refused with400. A Microsoft email counts as
verified only when the id_token carries the optional claimxms_edov: add it to the app registration in Entra, or a
Microsoft sign-in cannot sign up or link by email. A MicrosoftTenantthat is a domain name no longer compiles: give the
tenant id,common,organizationsorconsumers. - ⚠ Admin 25.0.0 is a major version. It needs platform 0.20.1 or newer.
Security
- A deactivated person's API key opens nothing, on every path.
- Failed credentials are limited per address. A key or ticket that fails counts against its client address at the app's
REST APIs and its tool server; past the limit every credential from that address is answered429 TOO_MANY_ATTEMPTSwith
aRetry-After. A credential that works never counts. - An agent's
markdown_*tools reach only what its tool sets offer. It reads an entity's documents only where a catalog in
its session offersReadfor that entity, and changes them only where one offersUpdate. A document of any other entity
answers as one that does not exist. - Dangerous steps need a recent sign-in. A deploy to an app's highest environment, a delete, and a switch to a restored
database need a sign-in from the last 12 hours. The command opens your browser to sign in again, then sends the request once
more. - Your organisation can keep API keys narrow.
mcp.toolSetscaps the tool sets any key may carry, at its mint and at every
request;mcp.personalKeys = falselets only machine accounts' keys reach your apps' tool servers and REST APIs, and people
sign in instead.
Osyrin Cloud
- Roles in Admin. An organisation's Roles tab shows who holds what. Each area of Admin is a permission a role can be given:
Manage people, Manage applications, zones and hosting, Manage backups and data, View billing and Manage billing, Approve
policy. People shows every role a person holds, and an invitation offers only the roles the inviter may give. - Sign-in through your organisation's own provider. An organisation registers its own sign-in clients in Admin; its apps
on Osyrin list them beside their own ("Continue with Acme Okta"). The rule "Sign-in only through the provider" holds on
every way into its apps. - Verified domains. An organisation verifies a domain by a DNS TXT record. A custom name under it then needs no TXT record
of its own, no other organisation can attach a name under it, and one wildcard CNAME can point every name at your apps. - How long an application lives. An application is created as one of the kinds the organisation's policy names
(apps.kinds): a kind that ends gets an end date, a reviewed kind a review date. Its owners are sent notices before the
end (apps.endSteps), and its users see a one-line notice in the app. At its end the app is retired: every address answers
a retired page (410), its data and backups are kept, and its Owner can bring it back.osyrin app createtakes--kind
and--ends. - Where a version was built. Each deploy says where it was built (a build system, a repository and commit), and the app's
page shows it as "Built in". Under the policy ruleapps.buildFroman organisation accepts deploys only through a deploy
token or machine account bound to its build system; an Owner or Admin can grant an exception for up to a week. osyrin app restart <app> --env <environment> --reason <text>makes an environment drop what it holds in memory and build
it again, without a redeploy.- Slow queries. An app's Usage page has a Slow queries tab, which suggests the index a slow statement needs, with its file
and entity. - Your sign-ins. Your account page in Admin lists each computer and assistant signed in as you, and you can end any of them.
Language
[Stored]members. A computed member marked[Stored]is kept in a column, written with every change to the members it
reads, so a query can filter, count and index it.[BindsBy]on a[Unique]key lets REST, MCP andosy runname a row by its key ({"order": "A1042"}) as well as
by its id.runas (Actor, readOnly: true) { … }reads as the actor and writes nothing: every write, send and effect inside it is
refused where it is made.- A kit's own bookkeeping. A function an entity names in both
allow read viaanddeny … except viamay write that entity,
so a kit can keep a count or a reservation that every caller adds to but few may read. [Section(Key)]on a part that draws a page's head keeps it on screen when the next page shows the same section, so a
tab switch redraws only the body.ThenBymay come before aSelect, and aMarkdownmember can be projected as its text.
Runtime
- A rule that reads the clock reads one instant per request. Every
whererule andwhenguard in a request compares with
the same moment. It is renewed when the request commits a write, and at least every 30 seconds. - A permission check costs a caller one statement, not one per request. A lookup about the caller inside a
whenguard is
kept per caller until a table it reads is written. - An API is served by the deployed version only. A deploy that removes an endpoint, or a whole
RestApi, from the app or
from a package stops serving it. - A REST
$filteron an enum takes the member's name; an unknown name is a400that lists the members. list.Select(x => Member(x))runs in the browser.- A null enum value reads blank, without a warning in the log.
- On an iPhone, a styled button keeps its label in the middle, and a drawer as tall as the window shows every row.
- A package's textures reach the app that uses it, as its icons do.
Tooling
osy loginsigns you in in the browser, on Osyrin's own page, at https://osyrin.app unless you name another server. The
sign-in lasts while you use it and ends after 30 days unused.osy whoamiandosy logoutgo with it.- The first
osy deployof a project not yet on Osyrin creates the app, links the project and deploys it when the choice is
unique. It signs you in if needed, never asks a question, and ends on one line with the app's address and its Admin page. osy openopens the app in your browser;osy open --adminopens its page in Admin.osy setup claude(orcodex,cursor) gives your agent the Osyrin skills and connects it to Admin's tools, which read
your organisations, apps, deployments and recent errors as you.osy help <what you are doing>prints the verbs for it — "a test failed", "slow page" — with a line to type.osy test --pixels --engine webkitdraws your UI tests in WebKit, Safari's engine (osy browser install --engine webkit
once).Assert.NoOverflow()now also fails when a box cuts off a control or words it holds.- Tests that measure cost.
Cost.Span(name, mark)names a part of a test and can hold it to a budget;osy test --cost-report <path>writes them out.[Growth(Small = 10, Large = 40)]runs a test at two sizes and fails a part whose
statements grow with the size. - UI tests.
Ui.HoldDelays()keeps a page's delays open so a test can check its busy state;Assert.RedrawsOnly(region)
checks that an action redrew nothing outside that part of the screen. - A failing test's trace is kept on disk, so
osy inspect <trace>works after the run. What a test run logs can be read with
osy logs. osy lintreports a shell script after-cwhose quote never closes, and a page that draws a part a kit it uses replaces
(replacesin the kit'spackage.osy).