Skip to content

Commit 5fbed2b

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-n6i8le
2 parents be0d2df + 403ca01 commit 5fbed2b

42 files changed

Lines changed: 2000 additions & 191 deletions

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+
'@object-ui/i18n': patch
3+
---
4+
5+
feat(i18n): the `studio` namespace gains `engine.studio.rail.clearSearch` (en "Clear search", zh "清除搜索")
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The Studio rails (Data, Automations, Access) now share one empty-search state: a search that matches nothing names the query under the box and offers a "Clear search" action that empties the box and puts every row back. This row is that action's label; the sentence reuses the existing `engine.list.emptyQuery` row.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@object-ui/i18n': patch
3+
---
4+
5+
fix(app-shell): the dashboard's Add-widget menu and the widget Type select offer every widget type the spec accepts, from one registry
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Studio's two dashboard widget-type pickers kept their own lists and disagreed with each other and with the spec: the Add-widget menu offered 11 types, the inspector's Type select 10 (no `scatter`), and `ChartTypeSchema` accepts 20, all of which a dashboard draws. Both pickers now read one registry derived from `ChartTypeSchema`, so they offer the same 20 types and follow the spec when it changes.
11+
12+
- The `studio` namespace gains the names of the newly offered types: `engine.inspector.widget.type.*` for `column`, `scatter`, `treemap`, `sankey`, `combo`, `gauge`, `solidGauge`, `kpi`, `bullet` and `radar`, and `engine.widgetPicker.type.*` for the same types except `scatter`, in en and zh.
13+
- `engine.inspector.widget.datasetHint` no longer mentions an "inline object query above", which the widget inspector has not had since ADR-0021; it describes the dataset, dimension and measure controls the inspector shows.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): objectstack-formula eval case 4's reference answer names the refused date forms without spelling its own `must_not_contain` strings
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
- **Before.** Case 4 of `skills/objectstack-formula/evals/cel-predicates-formulas.json` refuses `new Date(` and `today() + ` in an answer, yet its own `expected_output` spelled both (`` `new Date()` `` and `` `today() + 45` ``), so a reference-grade answer was graded wrong.
11+
- **Now.** The reference answer says "never a JS `Date` / `Date.now()`" and "never date arithmetic on `today()` (it faults)", as case 7 names "the `label` macro". Every assertion and every fact stays: the CEL envelope seed, the determinism gate, `daysBetween(today(), record.close_date)`, the `{}` duration trap. A per-case cross-check (no `must_not_contain` string inside its own `expected_output`, every `must_contain` string present) reports 0 failures over all 7 cases; the file keeps its byte size, so its token-ratchet row does not move.
12+
- No schema, key or behaviour changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@object-ui/core': patch
3+
---
4+
5+
fix(core): the console runs a stored action that leaves `type` to its default as a script action
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`ActionSchema.type` defaults to `script`, but the console runs a stored action row as it was stored, not as the spec parses it. An action saved without `type`, such as the blank New skeleton in Studio or a row an older Studio build wrote, had its route resolved to its own name, matched no executor and was refused as "not executable".
11+
12+
- **The action runner now reads a missing `type` as the spec's default** at the one place it picks the dispatch route. A typeless `{ name, body }` action and a typeless `{ name, operation: 'update', patch }` action both reach the registered `script` dispatch, which posts the platform action route.
13+
- **Unchanged:** an unknown `type` and a completely empty schema are still refused; a handler registered under the action's name still runs first; a typeless action that declares a runner key of its own (`navigate`, `api`, `endpoint`, `onClick`, `redirect`, an explicit `reload` or `close`) still runs on that key.
14+
- No writer adds `type`, and no stored row changes.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/metadata-core': patch
3+
'@objectstack/metadata-protocol': patch
4+
'@objectstack/objectql': patch
5+
---
6+
7+
fix(metadata-protocol): load-time diagnostics no longer report "`picklist` and `options` cannot both be declared" on a field that declares only `picklist`
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
A select field that names a shared list (`picklist: 'industry'`) is served with the list's options written beside `picklist`, and the diagnostics judged that served copy, so every shared-picklist field of every app was reported as declaring both keys: in an item's `_diagnostics`, in the list read's, and in `GET /meta/diagnostics` (Setup › All Metadata Types). They now judge the field as its author wrote it.
13+
14+
- **The rule stands.** A field that authors both `picklist` and `options` is still reported, with the same message and severity, at `fields.NAME.options`.
15+
- **What `/meta` serves is unchanged.** A picklist-bound field is still served with `picklist` and the resolved `options`.
16+
- **How the two are told apart.** The picklist resolution marks the options array it derives; `@objectstack/metadata-core` exports `markResolvedPicklistOptions` and `isResolvedPicklistOptions`, and the diagnostics leave a marked array out of the judgement. The mark is not part of any response or stored row.

