Skip to content

Commit 77b2959

Browse files
committed
Merge origin/main into claude/issue-34991-between-bound-flake
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
2 parents 6dffff8 + eb7b09d commit 77b2959

205 files changed

Lines changed: 6697 additions & 535 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: 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 query skill says where a zoned date bucket is computed
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
objectstack-query's `rules/aggregation.md` no longer says a date bucket under a non-UTC `timezone` always keeps the whole aggregate call in memory. A driver that declares `supports.zonedDateBucketing` (PostgreSQL via `driver-sql`) buckets the date in the database when the zone resolves to an area/location (`Asia/Taipei`); on every other driver, and for a zone that resolves to none (`+08:00`, `EST5EDT`), the whole call still runs in memory. One eval case covers the sentence.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(console): the AI change card names a published object or field by the label its draft gives it
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The AI build chat's change card read an object or field label from the published registry first, and asked the draft overlay only for a name the registry did not know. So when a draft relabelled a published object or field (for example "Task" renamed to "Work item", or the field "Due" to "Deadline"), the card still showed the published label, the one the change is about to replace.
11+
12+
A published name now also asks the draft overlay (`GET /meta/object/:name?preview=draft`) for its object. The card shows the published label at once and the draft label as soon as the overlay answers; a name the draft did not change keeps its published label, and so does one whose overlay read fails. A label the draft changed is shown as written: the convention translation for that object or field was written for the published label and would hide the new one. A label the draft did not change still goes through the translation.
13+
14+
Cost: one more request per published object a card names, then at most one more per object each time the conversation moves on (a message lands, a turn starts or ends), and none while a read is in flight or on a re-render. A later relabel in the same conversation is therefore named on the next card. Drafted-only names keep the earlier rule (asked again only when the kept answer does not name them).
15+
16+
This supersedes one sentence of the pending entry that taught the card drafted labels ("A published object still answers from the registry without a draft read"): a published object now also reads the draft overlay, as above.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/formula': patch
3+
---
4+
5+
perf(formula): the expression type checks build each typed check environment once per input, not once per call
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The type checks behind the authoring rules (`firstTypeMismatch`, `firstDateTextVerdict` and `firstDateTextCall`) built a new typed CEL environment on every call. Each build clones cel-js's registry and registers the whole stdlib again. The runtime authoring gate runs these checks over every expression in the stack each time a metadata item is published, so the cost grows with the size of the stack, not with the size of the item.
11+
12+
Measured on the showcase: one object publish built 903 environments for 97 distinct inputs. That was about 0.5 s of the publish request on an idle machine. The publish request now takes about 1.0 to 1.3 s on an idle machine, down from 1.6 to 1.8 s.
13+
14+
The environments are now kept per input (scope, date typing and field types), up to 512, least recently used first. The checks only parse and type-check against these environments, so a shared one gives the same verdicts as a fresh one. Nothing changes in what the checks report.
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-data teaches that the package shipping a `fieldPatches` relabel translates that text in its own `translations`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-data/SKILL.md`, the `fieldPatches` paragraph: patched text is translated in the patching package's `translations`, under the owner's keys (`objects.crm_account.fields.industry.label`, `.help`, `.options.<value>`); the owner's translation of the text the patch replaced never applies, a pair `.custom` translation comes first on `/meta`, and a locale the package does not translate serves the patch text. This is the skill text for the behaviour `@objectstack/spec` 18 already ships; the docs page `data-modeling/object-extensions` teaches the same. One eval case asks where a dependent package's zh-CN strings for its patch go. The file pays in full by dropping restatement and its token ceiling does not move: the lead-in line under the Quick Reference heading, the second half of the multi-value-lookup note (the Relationship Patterns rows carry it), and the two unique scopes named again under the index example. No schema or runtime change.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
'@object-ui/console': patch
5+
---
6+
7+
feat(studio): flow node and list-view panels lead with labels, node delete moves to the header menu, navigation kinds read in words
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
Studio's Automations and Interfaces panels name things the way the author named them and keep machine names out of the way:
13+
14+
- **Flow node panel.** The first field is the node's Label. The node id moves into a "Developer info" section that starts collapsed. "Remove node" moves from the full-width footer button into the header's "···" menu; in Studio that menu sits in the automation panel's title bar. The removal itself is unchanged: neither the menu item nor the canvas Delete key asks to confirm, and both still refuse while a boundary event or an expression names the node.
15+
- **Objects by label.** In the node panel, the sentences that name an object ("Targets the … record that started this flow", "Fields of …") use the object's label. The object picker shows the label and keeps the machine name on its hover title.
16+
- **"Formula", not "CEL expression".** The node panel's value toggle, its placeholders and the blank-formula notice and the zh help rows of the trigger, Decision, record, loop, map, HTTP, action, screen, subflow and notify nodes say 公式 / "formula". The Update Records filter help no longer names `recordId`. The zh panel also gains the Update Records "update every matching record" row, which used to show in English.
17+
- **New automation dialog.** The first field is "Automation name" (自动化名称), matching the dialog title and the Automations list.
18+
- **List-view panel.** No `object.view` machine name under the title. The not-yet-created notice is one sentence: "Changes save as a draft first." Column rows show the field label, with the field name on hover. The Setup designers' column rows are unchanged.
19+
- **Navigation edit mode.** Each entry's kind badge reads the kind the navigation list shows (对象 / 视图 / 仪表盘 / 页面 …). An object entry that opens a named view, such as a kanban, reads 视图. The Setup designer keeps the raw type.
20+
21+
`@object-ui/i18n`: two new `studio` namespace keys (`engine.inspector.flowNode.moreActions`, `engine.inspector.flowNode.developerInfo`). Some existing `studio` values are reworded in en and zh.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/mcp': patch
3+
---
4+
5+
fix(mcp): the `describe_object` tool description says whose words a field `description` carries
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The tool description used to promise each field's `description` "where written", next to an object description "where the author wrote one", so a client read every field description as the app author's text. Most of them are not: on the CRM example no field declares a description, and every field description `describe_object` returns (8 on each of its 6 objects) belongs to a column the platform adds to the object (`organization_id`, `created_at`, `created_by`, `updated_at`, `updated_by`, `owner_id`, `owning_business_unit_id`, `queue`), each answered with `system: true`. The sentence now reads "description (where set: the author's, or the platform's on a column it injects)". The answer itself does not change: same keys, same values, on both transports. The object-level clause stays as it was, because an object's description is always the one its author wrote.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@objectstack/scenarios': patch
3+
---
4+
5+
fix(scenarios): a live turn that throws is recorded and replays as the same failure, and a skill file spelled otherwise than `SKILL.md` is refused by name
6+
7+
Clause-②: yes (widening: published @objectstack/scenarios ./runner types ThrownTurn, RecordedTurn and RecordedThrowError, plus one optional field on Recording.turns)
8+
Metadata-protocol: none
9+
10+
- **A thrown turn is recorded.** When a live question, dataset question, operation, confirmation or authoring turn threw, the recording held nothing for it, so a replay met a missing turn. A dataset question or a confirmation turn reads a missing turn as not measured, so a row that showed 4/5 live could show 4/4 on replay. The recording now holds such a turn as an empty turn with `thrown: { name, message }`, and the live error is still thrown exactly as before. A replay throws an error with the same name and message again, writes no recorded file and re-sends no write, so the runner counts it exactly as it counted the live throw. A recording made before this change has no such turns and replays exactly as it did. A throw that is itself a replay's verdict (a missing or unfaithful recorded turn, when a replay is recorded) is still left unrecorded.
11+
- **`--ask-skills` matches the skill file by its exact spelling.** The runner checked for `SKILL.md` with `existsSync`, which a case-insensitive filesystem answers true for `skill.md`. The run then crashed with `Cannot read properties of undefined (reading 'toString')`, and on a case-sensitive filesystem the skill was skipped without a word. The directory listing now decides. A skill directory whose file is spelled `skill.md`, `Skill.md` or any other case of `SKILL.md` is refused before any turn runs, with a sentence that names the file found and says to rename it to `SKILL.md`. This happens on every filesystem.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
'@objectstack/lint': minor
3+
'@objectstack/spec': minor
4+
'@objectstack/runtime': patch
5+
---
6+
7+
fix(lint, runtime)!: an action body that cannot compile in its `(async (input, ctx) => { … })` wrapper is refused at validate, build and publish, and at run time answers naming the action and the compile error
8+
9+
Clause-②: no (narrowing) — an L2 action body (`type: 'script'`, `body.language: 'js'`) that does not compile as the body of `(async (input, ctx) => { … })` passed `os validate`, `os build`, `os lint`, `os verify` and the runtime publish door (`action` and `object` writes); it is now refused there as `action-body-does-not-compile` at `error`, except a regular-expression literal the host engine refuses, which is a `warning`. Such a body never ran: every run failed with a SyntaxError before its first statement. `@objectstack/lint` also gains the exports `validateActionBodyCompiles`, `hostCompileFailure`, `ACTION_BODY_DOES_NOT_COMPILE`, `ACTION_BODY_PARAMETERS`, `actionBodyFunctionExpression` and two finding types on `.`, and `actionBodyFunctionExpression` on `./runtime`.
10+
Metadata-protocol: narrowed
11+
Skills-docs: follow-up owed — `skills/objectstack-data/references/data-hooks.md` teaches the action wrap `(async (input, ctx) => { … })` without saying a body must not declare `input` / `ctx` again; this change teaches it in `content/docs/ui/actions.mdx` and `content/docs/automation/hook-bodies.mdx`.
12+
13+
<!-- adr-0087: registered action-body-does-not-compile-refused -->
14+
15+
**BREAKING** only for an action body that never ran. The runtime compiles an L2 action's `body.source` as the statements of `(async (input, ctx) => { SOURCE })`, so a body that declares a wrapper parameter again (`const input = ctx.input || {}`, `let ctx = …`), or fails to compile there for any other reason, raises a SyntaxError before its first statement. Every authoring door accepted it: the parse check (`action-body-source-unparseable`) reads the source inside a different wrapper, and a parser reports no redeclaration. It deployed clean, and then every run of the action answered `500 INTERNAL_ERROR "Internal server error"` on the `/actions` door and MCP `run_action`. `action-body-does-not-compile` now refuses it at `os validate`, `os build`, `os lint` and the runtime publish door (`422 INVALID_METADATA`), naming the action, the compile error and its line of `body.source`. The publish door runs the rule on `object` writes too, so an object write cannot republish a refused body inline in `actions[]`. Hook and job bodies (`(async (ctx) => { … })`) are not judged. Measured first-party exposure: zero — `os validate` over the example apps reports no finding, and no skill or docs sample carries an action body that redeclares `input` or `ctx`.
16+
17+
**FROM → TO.** FROM `body: { language: 'js', source: 'const input = ctx.input || {}; return input.amount;' }` (accepted at every door, failing every run) TO `source: 'const params = ctx.input || {}; return params.amount;'` (or `return input.amount;`).
18+
19+
**Fix:** read the params as `input` (they are also `ctx.input`), or give the local another name (`const params = ctx.input || {}`); `var input = …` compiles. Fix any other compile error the finding names at the line it names. The semantic entry `action-body-does-not-compile-refused` carries the same notice into the upgrade guide and `os migrate meta`. `os explain action-body-does-not-compile` says what the rule judges and where the host's engine and the runtime's QuickJS differ.
20+
21+
The rule compiles the body inside the expression the runtime builds, from the same function (`actionBodyFunctionExpression`, which the QuickJS runner now builds its wrapper from, byte for byte as before), with the host's JavaScript engine and without running it.
22+
23+
At run time, an action whose body still does not compile (one deployed before this release, or syntax the host engine accepts and QuickJS does not) answers `500 INTERNAL_ERROR` on the `/actions` door and MCP `run_action` with the sentence `Action 'NAME' cannot run: its body does not compile (SyntaxError: …). The action's author must fix its body.source and publish it again.`, where it answered `500 INTERNAL_ERROR "Internal server error"`. The server log line reads `action 'NAME' does not compile: SyntaxError: …`. A body that crashes while running (a `TypeError`, a `SyntaxError` thrown by `JSON.parse`) still answers the sanitised `500`.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/scenarios': patch
3+
---
4+
5+
fix(scenarios): the runner loads a card's seed through the platform's seed path, so a build's status state machine no longer refuses rows the card states as already past their entry state
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The runner wrote every seed row through the data API as the admin. That is a user write, so a build's `state_machine` rule judged each one: a build that declared `initialStates: ['draft']` on a claim's status, as the data skill teaches, refused every claim the card states as `paid`, `submitted` or `rejected`, and every line and approval step under them failed for want of its claim. On `travel_expense` that was 114 root refusals and 470 cascaded ones, 584 of 757 rows.
11+
12+
The seed now goes in as one data-only package whose `data[]` holds the card's rows, installed through the managed install door. The platform's seed loader writes them as established facts: it skips the `state_machine` rule only, so every other validation rule and every hook still judges each row. Each row keeps the card's own `id`, a lookup value names the row seeded under it, and a user id in `owner_id` or a `user` field lands as sent. A refused row is still recorded with its object, id and the loader's message; the seed door names no error code. A restore puts a removed seeded row back the same way. The second pass, which sets the lookups that close a reference cycle, is unchanged.
13+
14+
Seed rows no longer fire a build's record-triggered flows, as the data API's insert did. No library card relies on that: every truth is computed from the seed's own values, and the cards that ask for such flows seed the values a flow would produce.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@object-ui/core': patch
3+
'@object-ui/plugin-dashboard': patch
4+
'@object-ui/plugin-report': patch
5+
'@object-ui/i18n': patch
6+
---
7+
8+
fix(dashboard): a drill on a dimension across a relationship lists its records, and a failed drill says so in the viewer's language
9+
10+
Clause-②: no
11+
Metadata-protocol: none
12+
13+
A dataset dimension can read a field of a related object (`crm_account.owner_id`). Clicking such a bucket in a dashboard widget or a report built a drill filter on the dotted path itself, which the data API refuses with `INVALID_FIELD` / 400, and the drill drawer then printed that English developer message to the viewer.
14+
15+
- **The drill resolves the relationship first.** `resolveDatasetDrillFilter` (`@object-ui/core`) reads the related object's ids matching the clicked value through the surface's own data source, as the viewer, and filters the base object on the relationship field: `{ crm_account: { $in: [...] } }`. A path of up to three hops (ADR-0071's limit) is read innermost first, one read per hop, and dimensions that share a hop are read together. A bucket with no relationship path drills exactly as before, with nothing extra read.
16+
- **No drill rather than a wrong list.** A path past three hops offers no drill. A relationship the object does not declare as a single-valued lookup, the empty bucket of a relationship dimension, and more than 200 related records at a hop open the drawer on a localized notice instead of a list. The id list is never truncated. A report emits no drill in those cases and logs why.
17+
- **The drawer speaks to the viewer.** When the drawer's list read fails, it shows a localized sentence (`dashboard.drillFailed`) instead of the server's message. New keys `dashboard.drillTooMany`, `dashboard.drillUnavailable` and `dashboard.drillFailed` are in every built-in locale.
18+
- `buildDatasetDrillFilter` now refuses a relationship-path dimension with a `FilterOperatorError` instead of writing a dotted key, and takes the resolved conditions as an optional sixth argument.

0 commit comments

Comments
 (0)