Skip to content

Commit 550ca67

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-35612-post-merge-split-leg
2 parents 9401a83 + c091d28 commit 550ca67

135 files changed

Lines changed: 5528 additions & 355 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: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@objectstack/lint': minor
3+
'@objectstack/spec': patch
4+
---
5+
6+
fix(lint)!: a lookup filter's `$record` path to a structured field is refused where it is written
7+
8+
Clause-②: no (narrowing)
9+
Metadata-protocol: narrowed
10+
11+
A lookup field's `lookupFilters[].value.$record` reads one value from the record being edited and compares it under a scalar operator. A path whose first segment, or whose leaf behind one relationship hop, is a structured field — a member of `STRUCTURED_JSON_TYPES` in `@objectstack/spec/data`: `json`, `composite`, `repeater`, `record`, `location`, `address`, `vector` — holds a list or an object rather than one value. Read from code, the picker compares that list or object as one value under a scalar operator, so the filter does not do what it reads as, and `os lint` said nothing. Rule `object-field-ref-unknown` now refuses such a path, at the same two positions and with the same hint as a path to a multi-valued field: point `$record` at a single-valued field. A hop through a structured field was already refused as "not a relationship" and still is, once.
12+
13+
To fix a refused path, copy the value you mean onto a single-valued field and reference that field instead.
14+
15+
The ADR-0087 ledger gains the semantic entry `lookup-filter-record-path-structured-refused` in `@objectstack/spec`, beside the multi-valued one.
16+
17+
<!-- adr-0087: registered lookup-filter-record-path-structured-refused -->
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/service-knowledge': patch
3+
---
4+
5+
docs(service-knowledge): the knowledge service treats a record id as text; a caller-supplied numeric id on driver-memory or driver-mongodb is not supported
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The service TSDoc of the complete-reindex purge and the protocol page (`content/docs/protocol/knowledge.mdx`) no longer describe the numeric-id case as a known limit of the purge. They now say what the service supports: it treats a record id as text, and a caller-supplied numeric record id on driver-memory or driver-mongodb, which keep the id as given and do not equate `'5'` with `5`, is not supported. On such a row the purge's re-read, which asks by the id text, finds nothing, so a document whose row was restored during a complete reindex is deleted until the row's next change or the next full reindex. Ids the platform mints are text on every driver, so nothing changes for them. No behaviour changes.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@object-ui/console': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
fix(console)!: the app management page no longer offers "Edit with AI", which opened the retired build agent, and its two released translation keys are removed
7+
8+
Clause-②: no (narrowing)
9+
Metadata-protocol: none
10+
11+
<!-- adr-0087: not-required (no-migration-prescription) The removed operands are translation keys in the published i18n catalogues: no packages/spec schema, registered node type, stored metadata row or ADR-0087 conversion surface names them, and nothing a metadata author writes changes, so there is nothing for objectstack migrate meta to rewrite -->
12+
13+
Each packaged app on the console's app management page carried an "Edit with AI" row action that opened the AI chat on the build agent, scoped to that app's package. The build agent is retired, so the button led to a closed feature. The button is removed; the row keeps its open, edit, enable or disable, set-default and delete actions.
14+
15+
**BREAKING**: released keys are removed. `@object-ui/i18n@18.6.0` shipped both keys below, in every locale; the button above was their only reader, and no code in the platform reads them any more. The exported `TranslationKeys` type loses the same two leaves.
16+
17+
- `appManagement.editWithAi`
18+
- `appManagement.editWithAiNamed`
19+
20+
If a deployment overrides one of these keys (in its own i18next resources, or a Studio catalogue it registers), that override no longer applies: nothing in the console or Studio asks for the key, so the overriding text is never shown. Remove the override.
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): the approvals reference says what a deleted pending record leaves of its parked flow run
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
- `skills/objectstack-automation/references/state-machines-and-approvals.md`, Approval Best Practices item 2: deleting the pending record now also cancels its parked run, and neither the `approve` nor the `reject` branch runs, so an action that must happen on the delete belongs in the record's delete hook.
11+
- Paid for on the same page by cutting restatements, with no rule dropped: "three roots — nothing else" drops "nothing else", "genuinely-optional inputs explicitly" is "optional inputs", "the child object" is "the child", item 3's prohibition is one clause, and item 4 is compressed. The file stays at its token ceiling (5927 of 5927).
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
docs(spec): a lookup-lane board's lane `count` is the whole lane's, not the page's
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The `KanbanLaneSummarySchema` doc comment and the `kanban.summary` describe said that a list view board whose lanes come from a lookup field counts the one page it was handed. Since objectstack#37327 that board reads each lane's record count from the same grouped read its `sum`, `avg`, `min` and `max` ride, so a foot `count` shows the whole lane, as the lane header does; only a source that cannot answer that read leaves the page's count, marked `+`. The text now says so, and the generated reference page follows. No schema shape changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@objectstack/core': minor
3+
'@objectstack/service-i18n': minor
4+
---
5+
6+
fix(i18n): server t() fills {{ name }} holes written with spaces, as the Console does
7+
8+
Clause-②: yes (widening)
9+
Metadata-protocol: semantic
10+
11+
Server-side translations now fill a placeholder written with spaces inside the braces, `{{ name }}`, the same way the Console does. Before, `FileI18nAdapter.t()` and the kernel's in-memory `createMemoryI18n().t()` filled only `{{name}}` and printed `{{ name }}` as written, so one translation showed a value in the Console and raw braces in a server message (a notification, an error). Whitespace (spaces or tabs) between the braces and the name is now allowed on the server too. A placeholder with no value is still left exactly as written, spaces included, and single braces (`{name}`) are still not a placeholder. No change is needed in your bundles: `{{name}}` works as before.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@objectstack/metadata-protocol': patch
4+
'@objectstack/runtime': patch
5+
'@objectstack/client': patch
6+
---
7+
8+
feat(runtime): `POST /api/v1/packages/:id/move-in` moves a selection of loose items into one package, each through the save door
9+
10+
Clause-②: yes (widening)
11+
Metadata-protocol: added — the five new `@objectstack/spec/api` MoveIntoPackage* schemas enter the `api` authorable-surface shard (23 keys); no metadata key an author writes is added
12+
13+
The door ADR-0084's amendment of 2026-11-26 names ("Loose items stay where they are, and one door moves them"; ruling 7184753035, question 3). It takes a selection, never "everything loose": `{ items: [{ type, name, member? }], dryRun? }` (`MoveIntoPackageRequestSchema`, strict). New in the public surface: the route, `MoveIntoPackageRequestSchema`, `MoveIntoPackageResponseSchema` and their item schemas and types in `@objectstack/spec/api`, the protocol method `moveIntoPackage`, the SDK method `client.packages.moveIn(id, request)`, and the message key `packages_move_in_unsupported` (four locales). Nothing an author writes into metadata changes.
14+
15+
What a move does:
16+
17+
- Only an item bound to no package moves. An overlay of a shipped item and a `.custom` pair item are not loose and are refused `NOT_LOOSE`.
18+
- The target is judged by the save door's own predicates: an uninstalled package is refused `422 WRITABLE_PACKAGE_REQUIRED`, and a package the deployment ships is refused as every package write door refuses it.
19+
- An object is judged against the target by the save door's object judges: the namespace prefix (`NAMESPACE_PREFIX`), the namespace clash (`NAMESPACE_CONFLICT`), the package that owns the name (`OBJECT_OVERLAY_PACKAGE_MISMATCH`) and the `__c` reservation.
20+
- The selection is judged as a set (ADR-0150 D3 (a)): a moved item that names a loose item of a package-scoped type the selection leaves behind is refused `REFERENCE_LEFT_BEHIND`, with the names in `references`.
21+
- Each selected item's type is judged as a write of that type: moving a `datasource` needs the platform-settings capability and moving a `knowledge_source` needs the knowledge-source capability and passes that source's own admission, as saving one does (`403`).
22+
- Then every item goes through the delete door (storage kept, naming the version the judgement read, so a save in between answers `409 METADATA_CONFLICT`) and the save door into the target, so every other save-door judge runs too, and each type writes through to the registry at once: a moved flow and dataset are read at the package's address with no restart. Items other than objects and the package commit (`operation: 'apply'`) run in one transaction. Objects move just before it, outside it, because an object's save syncs its storage, and that DDL waits forever on the lock a SQLite transaction holds. A later refusal undoes them.
23+
- Whole or nothing: any refusal answers `422` with the first item's code in `error.code` and the whole answer (`outcome: 'refused'`, every item's refusal) in `error.details`. What had moved is moved back, with the registry and the mutation signal replayed at both addresses, so every item is loose and resolves as before. A failure that is not a refusal answers `500`, every item loose as before; if moving an item back fails, the `500` names the items that did not go back.
24+
- `dryRun: true` answers `outcome: 'would_move'` with what each item's addresses become from the judgement made before any door runs (loose, target, the object judges, the set). It calls no door and writes nothing, so a save-door judge that runs only on the real move can still refuse an item a dry run passed.
25+
- `client.packages.moveIn` resolves the answer for `moved` and `would_move`. A refusal, a refused dry run included, rejects with the first item's code as `code` and the whole answer as `details`.
26+
27+
Measured on this door: after a move, `_env/NAME` answers `409 RESOURCE_CONFLICT` naming the package that now holds the item, and the bare name and `NAMESPACE/NAME` answer `200`.
28+
29+
`POST /packages/:id/adopt-orphans` is unchanged here. Its retirement is the second half of #38150 and ships in the same release.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): the `objectstack-project` change-history eval no longer expects an answer that sets `trackHistory` for field history
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-project/evals/project-process.json`, eval 9 (users need to see who changed which field and when): the expected answer said it "sets `trackHistory` where field-level history is wanted". A changed field's old and new values already show on the record activity timeline by default, and `fieldHistory` is their switch; a field's `trackHistory` only opts a media or structured-JSON type in, and the object's `enable.trackHistory` opens the audit ledger's view, not the values. The expected answer now leaves `activities` on, where the values show by default (`fieldHistory`), and points the users at the timeline. The prompt and the assertions are unchanged.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
perf(app-shell): on a cold Console load the app bundle request leaves the moment the app list answers
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
On an app route the console root asked the app's metadata bundle (`GET /api/v1/meta/app/:name/bundle`) from an effect of the render that names the app, so a whole tree re-render sat between the app list's answer (`GET /api/v1/meta/app`) and the bundle request: 226 ms on an idle box and 378 ms on a busy one (medians over 27 cold loads each). The bundle is now asked in the app list's own answer. The app list still decides which app the route names (the route segment is a package id or an app name) and whether the user may see it, so it is the same request, through the same adapter and session, for the same app, once; a route naming an app the list does not hold still asks no bundle. Measured on the live lane's build (backend `--fresh`, `vite build` with `VITE_BASE_PATH=/`, `vite preview`), the bundle request moved from 946 ms to 764 ms after navigation idle and from 1343 ms to 974 ms with four CPU-bound processes running; the page heading moved from 2300 ms to 2035 ms (median) on the busy box and did not move outside noise on the idle one.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@objectstack/runtime': patch
3+
---
4+
5+
fix(runtime): a `/data` write a hook refuses answers on the dispatcher path as it does on the REST routes
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A host that serves `/data` through `HttpDispatcher.dispatch()` (in this repository, `@objectstack/hono`'s `createHonoApp`) answered a sandboxed hook's declared refusal differently from `@objectstack/rest`'s `/data` routes:
11+
12+
- **A code of the hook's own** (one its `refusals` catalogue declares, such as `OVERLAP`): `500 INTERNAL_ERROR`, with no `userMessage` and no `details.refusals`. The person refused saw a server error instead of the app's sentence.
13+
- **A registered code** (such as `RESOURCE_CONFLICT`): the declared status and the refusal lines, but the `userMessage` was not cut at 500 characters as the REST routes cut it.
14+
15+
`dispatch()` now answers such a refusal itself, with the REST routes' answer for the same throw: the declared status, the status's registered `code` with a hook's own code beside it as `declaredCode`, the hook's sentence, the `userMessage` cut at 500 characters, every reason's line whole on `details.refusals`, and `Vary: Accept-Language`. A hook refusal that declares `PERMISSION_DENIED` is answered the same way. A hook body that crashes answers the REST routes' `500 INTERNAL_ERROR`, whatever code it carries. The sandbox's own faults and every other throw are answered as before.
16+
17+
Nothing to migrate.

0 commit comments

Comments
 (0)