‎.claude/skills/pm-dispatch/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → 复核 → 报
162162
| `domain:skills` | governed 面全量(含本文件;统一定义见「governed 面统一定义」行);非门禁的 `scripts/pm/**`(PM 循环工具);governed 面的治理执行文件:`.github/CODEOWNERS` + SUBJECT 是 governed 面本身的门禁/审计(现为 `scripts/pm/check-governed-merges.mjs`) |
163163
| `domain:spec` | `packages/spec` 整包:schema 形状、`contracts/**`、退役行为半边、strictness 台账;describe/JSDoc/墓碑散文/错误 guidance 与 alias 表;`packages/spec/scripts/**`、`packages/spec/docs/**` 及按锚定规则的例外归本域的工具链(域边界枚举与席内分派见 `references/lanes/spec.md`) |
164164
| `domain:ui` | `ui/**` 全部代码:`@object-ui/*` 库与 `ui/apps/*`、`ui/packages/types` 与 schema 语料、`ui/scripts` 与门禁工具、文档随所记录的面走;`packages/console`(dist 由 `pnpm console:build` 生成 ⛔ 不手改);协议恒归 `domain:spec`,受管面归 `domain:skills`;详见 `references/lanes/ui.md` |
165-
| `domain:cloud` | 云服务旅程,停放(加 `status:parked`,sweep 免扫)待 cloud PM 迁移,本仓不派 |
165+
| `domain:cloud` | 凡涉 cloud 即归 cloud PM(非按落点):停放(加 `status:parked`,sweep 免扫),本仓不派 |
166166
| (无固定归属,按落点分诊) | `packages/apps/*`、`examples/*`(归它演练的子系统)、`docs/audits/**` |
167167

168168
- 表未覆盖的包首次分诊时归类并走 PR 更新本表;新增或退役 `domain:*` 必须同批改本表。

‎.claude/skills/pm-dispatch/references/coordinator.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@
4545
## 七、语言与汇报(coordinator 与席位线程皆读)
4646

4747
- 项目内对维护者用维护者的语言;GitHub 内容英文,照 SKILL.md 全体座位不变量。
48-
- 只在结果、阻塞或待裁决时向维护者汇报,与席位同规;例行进展进线程清单。
49-
- 转述线程 PR「无需你做」前自读其 `mergeable_state`;`dirty` ⇒ 退回线程先合 main,⛔ 不转述。
48+
- 向维护者报任一 PR 状态前同轮重读:merged、draft、auto_merge、在队、reviews、`mergeable_state`。
49+
- 无 APPROVED 也可能已被 ready 入队 ⇒ ⛔ 单读 reviews;已办即删;`dirty` ⇒ 退回线程先合 main。

‎.claude/skills/pm-dispatch/references/triage-duties.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
- 「无则关」= 首触即关 not_planned,带理由与入队三门,⛔ 不定 p3、不 hold;下行同此。
5656
- 所入车道队列 P0/P1 开着(= 未派发,在飞不算)时,三门皆无的 p2/p3 `tooling` 卡同样关。
5757
- 路由是分诊的技术判断,⛔ 永不升级哪个仓的问题;父单是协调节点,永不派发。
58+
- 涉 cloud 任一即算:修复/验收/必经步骤落 cloud 仓或托管面;cloud 卡半张或被其阻;因在 cloud。
59+
- 不算:只在 cloud 测得而修复与验收全在本仓;仅引 cloud 卡作历史;命中者归 cloud PM。
60+
- 已 `pm:dispatched` 到本仓车道的原地完工,评论注明涉 cloud 给 cloud PM,⛔ 认领中不迁。
5861
- 父单已有子结构的:父单队列标签即可,分诊逐个展开路由、补 `Blocked-by:` 排序。
5962
- 跨层功能点(≥2 层)立父单带 `area:*`+`pm:epic`+清单项级,逐层子单按 `Blocked-by:` 排。
6063
- 每张留一条英文审计评论(`Triage: lands in …; rationale: …`),可选带 `Size/model suggestion:` 行。
@@ -65,17 +68,14 @@
6568
- 执行席 ⛔ 不并卡,疑重复挂 `pm:retriage` 写明哪两张同文件同机制;同 assignee 者自关后卡。
6669
- 生产者在哪是常设分诊问题:declared ≠ enforced 形状的卡先问谁在写这个字段。
6770
- 首触答责任三问:谁的代码出险/有正路否/谁可达且有人用否;据答改卡范围、域与路由。
68-
- 发现分诊轮:`finding` 恒 = 待首次定级、定级即离标;hold 重验只在 `Restart-when:` 命中时发生。
6971
- ⛔ 不设逐卡豁免评论;每 fire 定完全部未定级 finding,优先于旧卡重验。
7072
- 三类外不可逆或有硬时限(发版即固化、只被消费的文件、过窗不可补)⇒ 不关,报维护者。
7173
- 三类外首触关闭只清门前存量,关 not planned(不等批准可否决重开);三类内无证据拒收。
7274
- 三类内再过时前提检查,三选一:晋级 / 关闭 not planned / hold;判级只在此轮,不在立单时。
73-
- ⛔ 写入前对每张卡现读当前状态;任何列表快照读数一律作废。
7475
- ⛔ 带 `pm:dispatched`/assignee/open 或 merged PR 引用的卡不动;例外:下三行、main-red 锚卡首触。
7576
- 在飞活性复查:认领逾一天无自有产出(commit/PR/评论)⇒ 敲门一次,首行键 `Owned-24h re-check:`。
7677
- 敲门后 `RECLAIM_AFTER_HOURS = 12` 小时无答复 ⇒ `label-write.mjs --release` 一笔中继释放,贴不动。
7778
- 释放:`Release:` 评论(出处三件)+ `Resume-from:` 行 + `pm:dispatched`→`pm:queue` + 清 assignee。
78-
- `pm:retriage` 每 fire 先答所求、同笔摘标;须维护者答的入箱;既裁砍项与席改标退回执行席。
7979
- retriage 的异议判据认内容(有评论写明所求)⛔ 不认形状(有一条异议评论)。
8080
- 人工地板(恒呈维护者):功能新增;ADR;协议/公开契约变化;破坏性或难回滚动作。
8181
- 人工地板同含:安全/权限边界;门禁削弱(降阈/删必查/抬上限/跳测);新增运行时第三方依赖;

