Skip to content

Commit 0f5619d

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-34474-review-seat-routing
Resolve the lanes/l2-review.md conflict with both sides kept: main's session-effort line and its "本席只兜底" owed-list line stay as main wrote them; this branch's routing lines (own-account seats first, thread messages inside a project, N seats split by claim) stay as written. Claude-Session: https://claude.ai/code/session_01FEkQ5kgF3mo9f7LXuv5hac Co-Authored-By: Claude <noreply@anthropic.com>
2 parents 3dd459f + bdd5176 commit 0f5619d

36 files changed

Lines changed: 1522 additions & 191 deletions
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@objectstack/cloud-connection': patch
3+
---
4+
5+
fix(cloud-connection)!: `POST /api/v1/marketplace/install-local` parses the manifest `namespace` through its declaration, as it already parses the id
6+
7+
Clause-②: no (narrowing)
8+
Metadata-protocol: none (the declaration `ManifestSchema.shape.namespace` already refuses these values; this door now enforces it. The dev confirms against the diff.)
9+
10+
<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. The install door now refuses a namespace `ManifestSchema.shape.namespace` already refuses everywhere else, `defineStack` and `objectstack build` included; no stored row, ledger entry or authored value is rewritten (an entry an older build ledgered still rehydrates), so there is nothing for a migration to rewrite and no tombstone. -->
11+
12+
**BREAKING** for a caller of the install-local door whose package declares a `namespace` the manifest declaration refuses: anything but 2–20 characters of lowercase letters, digits and `_` opening with a lowercase letter.
13+
14+
- FROM: an inline manifest declaring `namespace: ''`, `'QA_N'` or `'9-Bad Ns!'` answered `200`, was registered and ledgered under that namespace, and `QA_N` installed beside an existing owner of `qa_n` without the install-time namespace gate answering. TO: it answers `400 PLUGIN_MANIFEST_INVALID` with the declaration's own sentence and nothing is registered, synced or written.
15+
- FROM: an inline manifest declaring `namespace: null` or a non-string `namespace` was admitted, the key unparsed (a `null` read as no namespace). TO: it answers the same `400 PLUGIN_MANIFEST_INVALID`; only an absent key means no namespace.
16+
- FROM: a cloud-fetched snapshot declaring such a namespace installed the same way. TO: it answers `502 PLUGIN_MANIFEST_INVALID`, the status the door already gives an invalid upstream snapshot.
17+
18+
**Not moved.** A manifest whose `namespace` key is absent installs as before (the key is optional). A member of a multi-package artifact declaring such a namespace keeps the artifact-entry refusal it already had (`INVALID_ARTIFACT_PACKAGE_ENTRY`, 422). A conforming namespace installs as before, and one another package owns still meets the registry's own namespace gate. A package an older build already installed under such a namespace still rehydrates at boot and can still be uninstalled; it cannot be re-installed until its namespace conforms.
19+
20+
The fix for a caller: declare the namespace in lowercase snake form (`qa_n`, not `QA_N`), or omit it.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@objectstack/skills': patch
3+
'@objectstack/client': patch
4+
---
5+
6+
docs: deciding an in-app AI pending action is the person's own act, on their signed-in session
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
The `objectstack-ai` skill, the client SDK page, the actions-as-tools page and the `client.ai.pendingActions` docblock now say what the confirmation rule says for the in-app assistant door (`in-app-pending-action-decided-by-person`): only the person the assistant call ran as approves or rejects their item, in the app on their signed-in session. Another user's `ai:approve` does not decide it, and an API key or token is refused, even the person's own, and so is an AI identity. A client on a token can still list and get the queue. The door enforces this from the runtime release that carries the in-app door, not from this package release. Docs and docblock text only: no export, type, route or behaviour changes in these packages. The skill gains one eval case (an operator script on an API token asked to approve the queue).
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@objectstack/mcp': patch
3+
'@object-ui/console': patch
4+
---
5+
6+
fix(mcp): `delete_record` tells the agent that a request naming one matching record is the human's approval
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
The MCP `delete_record` tool description and its `confirm` member now say when the human's request is already the approval. When the human names the record to delete and exactly one record matches, that request approves the delete: the agent sends `confirm: true` on that call and does not ask again. When the name matches more than one record, or the request does not identify one record, the agent deletes nothing yet: it lists the candidates, asks the human which one, and sends `confirm: true` only after the answer.
12+
13+
The same server's other texts now say the same rule. The skill served at `GET /api/v1/mcp/skill` (and the Console's "Download skill" copy of it) carries the two sentences in its `delete_record` entry instead of "Ask your human first", and its destructive-action gotcha and workflow step say that a delete the user named, with exactly one record matching, is already confirmed. The refusal of a `delete_record` call without `confirm: true` now says to retry with `confirm: true` when the human's request named exactly this one record, and to ask the human first when the name matched more than one record or the request is a bulk delete; its code (`ACTION_CONFIRMATION_REQUIRED`), status (428) and `details` are unchanged.
14+
15+
Before, the description said "ask the human first, then retry", and models read a request that named one record either way: some asked a second time before a delete the user had already asked for.
16+
17+
The gate is unchanged. A `delete_record` call without `confirm: true` is still refused with `ACTION_CONFIRMATION_REQUIRED` (428), and nothing is deleted. A deleted business record still goes to the recycle bin. `delete_records` (bulk) is unchanged: a call without `confirm: true` is the preview, and the agent sends `confirm: true` only after the human approves it.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@object-ui/fields': patch
3+
'@object-ui/plugin-form': patch
4+
---
5+
6+
fix(plugin-form): a record form's inline members resolve `{ $record }` lookupFilters, and only a record form can opt a lookup in
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
A lookup field's `lookupFilters` entry `{ $record: 'quote_date' }` (or one hop away, `{ $record: 'account.cb_market' }`) resolves in a record form, whatever its layout. Until now that held only for fields generated from the object schema.
12+
13+
- **Inline members.** A `customFields` member and a self-describing inline section entry are fields of the record being edited too. A record form now stamps every field it draws in the one step every layout draws through (`gateFormFields`), after the members are merged and the sections expanded. Their `{ $record }` entries resolve like a generated field's. Before, they were left out of the candidate query.
14+
- **Only the form says so.** The picker honours only a stamp `withRecordBeingEdited` issued. A `recordBeingEdited` key written as data opts nothing in: on a standalone form's field, an action's parameter, or anywhere else, it is ignored and the `{ $record }` entry is left out. A record form also drops an authored `recordBeingEdited` from the fields it draws before it writes its own.
15+
16+
Fields generated from the object schema, literal entries and `dependsOn` query exactly as before.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@object-ui/fields': patch
3+
---
4+
5+
fix(fields): the lookup picker's list fits the room it is given, marks a cut row as "scroll for more", and lets an option's secondary fields wrap
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The lookup quick-picker's option list had a fixed 16rem height. With a one-line preview under each option, that height ends part-way through the fifth row, so the last visible option showed its name and lost its preview, with nothing saying the list scrolls. On a short window the popover was also taller than the room on either side of the field and ran off the screen. Radix already flips the popover to the side with more room, inside a dialog too; the list simply ignored how much room that side had.
11+
12+
- The popover is now no taller than the room Radix reports on the side it opens to. The search row keeps its height and the list takes what is left, up to the same 16rem.
13+
- When options continue past the top or the bottom edge of the list, that edge fades out, so a row cut there reads as "scroll for more". The keyboard scrolls the active option clear of the fade.
14+
- An option's preview wraps onto a second row when its columns do not fit side by side, so two text columns (an email and an account name, say) are no longer both cut to fit one row. A column that does not fit on two rows leaves whole, as before; a badge is never cut and a text value is never cut below its label. A text value that is still cut short shows its whole text on hover.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → L1 审核 →
4747

