Repository navigation
osy 0.19.8
This release makes a zone refuse every outbound call of an organisation's apps when the organisation's policy version in force cannot be read, as a single server already does, and fixes how a list of rows is passed to a function, how the browser divides a whole number by a decimal, which edits wake a live read of a Markdown text, and what a recorded trace keeps. A few things that ran before now answer differently; each has its fix beside it. To upgrade, run osy upgrade, then osy update in a project.
Breaking changes
- A list of rows passed to a function names only rows the caller can read. A function parameter that is a
List<T>or aHashSet<T>of a stored entity now looks up each id it is sent the way a singleTparameter does. An id that names no row, or a row the caller may not read, answers Not Found (404), naming the element (for exampleitems[1]) and nothing of the row, and the function does not run. Before, such an id was passed in as an empty row, or the call failed with a server error. A value that is not a JSON array is refused as invalid. Who can be newly refused: a caller that sends ids of deleted rows, or of rows it cannot read. Fix: send only ids the caller can read, or drop the ones that answer Not Found and call again. - A Markdown tool's own error is an error. An MCP
markdown_*tool that cannot carry out a request (an anchor that is not there, a missing argument) now answers as a failed tool call (isError), not as a successful one whose text is the error. Who sees a difference: an MCP client that read the error out of a successful call's text. Fix: treat a call answered withisErroras failed and read its message from that call's text. [OrgPolicy]declarations are checked when an app is compiled. A setting key declared by two packages, a field given two modes, and a governed field a setting class inherits from its base class are refused. Fix: compose only one of the two packages, or rename the type in one of them; give the field one mode, in its declaring package's[OrgPolicy(OrgPolicyMode.…)]; move an inherited field and its attribute into the setting class itself, or take[OrgPolicy]off it. An[OrgPolicy]in an app's own source, or in composed source whose file names no package, is a warning: it is not a control. Nothing reads an organisation's value for a setting in this release.- Function names starting
__OrgPolicy_or__OrgPolicyAssigned_are reserved. The compiler makes functions under these names for a package's[OrgPolicy]fields, so a function of yours named so is refused as a reserved name. Fix: rename it. - A whole number divided by a decimal gives the decimal in the browser too. Arithmetic of a
longwith adoublein a page (for examplebytes / 1024.0) now gives the fraction, as the server always did:9.8, where the browser showed9. Arithmetic of two whole numbers, and comparisons, are unchanged. Who sees a difference: a page that shows such a value. Fix: none needed; to keep the whole number, round it (Math.Floor) or divide by a whole number.
Organisation policy
- A zone refuses when the policy in force cannot be read. When an organisation's policy version in force has lost the revision it approved, every outbound call of the organisation's apps on a zone is refused with the sentence a single server gives ("…its rules cannot be found. Until it can, every outbound call of the organization's apps is refused — nothing was sent."). Before, the zone read such an organisation as having no policy, and the organisation's allowed and blocked hosts decided.
- Upgrade in this order: the control plane, then each zone's agent, then the zone's apps. The refusal holds only when all three run this release. Until then a zone decides as it did before, by the organisation's two host lists; nothing is less safe than before in any order.
- A zone's app restarted on a different release than its zone's agent waits for the agent. It drops the copy of the zone's description it kept on disk and holds none until the agent next hands it one.
Fixes
- A live read of a Markdown text wakes only for its own row. A
live varthat reads a Markdown member's text is asked again when that row's text is edited, and no longer when another row's document is edited. Docs - A recorded trace does not keep credentials. A run's recorded trace, as
osy inspect --faultprints a failing one, no longer holds a key or token the run issued (Security.NewApiKey,RandomId,RandomHex,IssueJwt, a test'sApi.KeyFor/TokenFor), a value written to a member adeny readrule guards, or apk_key or JWT by its shape; each is masked. Docs - A policy's parameter type is read where the policy is written. Asking a policy from a file that does not import the type of the policy's parameter no longer fails to compile.