Skip to content

Commit 5f8df60

Browse files
committed
Merge main into claude/sec-hardening-r18
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibvynRbCtMndW8EHNGc
2 parents 743fff8 + 23cf11a commit 5f8df60

16 files changed

Lines changed: 1288 additions & 1541 deletions
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@object-ui/types': patch
3+
---
4+
5+
refactor(types)!: delete `ActionExecutor` and the Batch Operations pair nothing reads
6+
7+
Clause-②: no (narrowing)
8+
Metadata-protocol: none
9+
10+
<!-- adr-0087: not-required (runtime-export-retired @object-ui/types#ActionExecutor, @object-ui/types#BatchOperationConfig, @object-ui/types#BatchOperationSummary) the retired operands are TypeScript-only shapes declared in `ui-action.ts`: a function type for an action executor and a batch-operation config and summary pair that no renderer, adapter or host reads; nothing in the workspace or in hotcrm imports any of them from the package entry, they have no zod twin, they are not arms of `AnySchema`, and no packages/spec schema, registered node type, conversion surface or stored shape names them, so there is nothing for `objectstack migrate meta` to rewrite -->
11+
12+
**BREAKING** for a host that imports any of these three types from `@object-ui/types`. None had an importer anywhere in the workspace or in hotcrm, so the Console and every `@object-ui/*` package are unaffected.
13+
14+
They are **gone from the package, not only from the entry**: `src/ui-action.ts` no longer declares them. They were types only, so the built JavaScript is unchanged. The "Transaction Support" block beside them stays (`TransactionIsolationLevel`, `TransactionConfig`, `TransactionResult`; `@object-ui/core`'s `TransactionManager` reads them).
15+
16+
What leaves, and what to write instead:
17+
18+
- FROM `ActionExecutor` TO no replacement in this package. Actions run through `@object-ui/core`'s `ActionRunner`, which registers `ActionRunnerHandler` functions; a host that typed its own executor declares that signature locally.
19+
- FROM `BatchOperationConfig` TO no replacement. No renderer or runner read a batch-operation config; a host that kept one declares it locally.
20+
- FROM `BatchOperationSummary` TO no replacement. Nothing produced this summary; a host that kept one declares it locally.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ model: opus
6363
- 写预算三笔:`git push`、`pr_create`(draft,含 labels 与 assignees)、`os-dev-report` 评论。
6464
- 卡与线程只走 payload 档(公开仓单卡网页内嵌 JSON,拼写住 platform-readings)或单卡 REST 读。
6565
- 三类发现进报告交席位代立,不 `POST /issues`、⛔ 不静默弃报;PM 去重读数当既有事实用。
66-
- PR 正文 dev 只写一次,在开 PR 那一笔,⛔ 不 `PATCH`;事后要改的报告点名改法,席位代写。
66+
- PR 正文 dev 只在 `pr_create` 写,⛔ 不 `PATCH`;改法报告点名,席位经 `seat-post-protocol.md` 代写。
6767
- 报告记 `api_writes`(次数 + 端点清单)与 `mcp_calls`;越界真写了的照列注明缘由,⛔ 不漏记。
6868
- 归挂不散落:落在已排队 issue 范围内的发现,报告点名为它的 sub-issue(自动进派发池)。
6969
- 只是依赖它的,报告点名独立单带 `Blocked-by:` 行;立在修复落地的仓,带回链;席位代立。

‎.claude/skills/pm-dispatch/references/platform-readings.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
- 注册按克隆(`pnpm install` 的 prepare),服务端一个驱动都不跑 ⇒ 两侧答的不是同一个问题。
3434
- 驱动接手的路径上 exit 0 只说内容判断被推迟,⛔ 不是无冲突:它对内容什么都没说。
3535
- ⇒ 冲突证明探无驱动裸克隆,配方与读法见 `scripts/pm/os-regen-merge.sh`:exit 1 无树 id = 缺对象
36-
- ⛔ 永不用 `-c merge.os-regen.driver=` 覆盖:驱动不是被关掉而是跑失败,路由路径全报冲突。
3736
- 入队决策点才整对象 `get` 一次;挂了 flip 定点到点读,⛔ 不又查又等。
3837
- 状态核验用最小字段(search/list 加 `fields`)或等事件。
3938
- 聚合读数(`blocked`/`dirty`)只作阴性筛查再定位;放行按名定向读单条 job,⛔ 不拉全表。
@@ -288,6 +287,7 @@
288287
- 经 `rerun-failed.mjs` 重跑 PR `ci.yml` 失败 job 仅一次,先在 PR 或卡写明 flake 理由;二败即真红。
289288
- `run_rerun_failed` 只收 `ci.yml`;他 workflow 的 flake 走下两条,⛔ 永不空提交、永不关了重开。
290289
- `pr-automation.yml`(`Check Changeset` 取消无后继):席位改正文记下 flake 理由,其 `edited` 即重跑。
290+
- ⇒ 该正文改走 `seat-post-protocol.md` 的 PR 正文行,不送页脚。
291291
- `lint.yml`(检出超时):`main` 前进后中继 `pr_update_branch` 出真新 head 整套重跑;齐平即空操作。
292292
- 同一 head 上轻量兄弟 workflow `success` 加重量级载体 `cancelled` 是普通取代的预期签名。
293293
- 同名 `failure` 也会被带另一诊断的后一次 `failure` 取代 ⇒ 任何判定前先按名取最新一次。
@@ -310,7 +310,6 @@
310310
- doctype 开标记与 object 标签形状同触发;网页全文完好,⛔ 不修复只在 API 读短的卡。
311311
- 同坑第三条读路径:MCP `issue_read` 与 PR 读路径把行内反引号里的尖括号片段整个吃掉。
312312
- GitHub 存储字节完好、raw REST 一字不差 ⇒ ⛔ 不单凭 MCP 读判截断,先取 raw 或渲染页核对。
313-
- 否则 repair-first 被正确地应用到完好的卡上,重写毁掉的是正确内容。
314313
- 唤醒中继渲染会把 `{` `}` `<` 转义 ⇒ 判已发布产物按 `GET` 取存储体,⛔ 永不按中继正文。
315314
- 判据 = 数空的行内代码跨度:一个空跨度恰是短尖括号片段被吃掉的签名。
316315
- 判据是尖括号不是反引号:有的正文本来就把标识符不带尖括号写。
@@ -341,6 +340,7 @@
341340
- 该追加按面不按路由:`PATCH /issues/{n}` 打在 PR 上同样 +58 追加裸页脚,而 draft 位不动。
342341
- 页脚两拼写:裸版与 session-URL 版都要剥,漏剥的卡在正文中段,而 58 字节差照常。
343342
- ⇒ 代价是归属:裸形无 session id,按此剥净的 PR 正文不载明哪个会话写的;另置见 AGENTS.md。
343+
- 中继 `issue_patch` 不在此列:`dispatch.mjs` 读回 PR 正文存 = 送(`identical`),无追加。
344344
- 第四形:建 PR 两通道同判 —— 送出体尾部不是 `---` 加页脚块时,追加一条同形页脚。
345345
- 该追加是横线加一条 session-URL 形页脚,送出体是存储体的严格前缀;字节数非常量(90/91)。
346346
- 尾部已是该块则一字不追加,两通道各实测两向 ⇒ 建侧通道不是变量,判据是送出体尾部。

‎.claude/skills/pm-dispatch/references/rest-channel.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
- ⛔ 它、赋值与 `cd … &&` 前缀都落分类器;多仓云会话首调单独裸 `cd /home/user/objectstack`。
1414
- 活着 = 工作流文件在 `main` 且 Actions 状态 `active`;维护者在 Actions UI 停用即整队回 `direct`。
1515
- dispatch 带会话令牌发往 objectstack;run 在 runner 上以逐次铸造、窄到目标仓的 App 令牌执行。
16-
- 闭合 op 表住 `fleet-write/ops.mjs`;读侧不走中继;批量恒走逐 op 工具,直调 `dispatch.mjs` 仅落地。
16+
- 闭合 op 表住 `fleet-write/ops.mjs`;读侧不走中继;批量恒走逐 op 工具。
17+
- 直调 `dispatch.mjs` 仅落地,与 PR 正文单笔 `issue_patch`(`seat-post-protocol.md` 正文行,不送页脚)。
1718
- 正文超 60,000 字节的那一笔 `post-stamped` 写走 `direct` 并印一行,身份是席位自己的用户。
1819
- run 失败记 5(post-stamped 4,close-cards 有步落地或读不回 4),UNCONFIRMED 6:只读,⛔ 永不重试。
1920

@@ -39,7 +40,6 @@
3940

4041
- ✓ 评论 `POST .../issues/{n}/comments`;改评论 `PATCH .../issues/comments/{id}`。
4142
- ✓ 标签加法 `POST .../issues/{n}/labels`,定向删 `DELETE .../issues/{n}/labels/{name}`;加法优先。
42-
- ⛔ `post-stamped`/`label-write` 永不接进管道再 `&&`:拒收读成 0;看尾先落文件或 `set -o pipefail`。
4343
- ⛔ 永不 MCP `issue_write`(锁 1 已拒);会话分类器拒改动 ⇒ 无通道,交有通道席位立卡。
4444
- ✓ 建卡带标签 `POST .../issues` · 改正文 `PATCH .../issues/{n}` · 认领 `POST .../issues/{n}/assignees`。
4545
- ✓ 该 `PATCH` 带 `state` 关卡/重开,`state_reason` 交付 `completed`、撤单 `not_planned`,走裸 REST。

‎packages/spec/src/conversions/entries/18/cbp-master-detail-required-defaulted.ts‎

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ import { type Dict, isDict } from '../shared.js';
2323
* Ruling B made the parse refuse a `controlled_by_parent` object without
2424
* exactly one `master_detail` declared `required: true`, and retired the
2525
* security runtime's second tier, which derived the master from ANY
26-
* `master_detail`. One shape inside that refusal has a producer at rest:
27-
* objectui's Studio adds a field as `{ type, label }` and its Required toggle
26+
* `master_detail`. (Ruling A of #30905 later amended ADR-0055 §1 to admit an
27+
* only `master_detail` declared `required: false` as an optional master; the
28+
* omitted key this entry converts is unchanged by it.) One shape inside that
29+
* refusal has a producer at rest: objectui's Studio adds a field as
30+
* `{ type, label }` and its Required toggle
2831
* writes `required: true` or nothing, and the object's Settings tab offers
2932
* `controlled_by_parent`. So a Studio-authored detail can be stored with its
3033
* one master reference carrying no `required` key at all. Before protocol 18
@@ -53,9 +56,11 @@ import { type Dict, isDict } from '../shared.js';
5356
* authored object.
5457
*
5558
* **Deliberately narrow — exactly one shape, nothing else.**
56-
* - An explicit `required: false` is NOT converted. The builder refuses it
57-
* loudly rather than forcing it (an authored contradiction, ADR-0032), so the
58-
* stored pass does not overrule an author the builder would have stopped.
59+
* - An explicit `required: false` is NOT converted. On the object's only
60+
* `master_detail` it is the OPTIONAL master (ADR-0055 §1 as amended, #30905
61+
* ruling A): the builder keeps it as written and the parse admits it, so the
62+
* stored pass keeps it too. Beside another `master_detail` there is no one
63+
* master to default (below), and the builder refuses it there.
5964
* - An object with two or more `master_detail` fields is NOT converted. Choosing
6065
* which reference becomes the master is exactly the pick ADR-0055 §1 refuses.
6166
* - A required `lookup` (the retired third tier) is NOT converted. Turning it
@@ -64,9 +69,12 @@ import { type Dict, isDict } from '../shared.js';
6469
* rule only.
6570
*
6671
* **Retired from the load path, from day one.** The authoring funnel does not
67-
* replay it, so a live author still meets the parse's refusal and its
68-
* prescription. A stored row, a built artifact inside its declared-floor window
69-
* and `os migrate meta --from 17` all replay it. Idempotent by construction: a
72+
* replay it: a live author meets the builder's own force through
73+
* `ObjectSchema.create()` and `os lint`'s `relationship/master-detail-required`
74+
* at `error`. A raw parse cannot see the omission (the field default writes
75+
* `false` first), so there the omitted key reads as the optional master. A
76+
* stored row, a built artifact inside its declared-floor window and
77+
* `os migrate meta --from 17` all replay it. Idempotent by construction: a
7078
* converted field carries `required`, which this transform never touches again.
7179
*/
7280
const cbpMasterDetailRequiredDefaulted: MetadataConversion = {
@@ -107,7 +115,7 @@ const cbpMasterDetailRequiredDefaulted: MetadataConversion = {
107115
},
108116
},
109117
{
110-
// An explicit `required: false` — refused by the builder, not converted here.
118+
// An explicit `required: false` — the optional master, kept as written; not converted.
111119
name: 'cbpd_explicit',
112120
label: 'Explicit',
113121
sharingModel: 'controlled_by_parent',

‎packages/spec/src/data/object.zod.ts‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4492,12 +4492,13 @@ function assertReferenceViaSiblingDeclared(objectName: unknown, fields: unknown)
44924492
* {@link assertSystemDataIsWritable}, and deliberately NOT in raw
44934493
* `.parse()`/`.safeParse()`: a parse must not rewrite what it reads. The force
44944494
* is the builder's convenience, not the rule: the RULE — exactly one required
4495-
* `master_detail` under this sharing model — is judged on the parse itself by
4496-
* {@link refuseControlledByParentWithoutOneMaster} (#23100, maintainer ruling
4497-
* B), so a raw parse of a `master_detail` without `required: true` is refused
4498-
* rather than forced, and the security gate's fallbacks this paragraph used to
4499-
* call "runtime tolerance" (any `master_detail`, then a required `lookup`) are
4500-
* retired.
4495+
* `master_detail` under this sharing model, or (ADR-0055 §1 as amended,
4496+
* #30905 ruling A) its only `master_detail` as the optional master — is judged
4497+
* on the parse itself by {@link refuseControlledByParentWithoutOneMaster}
4498+
* (#23100, maintainer ruling B), so a raw parse is never forced (it reads an
4499+
* omitted `required` after its `false` default), and the security gate's
4500+
* fallbacks this paragraph used to call "runtime tolerance" (any
4501+
* `master_detail`, then a required `lookup`) are retired.
45014502
*
45024503
* Alias spellings (`isRequired` / `mandatory` / `notNull`) need no handling
45034504
* here: `FieldSchema` is a `strictObject`, so those keys are refused at parse

‎scripts/pm/check-handover.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
* newer than it, and whose state labels (`PM_EXCLUSIVE_STATE_LABELS`, the six
3131
* mutually exclusive states of `SKILL.md`) are anything but `needs-user-decision` alone.
3232
*
33-
* The sign-off hand-back rule (`seat-post-protocol.md`, 收班) names one refusal inside (a) and narrows (a)'s
34-
* stay-behind (section below):
33+
* The sign-off hand-back rule (`seat-post-protocol.md`, 交接收尾清单 step 2) names one refusal inside (a);
34+
* `seat-lifecycle.md` 离任留守 narrows (a)'s stay-behind (section below):
3535
*
3636
* (a′) NEEDS_DECISION a card (a) holds whose NEWEST `os-dev-report` (`latestDevReport`, the patrol's newest-of
3737
* HELD reading) is newer than the claim and declares `"status": "needs_decision"`, while the card

0 commit comments

Comments
 (0)