Skip to content

Commit 7911dec

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-yb4rne
2 parents 203c2cb + c091d28 commit 7911dec

144 files changed

Lines changed: 6264 additions & 421 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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/driver-sql': patch
3+
---
4+
5+
fix(driver-sql): a plain index MySQL refuses to key is logged and the sync goes on, so the object's remaining boot steps run
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
MySQL refuses a TEXT column in a key without a key length (`ER_BLOB_KEY_WITHOUT_LENGTH`) and a key part wider than 3072 bytes (`ER_TOO_LONG_KEY`). A UNIQUE index past that refusal is carried on a hash shadow; a plain (non-unique) index has no such route. Schema sync logged the refusal and then threw it, and no caller between it and the per-object boot loop caught the throw. So on every boot, for that object, every index declared after the refused one was never attempted, and the old-key index retirement, the drift reconcile and report, the canonical datetime/time/json/boolean backfills and the MySQL `TIMESTAMP`/`TIME` widenings were all skipped, while the boot counted a schema-sync failure.
11+
12+
The shape that reaches it is an upgrade: a column created as TEXT before its field declared a `maxLength` stays TEXT, so a release that adds the bound and a plain index over that column hits the refusal.
13+
14+
FROM: the refusal is logged at `error` and thrown, and the object's remaining steps are skipped. TO: the refusal is logged at `error` once, on the durability channel, with the same field-level remedy, and the sync goes on. The index is still not created and still not substituted (no prefix index, no shadow column); the drift report still lists it as missing. A UNIQUE index that the hash-shadow route could not carry still throws, as before. PostgreSQL and SQLite never refuse these keys and are unchanged.
15+
16+
To build the refused index, convert the column to `varchar(n)` by hand (the remedy the log line names) and let the next boot create it.
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.

0 commit comments

Comments
 (0)