Skip to content

Commit a6db250

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-34807-draft-preview-list
2 parents c34be37 + b8408d8 commit a6db250

74 files changed

Lines changed: 3980 additions & 262 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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/scenarios': patch
3+
---
4+
5+
fix(scenarios): ask mode installs a build the unmanaged door refuses `UNMANAGED_INSTALL_UNCOPYABLE` managed instead, and records the install mode
6+
7+
Clause-②: yes (widening) — reachable from `./runner` (`src/runner/index.ts` re-exports `app.ts` and `orchestrate.ts`): the new optional method `AppHarness.installManaged` and `HttpApp.installManaged`; the new optional parameter `mode` of `installableManifest`; the new exports `fallsBackToManaged`, `InstalledBuild` and `InstallAnswer`; `ModeRun.template` typed `InstalledBuild`, which adds the optional fields `installMode` and `unmanagedRefusal`
8+
Metadata-protocol: none
9+
10+
Ask mode installed a verified build only unmanaged. The platform refuses an unmanaged copy of a build that carries an item no environment row can hold — a `capability`, which the metadata-type registry declares runtime-uncreatable — with `422 UNMANAGED_INSTALL_UNCOPYABLE`, and names the managed install. Builds of cards that gate actions on capabilities therefore installed nothing, and the ask round ran zero question turns.
11+
12+
Ask mode edits nothing, so on that refusal it now installs the same build, unchanged, through the same door with `installMode: 'managed'` (no `installModes` added: the door reads the build's own), and every fresh copy the Run half boots is installed the same way. The mode record's `template` names the install the mode ran on: `installMode` (`unmanaged` or `managed`), and, after a fallback, `unmanagedRefusal` with the refusal's status, code and message; the fallback is also listed as an ask finding. An unmanaged install that succeeds now records `installMode: 'unmanaged'`. No other refusal falls back, a managed install refused too is a finding naming both answers, and template mode never falls back: its agent edits the installed copy, which only an unmanaged install makes the environment's own.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/scenarios': patch
3+
---
4+
5+
fix(scenarios): `asked-back:no-figure` no longer fails an ask-back that counts its candidates or names a year written alone
6+
7+
Clause-②: no — `statedFigures` (`./score/full`) keeps its signature and answers differently: for the same text it returns fewer figures, leaving out a one- or two-digit count of the candidates an ask-back offers and a 19xx/20xx year a time word or 年 marks, unless a counted noun follows that year.
8+
Metadata-protocol: none
9+
10+
A correct ask-back that counted the readings it offered ("I found 2 metrics that match revenue: Booked amount or Billed amount — which one?", 「营收对应 2 个指标…您是指哪一个?」) failed `asked-back:no-figure` on the `2`, and so did one that named a year alone ("revenue in 2025?", 「2025 年的营收」). `statedFigures` now leaves out a one- or two-digit whole number followed by a candidate noun (metrics, measures, options, readings, datasets, candidates, choices, interpretations, definitions, meanings, matches; 个/种/项 plus 指标, 口径, 选项, 数据集, 度量, 候选, 含义, 理解, 解释, 读法), with at most one qualifier from a closed list between, and a 19xx/20xx year behind a time word (in, for, during, since, from, through, until, before, after, year, fiscal year, calendar year, FY) or before 年. A real figure still fails it: an amount (`1,234,500`, 「123.4 万元」), a percentage, a count of anything else (`42 orders`, 「3 张发票」), a decimal, a number with a unit or currency, a year-shaped number with no time word (`Revenue is 2025`, `a total of 2025 orders`), and a year-shaped count behind a time word that a counted noun follows (`payments for 2031 orders`, `from 1980 invoices`: any word ending in -s, or people/staff, except a closed list of words that follow a year as its subject or as grammar — sales, earnings, revenues, profits, results, figures, numbers, totals, margins, costs, expenses, this, its, his, was, has, is, as, thus, plus, versus, across — so `In 2025 sales grew` still reads no figure from the year). A count written as a word (「有两个指标」) was never read as a figure.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
'@objectstack/lint': patch
3+
'@objectstack/cli': patch
4+
'@objectstack/skills': patch
5+
---
6+
7+
feat(lint): a dataset measure or dimension that declares neither `synonyms` nor a `description` is advised
8+
9+
Clause-②: yes (widening) — @objectstack/lint gains three exports on its "." entry: validateDatasetMemberVocabulary, DATASET_MEMBER_NO_VOCABULARY and the DatasetMemberVocabularyFinding type; nothing accepted before is refused
10+
Metadata-protocol: none
11+
12+
A dataset member answers a business question through its vocabulary (ADR-0149 D1): `synonyms`, the words a person types for it, and `description`, a short business definition. Both keys are optional, so a dataset that declares neither on a member passes every check, and that member then answers only to its own name and label. A person who asks in other words, or in another language, matches nothing and gets a number from a plain object query instead of the governed metric.
13+
14+
`@objectstack/lint` adds one advisory rule, `dataset-member-no-vocabulary` (`warning`). It reports once per measure or dimension that has no non-blank `synonyms` entry and no non-blank `description`, names the dataset and the member, and says what is lost. One of the two keys is enough to silence it. It runs at `os validate`, `os build` and `os lint`, and at the metadata publish door for a `dataset` write, where it is an advisory on the save response. Nothing is refused: a dataset that only feeds charts loses nothing by leaving both keys out. `os explain dataset-member-no-vocabulary` prints the full reasoning.
15+
16+
The author-time rule count the CLI prints (`Running author-time rules (N)`) rises by one, to 70 for `os validate` and `os build`.
17+
18+
`@objectstack/lint` exports `validateDatasetMemberVocabulary`, `DATASET_MEMBER_NO_VOCABULARY` and the `DatasetMemberVocabularyFinding` type.
19+
20+
`@objectstack/cli`: `os generate dataset` now writes one `synonyms` entry on each member it scaffolds, seeded from a label the stack already declares (the title field's label on the dimension, the object's plural label on the record count), in whatever language that label is written in, under a comment that says to replace the seed with the words your users type and to add a `description`. A fresh scaffold therefore draws no finding. When a seed would answer to two members (a title field labelled like the object), the scaffold picks the next candidate, so the dataset it writes always parses.
21+
22+
`@objectstack/skills`: the `objectstack-ui` dashboards rule now says, for every dataset member, to write `synonyms` as the words a person types, in the language of the brief, and a one-sentence business `description`; that one word names one member; and that a member with neither draws the new warning. Its dataset example gives the dimension a synonym too, and the skill's evals gain a case for a dataset authored from a Chinese brief.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
'@object-ui/components': patch
5+
---
6+
7+
feat(studio): the Data pillar's Records tab keeps Add field on screen, a header click opens the field, the name field leads, and the field inspector puts the label first
8+
9+
Clause-②: yes (widening) — an optional `columnMenuLabel` member on the exported `GridFieldAuthoring` context type of `@object-ui/components`, and new keys in the lazy `studio` namespace of the `@object-ui/i18n` packs; nothing that worked before is refused
10+
Metadata-protocol: none
11+
12+
Studio's Data pillar, Records tab:
13+
14+
- **Add field is always on screen.** The records grid's toolbar row now starts with an Add field button that opens the same Add field popover. The trailing "+" column is kept. Both entries are offered only where a field may be added: not on a read-only package, not on an external object.
15+
- **A header click opens the field.** Clicking a field's column header selects the field and opens its properties, and no longer sorts. Sort and hide are in the column menu, which a caret in every header now opens (the same menu a right-click opens). A column the object does not declare (such as the server's owner column) keeps the old click.
16+
- **The name field leads.** The grid puts the object's name field first, frozen, in the shared order every list uses, and the server-injected columns (`owner_id`) after the author's fields. Only the Studio grid changes; runtime list views keep their column order.
17+
- **The machine name is a tooltip.** The object's title no longer carries its machine name as a chip beside it; hovering the title shows it.
18+
19+
Field inspector:
20+
21+
- **The label comes first.** The display name is the first box. The API name moves into a collapsed "Developer info" section.
22+
- **Delete is confirmed.** Remove moves from the inspector's footer into the header's "⋯" menu, and asks before it removes the field from the draft.
23+
24+
`@object-ui/components`: `GridFieldAuthoring` gains an optional `columnMenuLabel`. When a host sets it, every column header draws a caret, named by the value, that opens the table's own column menu (sort ascending, sort descending, hide). A table with no provider, or a provider that does not set the member, draws exactly the header it drew before.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
feat(flow designer): edge conditions as field rows, and approvals inserted with their approve and reject edges
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
- **Edge conditions are filled in by field.** A connection's condition now opens as field / operator / value rows (the list toolbar's filter builder), with Formula one click away. The rows write CEL the engine already runs, for example 「会议日期 晚于 今天」 as `record.meeting_date != null && record.meeting_date > today()`. A stored condition opens as rows only when it is exactly what the rows would write. Any other condition opens in the formula input, unchanged. A row that cannot be written faithfully (case-insensitive contains, a date-time literal, a relative week window) saves nothing and says so.
12+
- **The reference picker leads with business fields, by name.** The trigger record's own fields come before the platform's columns (audit, tenancy, `id`). A field with a label shows that label as its main text, with its spelling beside it.
13+
- **An approval comes with its outcomes.** Inserting an approval node on a connection adds an `approve` edge to the next step and a `reject` edge to a new "Rejected" end. Appending one adds "Approved" and "Rejected" ends. The canvas shows those labels in the designer's language. An approval missing either edge is reported in the Problems tab, on the node.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@objectstack/runtime': patch
3+
'@objectstack/mcp': patch
4+
---
5+
6+
feat(mcp): `list_objects` and `describe_object` serve labels and descriptions in the caller's locale
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
The two MCP object tools now serve the object's label and description, and each field's label, description and option labels, in the caller's locale, the way the REST `/meta` object door serves them. Before, both tools served the authored text in every locale. A client asking in Chinese about an app with a Chinese translation bundle was shown the English labels.
12+
13+
- **HTTP:** the locale is the request's `Accept-Language` (then `?locale=`, then the i18n service's default), read and translated by the `/meta` door's own routine. The dataset tools already used the same routine.
14+
- **stdio:** the transport carries no request, so the locale is the i18n service's default. The stdio `list_datasets` already uses that locale.
15+
16+
Translation runs on the object as the caller is served it, after the field mask, so a field the caller cannot read stays absent and so does its translated text. Names and option values never change. Where the bundle has no entry for a key, or no i18n service is registered, the tools serve the authored text. Without `Accept-Language`, the HTTP tools now serve the i18n default locale's bundle entries, as the REST door does. An app whose `en` bundle relabels a field (app-crm's `amount` is "Deal Value") shows that label there.
17+
18+
The answer's shape is unchanged. Validation rule messages are translated by the same routine where the bundle carries them.

