Skip to content

Commit 203c2cb

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-yb4rne
2 parents 4fd9904 + f66cd5a commit 203c2cb

92 files changed

Lines changed: 2588 additions & 248 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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@object-ui/plugin-chatbot': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
fix(plugin-chatbot): a pending AI action that lapsed reads "Expired" in the AI Approvals inbox and in the chat's approval card, not "Rejected"
7+
8+
Clause-②: yes (widening)
9+
Metadata-protocol: none
10+
11+
Widened: `@object-ui/plugin-chatbot`'s exported `ToolDecisionState` gains the member `expired` (read from `useHitlInChat().decisions`, passed in through `ChatbotEnhancedProps.toolDecisions`); `@object-ui/i18n` gains `aiApprovals.statusExpired` and `aiApprovals.expiredDetail` in every locale pack.
12+
13+
A pending action nobody decided in time, or whose proposer lost access, is stored `status: 'rejected'`, `rejection_reason: 'lapsed'`, with no `decided_by`. The AI Approvals inbox badge, its phone card and its detail drawer now read such a row as "Expired", say why, and name no decider; a row a person rejected (a `decided_by` is recorded) still reads "Rejected". A decision on a lapsed item, answered `409` with `error.details.reason: 'pending_action_lapsed'`, now reads "Expired" in place of the conflict error: in the inbox the list is re-read, so the row turns "Expired"; in the chat the approval card (and the record-write card) settles on a new `ToolDecisionState` value, `expired`. Two new locale keys, `aiApprovals.statusExpired` and `aiApprovals.expiredDetail`, in all 11 packs.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/service-analytics': patch
3+
---
4+
5+
fix(analytics): an empty or blank `where` key answers 400 INVALID_FIELD on all three analytics doors
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
An empty filter key (`{"": "z"}`) on `POST /api/v1/analytics/query`, as a dataset's `runtimeFilter` on `POST /api/v1/analytics/dataset/query`, or through the MCP `query_dataset` tool reached the database as `WHERE = ?` and answered `500 DATABASE_ERROR`. A blank or whitespace-only key (`" "`, a tab) answered `403 PERMISSION_DENIED` from the field-read gate. Both now answer `400 INVALID_FIELD` with `field` and `param: 'where'` on those three doors, as `/data` answers the same body, and nothing reaches the database. A key that is text but no column reference, such as `amount + 1` or `foo bar`, is unchanged: it still answers `403 PERMISSION_DENIED` from the #21156 member-shape gate. Nothing to migrate.
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): the open self-hosted restriction profile lists the whole node vocabulary and does not state which plugins the runtime runs
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`RestrictionProfileSchema.allowedFlowNodeTypes` said an environment that runs the approvals plugin lists `approval` / `approval_revise` and one that does not leaves them out. The open profile a self-hosted runtime serves (`GET /api/v1/discovery/restriction-profile`) is a constant: it lists the whole vocabulary, the approval pair included, on every kernel, whether or not the approvals plugin is installed. The reader rule and the schema docs now say so: a profile that states plugin composition lists the pair only when the environment runs the plugin; the open self-hosted profile states no plugin composition, so `os validate --target <self-hosted url>` does not check that an approval flow has an executor there. The field's description in the published JSON Schema and the reference page carries the same sentence. No key, accepted value or served answer changes. Nothing to migrate.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
'@objectstack/rest': patch
4+
---
5+
6+
perf(metadata-protocol): a by-name `form` read and an anonymous form-door request read the `view` list once and each type's stored rows once
7+
8+
Clause-②: yes (widening) — ObjectStackProtocolImplementation.readFormRequest
9+
Metadata-protocol: none
10+
11+
The effective `form` read resolves over both types (ADR-0159 D5): the generic `form` list, the projection of the `view` list, and the cross-type resolution over the stored rows of both types. Those readings asked for the same stored rows separately, and an anonymous form door made five protocol calls (the `view` list, the `form` list, the unreadable bodies and both per-package layers), each reading the rows again. With the overlay row cache off, a by-name `form` read read the `form` and `view` rows twice each, and a form-door GET read the `view` list twice, the `view` rows five times and the `form` rows three times.
12+
13+
- **`@objectstack/metadata-protocol`.** The effective `form` read now reads through one request scope: each stored row set (per type and package binding) and each flattened list is read once per request, and nothing is kept past the request. A new server-only extension, `readFormRequest(read)`, runs `read` as one request's reading: the `getMetaItems`, `getMetaItemsPerPackage` and `getUnreadableFormBodies` calls inside it share that one scope, each answering what it answers on its own.
14+
- **`@objectstack/rest`.** The form doors (`GET /forms/:slug`, `POST /forms/:slug/submit`) make their five reads inside `readFormRequest` when the protocol serves it, and as before otherwise.
15+
16+
Every answer is unchanged: the same items, in the same order, from the same served-row order. Nothing to migrate.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/plugin-kanban': patch
3+
---
4+
5+
fix(kanban): a windowed swimlane board counts each whole swimlane, and each whole column when it queries itself
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A kanban drawn in swimlanes that holds only a window of its query (a page a list view hands it, or its own fetch that filled its `limit`) wrote each swimlane row's count from the cards it held, marked `+`, and a board that queried itself wrote its column counts the same way. Such a board now asks one grouped read on the lane field and the swimlane field together, each group's record count under the board's filter and search, and writes every swimlane row's whole count from it; a board that queries itself also writes every column's whole count from the same read. A board that holds every record of its query asks nothing more. A source with no grouped door, or a read that is refused or cut, keeps the counts marked `+`, as before. Nothing to migrate.