4848
- L1 普通审核:派发 PR 皆欠;派发席或其 L1 线程照 L1 清单在定稿绿 head 读 ACCEPT,修后读 delta。
4949
- L2 契约审核:PR 碰 `references/contract-review.md` 契约四面才欠,加在 L1 之上,⛔ 永不替代 L1。
50-
- L2 档:schema、governed 规则文本、收窄 ⇒ `CONTRACT_REVIEW_TIER`;仅 `Clause-②: yes` ⇒ `TIER_DEFAULT`。
50+
- L2 档随面定(`contract-review.md`);L1 与 `TIER_DEFAULT` 审核恒归车道,⛔ 永不归 L2 席。
5151
- ⛔ L1 规则不及 L2,L2 规则不及 L1;L2 席的账号、独立性、信箱与只写记录诸规只管 L2 席。
5252
- GitHub PR review 与 CI check 名不属两级;旧词与旧路径只读不写,唯在座 `review#N` 席仍写原名。
5353

@@ -64,9 +64,9 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → L1 审核 →
6464
| `coordinator` | 以协调者身份运行(项目会话:开席位线程与卡线程、跨车道调度;接口见 `references/coordinator.md`) | — |
6565
| `label:<name>` | backlog 过滤标签;`label:all` = 全部 open 未认领 | `pm:queue` |
6666
| `repo:<owner/name>` | 扫哪个仓的 backlog(单 issue 的落地仓看它自己的 `repo:*` 标签) | `objectstack-ai/objectstack` |
67-
| `batch:<n>` | 运行中槽位的上限:一槽 = 一个正在运行的子代理(`Agent`、`create_session`)或卡线程,报告落地即释放;等人批、在合并队列、等 CI、等裁决四态不占槽;dev、L1/L2 审核、普查皆计,⛔ 只读不豁免;p0 见 `priority:p0` 行 | 默认 `3`;`n` 的维护者天花板 `5` |
67+
| `batch:<n>` | 运行中槽位的上限:一槽 = 一个在跑的子代理(`Agent`、`create_session`)或卡线程,报告落地即释放;等人批、入队、等 CI、等裁决不占槽;dev、L1/L2 审核、普查皆计,⛔ 只读不豁免;p0 见 `priority:p0` 行 | 默认 `3`,一容器 dev ≤2;`n` 的维护者天花板 `5` |
6868
| `rounds:<n>` | 跑 N 轮后停 | 队列清空为止 |
69-
| `mode:subagent` \| `mode:cloud` \| `mode:thread` | 派发后端 | 按卡分流:S+M ⇒ `subagent`,`cloud` 只留 L/XL 等保留面;席位是项目线程时 M 及以上、p1、`security` 一律 `thread` |
69+
| `mode:subagent` \| `mode:cloud` \| `mode:thread` | 派发后端 | 按卡分流:S+M ⇒ `subagent`,`cloud` 只留 L/XL 等保留面;席位是项目线程时 M 及以上、p1、`security` 一律 `thread`;大卡判据照 `dispatch-runbook.md` 卡线程节 |
7070
| `#12 #34 …` | 显式 issue 清单,整体覆盖标签查询 | — |
7171

