Skip to content

Commit cc8da2b

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-0i28kd
2 parents 50eb1fe + b8ac0e2 commit cc8da2b

19 files changed

Lines changed: 612 additions & 67 deletions
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/runtime': patch
3+
---
4+
5+
fix(runtime): an addressed `/automation/:ns/:name/(runs|trigger)` route under a verb it does not serve answers the automation domain, as its bare path does
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
On the standalone server (the dispatcher plugin on an HTTP adapter), an address is served exactly as its bare path (ADR-0150 D5), but a verb the route is not served under was answered differently on the two. `DELETE /api/v1/automation/send_digest/runs` answered the automation domain's `405` with `Allow: GET` in the dispatcher's envelope, and `401 UNAUTHENTICATED` to an anonymous caller. `DELETE /api/v1/automation/crm/send_digest/runs` answered the transport's `405` with `Allow: GET, HEAD` and an `error.details` envelope, to an anonymous caller too. The same held for `POST` / `PUT` on the addressed `/runs`, `GET` on `/automation/NS/NAME/trigger` and `GET` on `/automation/trigger/NS/NAME`.
11+
12+
The dispatcher now declares those three addressed shapes as routes whose domain decides every verb, as it already did for their bare two-segment shapes. Each of them answers an anonymous caller `401`, and a signed-in caller the domain's `405` with the verbs the route serves (`Allow: GET` for `/runs`, `Allow: POST` for both triggers) in the dispatcher's envelope. A served verb on an address (`GET .../runs`, `POST .../trigger`) is unchanged, and so is a three-segment path whose first segment is no installed namespace: under an unserved verb it now answers the dispatcher's `404 ROUTE_NOT_FOUND`, as the same path does under `GET`.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
docs(spec): the `HttpConfigSchema.method` TSDoc says how a durable `http` node's verb is resolved, without quoting removed code
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The TSDoc on `method` in `io-node-config.zod.ts` quoted two `??` spellings the `http` node executor no longer has. It now says that a durable node with no `method` sends `POST`, whether through the messaging HTTP outbox or on the no-outbox fallback, and that the executor resolves the verb once from the authored `method` and `durable`. The schema itself is unchanged.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@objectstack/service-automation': patch
3+
---
4+
5+
fix(service-automation)!: a trigger binding does not dispatch a slot whose package is disabled (ADR-0150 D3)
6+
7+
Clause-②: no (narrowing)
8+
Metadata-protocol: none
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 moved answer is a trigger-fired run under a reversible package state: no stored row, slot key, run key, trigger binding or dispatch key changes, so there is nothing for a migration to rewrite and no tombstone. -->
11+
12+
**BREAKING** for a deployment where two packages each ship a flow of the same name and one of them is disabled at runtime: that package's flow no longer runs on its trigger (record-change, schedule, time-relative, or an api inbound hook's queued post). Before this release it kept running.
13+
14+
When two packages each ship a flow of the same name, the engine holds one slot per package and arms each slot's trigger. Until now a slot whose package was disabled at runtime kept running on its trigger, because the run a trigger fires executed the armed slot without asking whether its package is still served.
15+
16+
Now the engine asks when the trigger fires. While the slot's package is disabled, the run is skipped: nothing runs, no other package's flow of the name runs in its place, and no run-history row is written. The skip is logged once at `info` per slot while the package stays disabled. When the package is enabled again, the slot runs on its trigger again, with no re-arm.
17+
18+
An event that fires while the package is disabled is dropped, not replayed when the package is enabled again: a one-shot schedule or time-relative fire that falls inside the disable is lost, as it is for a switched-off flow.
19+
20+
Nothing durable moves: slot keys, run keys, the trigger bindings and the dispatch holder stay judged over every holder, so there is nothing to migrate. A flow name only one package ships answers as before.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
`~/.claude/projects/*/<id>.jsonl`;`verify-review-tier.mjs` 拒即重跑 ⛔ 不改档名。
3939
- ④ 设计判断欠 schema、governed 规则文本、收窄三面:逐 `hits` 文件判改动对所引代码与
4040
验收场景是否成立,ADR 另判首个消费者与执行计划;①–④ 合称完整复核,余面同形无 ④。
41-
- 实质 head 各欠一轮完整复核,发现逐条定 must-fix/should-fix/nit(无碍正确性与契约);有前两级才
42-
由同一复核者 delta 复核修复;仅 nit 即终轮,nit 记接受的偏差、转 PR 后续卡或只改散文面。
41+
- 实质 head 各欠一轮完整复核,发现逐条定 must-fix/should-fix/nit(无碍正确与契约);有前两级才由
42+
原复核者 delta 复核;仅 nit 即终轮,记接受的偏差、转后续卡(`filing-gate.md`)或只改散文面。
4343
- 另记作者:PR `user.login` 非 `objectstack-fleet[bot]` ⇒ ③ 注点名该 login(脱中继写),落地前读。
4444
- ③ 恒查(席位自读同):SQL 可下推处新增 id 物化或应用内 join 而无因由 ⇒ 记发现(AGENTS.md)。
4545
- 简报从 `record-recognisers.mjs --brief-template` 起稿:只读条款与输入集内建,⛔ 不删 ⛔ 行。
@@ -48,7 +48,7 @@
4848
- 卡线程隔离子代理照上落现 head 记录并贴简报 ⇒ 席核简报、`Scope:` 与独立性对后采纳,
4949
ACCEPT 点名其评论 id;`Scope:` 窄于 `hits` 不采纳;席的补缺记录只管缺口,⛔ 不单充 head 记录。
5050
- 轮次报告设复审清单专节,与呈裁清单同为强制审计。
51-
- 请审/求批与落地前检两条,过则 S 入队、H 等人批:① 现 head 同形达档 PASS 在案,无前两级。
51+
- 请审/求批与落地前检,过则 S 入队、H 等人批:① 现 head 末条同形达档 PASS,无未闭前两级。
5252
- head 后移例外:纯重生成或只动散文面原记录续管,落 `Regen-provenance:` 行;余移或现 head 落 FAIL
5353
而已挂 auto-merge ⇒ 派发席读到即照 AGENTS.md disarm 句撤挂,FAIL 记录点名欠撤挂;重挂照 ①。
5454
- ② PR check 全绿,⛔ 非 required 子集;例外:merge-base 同签名的红不计、按设计而红见 SKILL.md。

