Skip to content

osy 0.20.0

Choose a tag to compare

@osysharp-publisher osysharp-publisher released this 16 Nov 16:09

This release lets policy admins decide exceptions, adds policy floors for model calls, agents and audit trails, and gives Admin a
new console. App logs can be read on zones that log to Loki, and a live call that only reads and shapes now runs as live queries
of the page. It is a minor release: it adds to the platform's model for those live calls, and the Llm kit gains a table that counts
a month's tokens. Every app on Osyrin Cloud moves to 0.20.0 automatically. 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

  • ⚠ Admin 24.0.0 is a major version. Its redesigned console removed functions the old pages used. It needs platform 0.19.15
    or newer.
  • ⚠ A package that names another package's actor no longer compiles. runas (X), RunsAs = X, [On(RunsAs = X)] or
    [OnStart(RunsAs = X)] in a package's code, where X is another package's [Actor], is refused where it is written, naming
    both packages. Declare an actor in your own package. It was already refused when it ran, and an event handler lost its writes.
  • ⚠ A kit's minPlatform must cover what its source uses. osy package pack and osy publish refuse a kit that uses a UI
    element, element argument or standard-library call newer than its floor, or that declares no floor; osy validate in the kit
    shows PACKAGE_FLOOR_TOO_LOW at each use.
  • ⚠ Exception requests are narrower. A packages.approved exception names one version and its bytes
    (Name@Version=sha256:<hash>, as osy lock pins it; the refusal prints the line). A host exception names exact hosts, never a
    wildcard, and covers the app's own code, not a package's. Settings and secrets.runtime take no exception: they change in a new
    policy version. A request of any other shape is refused when asked and cannot be granted.
  • ⚠ A task that waits continues only with the rights it was started with. A task started as one actor and awaited where that
    actor is not bound (by the system, or as another actor) is refused in plain words, never run with the awaiting code's rights.

Security

  • Only a policy admin of the organisation decides an exception. Nobody else — a member, the builder who asked, a machine
    account, another organisation — can answer, approve or end one, or set how long one may last. Whoever asked does not approve,
    and each approver counts once. Waiting requests are listed only to the organisation's policy admins and to the operator, who is
    offered no action.
  • Organisation floors hold whatever the app's code says. The app's router cannot send a call to a model outside the list;
    calls started together cannot pass the month's token ceiling between them, and the app cannot lower or delete the month's count.
    A trail the policy keeps on stays on even when the app turns it off or marks an entity [Audit(None)]; nothing is purged before
    the policy's minimum, and a rule that cannot be read keeps every trail and purges nothing. An agent's own settings can be
    stricter than the agents floor, never looser.
  • A live call that runs as page queries reads as the viewer. Each read is served under the viewer's own rules; a permission
    check it needs is asked of the server as the viewer, and asked again when one of their grants changes.
  • Only release registration records a platform release's kits and images. No person, platform admins included, can write
    which kits a release carries, link a candidate to another release, or name its images.

Osyrin Cloud

  • Exceptions are decided in Admin. A policy admin allows a request for that app (in the environments it asked for, until a
    date), allows it for everyone (into the policy's next draft), or declines it. An organisation can cap how long an exception
    runs. While one is in force, the app's code may reach the excepted host in that environment, and the excepted package may be
    deployed, followed, restored or moved there. osy policy says "allowed by exception until …", and osy validate does not
    warn about it.
  • New policy floors. Models: which provider models a call may be sent to, and the most tokens an app's calls may use in a
    month. Agents (Agents kit 2.6.0): the least an agent must do before a tool that changes data, sends, spends or reaches outside;
    whether "from now on, alone" rules are allowed; a range for an agent's turns. A tool whose effects are unknown meets the
    strictest floor. Audit: which trails stay on (audit.surfaces) and the least time they are kept (audit.retention); an audit
    rule allows no exception. Builders see them with osy policy models|agents|audit; osy validate warns about a model outside
    the list (MODEL_OUTSIDE_POLICY).
  • Admin 24.0.0 has a new console. Organisations, applications, policy, alerts, statistics, business, privacy requests and
    toolchain pages all use it; on a phone the menu opens in a drawer. Policy has a Requests tab where a policy admin answers
    waiting requests, and each rule shows where it is enforced.
  • osyrin app logs reads through Admin — with --errors, --grep and the other filters, and osyrin app trace too. Admin
    reads the app's lines from the zone's log store as its Logs tab does, under the same rule: the app's own members, its
    organisation's Owners and Admins, and operators. On a zone that logs to Loki, where this answered 503 "no log backend", it now
    works; the app's runtime there writes one JSON line per event to standard output.
  • A zone that runs one app on a preview release no longer holds its other apps back from moving to a new patch release.

Language

  • Json works in a page. A stored Json column, a Json parameter or member is its document's text in the browser, as on
    the server: Deserialize<T>(row.Body) and row.Body.ToString() give the server's answer.
  • osy check lists the live calls that still run their whole function on the server, and what stops each one (osy validate --json: liveCalls). Cost.BytesSentSince(mark) and Cost.RowsSentSince(mark) measure what the server sent a test's pages.
  • osy model accepts a partial entity over an entity the app declares in another file, as the server compile already did.

Runtime

  • A live call that only reads and shapes no longer runs again on the server. When its function's reads are queries the
    viewer could make and its shaping can run in the browser, each read becomes a live query of the page, kept up to date row by
    row, and only the shaping runs again, in the browser. The value reads as nothing until every read has answered once;
    Live.Pending, Live.Failed and Live.Error follow its reads, and on mount waits for it. A read whose first answer would be
    over 500 rows or 256 KB is not sent: the page asks the server for the function's answer instead. A read that is only counted is
    asked as a count, and columns the function never reads are left out.
  • A generic package function that creates another package's generic class over its own type parameter works again (0.19.15
    failed it with unbound variable '$type$TOut').
  • Compiles use less memory again: 0.19.15 parsed every kit's source a second time on each compile.
  • An event handler that fails and loses its writes is logged as an error, not a warning, naming the handler and the event. A
    request refused for a body too large is logged with the status the client got (413), not 500.

Kits

  • Ui 3.5.0: setting rows take reason: (a Why box; reasonRequired: holds the save until it is filled), note: and
    chipless:, and a read-only SettingNumber takes words:. SettingsPage draws its head as a band across the whole area;
    PageHead(column:) does the same for your pages. New: Colors.SpinnerInk, Length.SpinnerSize, FontSize.PageSectionTitle
    and PageSectionHeading(text).
  • Llm 2.12.0: the organisation's model list and monthly token ceiling (above). A call that sets no MaxTokens is sent its
    model's MaxOutputTokens (4096 unless you set it), no longer the provider client's own MaxTokens.
  • UserManagement 0.13.0: the People list and the API-key holders leave out every account the app declares as an actor,
    so only people are listed. It needs platform 0.20.0 (it uses PageHead(column:)).
  • Charts 1.10.0 needs platform 0.20.0 and is otherwise 1.9.0. 1.9.0 said it ran on 0.19.0 while its keyboard focus needs
    0.19.14; a kit check now refuses a floor lower than what the kit's source uses.
  • Llm 2.12.0 and Agents 2.6.0 need platform 0.20.0.