7272
- 无角色参数按执行姿态运行,车道由座位贴认定;角色参数令召唤词收敛为一行调用。

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
- 坐席、每次交接或换班时席位重判三件:分不分、分几区、边界;⛔ 不沿用上一班的表。
99
- 分区阈值(经验):可认领 p1/p2 ≥15 张且跨 ≥3 个互不相干的模块簇;不足即照常按卡认领。
1010
- 边界按卡触及的文件与包聚类,让两区极少改同一函数;⛔ 不按卡标题或词汇分。
11-
- 排空的区并入邻区,积压即再拆(「比如增加分区」),⛔ 不抬每区 dev 数;拆并即改租约表。
11+
- 排空的区并入邻区,积压即再拆(「比如增加分区」),⛔ 不抬一容器 2 dev 的并行验证上限。
1212
- 租约表(区→路径→线程会话)住座位贴,任一列变或线程轮换即重写,为唯一记录。
1313
- L1 线程每 3 活跃区一条,新开名 `L1-a`、`L1-b`…,在跑留原名;`lanes/l2-review.md` 席规不及它。
14-
- 队列值守只照 `lanes/queue.md`(含其无席时的兜底),⛔ 不在此另派。
14+
- ⛔ 不入区:大卡(`dispatch-runbook.md` 卡线程节)与队列值守(只照 `lanes/queue.md`,含其无席兜底)。
1515

1616
## 开席
1717

@@ -29,7 +29,7 @@
2929