‎.claude/skills/pm-dispatch/references/filing-gate.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
- 「动手的读者」与 Acceptance notes 同一问:说得出具体 PR 或人 ⇒ 写进去,说不出 ⇒ 不立卡。
3333
- 说不出的形态:`.changeset/*`、无人在改的文档页、生成物、已扫完的批次,兜底不成立。
3434
- 配额:每 fire 不限张数,逐缺陷各立一张、各过本门;折清单卡可选、不强制;守批量写间隔。
35-
- 例外:复核后续(nit、接受偏差、同车道 diff 外发现)每 PR 一卡 `review follow-ups of PR #N`逐项勾,
35+
- 例外:复核后续(nit/接受的偏差/同车道 diff 外发现)每 PR 一卡 `review follow-ups of PR #N` 逐项勾,
3636
后轮追加 ⛔ 不另立;① 缺陷仍各立;p3 文案/文档 nit 入该区 `<area> loose ends` 卡,无则才立。
3737
- 复核立卡前搜 open 卡 `PR #N` 与文件路径,同一发现追加;技能/ADR 文本卡照 `triage-duties.md`。
3838
- 分诊席的存量清理仍走维护者确认的十张一组、只备下一组,⛔ 不因本门改批量。

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- 轮次记录按车道计欠审逾一轮的 head 数并点名车道(`check-owed-reviews.mjs`),只报 ⛔ 不接审。
1414
- 每日看板与轮次记录列「待维护者」:当前里程碑已清的专题,注小结贴否;读数非门禁。
1515
- 「待维护者」另逐张列 open `needs-user-decision` 与 `pm:awaiting-maintainer` 卡,注入态以来卡龄。
16-
- 轮次记录每 3 小时报 24h 流量:卡新建/关闭/净增、合并 PR 数、open p1、引契约复核新卡数。
16+
- UTC 3 倍数时的轮次记录报 24h 流量:卡新建/关闭/净增,合并 PR 数,open p1,引契约复核新卡数。
1717
- 析取 ①全裸(无 `pm:*`/`needs-user-decision`/`domain:*`);② `pm:queue` 无 `domain:*`(仅多车道仓);
1818
- ③ `domain:*` 无 pm-state;④ `pm:queue`+`domain:*` 无 `priority:*`;②③④ 只取 `updated_at` 早于 ~2min。
1919
- 排除 `tracking`、`status:parked`、全部 `pm:seat` 贴、`qa-run` 记录。
@@ -71,7 +71,7 @@
7171
- 跨层功能点(≥2 层)立父单带 `area:*`+`tracking`+清单项级,逐层子单按 `Blocked-by:` 排。
7272
- 每张留一条英文审计评论(`Triage: lands in …; rationale: …`),可选带 `Size/model suggestion:` 行。
7373
- 改作者可写面(种类非 `none` 或带 `(narrowing)`)的卡,首触 done-when 写 skills + docs + eval 三项。
74-
- ADR/技能文本携带注记 ⛔ 不挂实施卡:ADR 由落地席合并后立卡,余每 PR 一 `domain:skills` 卡。
74+
- ADR/技能文本携带注记 ⛔ 不挂实施卡,每实施 PR 一 `domain:skills` 卡;ADR 由落地席合并后立。
7575
- 查重/shadow 检查先按文件/机制查本仓与姊妹仓 open 卡(含 `pm:dispatched`),再跟引用与关键词。
7676
- 同文件同机制 = 同一发现,不分车道即并:证据搬先卡,后卡经中继 `issue_patch` 关 `duplicate`。
7777
- 同族发现并入收口卡,不开单点卡;在飞(assignee/open PR)永不并,`Blocked-by:` 不派;完工查过期。

