Skip to content

Commit 75f99bb

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/area-E1-32622
2 parents 02d6109 + 64807a9 commit 75f99bb

155 files changed

Lines changed: 7475 additions & 517 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
---
4+
5+
fix(metadata-protocol): after a deployment removes its customization of a name two packages ship, the deleted body is no longer served from the registry until the next reload
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The case: a stored row bound to an installed package that ships no item of the name (an App's customization, ADR-0146), on a name two packages ship, where the pair relation names no single base. After that row was deleted, the registry heal's baseline read was refused (two holders), and the heal stopped with an `error` line. For a `flow` or a `permission`, whose bound row sits in the name's bare registry slot, the removed row's entry stayed there. Until the next reload, a read naming the customizing package served the deleted body, and a read naming either holder was refused with that package as its candidate, although its row no longer existed.
11+
12+
The heal now retires that entry, as it already did for a package-less row (seat ruling 6812637203 Q2). Entry kept → retired, on the epic seat's ruling 6818436831. Retiring picks no holder and registers no baseline. Each holder's read answers its own item again, the read naming no package is the 409 naming both holders, and the list shows the two holders only. The retire verb still refuses a packaged artifact, so no holder's item can be removed.
13+
14+
The other package-scoped types already retired the bound row's own package slot. For them only the `error` line changes: it now says that slot was retired, where it said the entry was left as it was. A peer replica converging on a cluster signal that names no package still keeps the logged stop, because it cannot tell whose entry the bare slot holds.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
---
4+
5+
fix(metadata-protocol): the read naming no package serves an App pair's declared override of a bundle addition's own member
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
An App's customization pair (`<app>.custom`) can store a row that declares `overrides: { package: Z }` for the bundle member a bundle addition Z ships, for example the `fr-FR` locale Z adds to an email template another package of the App ships in `en-US`. `?package=Z&member=fr-FR`, Z's lists and the registry's slot at Z already served that row as Z's item. The read naming no package (`?member=fr-FR`, and the execution read a send makes without a package) served Z's shipped `fr-FR` instead and dropped the declared override.
11+
12+
That read now takes such a member at the one enabled package that ships it when an active row of the member is that package's declared override, so it serves what Z's own address serves. Nothing else moves: a member two packages ship, a row declaring another package, an undeclared pair row, the environment's own item, a disabled shipper and the strict draft read answer as before. No stored row changes shape.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
'@objectstack/plugin-auth': patch
3+
'@object-ui/console': patch
4+
'@object-ui/i18n': patch
5+
'@object-ui/auth': patch
6+
---
7+
8+
fix(plugin-auth)!: under the local sign-in path `off`, the auth settings save keeps a way to sign in, and a client the IP allow-list refuses at the direct sign-in door lands on the sign-in page
9+
10+
Clause-②: yes (narrowing) — narrowed: with direct sign-in on and its local sign-in path `off` (`directSignIn.localSignIn: 'off'`, or `OS_AUTH_DIRECT_SIGN_IN_LOCAL_PATH=off`), an auth settings save (`PUT /api/settings/auth`) that turns Google off, or clears a Google client credential no environment variable backs, while Google is the last way in the sign-in page offers answers `400 SETTINGS_VALIDATION` with the new copy `googleLocalOff` and saves nothing, where it saved, even with email and password (or phone sign-in) switched on; and a `GET /api/v1/auth/sign-in/direct` from a client the IP allow-list refuses answers `302` to the Console's `/login?error=IP_NOT_ALLOWED` (keeping a same-origin `?redirect=`), where it answered the `403 IP_NOT_ALLOWED` JSON body. Widened: under `off` with nothing else in force (no Google, no identity provider row, no social or OIDC provider with credentials, no host sign-in handoff), a save of `email_password_enabled: false` answers `200` and saves, where it answered `400 SETTINGS_VALIDATION`, because the sign-in page offers no email and password there either way; module exports (not on the package entry) `DIRECT_SIGN_IN_NETWORK_REFUSED`, `isDirectSignInDoorNavigation` and `directSignInNetworkRefusal`; a `googleLocalOff` key on the sign-in floor copy, in all 11 locales; the `@object-ui/i18n` key `auth.login.errors.networkNotAllowed`, in all 11 shipped locales (no key renamed or removed); the Console sign-in page explains `?error=IP_NOT_ALLOWED`; `markSignOutRoundTrip` in `@object-ui/auth` takes the sign-in page path it records.
11+
Metadata-protocol: none
12+
Skills-docs: none — no skill under `skills/**` teaches direct sign-in, the auth settings save, the IP allow-list or the sign-out note; `content/docs/permissions/sso.mdx` gains the rules in this change.
13+
14+
<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed, renamed or re-shaped. The moved answers are a runtime refusal of one settings save under a deployment switch and the status of one refused auth navigation, so there is nothing stored for a migration to rewrite and no tombstone. -->
15+
16+
**BREAKING** for a deployment running direct sign-in with the local sign-in path `off`: saving the auth settings with Google off (or with an unbacked Google client credential cleared) while Google is the last way in the sign-in page offers is refused `400 SETTINGS_VALIDATION` and nothing is saved, unless another way in the page offers remains (another identity provider row, a social or OIDC provider with a client ID and secret, or a host sign-in handoff). Email and password and phone sign-in do not count there, because the page does not offer them; turning email and password on in the same save does not help. Before, the save went through and the sign-in page then showed "No sign-in method is available". Also **BREAKING** for anything that reads the status of `GET /api/v1/auth/sign-in/direct` from a client outside the IP allow-list: it is now `302` to `/login?error=IP_NOT_ALLOWED` with no cookie set, instead of the `403` JSON body.
17+
18+
Unchanged: the local sign-in path `hidden` (the default) and direct sign-in off, where email and password and phone sign-in count as before; the IP allow-list itself, which does not exempt the door: nothing is started and no provider is read for a refused client, every other auth request from it (including a `POST` to the door and the door path with a trailing slash) is still refused `403 IP_NOT_ALLOWED`, and the refusal is still audited and logged.
19+
20+
What to do: nothing, unless you turn Google off as the last way in under `off`, or switch email and password off there. Register another identity provider first, or set `OS_AUTH_DIRECT_SIGN_IN_LOCAL_PATH=hidden` (with email and password sign-in on) and restart. If email and password sign-in was switched off under `off` (that save is no longer refused), setting the local path back to `hidden` is not enough: set `OS_AUTH_EMAIL_PASSWORD_ENABLED=true` as well, then restart. A client that checked the door's `403` status should check for the `302` to `/login?error=IP_NOT_ALLOWED` instead.
21+
22+
Also fixed: the `503` sentence for a provider delete whose provider list could not be read now says the sign-in page offers no email and password, which is true under both reasons the check runs; and the note a provider-logout sign-out leaves in the tab now records the sign-in page the provider returns to, and only a load of that page reads it, so a provider that never sends the browser back no longer makes the next deep link opened in that tab drop its `?redirect=`.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/service-automation': patch
3+
---
4+
5+
fix(service-automation): a `notify` step warning carries no count, and each warning text on a run summary row is bounded
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
**The `notify` warning text is stable per cause.** A `notify` step whose deliveries failed put the per-execution count in its warning (`every delivery it attempted failed (3)`, `channel 'push' (2 deliveries): …`, `2 of 5 deliveries failed`). A `notify` in a loop whose recipient count varied raised a different text on each iteration for one refused channel, so the run summary row's distinct-text fold folded nothing and its five-entry list filled with near-duplicates. The text now names the failed channels, each failure's own reason, and whether anything got through (`notify delivered nothing: every delivery it attempted failed. channel 'push': …` or `notify: some deliveries failed while others were delivered or enqueued. channel 'push': …`), and no count. The counts stay where they were: the node's output (`failed`, `delivered`, `enqueued`) per execution. A reader that parsed the count out of the warning text reads it from the node output instead.
11+
12+
**Each warning text on a run summary row is bounded.** `summary.nodes[].warnings` keeps at most five distinct texts plus one overflow entry; each text is now also cut at 300 characters, ending with ` [... cut; the step log holds the full text]`. Two long texts that agree up to the cut fold into one entry. The run's step log keeps every text whole. Before, a few nodes with long warning texts could push a run's persisted summary past its byte cap, whose fallback drops the whole node list.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
'@objectstack/objectql': patch
3+
---
4+
5+
fix(objectql): an `async: true` after-hook writes outside the write's unit of work, also when a blocking after-hook beside it makes the write door open one
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
An object with an `async: true` `afterUpdate` hook worked until a second, blocking `afterUpdate` hook was added to it. Then the async hook's `ctx.api` writes failed with "Transaction query already complete", and the hook's work was lost. Making the second hook `async` too, or removing it, brought the writes back.
11+
12+
The blocking hook (default `onError: 'abort'`) makes the write door open a unit of work, so that hook's abort can roll the write back. The async hook is dispatched inside that unit and starts at once, while the unit is still open, so its first writes joined it. Nothing waits for an async hook, so the unit committed under those writes. The same happened inside a unit a caller opened (`engine.transaction()`, `ctx.api.transaction(fn)`) whenever the async hook wrote before that unit settled.
13+
14+
An async after-hook now runs outside every unit of work open when it is dispatched. From the first write on, its writes are enrolled in no unit and run on their own connection, as they would with no unit open. What they see is not the same as with no unit open: there, the triggering write is already committed; here, it may not be yet (see the first bullet below). A unit the hook opens itself (`ctx.api.transaction(fn)`) is its own. This makes the existing changelog sentence about work a unit starts and does not await ("It now runs on its own connection, as it would outside any unit") true from the moment that work starts, not only after the unit has settled.
15+
16+
What changes for a hook author:
17+
18+
- An async after-hook runs in the background but is not deferred until the triggering write commits. It can start before that write's unit commits, so it may see the state from before that write, and it is not cancelled if that unit rolls back. On a database with more than one connection (Postgres, MySQL, Mongo), its `ctx.api` reads and writes run on their own connection and do not see the triggering write until its unit commits: an async `afterUpdate` that re-reads its record can read the old values, and an async `afterInsert` that updates the new row or inserts a child that references it can find no row. Before this change, those early statements joined the unit, saw the write, and failed or rolled back with it. An async hook that must see the triggering write should be a blocking hook instead.
19+
- An async hook's writes are stored whatever blocking hooks share its event.
20+
- An async hook's writes no longer roll back with the write that triggered it. Before, they rolled back only when they happened to run before that unit settled. An async hook that must undo its effect when the triggering write fails should be a blocking hook instead.
21+
- On a database with a single connection (SQLite), an async hook's write waits until the triggering write's unit releases the connection. Nothing waits for the async hook, so the triggering write is not delayed.
22+
23+
Blocking hooks are unchanged: their `ctx.api` writes join the unit and roll back with it. An async hook with no unit open is unchanged too.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@objectstack/spec': patch
3+
'@objectstack/platform-objects': patch
4+
'@object-ui/app-shell': patch
5+
'@object-ui/console': patch
6+
---
7+
8+
feat(spec): the Studio hook form offers a refusal's `reasons` and `params`
9+
10+
Clause-②: yes (widening)
11+
Metadata-protocol: none
12+
13+
The hook form (`hookForm`) lays out a refusal entry as `message`, `status`, `reasons` and `params`, so a Studio author can declare the several sentences under one code and the named params that a hook's refusal catalogue accepts. `reasons` is a record keyed by the snake_case reason the body throws beside the code, each `{ message }`; it takes the same key-only record control as the catalogue, and the reason key rule it checks is the one the served `HookSchema` declares. `params` is a name list. The entry's `message` help text now says a `{{ name }}` hole fills a declared param, where it said the sentence takes no placeholders. The three new rows and the changed help text are translated in the ten locales of the platform's metadata-form bundles (`@objectstack/platform-objects`), and the console's zh-CN form labels (`@object-ui/app-shell`, shipped in `@object-ui/console`) name the three rows for the Pending changes sheet.
14+
15+
Nothing a metadata author can write changes: `reasons` and `params` were already accepted on a refusal entry; only the form now offers them. A catalogue that uses them already kept them through a Studio edit, and still does. A refusal with only `message` and `status` saves exactly as before.
16+
17+
In the metadata form (`@object-ui/app-shell`), removing the last entry of an optional record row now leaves the key absent rather than writing `{}`. The two read differently, though both draw the same empty list: an entry's `reasons: {}` refuses every reason the body throws under that code, where an absent `reasons` does not read the thrown reason; and a hook's `refusals: {}` refuses every code its body throws, where an absent catalogue leaves its throws as they were. A required record row, such as an object's `fields`, keeps `{}` as before.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/plugin-sharing': patch
3+
---
4+
5+
fix(plugin-sharing): two sharing rules that reach one user on one record keep one grant each, so the widest level wins and revoking one rule leaves the other
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A user that two sharing rules reach on the same record now ends with the most permissive access either rule grants. Before this fix the two rules shared one `sys_record_share` row: `SharingService.grant` looked a rule grant up by object, record, recipient and source, without the rule's id, and overwrote the row it found. The last rule written won whatever its level, so an `edit` rule followed by a `read` rule left the user with `read`, and a project manager who is also on the project team could not edit the project. Each rule also revokes by its own id, so the merged row belonged to whichever rule wrote last: revoking that rule removed access the other rule still granted, and revoking the other rule removed nothing.
11+
12+
A rule-materialised grant is now keyed by its rule id too, one row per rule and recipient. The read and write gates already take the widest level across a user's rows, so nothing on the read side changes. A manual grant, and any grant made outside the rule evaluator, keeps its one row per recipient.
13+
14+
No migration is needed. A row two rules already share is split by the next reconcile of the rule whose id it no longer carries: that rule writes its own row, and the user regains its access.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@objectstack/mcp': patch
3+
'@object-ui/console': patch
4+
---
5+
6+
fix(mcp): `delete_record` / `delete_records` say the recycle bin keeps a business record
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
The two MCP delete tools described every delete as permanent. Measured on a booted stack over both transports, a confirmed delete of a business record goes to the recycle bin (`sys_recycle_bin`): it is kept for the deployment's retention (30 days by default) and can be restored through the REST recycle-bin door or the console. Only a platform object's record (`sys_`, `cloud_`, `ai_`), or any record on a host with no recycle bin, is deleted for good. There is no per-object switch.
12+
13+
- The tool descriptions, both confirmation refusals, the served MCP skill text and the Console's skill download (its byte-for-byte copy) now say this, instead of "permanent".
14+
- `delete_record` over the stdio transport answers `recycleBinEntryId` (the `DeleteDataResponse` key), as the HTTP transport already did. The stdio bridge did not ask the engine for the entry, so its answer named none and read as a permanent delete.
15+
- `delete_records` answers `recycleBinEntries`: one `{ recordId, recycleBinEntryId }` per deleted record the bin kept, on both transports. A deleted record not listed there was deleted permanently. A fault's `progress` carries it too.
16+
17+
Nothing changes in what is deleted, or in the confirmation gate.

0 commit comments

Comments
 (0)