3030
- 区会话署本席签名,签名第三位与 `Session:` 皆填区会话 ID;开轮互斥读法照 `seat-lifecycle.md`。
3131
- 认领前重读标签、assignee 与末条评论:他人 assignee、他人 `Claim:` 或他区 `lease:*` ⇒ 不碰。
32-
- 认领前三查必过,各写认领评论一行;任一不过 ⇒ 不认领、不派 dev,当即交席位作决策:
32+
- 认领前三查必过,各写认领评论一行;任一不过或遇大卡 ⇒ 不认领、不派 dev,当即交席位:
3333
- `Pre-claim lane:` 修复所改路径属哪条车道,点名依据路径(碰他道路径照下文留道行)。
3434
- `Pre-claim deps:` 卡点名的 `Blocked-by:`、「after #N」与热文件,逐个已合或空闲。
3535
- `Prior rulings read:` 照 `decision-analysis.md`;grep `docs/adr/**`、链卡(⛔ 行在内)与反向 pin
@@ -40,7 +40,7 @@
4040
- dev 开 PR 前自查申报:os-dev.md〈Definition of done〉,BREAKING/ADR-0087 照 AGENTS.md Post-Task 第 3 条。
4141
- 席线程只协调,⛔ 不读 diff 与日志;ACCEPT 欠的自读(`contract-review.md`、〈路径分叉〉)除外。
4242
所落 PR 欠的红检查读日志(`platform-readings.md`)派子代理读,一读兼守本条与该文。
43-
- 每区恒 3 dev,空即补;逐位上张 PR 入合并队列才领下张,此前跑修复轮;Tier H 或待裁 PR 让位。
43+
- 每区恒 2 dev,空即补;逐位上张 PR 入合并队列才领下张,此前跑修复轮;Tier H 或待裁 PR 让位。
4444
- 席每轮逐区查;⛔ 不单做 p3:只搭同文件 p1/p2 PR(每 PR ≤5 卡);转制时已领未动的 p3 释放。
4545
- 同函数互相牵连的卡合一 PR,准入照 `execution-duties.md` 折叠五门,额度墙亦照该文。
4646
- 留道:修法已清的卡碰 `ui/**`、`packages/spec/**` 仍在本道开发、本席 L1/L2;他道席在线只通知

‎.claude/skills/pm-dispatch/references/contract-review.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
文面 ⛔ 不在其列:派发席按本席档在 ACCEPT 逐句对照 diff 核,ACCEPT 点名所核句。
99
- 档随面定:已发布 schema 或 governed 规则文本 ⇒ `CONTRACT_REVIEW_TIER`,混合 diff 一处命中即此
1010
档;PR 正文与 changeset 行首 `Clause-②: no (narrowing)` 申报的收窄亦此档,范围为散文面外全
11-
diff;仅凭 `Clause-②: yes` 申报而欠 ⇒ `TIER_DEFAULT`,由车道席位作 L2 记录;档恰等不作下限。
11+
diff;仅凭 `Clause-②: yes` 申报而欠 ⇒ `TIER_DEFAULT`;档恰等不作下限。
1212
- 混合 diff 的达档 L2 范围 = `reviewFace` 的 `hits` + diff 内直接实现或执行它的文件;
1313
后者审其合契约,diff 外被引代码只读;`Scope:` 行分列两者,可放宽、⛔ 不窄于 `hits`。
1414
- 余部归车道席位 `TIER_DEFAULT` 的 ACCEPT,同单独开 PR 并点名;Tier H 人批与队列守卫仍整张 PR。
@@ -21,9 +21,9 @@
2121
无 L2 席在座改点能取该档的兄弟席,皆无则挂等 L2 标记留欠审表待 (a)(b)(c)。交接行:
2222
- `Contract-review-handoff: <l2-review#N|domain:<lane>#N> — CONTRACT_REVIEW_TIER unavailable (<HTTP status / error>, <UTC time>) · head <sha>`
2323
- 「立 skills 卡,把契约复审的路由直接改成 review 座位」「没有 fable 时,找 review 座位」(卡33157)
24-
- 欠审 PR(含 draft)现 head 无记录无活认领且 (a)(b)(c) 之一 ⇒ L2 席先接,车道次之,⛔ 非分诊
25-
- (a) 交接行点名现 head 或带等 L2 标记,同轮由所点席接;(b) 现 head 已等满一轮(约 60 分钟);
26-
- (c) 车道收班或离总表:欠审入交班简报待下席或 L2 席;清单 `scripts/pm/check-owed-reviews.mjs`。
24+
- 欠审 PR(含 draft)现 head 无记录无活认领且 (a)(b)(c) 之一 ⇒ 车道达档自审或交接,⛔ 非分诊
25+
- (a) 交接行/敲门点名现 head(同轮所点席接)或带等 L2 标记;(b) 现 head 已等满一轮(约 60 分钟);
26+
- (c) 车道收班或离总表,欠审入交班简报;L2 席只接 (a) 所点、自记录 delta、他席皆禁之 head。
2727
- L2 席或车道起审前读 PR:现 head 有记录或活认领 ⇒ ⛔ 不起;否则先落认领行,一 head 一行:
2828
- `Contract-review-claim: <session> · head <full sha> · <UTC>`
2929
- 认领随 head 移动或贴后 2 小时无记录失效;双认 ⇒ 先贴者持有,后者回帖撤回、弃产出。

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
- 座位贴活性归总监席巡查:扫 `label:pm:seat` 挂 `🟢 <github-login>` 的贴,Routine 席读调度器。
4242
- 判据只认在任者自有产出(评论、认领、改正文)及其作者与时间戳,⛔ 收到的通知不算。
4343
- >24h 无自有产出 ⇒ 当场降级:改 `⏳ vacant` + 摘 assignee 同笔 + 证据评论(时间戳与链接)。
44-
- 跨账户 L2 审核:每席巡查跑 `node scripts/pm/check-owed-reviews.mjs`,TAKE 行剔除本账户署名的 PR。
44+
- L2 欠审:每席巡查跑 `check-owed-reviews.mjs`,只接 take 点名本席的行。
4545
- L2 前落 `Contract-review-claim:` 行,形、失效、双认照 `contract-review.md`;有活认领 ⛔ 不双做。
4646
- L2 审核照 `contract-review.md`;PASS 同笔摘标记、FAIL 不摘;总监席巡查列等候逾 24h 的 PR。
4747
- 车道巡查同跑:hold/closed 解锁重验回队;本仓无卡 fork PR 按 `external-contributions.md` 立卡。
@@ -127,11 +127,11 @@
127127
## 卡线程(`mode:thread`)
128128

