Skip to content

Commit 18b6049

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-34432-install-local-resolver-refusal
2 parents d05e8d1 + 107d2e8 commit 18b6049

37 files changed

Lines changed: 2617 additions & 168 deletions
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/plugin-audit': patch
3+
---
4+
5+
fix(plugin-audit): a host checkpoint signer, sink or cluster service that is registered but fails to resolve stops the sealer instead of falling back
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The audit sealer (ADR-0154) resolves three host seams on each pass: `audit.checkpointSigner`, `audit.checkpointSink` and `cluster`. It turned every resolution error into "not registered". A host signer whose factory threw (a KMS client that cannot start, a missing credential) was therefore replaced by the local signing key, a failing sink dropped the off-host export, and a failing cluster service let the pass run on the in-process lock. Nothing was logged. A seam registered as a factory was never built at all, because the sealer used the synchronous accessor, so a factory-registered host signer was silently ignored.
11+
12+
Now only an absent seam falls back: no host signer signs with the local key, no sink exports nothing, no cluster service takes the in-process lock, all as before. A seam that is registered and resolves is used, including one registered as a factory. A seam that is registered and fails to resolve stops the pass: no checkpoint is signed, and the sealer reports it at `error`, naming the slot, once while it lasts. Each pass retries.
13+
14+
A host whose signer, sink or cluster registration was failing used to seal silently with the local key or without its lock; it now seals nothing until the registration is fixed. A working host sees no change.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/cli': patch
3+
---
4+
5+
fix(cli): `objectstack start` leaves nothing of its process group behind when it exits on SIGTERM
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
On a project with an `objectstack.config.ts`, a SIGTERM sent to the `objectstack start` process made it forward the signal to its `serve` child and exit with the child's code, as before, but one process of its group was still alive at that moment: the esbuild service `serve` started to bundle the config. esbuild keeps that service process for the life of its caller and it leaves only after the caller has exited, so a supervisor that read the group right after `start` exited (a container runtime, systemd, a drill reading `kill(-pid, 0)`) found a leftover process.
11+
12+
`serve` now stops the esbuild service as soon as the config module has loaded, at boot. The service exits while `serve` is still alive to reap it, so when `start` exits on SIGTERM no process of its group is left. Boots from `--artifact` or `--prebuilt` never started the service and are unchanged.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@objectstack/lint': minor
3+
'@objectstack/spec': minor
4+
---
5+
6+
feat(lint)!: a `lookupFilters` `{ $record: "path" }` path through or to a multi-valued field is refused
7+
8+
Clause-②: no (narrowing) — a `lookupFilters[].value` `{ $record }` path on a lookup, master_detail or user field whose first segment is a multi-valued field of the object owning that field (a plain path to it, or a hop through it), or whose leaf behind a single-valued hop is a multi-valued field, linted clean and published; it is now refused at error as `object-field-ref-unknown` by `os lint`, `os validate`, `os build` and the runtime publish door, and reported (never refused) on the package publish receipt's object probe.
9+
Metadata-protocol: narrowed
10+
Skills-docs: follow-up #34201 — no doc or skill teaches `{ $record }` yet, so there is no teaching to correct here; the multi-valued clause rides the describes this change edits.
11+
12+
<!-- adr-0087: registered lookup-filter-record-path-multi-valued-refused -->
13+
14+
**BREAKING** only for a `{ $record }` path that reads a list. A `{ $record }` comparand stands for ONE value of the record being edited and pairs only with `eq`, `ne`, `gt`, `lt`, `gte` or `lte`, but the path check judged only that each segment names a field, so `{ $record: "accounts.cb_market" }` through a `multiple: true` lookup, or `{ $record: "tags" }`, linted clean. A hop through a multi-valued lookup reaches no single row, so the entry was left out without a word; a plain path to a multi-valued field put a list where one value goes. `object-field-ref-unknown` now refuses the path at the multi-valued field and names it. Multi-valued means `isMultiValueField`: a field flagged `multiple: true`, or a `multiselect`, `checkboxes` or `tags` field. A registry-injected column and a leaf on an object outside the stack are not judged. Measured first-party exposure: zero — no example app, platform object, skill or docs sample writes a `$record` path.
15+
16+
**FROM → TO.** FROM `{ $record: "accounts.cb_market" }` (a hop through a `multiple: true` lookup), `{ $record: "tags" }` or `{ $record: "account.markets" }` (a multi-valued leaf) TO a path that ends at, and hops through, single-valued fields only.
17+
18+
**Fix:** copy the value you mean onto a single-valued field of the record being edited (or of the record one single-valued hop away) and reference that. The semantic entry `lookup-filter-record-path-multi-valued-refused` carries the same notice into the upgrade guide and `os migrate meta`. `os explain object-field-ref-unknown` lists the position.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@objectstack/plugin-hono-server': patch
3+
'@object-ui/console': patch
4+
---
5+
6+
fix(console,plugin-hono-server): the organization's Localization language decides the Console language for a user with no personal language
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
An administrator who set the organization's language (Setup → Localization, or the first-run checklist's "Default language and country") never changed the Console language of a member with no `sys_user.locale`. The Console stated a language on every `GET /api/v1/auth/me/localization` read (the browser's language when the app ships it, else the app's declared default), so the server's request rung always answered and its deployment-default rung, the only one that reads the organization's setting, never did. That rung also answered the settings manifest's built-in `en-US` placeholder over the app's declared `i18n.defaultLocale`.
12+
13+
`/auth/me/localization` now resolves `locale` in the order the maintainer ruled for a user with no personal language: the user's own `sys_user.locale`; else the request's `Accept-Language` top tag when the app lists that language (`i18n.getLocales()`, what discovery serves as `locale.supported`), answered in the app's own spelling (`en-US` → `en`, `ja` → `ja-JP`); else the organization's `localization.locale` when somebody set it (not the manifest's `en-US` placeholder); else the app's declared `i18n.defaultLocale`; else the settings cascade's answer, as before. `resolveSignedInUserLocale` answers the same. A host with no `i18n` service has no list to match against, so the request's language answers as before; a host with no `settings` service keeps the cascade's answer for the deployment default.
14+
15+
The Console now states a language only when the app lists the browser's language. Otherwise the browser's own header goes out and the server's deployment default decides. A stored `sys_user.locale` or a language picked on the device still wins. No response key or discovery key is added.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
'@objectstack/runtime': patch
4+
---
5+
6+
Clause-②: no
7+
Metadata-protocol: none
8+
9+
fix(runtime): on an un-walled first boot, a seed person reference naming the first admin resolves to that admin
10+
11+
A single-tenant install loads its boot seed before the first admin's `sys_user` row exists. A `Field.user()` or `Field.lookup('sys_user')` value naming that admin therefore landed NULL, and the first-admin handoff wrote `owner_id` and no other column. Sample records assigned to the owner showed as unassigned, apart from the record owner. A later boot did not repair them either: a dataset in the default create-only mode leaves an existing row as it is.
12+
13+
The seed loader now holds each person reference its second pass left NULL, together with the row it landed on (`SeedLoaderService#resolveHeldPersonReferences`, `heldPersonReferenceCount`). `AppPlugin` retries the boot seed's held references after every `sys_user` insert. It resolves each one by the loader's own rule and writes it to that row only while the column is still NULL. A row the seed did not write keeps its value (ADR-0138 D1). A seeded row that someone assigned in the meantime keeps that assignment. A reference that still names nobody stays held until the next user insert of the process. The walled boot is unchanged: it writes no inline seed, and its per-organization replay already waits for the owner's membership.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/plugin-audit': patch
3+
---
4+
5+
fix(plugin-audit): an activity summary names a referenced record by a title the writer may read, else by its id
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
An activity row's summary can name a record another field points at: a tracked lookup change (`Account: Acme → Globex`) or a fired milestone's `{token}` (`Deal won by {owner}`). That title is now read in the writer's scope, the scope the row's own record label is already read in. When the writer may not read the referenced record, or may read it without its title column, the summary names it by its stored id, as it does for a record that no longer exists. The rule holds per id, so one change can title the side the writer may read and keep the id of the side it may not.
11+
12+
A writer who may read the referenced record, and every system write, gets the same summary as before. Rows already written keep the summary they were written with.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/plugin-auth': patch
3+
---
4+
5+
fix(plugin-auth): a single-use auth value is redeemed at most once, even across processes sharing a database
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
better-auth redeems its single-use values (email verification, password reset, magic-link and one-time codes, and the other values it keeps in `sys_verification`) through the storage adapter's `consumeOne`. The ObjectQL adapter now hands a redeemed value back only to the call whose own delete removed the stored row, and answers `null` to every other call, as better-auth's `consumeOne` contract requires. This holds for any number of server processes on one database.
11+
12+
A value that was already redeemed answers `null`, which better-auth refuses as an invalid or expired value. A single redemption is unchanged: it receives the value and removes it.
13+
14+
The adapter reads the data engine's delete answer to decide. A data engine whose delete answers neither whether nor how many rows it removed (`IDataEngine.delete` declares `boolean | number`) now fails the redemption with an error naming that answer, rather than handing the value back.

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- 排空的区并入邻区,积压即再拆(「比如增加分区」),⛔ 不抬一容器 2 dev 的并行验证上限。
1212
- 租约表(区→路径→线程会话)住座位贴,任一列变或线程轮换即重写,为唯一记录。
1313
- L1 线程每 3 活跃区一条,新开名 `L1-a`、`L1-b`…,在跑留原名;`lanes/l2-review.md` 席规不及它。
14+
- 请 L1 审或 delta 发线程消息,只取区在 PR 评论宣布的定稿绿 head;信箱只留跨账号或跨项目。
1415
- ⛔ 不入区:大卡(`dispatch-runbook.md` 卡线程节)与队列值守(只照 `lanes/queue.md`,含其无席兜底)。
1516

1617
## 开席
@@ -23,21 +24,22 @@
2324
- 授权行只解 auto mode 的拦截,⛔ 不改 AGENTS.md 第 14 条的落地档;区线程无授权行。
2425
4. W0:各区首小时交席位一份关/并/改级/呈裁清单,同时即开首张 p1。
2526
- 清单经维护者过目后落笔:定级照 SKILL.md 域车道(自分诊例外住 `triage-duties.md`)。
26-
- 关卡照 `execution-duties.md`:⛔ 不凭本区读数自关。
2727

2828
## 区内规则
2929

3030
- 区会话署本席签名,签名第三位与 `Session:` 皆填区会话 ID;开轮互斥读法照 `seat-lifecycle.md`。
3131
- 认领前重读标签、assignee 与末条评论:他人 assignee、他人 `Claim:` 或他区 `lease:*` ⇒ 不碰。
3232
- 认领前三查必过,各写认领评论一行;任一不过或遇大卡 ⇒ 不认领、不派 dev,当即交席位:
3333
- `Pre-claim lane:` 修复所改路径属哪条车道,点名依据路径(碰他道路径照下文留道行)。
34-
- `Pre-claim deps:` 卡点名的 `Blocked-by:`、「after #N」与热文件,逐个已合或空闲。
34+
- `Pre-claim deps:` 卡点名的 `Blocked-by:`、「after #N」逐个已合;热文件照下文重叠检查。
3535
- `Prior rulings read:` 照 `decision-analysis.md`;grep `docs/adr/**`、链卡(⛔ 行在内)与反向 pin
3636
测试;记录冲突,或路线改门的可见行为超出本卡裁决,同作不过。
37+
- 重叠检查:认领前与每次推前跑 `scripts/pm/overlap-check.mjs`;exit 1 排所列 PR 后,3 补前提重跑。
3738
- 认领照 `execution-duties.md` 派发原子对,同笔加 `lease:<区>`;`Branch:` 照 AGENTS.md 命名。
3839
- 认领后回读标签(SKILL.md 标签写四步):缺 `lease:` 或 `pm:dispatched` 即重挂;首推即开 draft PR。
3940
- 写码与开发期读码全经 `os-dev` 等子代理(一卡或一组耦合卡,文件面不相交)。
40-
- dev 开 PR 前自查申报:os-dev.md〈Definition of done〉,BREAKING/ADR-0087 照 AGENTS.md Post-Task 第 3 条。
41+
- 同系列卡可从前卡分支起步(AGENTS.md §2 主干形,⛔ 不叠 PR);新测试建按卡命名的新文件,
42+
AGENTS.md 共享 harness 规则适用时除外,由重叠检查定排队。
4143
- 席线程只协调,⛔ 不读 diff 与日志;ACCEPT 欠的自读(`contract-review.md`、〈路径分叉〉)除外。
4244
所落 PR 欠的红检查读日志(`platform-readings.md`)派子代理读,一读兼守本条与该文。
4345
- 每区恒 2 dev,空即补;逐位上张 PR 入合并队列才领下张,此前跑修复轮;Tier H 或待裁 PR 让位。
@@ -49,7 +51,6 @@
4951
- 送审:≤50 行、只改文本或测试、`Clause-②: no` 且无他契约面 PR 由区照 `l1-review-checklist.md`
5052
自审落地,ACCEPT 点名自审;余者由 L1 线程 ACCEPT 读,先于 `contract-review.md` 不起第二个 agent。
5153
- 契约记录只欠 `contract-review.md` 四面,head 移动照其例外;同 patch-id 干净合 main 只保 ACCEPT。
52-
- L1 审核只取区在 PR 评论宣布定稿的绿 head;修后只 delta。
5354
- 落地:区先读 `check-governed-merges.mjs --pr N`;非受管 PR 照 `landing-operations.md` 自落,受拒报原文。
5455
- PASS 且全绿的非受管 PR 10 分钟内落地;挂前先查 PR 上已有落地评论,有即 ⛔ 不再挂。
5556
- 受管面与超 3,000 行 PR 区 ⛔ 不落,交席位;席位照 SKILL.md〈路径分叉〉①–④ 一笔交棒。
@@ -68,4 +69,3 @@
6869
- 用量近 80% 即交接:停派任何级;在途推完,每条分支留 draft PR;余照 `seat-post-protocol.md` 清单。
6970
- 交接与各区现状落座位贴评论:所有权、open PR、下一步、待批、坑;⛔ 不只留项目或记忆。
7071
- 新旧账号重叠时座位贴写所有权切分:旧号持有的 PR 清单与新号可取集;新号只取后者。
71-
- 旧号移座照 `seat-lifecycle.md` 移座行。

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
- L2 记录 = 一条评论落 PR 或卡,席内与各子代理同形;散文、dev 自评、`os-dev-report` 不算。
3434
- 同形 = `## Contract review` 题头之下 `Head-sha:` 行独占码段、①②③逐项、独立性对、PASS/FAIL。
3535
- 同形含首行 `Served-tier:`:值为该面所定档常量名 `CONTRACT_REVIEW_TIER` 或 `TIER_DEFAULT`;无此行不
36-
成裁决;模板 `node scripts/pm/record-recognisers.mjs --template`;前者只经写工具带 `--tier-evidence=`贴:
37-
子代理(显式传该档 model)给输出文件;卡线程或席内 L2 未起他 agent、未发消息、未调 Skill
38-
才给本会话 `~/.claude/projects/*/<id>.jsonl`;`verify-review-tier.mjs` 拒即子代理重跑 ⛔ 不改档名。
36+
成裁决;模板 `record-recognisers.mjs --template`;前者只经写工具带 `--tier-evidence=`贴:子代理
37+
(显式传该档 model)给输出文件;卡线程未起他 agent、未发消息、未调 Skill 才给本会话转录;
38+
席位开席即调 Skill 恒不合;`verify-review-tier.mjs` 拒即子代理重跑 ⛔ 不改档名。
3939
- ④ 设计判断欠 schema、governed 规则文本、收窄三面:逐 `hits` 文件判改动对所引代码与
4040
验收场景是否成立,ADR 另判首个消费者与执行计划;①–④ 合称完整 L2,余面同形无 ④。
4141
- 实质 head 各欠一轮完整 L2,发现逐条定 must-fix/should-fix/nit(无碍正确与契约);有前两级才由

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
## 座位
55

6-
- 席位 `l2-review#N`,一席一座位贴;坐席者 = 能达 `CONTRACT_REVIEW_TIER` 的账号的会话。
7-
- 会话 effort `high`;L2 子代理恒契约审核档。
6+
- 席位 `l2-review#N`,一席一座位贴;坐席账号能达 `CONTRACT_REVIEW_TIER`,席会话本身跑默认档。
7+
- effort `high`;每送审 head 起一个全新只读子代理达档审,⛔ 席内达档审(`../contract-review.md`)。
88
- 每席开一个 `pm:mailbox` PR(`mailbox-open.mjs --seat l2-review#N`);签名、坐席与收班同他席。
99

1010
## 路由

0 commit comments

Comments
 (0)