‎.changeset/37983-knowledge-source-save-needs-the-service.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ Unchanged: the engine's own writes (a package install, a seed, a migration) are
2323

2424
## FROM → TO
2525

26-
- A deployment whose stack does not declare `requires: ['knowledge']`, where authors save knowledge sources → add `requires: ['knowledge']` to the stack, restart, then save the source.
26+
- A deployment whose stack neither declares `requires: ['knowledge']` nor ships a `knowledgeSources` entry, where authors save knowledge sources → add `requires: ['knowledge']` to the stack, restart, then save the source.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/metadata-core': patch
3+
'@objectstack/runtime': patch
4+
'@objectstack/spec': patch
5+
---
6+
7+
fix(runtime): a knowledge source save refused for a scoped-factory miss says so, and the package duplicate words its remedy for its caller
8+
9+
Clause-②: yes (widening) — `@objectstack/metadata-core` adds `knowledgeServiceNotInScope`, `KnowledgeServiceNotInScope`, `KnowledgeSourceSaveDoor` and the optional `door` input on `authoredKnowledgeSourceRefusal`; `@objectstack/runtime`'s exported `DomainHandlerDeps` adds the optional `classifyServiceOrLoud`, which makes `ClassifiedServiceLookup` reachable
10+
Metadata-protocol: none
11+
12+
- **`@objectstack/metadata-core`.** `authoredKnowledgeSourceRefusal` takes an optional `door` (`'save'`, the default, or `'duplicate'`). With `'duplicate'` each refusal it composes tells the caller to duplicate the package again, and does not say "Nothing was written". A door's knowledge lookup can now answer `knowledgeServiceNotInScope(scopeId)` when a `knowledge` registration serves no instance in the request's environment, a host's scoped factory for example. That save is refused `503 SERVICE_UNAVAILABLE` with its own sentence, which names the environment and does not say the deployment runs no knowledge service or point to the stack's `requires`. The `/meta` save's sentences are unchanged.
13+
- **`@objectstack/runtime`.** The dispatcher's `/meta` save, the MCP `save_metadata_draft` tool and the package duplicate now tell a scoped-factory miss apart from a deployment with no knowledge service, through the new optional `DomainHandlerDeps.classifyServiceOrLoud`. A deps without that member answers both misses as before. The duplicate door's refusal now says once that nothing was copied, and tells the caller to duplicate the package again. The platform's own `KnowledgeServicePlugin` registers a plain instance, so its path is unchanged.
14+
- **`@objectstack/spec`.** The upgrade-guide entry `knowledge-source-save-refused-without-knowledge-service` now names only a deployment whose stack neither declares `requires: ['knowledge']` nor ships a `knowledgeSources` entry. A stack that ships a source already mounts the service.
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+
fix(app-shell): a parenthesised metadata form condition is evaluated as a group, so the field form offers its percent and currency rows only where the field type allows
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The Studio metadata form evaluator had no parenthesised grouping. A `visibleWhen` such as `data.type == 'percent' || (data.type == 'formula' && data.returnType == 'percent')` read its group as the path `(data.type`, failed to resolve it and showed the row on every draft. The field form's `percentDisplay` and `currencyConfig` rows were therefore offered on text, currency, number-returning formula and empty drafts. The evaluator now reads `(expr)` as CEL does, at any depth and under `!`. A condition it still cannot read (an unbalanced parenthesis, a function call) keeps failing open with its development warning, unchanged.
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+
fix(spec): three upgrade-guide entries that first ship in protocol 19 are listed under 19, so `os migrate meta --from 18` shows them
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Three ADR-0087 semantic entries were filed under protocol major 18 after `PROTOCOL_VERSION` moved to 19: `define-form-studio-helper-renamed-define-metadata-form`, `form-type-define-form-and-packageless-list-at-form-name` and `publish-refuses-data-model-fields-that-save-and-do-not-work`. None of them shipped in an 18.x release; each first shipped in a 19.0.0 prerelease. The migration chain from 18 runs only the steps above 18, so an 18.x app upgraded with `os migrate meta --from 18` was never shown these three notes. They now sit in the protocol 19 step, with ids and text unchanged, and the 18 → 19 upgrade lists them. No schema, export or stored row changes. Nothing to migrate.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
docs(spec): the system-module and security-context comments stop listing field `trackHistory` as part of the audit authoring surface
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Two source comments in `packages/spec/src/system` described the live audit path as "always-on capture + object/field `trackHistory`". A field's `trackHistory` only opts a media or structured-JSON type into old → new values on the record activity timeline, and its `false` turns nothing off; capture is always on whatever either flag says. The comments now name the object's `enable.trackHistory` as what opens the ledger's view on the record page (and the `history` verb), and say that field-change values on the activity stream are `fieldHistory`'s. The generated security-context reference page follows.
11+
12+
Comments only: no schema, no accepted key and no refusal changes. Nothing to migrate.

0 commit comments

Comments
 (0)