129129
- 席位会话是项目线程(载 coordinator 通道工具)⇒ M 及以上、p1、`security` 卡一卡一线程。
130+
- 大卡同上,先于下行,分区亦然,修复轮随卡;大卡 = L/XL,或欠全量验证(`!` 标题或 narrowing 臂),
131+
或改契约:`Clause-②: yes`、`Metadata-protocol` 非 `none`、非测试的 `packages/spec/src/**` 路径。
130132
- S 级机械卡留席内 `mode:subagent`:开线程要重新克隆、重读 `os-dev.md`,起步成本不值。
131133
- 披露纪律卡(私密细节不得离开席位会话)也留席内,认领写明;卡线程照计 `batch`。
132-
- 项目的 coordinator 跨席位统一调度卡线程;每席一个线程跑 PM 循环,卡线程即 dev。
133-
- 席位随时把候选卡交 coordinator,附优先级、派发令全文与建议 effort,⛔ 不等自己的槽位。
134-
- 卡线程交回即释放槽位,席位当即告知 coordinator;L1/L2 期开着不占槽,REWORK 补丁轮再占一槽。
134+
- coordinator 调度卡线程(即 dev),候选与槽位照 `coordinator.md` 三;交回即告知它,REWORK 再占槽。
135135
- 档位与 effort 席位自推导 ⛔ 不等维护者原话:`--tier` 过路径,MANDATORY 即绑;effort 按难度。
136136
- 派发令写两者与推导(`--tier` 行或难度读数),协调者照令开线程;常设原话有则作 `reason:`。
137137
- 席位留认领/派发令/ACCEPT/落地/L2 采纳或补缺;线程实施、开 draft PR、驱动 CI 与可合并。

‎.claude/skills/pm-dispatch/references/lanes/l2-review.md‎

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

66
- 席位 `l2-review#N`,一席一座位贴;坐席者 = 能达 `CONTRACT_REVIEW_TIER` 的账号的会话。
7-
- 会话 effort `high`;L2 子代理恒契约审核档;仅申报面 `TIER_DEFAULT`,档随面定照 contract-review.md
7+
- 会话 effort `high`;L2 子代理恒契约审核档。
88
- 每席开一个 `pm:mailbox` PR(`mailbox-open.mjs --seat l2-review#N`);签名、坐席与收班同他席。
99

1010
## 路由
@@ -13,7 +13,7 @@
1313
- 先请本账号开的审核席(本项目线程,从线程清单与 `seat-online` 帖找);皆忙才溢至他账号席。
1414
- 同项目向 L1/L2 席请审、delta 与回告发线程消息,⛔ 不敲信箱;信箱只留跨账号或跨项目。
1515
- N 席按认领分行:欠审表每个 head 先贴 `Contract-review-claim:` 者持有;后者撤回弃产出。
16-
- 欠审表 `check-owed-reviews.mjs` 先给 L2 席;车道只在无 L2 席在座或 (b) 后再一轮无认领才接
16+
- 本席只兜底:接哪些 head 只住 contract-review.md 欠审接审行,欠审表 `check-owed-reviews.mjs` 同读
1717
- delta 归原 L2 审核者;L2 席下班留下旧记录 ⇒ 下一 L2 席接 delta,交接行点名它。
1818

1919
## 独立性与边界

0 commit comments

Comments
 (0)