‎docs/qa/platform-checklist/areas/identity-auth.json‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3529,7 +3529,7 @@
35293529
"title": "Sign-out leaves none of the signed-out user's browser state and no return link, while a session that ended on the server sends the next in-app navigation to sign-in with its return link",
35303530
"since": "v18.4",
35313531
"status": "active",
3532-
"revision": 2,
3532+
"revision": 3,
35333533
"priority": "P1",
35343534
"surface": "browser",
35353535
"personas": [
@@ -3554,8 +3554,8 @@
35543554
{
35553555
"clause": "sign-out sweeps both stores down to the device keys before the sign-in page shows",
35563556
"oracle": "dom",
3557-
"verify": "after sign-out both stores hold only keys from the kept set: auth-session-token, auth-session-user-id, vite-ui-theme, objectui-locale and objectui-locale-seed; qa-probe-<run> and every objectui:metadata:* key are gone from both (ui/packages/auth/src/ActiveOrganizationStorage.ts#purgeSignedOutUserClientState, run by ui/packages/auth/src/AuthProvider.tsx#AuthProvider on every sign-out path)",
3558-
"evidence": "the two key lists before and after"
3557+
"verify": "after sign-out no key the signed-out user's session wrote survives in either store (the same test as negative[1]): every key left is in the kept set (SIGNED_OUT_KEPT_KEYS: auth-session-token, auth-session-user-id, vite-ui-theme, objectui-locale, objectui-locale-seed and objectui:auth:signed-out-via-provider) or is anonymous-shell state that a never-signed-in visit to /_console/login writes too, which today is exactly flow-palette-recents holding [] (the unscoped key ui/packages/app-shell/src/context/FlowPaletteRecentsProvider.tsx#FlowPaletteRecentsProvider writes when it re-hydrates with no user after the sweep); qa-probe-<run>, every objectui:metadata:* key and every user-scoped :u:<id> key are gone from both, and flow-palette-recents holding anything but [] is the signed-out user's. A key outside both lists is judged against a fresh never-signed-in context opening /_console/login: written there with the same value, it is anonymous-shell state to name in the run record for this verify to list; otherwise it is a FAIL (ui/packages/auth/src/ActiveOrganizationStorage.ts#purgeSignedOutUserClientState, run by ui/packages/auth/src/AuthProvider.tsx#AuthProvider on every sign-out path)",
3558+
"evidence": "the two key lists before and after, with the value of every key outside the kept set"
35593559
},
35603560
{
35613561
"clause": "an explicit sign-out carries no return link, so the next person lands on their own home",
@@ -3603,6 +3603,12 @@
36033603
"date": "2026-11-14",
36043604
"change": "acceptance[1].verify re-pointed (stale spec, QA run #32953, card body of #32908; ledger row 41). After sign-in without a redirect the console resolves the root landing (RootLandingRedirect.tsx), which on the showcase is the member's app, not /home. What the clause tests, no carry-over of the admin's record, is unchanged. Read at base 82838e83",
36053605
"ref": "#33328"
3606+
},
3607+
{
3608+
"revision": 3,
3609+
"date": "2026-11-15",
3610+
"change": "acceptance[0].verify re-pointed (stale spec, QA run #33853, card #33859). The verify listed the kept keys as the only keys allowed after sign-out, but the anonymous login page writes its own flow-palette-recents = [] (FlowPaletteRecentsProvider re-hydrates with no user after the purge and saves the unscoped key); a never-signed-in visit writes the same. The verify now judges keys the signed-out user's session wrote, as negative[1] does, names that anonymous-shell key with its value, adds objectui:auth:signed-out-via-provider to the kept list as SIGNED_OUT_KEPT_KEYS has it, and has the runner diff any other unlisted key against a fresh anonymous visit. What the clause tests, no signed-out user's state left behind, is unchanged. Read at base 895783a1",
3611+
"ref": "#33936"
36063612
}
36073613
]
36083614
}

