Skip to content

Commit 7c80463

Browse files
committed
Merge origin/main (0967cbe) into claude/project-thread-rothb5
Conflicts resolved keeping both sides: - scripts/pm/check-half-states.mjs: H13 follows main (h13AreaWithoutPmState, AREA_HALF_STATE_STALE_HOURS, area:* fixtures via labelledCard); H14/H15 stay retired (no h14row), the retired pm:blocking wording and the pm:on-hold coexisting-label fixture in H18 stay from this branch. - .claude/skills/pm-dispatch/references/triage-duties.md: this branch's type line kept above main's reworded backstop line (area:* or type, 补齐). Claude-Session: https://claude.ai/code/session_01Utp6CaAqjP52wVTzs99H5G Co-authored-by: Claude <noreply@anthropic.com>
2 parents f594f68 + 0967cbe commit 7c80463

47 files changed

Lines changed: 1453 additions & 684 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: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
'@objectstack/spec': patch
4+
---
5+
6+
fix(metadata-protocol)!: the read naming no bundle member addresses the canonical member alone, as `?member=en-US` and `/published` do
7+
8+
Clause-②: no (narrowing)
9+
Metadata-protocol: none
10+
Skills-docs: none — no page under `skills/**` or `content/docs/**` teaches the read naming no member of a bundle that has no canonical member; `content/docs/references` prints the selector sentence this change now follows, and the ADR-0146 paragraph of `skills/objectstack-platform/SKILL.md` names members only at a base or a package address. No taught sentence moves.
11+
12+
<!-- adr-0087: registered bundle-without-canonical-member-bare-read-absent -->
13+
14+
**BREAKING**: where the address holds no canonical member of a bundled name, the read naming no member (`GET /meta/TYPE/NAME`, with or without `?package=`), `/layers` naming none and the execution read naming none move from serving another member (200) to `404 RESOURCE_NOT_FOUND` (the execution read: `null`). Name the member (`?member=fr-FR`) to read it, as before.
15+
16+
The by-name doors' member selector reads a request naming no member as the canonical one (`en-US` for `email_template`), and naming the canonical value is the same request. That is the selector's declared contract (`GetMetaItemRequest.member`). For a bundle with no canonical member, the two requests got different answers:
17+
18+
- The plain read `GET /api/v1/meta/email_template/NAME` and `/layers` served the bundle's other member (for example `fr-FR`, status 200). The execution read (`getMetaItemForExecution`) returned that member too.
19+
- `?member=en-US` and `/published` answered 404.
20+
21+
The same split held in two more arrangements:
22+
23+
- A base ships only `fr-FR` and a dependent that declares it stores `en-US`. The read naming no package and no member served the base's `fr-FR`.
24+
- `?package=X` where X ships no `en-US` while another package does (a dependent, or a disabled holder that the read naming no package re-addresses past to X). The read naming no member served X's `fr-FR`. `?package=X&member=en-US` answered nothing.
25+
26+
For a bundle that only stores a non-canonical row (a package-less `fr-FR` row with no `en-US` row), the plain read also changed across a restart. It answered 404 before the restart. After the restart it served the row (200), because the restart had moved the row into the registry's bare slot.
27+
28+
The plain read, `/layers` and the execution read now ask every layer for the canonical member when no member is named. They take the registry's bare-name answer only when it is that member. The base-address fallback serves only the base's canonical member, and an exact address (`?package=`) replaces another package's item only with the holder's item at the addressed member. So each of these arrangements answers 404 on every door naming no member, the same as `?member=en-US` and `/published`, before and after a restart.
29+
30+
A bundle that ships or stores its canonical member keeps its status and served body, and so does any named member. Three more answers move:
31+
32+
- `/layers` naming no member, where the canonical member is stored over a package that ships only another member: `code` goes from that member's body to `null`, as `/layers?member=en-US` already answered. Status and `effective` do not move.
33+
- For a type with no members, `/layers?package=X`, where X holds nothing of the name and the only holder is disabled: `code` goes from the disabled holder's artifact to `null`. A disabled package holds no name.
34+
- `?package=X` naming no member, where X does not hold the name and the environment stores it only in a non-canonical member: the read was refused `409 RESOURCE_CONFLICT` (`not-held-by-qualifier`, naming the environment) once a restart had hydrated the row. It now answers the `404` that `?member=en-US` already answered, on the plain read and `/layers`. A non-canonical member is still read with its own selector, for example `?member=fr-FR`, which the Studio list already links to for each member.
35+
36+
**Reverses two statements of the 18.6.0 note** for the arrangement where base A ships `email_template` `welcome` in `fr-FR` only and dependent D, which declares A, stores `en-US`:
37+
38+
- 18.6.0 said "`GET /meta/email_template/welcome/layers` (no member) moves FROM `404` after a restart TO A's `fr-FR` (200)". Now `/layers` naming no member answers `404 RESOURCE_NOT_FOUND` on both sides of a restart, as `/layers?member=en-US` does.
39+
- 18.6.0 said "**Not moved.** The plain read, `?member=CANONICAL` and the execution read of the first shape (A's `fr-FR` naming no member, 404 at `en-US`)." Now only `?member=CANONICAL` is unmoved. The plain read naming no member answers 404 and the execution read naming no member answers `null`, where both served A's `fr-FR`.
40+
41+
Migration: a caller that read a bundle with no canonical member without naming a member must name the member it wants (`?member=fr-FR`). The email template loader reads the list (`getMetaItemsForExecution`) and does not use this read, so it is not affected.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
---
4+
5+
fix(seed): a seed row that landed while a reference in its key was still empty stays deleted once a person deletes it
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A seed dataset whose `externalId` includes a reference can land a row before that reference resolves, for example a task assigned to a person who has not signed up yet. With the record of landed seed rows kept (`landedKeys: 'honour'`), such a row was recorded under no key, because its key had an empty part when it landed. A person who deleted the row got it back on the next seed load.
11+
12+
The row is now recorded under the id it lands with, which is derived from the key as the seed authored it. The next load finds that record whether the reference is still empty or has resolved since, so the deleted row is not inserted again. A row the seed never landed in the organization still lands, and a deliberate re-seed still brings deleted rows back.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ model: opus
6161
- 拼法不限于 `env`、`printenv`、`set`、`export -p`、`echo $VAR`、`cat /proc/*/environ`。
6262
- 判存在只用不印值形式 `[ -n "${X+x}" ] && echo set`;已印出 ⇒ `deviations` 只点名变量名。
6363
- 写预算三笔:`git push`、`pr_create`(draft,含 labels/assignees)、`os-dev-report`;卡线程另改正文。
64-
- 卡与线程只走 payload 档(公开仓单卡网页内嵌 JSON,拼写住 platform-readings)或单卡 REST 读。
64+
- 卡与线程只走 payload 档(公开仓单卡网页内嵌 JSON,拼写住 readings-page)或单卡 REST 读。
6565
- 三类发现进报告交席位代立,不 `POST /issues`、⛔ 不静默弃报;PM 去重读数当既有事实用。
6666
- PR 正文子代理只在 `pr_create` 写、⛔ 不 PATCH 由席代写;卡线程照 `dispatch-runbook.md` 自改。
6767
- 报告记 `api_writes`(次数 + 端点清单)与 `mcp_calls`;越界真写了的照列注明缘由,⛔ 不漏记。

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → L1 审核 →
154154
- 标签写恒四步:取现集 → 只增删目标 → 写合并集 → 回读 diff 对 union(现集, 增删)。
155155
- union 有而回读缺 = 被并发剥掉,重挂并报告。
156156
- PM 写进 GitHub 的文本 ⛔ 不用尖括号路径占位符,改写成后跟显式路径的说法。
157-
- 携带易损片段的评论(派发令与裁决)post 后读回;写侧形状见 `references/platform-readings.md`。
157+
- 携带易损片段的评论(派发令与裁决)post 后读回;写侧形状见 `references/readings-write-shapes.md`。
158158

