Skip to content

Commit ceeec02

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-hictiz
2 parents bfaef93 + b4ce310 commit ceeec02

107 files changed

Lines changed: 5417 additions & 528 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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/runtime': patch
3+
---
4+
5+
fix(runtime): an addressed `/automation/:ns/:name/(runs|trigger)` route under a verb it does not serve answers the automation domain, as its bare path does
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
On the standalone server (the dispatcher plugin on an HTTP adapter), an address is served exactly as its bare path (ADR-0150 D5), but a verb the route is not served under was answered differently on the two. `DELETE /api/v1/automation/send_digest/runs` answered the automation domain's `405` with `Allow: GET` in the dispatcher's envelope, and `401 UNAUTHENTICATED` to an anonymous caller. `DELETE /api/v1/automation/crm/send_digest/runs` answered the transport's `405` with `Allow: GET, HEAD` and an `error.details` envelope, to an anonymous caller too. The same held for `POST` / `PUT` on the addressed `/runs`, `GET` on `/automation/NS/NAME/trigger` and `GET` on `/automation/trigger/NS/NAME`.
11+
12+
The dispatcher now declares those three addressed shapes as routes whose domain decides every verb, as it already did for their bare two-segment shapes. Each of them answers an anonymous caller `401`, and a signed-in caller the domain's `405` with the verbs the route serves (`Allow: GET` for `/runs`, `Allow: POST` for both triggers) in the dispatcher's envelope. A served verb on an address (`GET .../runs`, `POST .../trigger`) is unchanged, and so is a three-segment path whose first segment is no installed namespace: under an unserved verb it now answers the dispatcher's `404 ROUTE_NOT_FOUND`, as the same path does under `GET`.
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: 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 `HttpConfigSchema.method` TSDoc says how a durable `http` node's verb is resolved, without quoting removed code
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The TSDoc on `method` in `io-node-config.zod.ts` quoted two `??` spellings the `http` node executor no longer has. It now says that a durable node with no `method` sends `POST`, whether through the messaging HTTP outbox or on the no-outbox fallback, and that the executor resolves the verb once from the authored `method` and `durable`. The schema itself is unchanged.
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: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@objectstack/service-automation': patch
3+
---
4+
5+
fix(service-automation)!: a trigger binding does not dispatch a slot whose package is disabled (ADR-0150 D3)
6+
7+
Clause-②: no (narrowing)
8+
Metadata-protocol: none
9+
10+
<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. The moved answer is a trigger-fired run under a reversible package state: no stored row, slot key, run key, trigger binding or dispatch key changes, so there is nothing for a migration to rewrite and no tombstone. -->
11+
12+
**BREAKING** for a deployment where two packages each ship a flow of the same name and one of them is disabled at runtime: that package's flow no longer runs on its trigger (record-change, schedule, time-relative, or an api inbound hook's queued post). Before this release it kept running.
13+
14+
When two packages each ship a flow of the same name, the engine holds one slot per package and arms each slot's trigger. Until now a slot whose package was disabled at runtime kept running on its trigger, because the run a trigger fires executed the armed slot without asking whether its package is still served.
15+
16+
Now the engine asks when the trigger fires. While the slot's package is disabled, the run is skipped: nothing runs, no other package's flow of the name runs in its place, and no run-history row is written. The skip is logged once at `info` per slot while the package stays disabled. When the package is enabled again, the slot runs on its trigger again, with no re-arm.
17+
18+
An event that fires while the package is disabled is dropped, not replayed when the package is enabled again: a one-shot schedule or time-relative fire that falls inside the disable is lost, as it is for a switched-off flow.
19+
20+
Nothing durable moves: slot keys, run keys, the trigger bindings and the dispatch holder stay judged over every holder, so there is nothing to migrate. A flow name only one package ships answers as before.
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: 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.

0 commit comments

Comments
 (0)