‎.github/workflows/ci.yml‎

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3006,8 +3006,17 @@ jobs:
30063006
- name: Setup workspace
30073007
uses: ./.github/actions/setup-workspace
30083008

3009-
- name: Setup Next.js cache
3010-
uses: actions/cache@v6
3009+
# The Next.js cache is RESTORED on every run and SAVED only on `push` and
3010+
# `schedule`, by "Save Next.js cache" at the end of this job -- the rule
3011+
# `.github/actions/setup-workspace` holds for the pnpm store, for the same
3012+
# reason: an entry saved on a pull request or merge-queue ref is
3013+
# restorable only from that ref, yet it counts toward the one 10 GB
3014+
# Actions cache pool and evicts `main`'s entries, which every pull request
3015+
# and queue run CAN restore. ⛔ No `pull_request` or `merge_group` run
3016+
# saves it.
3017+
- name: Restore Next.js cache
3018+
id: nextjs-cache
3019+
uses: actions/cache/restore@v6
30113020
with:
30123021
path: apps/docs/.next/cache
30133022
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('apps/docs/**.[jt]s', 'apps/docs/**.[jt]sx', 'content/**/*.mdx') }}
@@ -3073,9 +3082,9 @@ jobs:
30733082
# this card exists to catch, arriving AFTER the gate reported green.
30743083
# Assert the artifact rather than trusting the exit code.
30753084
#
3076-
# `.next/BUILD_ID` cannot be a leftover from the cache step above: that
3077-
# step stores `apps/docs/.next/cache` ONLY, so nothing outside that
3078-
# subtree is ever restored. ⛔ Widening that cache path to
3085+
# `.next/BUILD_ID` cannot be a leftover from the cache restore above:
3086+
# the Next.js cache steps store `apps/docs/.next/cache` ONLY, so nothing
3087+
# outside that subtree is ever restored. ⛔ Widening that cache path to
30793088
# `apps/docs/.next` would let this assertion pass without a build.
30803089
- name: Assert the docs app actually built
30813090
run: |
@@ -3086,6 +3095,31 @@ jobs:
30863095
fi
30873096
echo "Built docs app: BUILD_ID=$(cat apps/docs/.next/BUILD_ID)"
30883097
3098+
# The save half of "Restore Next.js cache" (its comment says why it runs
3099+
# on `push` and `schedule` only). It reproduces what the combined
3100+
# `actions/cache` post step did on those events, three ways:
3101+
# - no status function in `if:`, so it runs only when every step above
3102+
# succeeded -- the combined action's `post-if: success()`;
3103+
# - skipped on an exact hit, which has nothing new to write;
3104+
# - saved under `cache-primary-key`, the key the restore step resolved
3105+
# BEFORE the build, which is the key the combined action saved under.
3106+
# A key re-hashed here would hash `apps/docs/`, the tree the build
3107+
# has just written into, so it could differ from the key the restore
3108+
# looked up.
3109+
# A main-phase step, bounded and `continue-on-error` like the ui jobs'
3110+
# saves: a stalled or failed upload costs the next run time and says
3111+
# nothing about the docs build.
3112+
- name: Save Next.js cache
3113+
if: >-
3114+
(github.event_name == 'push' || github.event_name == 'schedule')
3115+
&& steps.nextjs-cache.outputs.cache-hit != 'true'
3116+
uses: actions/cache/save@v6
3117+
timeout-minutes: 5
3118+
continue-on-error: true
3119+
with:
3120+
path: apps/docs/.next/cache
3121+
key: ${{ steps.nextjs-cache.outputs.cache-primary-key }}
3122+
30893123
# ── THE ui/ JOBS (objectstack#25697, epic objectstack#25677) ──────────────
30903124
# objectui is imported under `ui/` as a subtree. These four jobs are its CI,
30913125
# ported from objectui's own ci.yml (`Type Check`, `Test (shard n/16)`,