‎packages/connectors/connector-openapi/src/openapi-connector.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,9 @@ function buildInputSchema(op: OpenApiOperation, auth: RestAuth, schemeFilled: Re
557557
if (sec.required.length) schema.required = sec.required;
558558
if (unresolvedParameter) schema.additionalProperties = true;
559559
properties[where] = schema;
560-
// Path params are always required when present; others only if any are.
560+
// `path` is required when it declares a parameter (a path parameter is
561+
// always required); any section, when it lists a required parameter. A
562+
// section emitted only because an unresolved `$ref` opened it is not.
561563
if ((where === 'path' && declared) || sec.required.length) required.push(where);
562564
}
563565

‎packages/objectql/src/package-scoped-exact-qualifier.test.ts‎

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,6 +1276,87 @@ describe('[#31699 F2] a pair member row two holders could own is refused on both
12761276
});
12771277
});
12781278

1279+
/**
1280+
* [#33817, from #33131 N1] A package X of an App holds the name only through
1281+
* its own stored row (`package_id` X, hydrated into the bare slot), and that
1282+
* holding is a bundle ADDITION to a holder D: D ships the name, D is in X's
1283+
* declared dependency closure and outside X's App (a module of another App),
1284+
* and X's row carries a member D does not ship. The App's customization pair
1285+
* stores an undeclared row of another member. The review read (PR #33220, N1)
1286+
* predicted that X's scoped list leaves the pair row out while X's exact read
1287+
* admits X and serves it.
1288+
*
1289+
* MEASURED on `main` 1e65a389 with this fixture, both registration orders:
1290+
* they DISAGREE, as predicted. `packageScopedHoldersOf` with no caller drops X
1291+
* (an addition to D), so the list's `holdsNameForExactRead` is false and X's
1292+
* list and execution list leave the row out; X's exact read admits X (asked
1293+
* as the caller it names), the registry binds the row to X
1294+
* (`overlayRowBinding`), and `?package=X&member=de-DE` serves it. This pin
1295+
* records the cells as they are today; the route (which side moves) is the
1296+
* card's open question, so the fix flips the side it decides.
1297+
*/
1298+
describe('[#33817] a package holding the name only through a stored row that is a bundle addition to a closure dependency outside its App: its exact read serves the App pair\'s undeclared row, its scoped list leaves it out (measured, unresolved)', () => {
1299+
const APP = 'com.acme.suite';
1300+
const X = 'com.acme.suitex';
1301+
/** D's own App: D is a module of another App, so it is outside X's (X then has one App, APP). */
1302+
const OTHER = 'com.other.base';
1303+
const D = 'com.other.dee';
1304+
const PAIR = `${APP}.custom`;
1305+
const read = (packageId: string, member: string) => protocol.getMetaItem({
1306+
type: 'email_template', name: 'welcome', packageId, member,
1307+
} as never) as Promise<{ item?: { label?: string } } | undefined>;
1308+
const listed = async (packageId: string) => ((await protocol.getMetaItems({ type: 'email_template', packageId } as never)) as { items?: Array<{ label?: string }> })
1309+
.items?.map((i) => i.label).sort();
1310+
const forSend = async (packageId: string) => ((await protocol.getMetaItemsForExecution({ type: 'email_template', packageId } as never)) as { items?: Array<{ label?: string }> })
1311+
.items?.map((i) => i.label).sort();
1312+
1313+
beforeEach(() => {
1314+
registry.installPackage(manifest(APP), 'code');
1315+
registry.installPackage(manifest(OTHER), 'code');
1316+
registry.installPackage({
1317+
id: D, name: D, version: '1.0.0', type: 'module', namespace: 'dee', dependencies: { [OTHER]: '^1.0.0' },
1318+
} as never, 'code');
1319+
registry.installPackage({
1320+
id: X, name: X, version: '1.0.0', type: 'module', namespace: 'suitex',
1321+
dependencies: { [APP]: '^1.0.0', [D]: '^1.0.0' },
1322+
} as never, 'code');
1323+
registry.installPackage(manifest(PAIR), 'code');
1324+
registry.registerItem('email_template', {
1325+
name: 'welcome', label: 'dee en-US', locale: 'en-US', subject: 'dee en-US', bodyHtml: '<p>d</p>',
1326+
}, 'name' as never, D);
1327+
});
1328+
1329+
it.each([['holding first', true], ['pair row first', false]] as const)('X\'s exact read serves the pair\'s undeclared de-DE row; X\'s list and execution list leave it out (%s)', async (_order, holdingFirst) => {
1330+
const xFr = { name: 'welcome', label: 'suitex fr-FR', locale: 'fr-FR', subject: 'suitex fr-FR', bodyHtml: '<p>x</p>' };
1331+
const pairDe = { name: 'welcome', label: 'pair de-DE', locale: 'de-DE', subject: 'pair de-DE', bodyHtml: '<p>p</p>' };
1332+
const registerHolding = () => {
1333+
rows.push({ id: 'row_x', type: 'email_template', name: 'welcome', state: 'active', package_id: X, bundle_member: 'fr-FR', metadata: JSON.stringify(xFr) });
1334+
registry.registerItem('email_template', { ...xFr, _packageId: X, _provenance: 'org' }, 'name' as never);
1335+
};
1336+
const registerPairRow = () => {
1337+
rows.push({ id: 'row_de', type: 'email_template', name: 'welcome', state: 'active', package_id: PAIR, bundle_member: 'de-DE', metadata: JSON.stringify(pairDe) });
1338+
registry.registerItem('email_template', { ...pairDe, _packageId: PAIR, _provenance: 'org' }, 'name' as never);
1339+
};
1340+
if (holdingFirst) { registerHolding(); registerPairRow(); } else { registerPairRow(); registerHolding(); }
1341+
1342+
// The fixture is the card's: X's holding is an addition to D, so the served holders leave X out…
1343+
expect(registry.packageScopedHoldersOf('email_template', 'welcome'), 'X is an addition to D').not.toContain(X);
1344+
// …X's own count keeps it (the exact read's admission), and the registry binds the pair's row to X.
1345+
expect(registry.packageScopedHoldersOf('email_template', 'welcome', X), 'the caller keeps its own holding').toContain(X);
1346+
expect(registry.overlayRowBinding('email_template', 'welcome', { ...pairDe, _packageId: PAIR })).toBe(X);
1347+
1348+
// The two sides disagree today: the exact read serves the row, both lists leave it out.
1349+
expect(labelOf(await read(X, 'de-DE')), '`?package=X&member=de-DE`').toBe('pair de-DE');
1350+
expect(await listed(X)).toEqual(['suitex fr-FR']);
1351+
expect(await forSend(X)).toEqual(['suitex fr-FR']);
1352+
1353+
// CONTROL: X's own member is X's, D's list is D's own, and the pair's own address serves its row.
1354+
expect(labelOf(await read(X, 'fr-FR'))).toBe('suitex fr-FR');
1355+
expect(await listed(D)).toEqual(['dee en-US']);
1356+
expect(labelOf(await read(PAIR, 'de-DE'))).toBe('pair de-DE');
1357+
});
1358+
});
1359+
12791360
/**
12801361
* [#32183, epic rulings R4-B and R4-B2] A name only a disabled package holds,
12811362
* read at an address that neither holds it nor is a pair of a holder (a

0 commit comments

Comments
 (0)