Skip to content

Commit ab5aeb0

Browse files
committed
Merge origin/main into claude/area-E1b-33904
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUcj2x2Wr4UErwBi12
2 parents ac6ab30 + 159757a commit ab5aeb0

120 files changed

Lines changed: 8027 additions & 829 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+
'@objectstack/runtime': patch
3+
'@objectstack/spec': patch
4+
---
5+
6+
fix(runtime): a channel list with a member off the declared shape is not judged at the automation save doors, so it no longer refuses every channel
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
The `/automation` write doors (`POST /api/v1/automation`, `PUT /api/v1/automation/NAME`, `POST /api/v1/automation/NAME/clone`) read the messaging service's `getKnownChannels()` to refuse a `notify` node naming a channel nothing registers. A reader that throws or answers no list was already not judged. A list whose members were not all `{ id: string }` (the declared shape) had those members dropped instead, so a reader answering bare channel ids left an empty roster and every named channel was refused `400 VALIDATION_FAILED`. Such a list is now an unreadable registry like the other two: not judged, and the save goes on as it did before the check existed. No first-party messaging service answers that shape; `MessagingService.getKnownChannels()` answers the declared one, and a flow naming an unknown channel on it is refused exactly as before.
12+
13+
The `notify-channel-unknown-refused` entry `os migrate meta` prints now lists every not-judged case the doors have (a save before `kernel:ready` has settled, and an unreadable channel reader, beside the four it named) and the paths a refusal names (`nodes.N.config.channels`, `nodes.N.config.channels.M` for a list member, a longer path inside a region body). Data text only.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/plugin-security': patch
3+
---
4+
5+
fix(plugin-security): the catalog reference boot report names a refused grant's candidates and the reviewed bind, and a refused audience-binding suggestion's fix follows its package column
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The catalog reference boot report listed a grant naming no package, of a permission-set name two packages hold, as a grant naming a set the catalog does not resolve, with no candidates and the fix "declare the permission set again", which changes nothing. Such a grant is now listed on the same line with the resolver's refusal (`refusals` in the line's meta: the grant, the package its column names, the reason and every candidate), and the line's fix names `os migrate stored-references bind --table sys_user_permission_set --id ID --package PACKAGE` for a refused grant naming no package, and, for one that already names a package, to grant the candidate meant again naming its package and then remove the listed grant. The position half of the report already named its refusals and candidates.
11+
12+
A suggestion refused for a `permission_set_package` column that already names a package (a package that no longer serves the set) no longer offers `os migrate stored-references bind`, which writes only a column naming no package. Its refusal now names the package and the fix that applies: install or enable that package again if its set is the one meant, or dismiss the suggestion. A suggestion whose column names no package keeps the bind.
13+
14+
No grant or suggestion confers more or less: only the report's lines and the refusal's text move.
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): `objectstack-i18n` teaches `i18n.sourceLocale`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The `objectstack-i18n` skill now teaches the optional `i18n.sourceLocale` key: the language the inline `label:` text is written in, which `os lint`, `os i18n check` and `os i18n extract` read (`i18n.sourceLocale`, else `i18n.defaultLocale`, else `en`; `--default-locale` overrides it for one run). `defaultLocale` is described as what it is, the locale a user who has not chosen one gets, so an app authored in English for Chinese users declares `defaultLocale: 'zh-CN', sourceLocale: 'en'`. The skill also states the current serving behaviour: label serving still reads inline text as `defaultLocale` text, so that stack declares `fallbackLocale: 'en'` to keep an `en` request on the authored labels. The coverage and extract sections say "source locale" where they said "default locale", and a new eval case grades the configuration.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@objectstack/service-analytics': patch
3+
---
4+
5+
fix(service-analytics)!: `query_dataset` refuses measures and dimensions the dataset does not declare, naming the members the caller may use
6+
7+
Clause-②: no (narrowing) — query_dataset stops accepting measures and dimensions the dataset does not declare; one CONTRACT_REVIEW_TIER review owed before the queue
8+
Metadata-protocol: none
9+
Skills-docs: none — `skills/**` and `content/docs/**` teach no raw field or ad-hoc `count` through `query_dataset`; the MCP-served skill text (`packages/mcp/src/skill-md.ts`) already says `selection` takes members "by the names `list_datasets` gives", which is what is now enforced.
10+
11+
<!-- adr-0087: not-required (no-migration-prescription) a runtime tool input refusal: no metadata key, value or stored row changes, so `os migrate meta` has nothing to rewrite; a caller picks a declared member instead -->
12+
13+
**BREAKING** for an AI or MCP client that sends `query_dataset` (the dataset AI tool, ADR-0149) a measure or dimension the saved dataset does not declare. Such a selection used to be answered: the analytics service minted an aggregate for an undeclared measure (`count` counted rows, a raw field such as `amount` was summed, `amount_sum` likewise) and grouped by a raw field named as a dimension, and the answer's `provenance` then cited that ad-hoc aggregate as a governed metric of the dataset. ADR-0149 makes the dataset the one declared definition, so a member outside it is now refused before anything is read.
14+
15+
- A name in `selection.measures`, `selection.dimensions` or a `selection.timeDimensions` entry's `dimension` that is not one of the dataset's own `measures[].name` / `dimensions[].name` is refused `400 INVALID_FIELD` with `member`, `param` and `cube` (the dataset's name), the envelope the service's member-level refusals already answer. A `<dataset>.`-qualified spelling is not a listed name and is refused the same way; use the bare name `list_datasets` lists.
16+
- The refusal names the measures and dimensions THIS caller may use (what `list_datasets` lists for it), never a withheld member or one over an `internal` field, so the model can pick one, or fall back to the object query tools and say that no governed metric was used (非指标口径, the ADR-0149 D3 fallback).
17+
- Unchanged: a missing or hidden dataset is still `404 NOT_FOUND` first; a declared member the caller may not read is still the service's own `403 PERMISSION_DENIED`; field-level permissions apply as before. The REST door (`POST /analytics/dataset/query`), dashboards and reports do not go through this tool and are not changed.
18+
- `query_dataset`'s tool description now states the rule, so a model reads it before it calls.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
feat(spec): `IAutomationService.dryRun`, a dry run of a flow definition that need not be published: once, unarmed, as a named user, against a supplied start, without changing live data (#33757)
6+
7+
Clause-②: yes (widening) — a new optional member on `IAutomationService` and new exported types. No existing member, type or code changes, and an implementation without the member still satisfies the contract.
8+
Metadata-protocol: none
9+
10+
The contract half of #33661 (objectstack-ai/cloud#3309 item 5, option A, ruled by the account owner); #33661 implements it in `@objectstack/service-automation` and `@objectstack/runtime`. The method's doc block states the semantics the implementation owes:
11+
12+
- **Writes are simulated, never made.** `create_record`, `update_record` and `delete_record` report the write they would make (object, operation, target rows, values as computed) and a three-way `permission`: an insert or update answers `allowed` or `refused` from the object-level write check, a delete answers `not_judged`, and every write answers `not_judged` when no object-level check is installed; `not_judged` never means allowed, and row-level refusals are never reported. A create binds an opaque placeholder id that later reads by id see, holding only the fields the flow set; an updated row reads as the live row with the simulated fields laid over it. No hook, trigger, other flow or audit row runs, since nothing is written.
13+
- **Identity is the named user**, whose own grants the engine resolves, and the run is never elevated, a `runAs: 'system'` definition included. A `tenantId` must be an organization the user is a member of. Admission is the by-name start rule (`flowStartRefusal`), judged on the supplied definition against the named user; a refusal answers `status: 'refused'` with `PERMISSION_DENIED`, before any node runs.
14+
- **A start condition that does not hold** answers `status: 'condition_not_met'` with the condition, mirroring the live run's skip exit. One whose evaluation throws answers `status: 'failed'` with no steps, the condition and the thrown message in `startCondition`, as the live run's catch does on the default error strategy; under `errorHandling.strategy: 'retry'` the live run's retry attempts do not evaluate the start condition (#33935), so there the dry run's answer is its own. Both answer before the node input-schema check.
15+
- **Approval nodes and waits stop the run** (every node type whose descriptor declares `supportsPause: true`), reported with who would be asked, what would resume it, the screen, or the flow it would start. Nothing is created or scheduled.
16+
- **Side effects outside the data** (`notify`, `http`, `connector_action`, `script`, `save_notice`) are never sent, only reported with their computed payload.
17+
- **Unarmed and unregistered**: never registered or listed, the trigger never armed, no run persisted, one pass with no retry. An invalid definition throws what `registerFlow` throws.
18+
19+
**In-process APIs.** `@objectstack/spec/contracts` exports `FlowDryRunOptions`, `FlowDryRunResult`, `FlowDryRunStatus`, `FlowDryRunRefusalCode`, `FlowDryRunWritePermission`, `FlowDryRunStep` and the step types it unions over (`FlowDryRunStepBase`, `FlowDryRunRouteStep`, `FlowDryRunAssignmentStep`, `FlowDryRunDecisionStep`, `FlowDryRunReadStep`, `FlowDryRunWriteStep`, `FlowDryRunOutboundStep`, `FlowDryRunStopStep`). All additive.
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 data skill's roll-up guidance has the builder resolve a `security-rollup-source-unreadable` warning before finishing
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-data/rules/relationships.md` § Roll-up Summaries now says what to do when a permission set reads a parent `summary` but not the child data behind it: grant the child read when the set should see the children, otherwise mask the summary on that set (`fields["PARENT.SUMMARY"]: { readable: false }`, after removing any View All / Modify All the set holds on the parent), with one worked example and a matching eval case.
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): the record page shows a save's new values as soon as the save succeeds
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
After a save through the edit dialog (or any other update of the record), the record page and the record drawer kept showing the old field values until the page read the record again, a read that goes out beside the page's other post-save reads and could take seconds, while the "updated" toast was already on screen. The page now lays the save's own answer, the record as the server holds it after the write, over the record it shows, in the same moment the write lands, so the new values are on screen when the toast appears. The re-read still runs and then replaces the record as before. A related record the page shows by name keeps its name when the save did not change it; one the save changed shows its new value at once and its name when the re-read answers.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/plugin-list': patch
3+
---
4+
5+
fix(plugin-list): on a phone the list toolbar keeps the view name readable
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Below `sm`, the Console draws the list's view switcher at the start of the list toolbar (`toolbarLeading`). On one line with the filter chips, the 「In a queue」 toggle and the tool icons (44 px touch targets on a phone), the view name was cut to about one character: 「全部客户」 showed as 「全.」 at 375 px. With a leading node, the toolbar row now wraps below `sm`. The name keeps the row's width, and the chips, the toggle and the tools move to a second line when they no longer fit beside it, with the tools at the right edge. A name wider than the row ends in an ellipsis. Nothing scrolls the page sideways. From `sm` up, and in a list without a leading node, the toolbar is unchanged.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/cli': patch
3+
---
4+
5+
fix(cli): `os datasource introspect --out` judges where the write really lands, so an in-tree symlink no longer lets the server-generated draft leave the current directory
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The `--out` check compared the spelled path with the current directory and then wrote through `writeFile`, which follows symlinks. A path such as `objects/lnk/x.object.ts`, with `objects/lnk` a symlink to a directory outside the project, passed the check and wrote the draft outside the tree with exit 0. The same held for an `--out` that was itself a symlink, even one pointing at a file that did not exist yet.
11+
12+
The command now also refuses an `--out` that is an existing symlink, and resolves symlinks in both the current directory and the nearest existing directory above the target, refusing when the second is not under the first. Both refusals print the message absolute and `../` paths already get (`--out must be a relative path within the current directory`) and exit 2. Plain relative paths inside the tree write as before, including from a current directory reached through a symlink. A missing intermediate directory is still not created; the write fails as it did.
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+
---
4+
5+
fix(metadata-protocol): `revertCommit` reports an item of any type whose registry write-through or heal faults
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`revertCommit` now puts a restored `view`, `permission`, `object_extension` or other non-object item into `failed[]` when the runtime registry write-through for its restored body throws, and the answer's `success` is `false`. The entry names the row state ("its row was restored to the body of version N") beside the registry's reason, and carries the reason's `code` where it declares one, the same way a refused `object` has been reported since the previous change to this door. Before, the write-through's non-object branches (the overlay hydration, and the `object_extension` registration) only logged the fault at `warn`, so such a revert answered `success: true` with the item in `reverted[]`, while the process kept serving the body the revert replaced. `rollbackToPackageCommit` carries each such item into its own `failed[]` and answers `success: false`.
11+
12+
A removed item is reported the same way. When the revert soft-removes an item the reverted commit created and the registry heal after the removal stops (a registry throw, or the registry refusing a row of the item still stored under another package), the item goes into `failed[]` naming "its row was removed from sys_metadata" and that the registry may still serve the removed row, with the reason and its `code`. Before, the heal's stop was only an `error` line in the server log, and the item answered `removed`. The `error` line is unchanged.
13+
14+
This supersedes the sentence of the note on the previous change to this door that says a write-through fault of every type other than `object` "is still not seen by the revert": after this change, the revert sees it, and a stopped heal too.
15+
16+
Save, publish and delete do not change. Save and publish do not ask the write-through for these faults: under the same fault, `saveMetaItem` and `publishMetaItem` of a non-object item still answer success with no advisory, and the fault is still the same `warn` line in the server log. `deleteMetaItem`, a publish's undo and a peer's convergence ignore the heal's answer, so a stopped heal still answers what it answered before there, with the same `error` line.

0 commit comments

Comments
 (0)