‎.claude/skills/pm-dispatch/references/lanes/eval.md‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## 座位与唤醒
55

66
- 席位 `eval#N`,首席 `eval#1`;签名、座位贴、信箱同他席;无 `domain:*` 标签、无 `pm:queue`。
7-
- 定时归本席自控(维护者令):自建自调 Routines;每周一轮场景卡,问数基线每天一轮。
7+
- 定时归本席自控(维护者令):自建自调 Routines;场景卡与 ⑥ 每周一轮,问数基线与 ⑤ 每天。
88

99
## 评测范围
1010

@@ -13,6 +13,10 @@
1313
- 它从云端对固定托管测试环境运行,按正确、有引用、无泄露三项评分。
1414
- ③ 托管聊天评测集的 13 个场景:仓库密钥配齐后纳入。
1515
- ④ AI 写数据五道关卡:建成后纳入例行。
16+
- ⑤ MCP 问数日轮:开源跑分器 ask 模式问带数据集的卡;本地起应用,订阅登录,不读 cloud 仓。
17+
- ⑤ 以通用客户端读服务端(匹配、编译、权限、标签);② 读产品 agent,仍是标杆,节奏照旧。
18+
- ⑥ 技能评测:`pnpm skill-evals`(`@objectstack/scenarios`)以订阅登录跑 `skills/*/evals/*.json`。
19+
- ⑥ 带技能、不带技能两臂,一轮一张 `eval-run`;带技能仍败以 `finding` 报 `domain:skills`。
1620

