Skip to content

Commit f443d8b

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-1o35e8
2 parents 0e5fa59 + f506b79 commit f443d8b

53 files changed

Lines changed: 3209 additions & 114 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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@object-ui/console': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
fix(console): a person who verifies their email during the mobile sign-in hand-off gets a mail link that works, and the hand-off's refusal time survives the verification pages (#30157)
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
On a server that requires email verification, a person signing up from the mobile app's sign-in (the hand-off `redirect` on `/register`) got a verification mail whose link landed on a Console page that does not exist (`/_console/api/v1/auth/one-time-token/handoff?…`). The mail is usually opened in a browser that is not the app's sign-in window, and often on another device, so the link now returns to `/verify-email?handoff=verified`: the page says the address is confirmed and to go back to the app and sign in there. It offers no Console sign-in and hands out no sign-in token in that browser. The same holds for the "Resend verification email" mail. Every other `redirect` (an invitation, a Console page) keeps the link it had.
12+
13+
The hand-off's refusal time (`handoff_refused_at`) is now carried through `/verify-email-prompt` on all three hops: `/login`'s "email not verified" branch, `/register`'s "verification required" branch, and "Back to login". Beside any other `redirect`, those links are unchanged.
14+
15+
New string: `auth.verifyEmail.handoffSuccessDescription` (all ten locales).
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
feat(app-shell): Studio edits a translation item as a source-to-translation table with its gaps counted
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
A `translation` item in Studio now opens on a table for its language: a row per string the package declares (objects, fields, options, apps, navigation, views, actions, dashboards and the rest), the source text beside the translation, grouped by item, with a count such as "37 of 120 untranslated" and an "Untranslated only" filter. The rows come from `collectExpectedEntries` in `@objectstack/lint`, the walk `os i18n extract` and `os lint` use, over the package's declared documents. The platform objects the package points at (for example the user object behind an owner lookup) are included, because their labels ship in a few languages only. A row also counts as translated when another bundle already serves the language at its key.
12+
13+
- Saving writes the same `translation` item to the same place as before (the `.custom` pair on a read-only package): each cell writes the item's JSON at its key. The item's label, language and description stay in the form above the table, and its JSON stays available as an advanced view for what the table does not list (messages, settings UI, metadata forms).
14+
- The "no custom renderer, editing as JSON" notice no longer appears on this page.
15+
- The metadata item list labels an item in a code package's `.custom` pair as customer-written, not as shipped in a code package.
16+
- Labels in English and Chinese.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@objectstack/plugin-auth': patch
3+
---
4+
5+
fix(plugin-auth)!: deleting the last identity provider is refused, and a boot that serves no sign-in method says so (#30300)
6+
7+
Clause-②: yes (narrowing) — a request an administrator could make before is now refused: `POST /api/v1/auth/sso/delete-provider` (Setup's "Delete SSO Provider") on the last identity provider, while email and password is off and nothing else signs anyone in, answers `409 DELETE_RESTRICTED` (an existing standard code, the one an organization delete refused for the same reason answers), or `503 SERVICE_UNAVAILABLE` when the provider list cannot be read to tell. No new error code, setting or field. The widening half: `AuthManager` gains `setSsoProviderDeleteFloor()`, marked `@internal`, through which `AuthPlugin` hands it the judge. The boot report is a new `error` log line only; nothing about the boot's outcome changes.
8+
Metadata-protocol: none
9+
Skills-docs: none — no file under `skills/**` teaches deleting an SSO provider or the sign-in boot reports; `content/docs/deployment/self-hosting.mdx` gains "No sign-in method left" with the three doors and the recovery.
10+
11+
<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped: sys_sso_provider keeps its columns and the delete endpoint keeps its request shape; it now refuses only the delete that leaves no way to sign in. Nothing stored is rewritten, so there is nothing at rest for a migration to rewrite. -->
12+
13+
**BREAKING** accept-set narrowing at `POST /api/v1/auth/sso/delete-provider`: deleting the identity provider that is the last way to sign in is refused, where it was deleted before.
14+
15+
- **Before.** Email and password off, one SSO identity provider registered and nothing else in force. Setup → the provider → "Delete SSO Provider": `200 {"success":true}`, the row gone. From then on nobody could sign in, the administrator included (measured on a real boot).
16+
- **Now.** That delete answers `409` with `code: DELETE_RESTRICTED`, `lastSignInMethod: enterprise_sso`, and a message in the caller's language (en, zh-CN, ja-JP, es-ES) saying to turn email and password back on, or register another identity provider or set up another sign-in method, first. Nothing is deleted. When the provider list cannot be read to tell, it answers `503 SERVICE_UNAVAILABLE` instead of letting the delete through.
17+
- **Still allowed.** Deleting a provider while another one remains, while email and password is on, while enterprise SSO is switched off, or while another way in counts: a social or OIDC provider with a client ID and secret, phone-number sign-in, or a host sign-in handoff. An unknown provider is still the vendor's `404`, and a caller with no session the vendor's `401`; the vendor's own provider-access check still decides who may delete which provider.
18+
- **The redeploy door.** A boot whose configuration no longer declares the last way in (for example a redeploy without the `GOOGLE_CLIENT_*` pair while email and password is off) still boots, as before, and now reports at `error` under the grep token `no_sign_in_method_at_boot`, naming the consequence and the recovery. It is a positive claim only: a provider table that cannot be read says nothing. Refusing such a boot is a later option, not done: a deployment that signs people in through a door the auth plugin cannot see must keep starting.
19+
- **Already locked out.** Set `OS_AUTH_EMAIL_PASSWORD_ENABLED=true` and restart: the environment override wins over a stored `auth.email_password_enabled = false` and over the stack config, and email and password sign-in comes back.
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+
'@objectstack/mcp': patch
4+
---
5+
6+
fix(service-automation,mcp): a time-relative flow's conditions are typed against the object its sweep scans, at registration and in the `validate_expression` advice
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
- **`@objectstack/service-automation`**: the registration pass's advisory schema check (the logged `unknown field` / typo / type-mismatch warnings) typed a time-relative flow's conditions against the start node's `config.objectName`, while the run binds a row of `config.timeRelative.object`. A flow stored with a start naming another object kept a warning on a field that is right for the scanned object and none on a field that fails at run time; a start naming no `objectName` got no schema check at all. The pass now reads the object off the flow's trigger binding, the same answer the run uses: `timeRelative.object` when it is a string, `config.objectName` only otherwise. Every other flow is typed as before. The warnings stay logged, never thrown.
12+
- **`@objectstack/mcp`**: `validate_expression`'s description, its `sweepObject` input text and the SKILL.md line no longer advise passing a `sweepObject` other than `objectName` as a supported shape. They say to pass the scanned object as `objectName`, and that a start whose `objectName` names another object is refused at publish (`flow-time-relative-object-mismatch`). The tool's inputs and verdicts are unchanged.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/platform-objects': patch
3+
---
4+
5+
fix(platform-objects): a team membership is named by the person and the team, and a team's Members list shows the user and when they joined, not two raw ids
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
- **The record title.** `sys_team_member`'s title (`display_title`) composed its two stored lookup ids, so a team's Members panel, a membership's own page and every reference to the row read `USER_ID in TEAM_ID`. It now reads the user's `name` (their `email` where the name is blank) and the team's `name`, one hop through each lookup (ADR-0079 addendum, 2026-10-18), as `sys_business_unit_member`'s title does: `Ada Lovelace in Core Platform`. Both hops are read as the reader: a user or team the reader may not read, or one that no longer exists, leaves the title empty rather than showing an id. No column is stored, so a renamed user or team is named anew on the next read.
11+
- **The team page's Members list.** A related list with no authored columns leads with the record title (ADR-0079), so the Members list opened on a Title column beside the User column. The `team_id` lookup now declares `relatedListColumns: ['user_id', 'created_at']`: the list shows the user and when the membership began, drawn as declared, with no title column.
12+
- **A user's Teams list.** The `user_id` lookup declares `relatedListColumns: ['team_id', 'created_at']`, for a user page that derives its related lists. Setup's own `sys_user_detail` page is authored and lists no teams, so it is unchanged.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): objectstack-data's datasources rule states the organization scope an external object declares under a walled tenancy posture
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
- **Before.** The datasources rule taught `external` bindings, `columnMap`, auto-connect and credentials, and said nothing about what an external object's rows are to the organizations of a walled deployment.
11+
- **Now.** One bullet under *Federated (external) objects*: under `OS_TENANCY_POSTURE` `isolated`/`group` every external object states its organization scope — its own `organization_id` field (or `columnMap` onto it), `tenancy: { enabled: false }` (shared), or `systemFields: { tenant: false }`; none refuses the boot by name, and `tenancy.tenantField` is refused there too. Paid within the file's token ceiling (910 → 908 of 911) by trimming the auto-connect footnote, the managed-datasource sentence and the credentials paragraph; no ceiling moves.

‎content/docs/data-modeling/virtual-objects.mdx‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,54 @@ is unmapped is tracked in
426426
[#27332](https://github.com/objectstack-ai/objectstack/issues/27332).
427427
</Callout>
428428

429+
### Several organizations on one deployment: declare the object's scope
430+
431+
A deployment that walls its organizations apart (`OS_TENANCY_POSTURE=isolated` or `group`)
432+
stores every platform row with an `organization_id` and reads it back through that wall. A
433+
virtual object has no platform row: whether the rows your driver serves belong to one
434+
organization or to every organization is something only you know, so **under a walled
435+
posture every external object states its organization scope**, in one of three ways.
436+
437+
```typescript
438+
// Walled: the remote rows carry the organization column and the driver returns it.
439+
// A member of organization A reads only rows whose organization_id is A.
440+
{
441+
name: 'berth_slot',
442+
datasource: 'port_schedule',
443+
external: { remoteName: 'slots' },
444+
fields: { name: { type: 'text', label: 'Name' }, organization_id: { type: 'text', label: 'Organization' } },
445+
}
446+
447+
// Shared: every organization reads the same rows (a reference catalogue, a tariff table).
448+
{ name: 'tariff', datasource: 'port_schedule', external: { remoteName: 'tariffs' }, tenancy: { enabled: false }, fields: { /* … */ } }
449+
450+
// Shared, spelled on the system fields: the same declaration.
451+
{ name: 'tariff', datasource: 'port_schedule', external: { remoteName: 'tariffs' }, systemFields: { tenant: false }, fields: { /* … */ } }
452+
```
453+
454+
What the reference test pins, under `isolated` with two organizations (block (h)):
455+
456+
- **A member of A reads only A's rows** of a walled object, and the driver is asked with
457+
`where: { organization_id: 'A' }` — forward it to the remote as you forward any other
458+
condition.
459+
- **A driver that ignores `where` stays walled.** The engine re-applies the whole query to
460+
the rows the driver returns, so a remote that cannot filter by organization still answers
461+
only the caller's rows to the caller.
462+
- **A row missing the organization column reads to no one.**
463+
- **An external object that states none of the three fails the boot**, by name, with the
464+
three ways out in the error. The boot that runs the `single` posture owes no declaration:
465+
the first seven blocks of the reference test boot exactly such a stack.
466+
467+
A remote whose organization column has another name is mapped onto the wall's column with
468+
`external.columnMap: { org_ref: 'organization_id' }` on a built-in SQL driver or the OData
469+
driver, which apply the map; on a plugin driver, return the column as `organization_id`
470+
yourself — the engine does not apply `columnMap` there. `tenancy.tenantField` does not do this: the wall keys on `organization_id`
471+
alone, so on an external object a `tenantField` naming another column is refused at boot
472+
with the same remedy. An object registered after the boot (a Studio import, a runtime
473+
datasource) that states nothing is not refused — it is **denied**: every read answers zero
474+
rows and every write is refused, and the boot log says why, until it declares one of the
475+
three.
476+
429477
### The engine re-applies every query
430478

431479
For a datasource whose `schemaMode` is not `managed` and whose `driver` is not a built-in

‎content/docs/deployment/self-hosting.mdx‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,28 @@ logins too, or leave the directory empty until the first administrator exists.
628628
A deployment that boots with zero human rows is the case both paths above
629629
describe, and it needs none of this.
630630

631+
### No sign-in method left
632+
633+
Accounts are not enough if nothing serves a way to use them. With email and
634+
password sign-in off, the deployment depends on its other sign-in methods: a
635+
social or OIDC provider with a client ID and secret, enterprise SSO with at
636+
least one registered identity provider, phone-number sign-in, or a host
637+
sign-in handoff. Three doors used to remove the last of them without a word;
638+
each now answers:
639+
640+
| Door | What happens now |
641+
|:---|:---|
642+
| The auth settings save turns email and password off, or removes Google, leaving nothing | Refused `400 SETTINGS_VALIDATION` at the field |
643+
| Setup's **Delete SSO Provider** on the last identity provider (`POST /api/v1/auth/sso/delete-provider`) | Refused `409 DELETE_RESTRICTED`, nothing deleted; `503 SERVICE_UNAVAILABLE` when the provider list cannot be read to tell |
644+
| A redeploy whose configuration no longer declares the last provider (for example, without the `GOOGLE_CLIENT_*` pair) | Boots, and reports at **error** under the grep token `no_sign_in_method_at_boot` |
645+
646+
The boot is not refused: a deployment that signs people in through a door the
647+
auth plugin cannot see keeps starting. **Recovery:** set
648+
`OS_AUTH_EMAIL_PASSWORD_ENABLED=true` and restart. The environment override
649+
wins over a stored `auth.email_password_enabled = false` and over the stack
650+
config, and email and password sign-in comes back. Or restore the sign-in
651+
method the configuration no longer declares.
652+
631653
## Who may sign up — and what each posture tells a stranger
632654

633655
`auth.audience.posture` is the one declaration answering who may become a user

0 commit comments

Comments
 (0)