‎docs/adr/0097-declarative-connector-instances.md‎

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
**Builds on**: [ADR-0015](./0015-external-datasource-federation.md) (open mechanism / enterprise lifecycle split), [ADR-0018](./0018-unified-node-action-registry.md) (`connector_action` baseline dispatch + `engine.registerConnector()`), [ADR-0022](./0022-connectors-vs-messaging-channels.md) (Connector = transport/integration mechanism), [ADR-0023](./0023-openapi-to-connector-generator.md) (OpenAPI → Connector generator), [ADR-0024](./0024-mcp-connectors.md) (MCP servers as connectors)
66
**Tracking**: framework#2977 (supersedes the interim descriptor-only contract from framework#2612)
77
**Consumers**: `@objectstack/spec` (`stack.zod.ts`, `integration/connector.zod.ts`), `@objectstack/service-automation` (boot audit → provider binding), `@objectstack/connector-openapi`, `@objectstack/connector-mcp`, `@objectstack/connector-rest`, the Studio flow palette, AI authoring (stack generation)
8-
**Amended by**: [ADR-0143](./0143-outbound-connector-auth-is-open-tier.md) (2026-10-27) — OAuth2, the vendor app-credential exchange and request signing join `ConnectorInstanceAuthSchema` in the open tier, and those kinds resolve per dispatch; see the notes under §3 and under "Open / enterprise line".
8+
**Amended by**: [ADR-0143](./0143-outbound-connector-auth-is-open-tier.md) (2026-10-27) — OAuth2, the vendor app-credential exchange and request signing join `ConnectorInstanceAuthSchema` in the open tier, and those kinds resolve per dispatch; see the notes under §3 and under "Open / enterprise line". PR #26798 (2026-10-27, #26709 item 3(b)) — a credential the MCP server rejects (HTTP `401` / `403`) is a fatal configuration fault, not upstream-unavailable; see the note under "Upstream availability".
99

1010
---
1111

@@ -190,6 +190,25 @@ dispatch was rejected: MCP actions ARE the server's `tools/list`, so a
190190
connector materialized without connecting would register a zero-action def —
191191
exactly the plausible-but-dead shape this ADR exists to kill.
192192

193+
> **Amendment note (2026-10-27, #26709 item 3(b) — PR #26798).** The sentence
194+
> above has one exception past transport validation: a credential the MCP
195+
> server **rejects** — an HTTP `401` / `403` on connect, handshake or
196+
> `tools/list` — is a **configuration fault**, thrown plain: fatal at boot, a
197+
> skipped entry on reload, never `CONNECTOR_UPSTREAM_UNAVAILABLE` and never
198+
> retried. It sits on the fatal side of this section's own split, beside an
199+
> unresolvable `credentialRef` and the `openapi` provider's non-retryable
200+
> `4xx` (a `401` included) on its spec fetch: retrying cannot make a wrong,
201+
> missing or under-scoped credential valid, and a degraded instance retried
202+
> with backoff reads as "server down", hiding the misconfiguration the author
203+
> has to fix. The rejection is told apart by the MCP SDK's own HTTP-transport
204+
> errors only — a `StreamableHTTPError` with status 401 / 403, or an
205+
> `UnauthorizedError`, in the error's `cause` chain
206+
> (`packages/connectors/connector-mcp/src/mcp-provider.ts#credentialRejectionStatus`, `#createMcpProviderFactory`);
207+
> a JSON-RPC error that merely carries a numeric code 401 stays operational, as
208+
> does every other connect / `tools/list` failure. Pinned against a real
209+
> Streamable-HTTP server in
210+
> `packages/connectors/connector-mcp/src/mcp-http-discovery-faults.test.ts`.
211+
193212
The `openapi` provider applies the same split to its **remote-URL spec fetch**:
194213
an unreachable endpoint (network error) or a transient HTTP status
195214
(`408` / `429` / `5xx`, mirroring the `retryableStatusCodes` convention) is

0 commit comments

Comments
 (0)