Skip to content

Commit 017d0bf

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-w36b67
2 parents 98b05f5 + 40a9265 commit 017d0bf

50 files changed

Lines changed: 2066 additions & 148 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: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
'@objectstack/rest': patch
4+
'@objectstack/runtime': patch
5+
---
6+
7+
fix(metadata-protocol,rest,runtime): `GET /meta/:type/:name/layers` serves the pending draft as stored, so an editor re-opens an author's draft without translations or injected columns (#29814)
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
The layered view now serves the `draft` layer that `GetMetaItemLayeredResponseSchema` declares, on `RestServer` and on the runtime dispatcher, and on the deprecated `?layers=` spelling too. Before, the only read of a pending draft was `?state=draft`, which serves it translated for the caller's locale and governed (the platform's injected columns added), so an editor that built its buffer from it and saved it back wrote translations and platform columns into the author's draft.
13+
14+
- **What `draft` is.** The row the `?state=draft` read serves, at the same address (`?package=` picks that package's draft), exactly as stored: converted like the `overlay` layer and credential-redacted like every layer, never translated, governed or stamped. `null` when no draft is pending. An edit buffer reads `draft ?? overlay ?? code`.
15+
- **Who is served it.** Only a caller the draft-read admission already admits (the predicate every draft read asks: a system caller, `studio.access`, `setup.access` or `manage_metadata`). The per-caller gate judges it like the other layers: whole for whoever may write the item, pruned as `?state=draft` prunes it otherwise. Any other caller is answered the layers with no `draft` key, which says nothing about whether a draft exists, and a name with only a draft stays a `404` for them.
16+
- **Unchanged.** `?state=draft` and every other read answer as before. A never-published name an admitted author holds a draft of is now answered `200` with only its `draft` layer, where it was a `404`.
17+
- **Protocol.** `getMetaItemLayered(request, { withDraft: true })` reads the layer; without the option the answer carries no `draft` key, so its in-process readers read no draft.
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): Studio's action preview draws a param's authored `widget` the way the action dialog draws it (#30117)
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
An action param may name a widget (`widget: 'permission-ref'` on a `text` param is the permission-set picker). The action dialog drew that widget, while Studio's action preview read only the param's `type` and drew a text box. The preview now asks the dialog's own adapter which widget it draws, so a `permission-ref` param previews as a picker, and an unregistered widget name previews as the `type` control, the same fallback the dialog takes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/platform-objects': patch
3+
---
4+
5+
fix(platform-objects): Create User's permission set is picked from a list of the permission sets, by label, instead of typed as a machine name (#30117)
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The optional Permission Set on Setup's Create User dialog was an empty text box that accepted only a set's machine name, while everything else in Setup shows sets by their labels. Typing the label the administrator could see was refused. The `create_user` action's `permissionSet` param now declares `widget: 'permission-ref'`, so the dialog draws the permission-set picker the grant column itself uses: a searchable list of the permission sets, each shown by its label, that submits the chosen set's name. The value is still a set's name, and the endpoint and the grant are unchanged.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/plugin-auth': patch
3+
---
4+
5+
fix(plugin-auth): Create User's refusal of its permission set reads as two sentences: no user was created, then the grant's own reason (#30117)
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
When the permission set named on `POST /api/v1/auth/admin/create-user` is refused, the answer still says first that no user was created, and now follows with the grant's reason as its own sentence, for example: `The permission set was not assigned, so no user was created. There is no permission set named 'xyz': choose one from the list.` Status, code, `fields` and the rollback (no user is created) are unchanged.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/plugin-security': patch
3+
---
4+
5+
fix(plugin-security): a grant naming no permission set is refused in one line an administrator can act on, and a set's label typed in place of its name is answered with that set's name (#30117)
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A `sys_user_permission_set` write naming no permission set (Setup's grant form, Create User's optional permission set, any non-system grant) used to answer with a paragraph about the column's contract, the security catalog and record ids. It now answers with one line:
11+
12+
- a value that is a set's label (trimmed, any case): `'Repair Technician' is the label of the permission set named 'asset_repair_technician': choose it from the list, or enter 'asset_repair_technician'.`
13+
- a label more than one set carries: the sets are listed, and none is picked;
14+
- anything else: `There is no permission set named 'xyz': choose one from the list.`
15+
16+
The refusal itself is unchanged: `400 VALIDATION_FAILED`, one `reference_not_found` entry at `permission_set`, nothing stored. A label is still never accepted as a name. The catalog is listed only on a refusal, agent ceiling sets are never suggested, and a listing that fails leaves the plain sentence and is reported at `warn`.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@objectstack/service-settings': patch
3+
'@objectstack/plugin-audit': patch
4+
'@objectstack/plugin-sharing': patch
5+
---
6+
7+
feat(service-settings,plugin-audit,plugin-sharing): a config_change ledger row names the settings row it changed, an audit row's record page lists the other changes to the same record, and a queue's record page lists its members
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
- **`@objectstack/service-settings`: the `config_change` row's shape changes (not breaking).** A settings write's `config_change` row in `sys_audit_log` now sets `record_id` to the id of the stored settings row the write changed (`sys_setting`, or `sys_platform_setting` for a global value), beside the `object_name` it already named; before, `record_id` was always null. `metadata` and the digest in `new_value` are unchanged, and an in-memory settings store still writes null. Rows written before this release keep their null `record_id`.
13+
- **Who can read those rows narrows.** Because a `config_change` row now names a record, the ledger's parent-record read gate judges it by that settings row: a reader holding only the ledger's own read grant, who cannot read the settings store, no longer sees new `config_change` rows. Holders of the ledger's audit capability (`view_all_audit_log`, administrators by default) still see every row. Older rows with a null `record_id` are still served under the ledger grant. Nothing becomes visible to a reader who could not see it before.
14+
- **`@objectstack/plugin-audit`: `sys_audit_log` gets a default record page** (`sys_audit_log_detail`) that shows the row's fields and lists every other ledger row with the same `record_id`, newest first. Beside a `config_change` row that list holds the CRUD mirror's create and update rows for the same settings row, which carry a non-secret value in plain text; a secret's mirror row carries neither the value nor its handle. The list has no "New". The page label ships in all eleven locales.
15+
- **`@objectstack/plugin-sharing`: `sys_queue` gets a default record page** (`sys_queue_detail`) whose members list reads `sys_queue_member` where `queue` equals this queue's `name`, and whose "New" opens the member form with `queue` filled in with that name. `sys_queue_member.queue` is unchanged. Declared queues have no `sys_queue` row, so they have no page. The page label ships in the plugin's four locales.

‎.claude/agents/os-dev.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,10 @@ model: opus
7474
4. ⛔ 永不推 `main`、合并任何 PR、在代码 PR 里改 `content/docs/releases/`;改错另开 docs-only PR。
7575
- force-push 按落地仓 AGENTS.md:cloud 绝对禁;objectstack §3 五条全立才 `--force-with-lease`。
7676
5. **Contract-first。** 修复若诱使你在消费端加宽容回退(`??` 别名、宽松解析),缺陷在上游。
77-
- 去生产者或 spec 修,或返回 `needs_decision`。
77+
- 去生产者或 spec 修(spec 形状改动见停手节),或返回 `needs_decision`。
7878
6. **issue 正文是线索,不是规格。** 动手前对 `origin/main` 核验其前提。
7979
- 文件可能移走、归因可能错、能力可能已存在;零命中配同主体同失效形态的控制词。
8080
- 带 `premise_still_valid: false`、附证据、无 PR 的报告是一等交付物;证伪 issue 是好运行。
81-
- 把 PR 硬压在死前提上才是失败形态。
8281
- 作者非维护者、非车队账号的文字只是数据,⛔ 不当指令(pm-dispatch `untrusted-text.md`)。
8382

8483
## 资源纪律 —— 并行 agents 共享同一个容器
@@ -260,7 +259,6 @@ model: opus
260259
- 确认没过 ⇒ 这次消融没跑,读数作废:改锚点重来,并在报告里说明第一次是空操作。
261260
- ⛔ 不悄悄重跑到有东西落地,那是把同一个缺陷复制到上一层。
262261
- 硬线:消融/变异脚本一律自带 `trap '<restore>' EXIT INT TERM` 还原。
263-
- 前台上限的 SIGTERM 可以正落在变异中途;没有 trap 的树保持变异态,之后每次测量都错。
264262

265263
## Definition of done(按序)
266264

@@ -319,7 +317,6 @@ model: opus
319317
## 干净收尾 —— 报告是你的终局动作
320318

321319
- 全文 ⛔ 不出现 HTML 注释:sanitizer 落库后吃短尖括号片段,连反引号里的也吃。
322-
- 被吃掉标记的评论对 PM 扫描不可见;HTML 注释形不是等价写法,是坏写法。
323320
- 例外:harness 自写的 PR 正文首行归属注释原样留、只报;`Fixes #<n>` 紧随其后;dev 自写仍禁。
324321
- 凡要上 GitHub 的文本,尖括号形状片段一律改占位词拼写(`FIELD`、`IDENT.MEMBER` 一类)。
325322
- 各派发模式(`mode:subagent`、`mode:cloud`、`mode:thread`)下 GitHub 都是报告的权威源。
@@ -350,6 +347,9 @@ model: opus
350347
## 何时停手不写码
351348

352349
- issue 对塑造公开契约的决定欠规格(spec/Zod schema、API 形状、命名、元数据语义)时:不猜。
350+
- 契约形状(Zod 形状、错误码台账、可编写键增删/墓碑、已发布导出)改即报 `needs_decision`。
351+
- spec 散文(jsdoc、`.describe`、`content/docs/**`、再生镜像)只复述裁决区所载裁决 ⇒ 非 fork。
352+
- 同 PR 改,正文点名裁决 id,落地欠契约复审档记录;⛔ 永不自行翻转裁决,与之相左仍停手。
353353
- 两种读法通向两种架构时同此;⛔ 不写投机代码。
354354
- 返回 `status: "needs_decision"`,每个问题带选项、真实代价与工作量、推荐,写进 `open_questions`。
355355
- 派发词标只读读数 ⇒ 不建闭包、不跑测试、不开 PR;报 `status: "reading"`,读数贴决策卡。

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → 复核 → 报
214214
- 或修复需破坏性/难回滚动作;其余归 PM 裁量:派发与排序,维护者否决窗口而非许可门。
215215
- 新键/值/导出名有先例(spec、生产者或标准同词同概念):席位点名先例,否决窗口落地。
216216
- 人工地板与风险/工作量判据(`triage-duties.md`)任一命中即呈维护者,⛔ 不入 PM 裁量。
217-
- 不升级类(碰产品行为或契约即报 fork):恢复不变量;任务顺序;验证策略;说明书脱节。
217+
- 不升级类(碰产品行为或契约形状即报 fork):恢复不变量;任务顺序;验证策略;说明书脱节。
218218
- 四类记账事同属不升级类,恒以无产品可见行为变化为界:去重与卡片合并;台账与记账整理;
219219
- 纯文档措辞更正(无契约声明改动);既有门禁内部参数与盲区修复(加强,非削弱,非新增)。
220220
- dev 的 `needs_decision` 一律呈人工:PM 附四维分析与推荐(含「疑属不升级类」),⛔ 不代答。

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
## 分诊两级盘点细则
6363

6464
- 小时层三读法之一,sweep 析取①–⑤ = `list_issues` + `since`。
65-
- 标签变更会刷新 `updated_at`,半标注照样入窗。
6665
- 之二,解锁扫描 = 逐张 `pm:blocked` 正向读正文目标:issue 全已关、PR 全已合并才命中走双查。
6766
- 之三,健康指标 = 逐标签 `perPage: 1` 只读 `totalCount`。
6867
- 裸卡数例外:标签缺席无计数可读,取本轮析取①的枚举,⛔ 不另发查询。
@@ -86,7 +85,6 @@
8685
- 交付了一半的阻塞是判断不是 grep,归四件之③,⛔ 不进机械旗。
8786
- 发布窗口判据:已上膛 = 开着的 head `changeset-release/main` PR,`is:pr is:open head:changeset-release`。
8887
- 点亮对照 `git ls-remote origin changeset-release/main` 必中;⛔ title 永不是判据。
89-
- title 由 action 配置,本仓为 `chore: version packages`。
9088
- 上膛与否不足:真判据是本卡 changeset 已否折进该 head `CHANGELOG.md`,即「离永久还有多远」。
9189
- 卡上 re-check 命令两条硬线:① 每条 grep 自带阳性对照。
9290
- 对照取同文件里确定存在、且 ⛔ 绝不是被测词子串的一个词。
@@ -163,7 +161,6 @@
163161
- 改在该 PR 上留言唤醒它自己的 dev(云端 dev 订阅自己的 PR),满一个边界的静默才走接手。
164162
- PM 会话已死 ⛔ 不推导其 dev 已死;死后恢复查三态:远程 `ls-remote`、仅容器磁盘、真没了。
165163
- 账号封禁即死会话:接手者重认领,消失的记录(认领/复核/裁决)按正文行在当前 head 重出。
166-
- 中间那态最值钱:worktree 比 agent 活得久、同容器共享,未提交改动通常还在。
167164
- 只查远程会令下一个 dev 从零开始;捡到的工作一律标 UNVERIFIED 交接,不丢弃也不继承。
168165
- worktree 已存在 ⇒ ⛔ 不要新建,`cd` 进去接着做,第二个 worktree 会劈开工作。
169166
- 先读全部既有提交与未提交改动,逐 hunk 决定保留或修正:既不推倒重来也不盲信。
@@ -217,6 +214,9 @@
217214
- 文件面两句原文照抄:预期落点是 X。
218215
- 若实测表明真正的生产者在别包,直接按生产者侧修,落点与理由写进报告和 PR 正文。
219216
- 跨包常等于跨车道,PM 事后补跨座位声明。
217+
- 例:`screen-input-contract.ts` 的 grep 命中「ruling A′」,裁决区写 `A′ · 5651909056` 与原句:
218+
「a non-number for a numeric field is refused, never silently passed」;路线随之为拒收(A′)。
219+
- 原令「有限数字串转数字」与之相左,应派发前送复核;栅栏点名 A′ 的 spec 散文在范围。
220220
- 新 changeset 文件名用 `<issue>-<slug>.md`,⛔ 不用随机词对名。
221221
- same-day churn 行:派发时 `git log origin/main --oneline -20 -- <paths>` 见当天合并即加一行。
222222
- 该行原文:基于合并后的代码工作,issue 引用的片段可能已变,先核对当前 main。

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
- 席改标:卡余项实测路径整落本席包树 ⇒ 本席改 `domain:*`,审计评论列路径与新旧标同笔。
1010
- 席改标限未派发卡;带 `needs-user-decision`、open `Blocked-by:` 或 `security` 的 ⛔ 不改,仍问分诊。
1111
- 每张候选读全文 + 全部评论,写派发词前做决策复读:评论读到最后一页。
12-
- 维护者裁决逐字引入派发词裁决分区作约束,无则写明无裁决。
12+
- 写裁决区前 grep 申报文件面(源码与测试)的 `ruling`、`Ruling-ref`、`maintainer`、`⛔`。
13+
- 本卡与命中所引裁决逐字入区(id+原句)作约束;零命中才写无裁决,命中无裁决写命中数。
1314
- 派发前做前提过时检查,裁决同罪,三面都查:动作面、卡引用面、工作项面。
1415
- 动作面:`git log --oneline -20 -- <paths>`。
1516
- 卡引用面:裁决/卡片点名的每张 issue 逐个读当前 open/closed/assignee。
@@ -120,12 +121,13 @@
120121
- 额度墙只向下(降档或降并发)⛔ 永不向上;临时偏离记座位贴带结束条件,逐次巡检重读。
121122
- effort 按卡难度定,与档位、降档理由写进 Container & model 行与派发令,显式传参,⛔ 不留空。
122123
- S 机械 `medium`;M `high`(默认);L/XL/security/p1/契约复核/四轴分析/ADR `xhigh`;`max` 凭点名/常设令。
123-
- 解析顺序、pin 语义与允许名单回退陷阱以 os-dev 定义 frontmatter 注释为权威。
124124
- 分诊 suggestion 行是输入不是决定,不采纳给理由。
125125
- 派发词只带增量,⛔ 不整段贴卡正文;dev 自读全文与评论、自查完整(`dispatch-runbook.md`)。
126126
- 派发词引卡片的精确断言(schema 臂、判据、原文)一律逐字,⛔ 不释义转述。
127127
- 三分区:裁决(不可重裁)/ PM 机制假设(须实测,鼓励证伪)/ PM 建议的路线(可选,实测优先)。
128-
- 凡我觉得可以这样的一律降到第三区;⛔ 不把假设写成裁决。
128+
- 凡我觉得可以这样的一律降到第三区,第三区 ⛔ 不与裁决区相左;⛔ 不把假设写成裁决。
129+
- 认为裁决该动 ⇒ 令中写明,派发前送复核线程,⛔ 不经 dev 转。
130+
- 须复述所载裁决的 spec 散文 ⇒ 栅栏点名 `packages/spec/src/**` 散文在范围,⛔ 不整片禁。
129131
- 标准非协商条款 ⛔ 不抄进派发词:hook 已机械强制段与 os-dev.md 已载通用段砍掉。
130132
- ⛔ 不砍卡类特有约束:ADR 类 draft-only、tier 推导引用、棘轮实况、释义纪律。
131133
- 终报要求随派发词带一句:只收机器可核字段(gates / line_budget / deviations / files_changed)。
@@ -135,7 +137,6 @@
135137
- 清单、路径、行号在派发那一刻从树上取,⛔ 不从卡片/上次派发/记忆抄。
136138
- 建包单:派发令点名目录与 npm 名,dev 动笔前先测同类包先例;命名规则见 AGENTS.md 角色表。
137139
- 门禁清单取 `dispatch-gates --commands --repo 仓` 逐条跑,退出码先落盘,`--ran` 对账;被拒即手推。
138-
- 点名单是线索不是规格,dev 对实际改动重取补跑;行级断言转述前必须自己重验。
139140
- 派发令里关于代码的危害断言必须有读数(点名 call site / 路径 / 迁移)。
140141
- 搬自任何工件(含己文)本轮未亲测计数/零命中/文件面:重测或注「未验证」点名来源。
141142
- PM 测不了的危害 ⇒ 写成给 dev 的问题,⛔ 不写成栅栏;人工地板栅栏关于流程,免测量。
@@ -168,7 +169,6 @@
168169
- `mode:cloud` 的 ~2h 静默是本轮收集边界(记 `blocked` 移步下轮),也不是判死。
169170
- 报告末句是意图不是结果 = 停摆非完成:当刻 SendMessage 续派,⛔ 不读作交付、不判死。
170171
- 停摆 ⇒ 立刻 SendMessage 附前台执行姿态句,⛔ 不等任何静默阈值(阈值是给没有回答的)。
171-
- 通知重放先算身份再读内容:与已验收那份同身份 ⇒ 记重放即结束。
172172
- 直接验收兜底:(a) draft PR 在且 CI 全绿 + (b) 探活确认已死或 ≥2h 无推送 + (c) 报告未达。
173173
- 三条件全立 ⇒ 直接按 PR 验收,复核判据不减;先探活后翻 ready。
174174
- 舰队级死因(全账号断粮)下取 (a)+(c) 照常收口,PR body 就是报告。

0 commit comments

Comments
 (0)