1721
## 成本规则
1822

@@ -23,23 +27,18 @@
2327

2428
## 产出
2529

26-
- 场景卡每轮照 `scenario-eval` 跑并立 `eval-run` 记录;他项每轮一份评分卡;皆附上轮趋势对比。
30+
- ①⑤⑥ 立 `eval-run` 记录(①⑤ 照 `scenario-eval`);他项每轮一份评分卡;皆附上轮趋势对比。
2731
- 产品缺陷按立卡门交对应车道;评分误判交跑分器维护者。
2832

2933
## 边界
3034

3135
- ⛔ 不派 `os-dev`、不改产品代码、不开 PR。
3236
- 技能文本归 `domain:skills`;本席见文本问题以 `finding` 报。
3337
- 安全发现(含任何泄露)只照 `../security-findings.md`;评分卡里的泄露只写有泄露,⛔ 不写内容。
34-
- ⛔ 不对外发布准确率数字;唯场景卡 `eval-run` 记录带全分进本仓(维护者令)。
35-
- 问数基线 ② 的数字仍不对外;对外口径由维护者决定。
38+
- ⛔ 不对外发布准确率数字;唯场景卡与 ⑥ 的 `eval-run` 记录带全分进本仓(维护者令)。
3639

3740
## 地盘
3841

3942
- 本仓:`docs/qa/scenarios/**`、`packages/qa/`、`packages/cli/src/lint/` 下的跑分器文件。
4043
- cloud:`packages/service-ai-studio/src/evals/` 的运行与题库维护;代码修改仍走对应车道。
41-
42-
## 交接
43-
4444
- cloud 场景库专题建完场景库、运行器与跑分器后,例行运行移交本席,该专题关闭。
45-
- 问数基线从云端对固定托管测试环境例行;托管聊天评测集与五道关卡就绪即纳入例行。

0 commit comments

Comments
 (0)