159159
## 域车道
160160

‎.claude/skills/pm-dispatch/references/area-lease.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
- 同系列卡可从前卡分支起步(AGENTS.md §2 主干形,⛔ 不叠 PR);新测试建按卡命名的新文件,
4242
AGENTS.md 共享 harness 规则适用时除外,由重叠检查定排队。
4343
- 席线程只协调,⛔ 不读 diff 与日志;ACCEPT 欠的自读(`contract-review.md`、〈路径分叉〉)除外。
44-
所落 PR 欠的红检查读日志(`platform-readings.md`)派子代理读,一读兼守本条与该文。
44+
所落 PR 欠的红检查读日志(`readings-ci.md`)派子代理读,一读兼守本条与该文。
4545
- 每区恒 2 dev,空即补;逐位上张 PR 入合并队列才领下张,此前跑修复轮;Tier H 或待裁 PR 让位。
4646
- 席每轮逐区查;取卡照点名范围次序,p0/p1 插队;p3 留收口或搭同文件 PR 成批(每 PR ≤5 卡)。
4747
- 同函数互相牵连的卡合一 PR,准入照 `execution-duties.md` 折叠五门,额度墙亦照该文。

‎.claude/skills/pm-dispatch/references/landing-operations.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
- 逾 3,000 行须授权批准在现 head,或维护者非席位签名评论点名现 head 承接(`approval_comment`)。
3636
- 出队(中继 `pr_dequeue`)限三因:(a) 与基座冲突;(b) 自身改动致队列构建红,三事实判非 flake;
3737
(c) PR 正文签名尾行之席以签名评论自请。审计评论在先,回读离队且仍开未合才落地。
38-
- 该 op 实测离队见 `platform-readings.md`;在队受管面 PR 亦由落地席发(Prime Directive #14)。
38+
- 该 op 实测离队见 `readings-queue.md`;在队受管面 PR 亦由落地席发(Prime Directive #14)。
3939
- 谁入队谁看护:冲突或自因被踢 ⇒ 一轮巡查内出队修复再入队;他人 flake 照四分支重投。
40-
- PR 侧红(非队列)同在本窗口处置:义务与三步只住 `platform-readings.md`「红检查先读日志」。
40+
- PR 侧红(非队列)同在本窗口处置:义务与三步只住 `readings-ci.md`「红检查先读日志」。
4141
- 挂 auto-merge/入队前读 K = `git rev-list --count --first-parent PRBASE..origin/main`。
4242
- PRBASE = 末次绿 PR 跑 Test Core 所印 `Affected-set diff base`,⛔ 不取该跑起始时刻。
4343
- K ≥ 15 ⇒ 先 merge main 等重跑绿,`behind` 例外;任何 K 同:标签 PR 的 PRBASE 后 main 落新语种包;
@@ -68,7 +68,7 @@
6868
- ⛔ 两层不由席位批准;清标即落地同受此闸,漏判会被队列守卫在 merge group 里拒收。
6969
- 挂 auto-merge 的同一动作里重测生成物漂移,⛔ 不复用更早的零;非零 ⇒ 按 A 的固定序。
7070
- 零 `enqueued` 事件按序查三条:① `mergeable_state` 是否 `dirty`。
71-
- ② enable-auto-merge 调用根本没落地,重发与效果验证序列见 `platform-readings.md`。
71+
- ② enable-auto-merge 调用根本没落地,重发与效果验证序列见 `readings-queue.md`。
7272
- ③ PR 碰 `.github/workflows/**`:令牌常驻 `workflows: write`(裁决评论 6104822731),仍拒即授权漂移。
7373
- MERGED 同笔收口:`Fixes` 卡代关亦摘标;`Part of` 卡剩余物落其车道一态并清 assignee。
7474
- 一态 = `pm:queue`+其车道 `domain:*`(归他车道即改域)/`pm:blocked`+`Blocked-by:`/hold+`Restart-when:`。

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- 入口:维护者说处理决裁或处理 contract-review,或 `/pm-dispatch director`;接分诊交来的降级释放。
1717
- 未回字 = 不在 = 停,⛔ 无巡检、审计、快照、聊天、卡评论。
1818
- 回来后先补跑审计与重挂复位一次,再只发一行「批 #N 待字;箱内另有 K 张新到未呈」。
19-
- 开场读一次服役档记入会话审计行,读法见 `../platform-readings.md`;⛔ 不因档位拒裁停三职。
19+
- 开场读一次服役档记入会话审计行,读法见 `../readings-session.md`;⛔ 不因档位拒裁停三职。
2020
- 双射 carve-out:一张 `pm:seat` 座位贴,四段照旧;状态块逐场一行,各记己锚,⛔ 无占席人。
2121
- 不占 `domain:*` 车道,范围按职责标签跨车道跨仓;永不认领 backlog、永不写码。
2222
- 改 skill、指令或治理文本归 skills 席;出裁决、清 L2 标、清点待人工清单归本席。

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171

7272
### 常设承诺
7373

74-
- PR 侧绿不等于队列侧绿;队列分支条目名、队序重建与出队滞留住 `../platform-readings.md`。
74+
- PR 侧绿不等于队列侧绿;队列分支条目名、队序重建与出队滞留住 `../readings-queue.md`。
7575
- `dispatch-gates.mjs` 只报路径推导的地板;条款②从卡内容判,只定 L2 档不定施工档。
7676
- 已知盲区:它不点名 `pnpm lint` 族 ⇒ 本车道派发令恒补一句跑 `pnpm lint`。
7777
- ⛔ 永不削弱门禁:棘轮上跳是门禁在报你的改动有缺陷。

0 commit comments

Comments
 (0)