Skip to content

Commit f594f68

Browse files
committed
Merge origin/main (8b550f8) into claude/project-thread-rothb5
One conflict, in the skill line ratchet's ceiling rows: main raised filing-gate.md 82 -> 83 for its own ruled line, this branch raised the same row 82 -> 86. Both records stay, in landing order, and the row is the merged file's measured count: 83 -> 87 (delta +4, unchanged). Claude-Session: https://claude.ai/code/session_01Utp6CaAqjP52wVTzs99H5G Co-authored-by: Claude <noreply@anthropic.com>
2 parents 1ef1f46 + 8b550f8 commit f594f68

26 files changed

Lines changed: 824 additions & 96 deletions
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/service-settings': patch
3+
---
4+
5+
fix(settings): Setup → Access policy explains its five fields in the admin's language
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
On Setup → Access policy, the help under Allowed IP ranges, Idle timeout, Absolute session lifetime, Max concurrent sessions per user and Require multi-factor authentication showed the English manifest description in every translated locale, because no locale bundle carried a `help` for those keys. All ten translated locales (zh-CN, zh-Hant, ja-JP, ko, de, es-ES, fr, pt-BR, ru, ar) now carry `settings.access_policy.keys.KEY.help` for each of the five, translated from the English description. The settings translation coverage test no longer exempts them: its shrink-only owed-help list is empty, so every described settings field is held to a translated help in every locale. No keys, labels or option values change.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@objectstack/formula': patch
3+
---
4+
5+
fix(formula): a flow value envelope's date-text refusal says the run fails when the value is computed, not when a condition runs
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A flow value envelope (an `assignment` value, or a `create_record` / `update_record` `fields.*` value) that hands a `date` field's text to a call it cannot take (`timestamp(record.borrow_date)`) or does arithmetic on it (`record.due_date - record.borrow_date`) is refused by `os validate` and by `registerFlow`. The refusal reused the flow-condition sentence: "this faults wherever `record.borrow_date` holds that text when the condition runs, and a flow condition that cannot be evaluated fails the run: the flow stops at this condition …". A value slot has no condition. It now reads "… when the value is computed, and a flow value that cannot be computed fails the run: the flow stops at this step and the work the flow exists to do is not done (it does not read null)."
11+
12+
- **Two codes join `ExpressionRefusalCode`** (`EXPRESSION_REFUSAL_CODES`), with the params of the code each splits from: `date-text-call-value-run-may-fail` (params of `date-text-call`) and `date-text-arithmetic-value-run-may-fail` (params of `date-text-arithmetic`). `validateExpression` serves them where `ExprSchemaHint.flowValueEnvelope` is set, in place of `date-text-call-run-may-fail` / `date-text-arithmetic-run-may-fail`. A consumer keyed to the old codes on a value envelope re-keys to the new ones.
13+
- **Unchanged:** the same sources are refused, at the same grade (an error), at the same location, with the same leading value-envelope sentence and the same fix hint. A flow condition keeps `date-text-call-run-may-fail` / `date-text-arithmetic-run-may-fail` and `-run-fails`, byte for byte.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(console): the AI chat page's publish warning about failed sample data shows the pack's sentence, never the seed loader's text
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Publishing from the AI chat page warns "Published, but some sample data failed to load." when a seed fails to load. The detail under that title printed the seed loader's own engine text (for example "seed apply stopped at the seed for object …"), and when the loader reported only per-record rows it printed "[object Object]". It now shows the sentence the chat's publish-health line already shows for the same failure (`chatbot.build.health.seedFailed`, from the locale pack), the same sentence *Publish all* shows. The loader's text and its error rows go to the browser console (`console.warn`), never the toast.
11+
12+
No locale keys, props or exports change.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
## 区内规则
2828

2929
- 区会话署本席签名,签名第三位与 `Session:` 皆填区会话 ID;开轮互斥读法照 `seat-lifecycle.md`。
30-
- 认领前重读标签、assignee 与末条评论:他人 assignee、他人 `Claim:` 或他区 `lease:*` ⇒ 不碰。
30+
- 认领前重读标签、assignee 与末条评论:他人 assignee、他人 `Claim:` 或他区 `Area:` 行 ⇒ 不碰。
3131
- 认领前三查必过,各写认领评论一行;任一不过或遇大卡 ⇒ 不认领、不派 dev,当即交席位:
3232
- `Pre-claim lane:` 修复所改路径属哪条车道,点名依据路径(碰他道路径照下文留道行)。
3333
- `Pre-claim deps:` 卡点名的 `Blocked-by:`、「after #N」逐个已合;热文件照下文重叠检查。
3434
- `Prior rulings read:` 照 `decision-analysis.md`;grep `docs/adr/**`、链卡(⛔ 行在内)与反向 pin
3535
测试;记录冲突,或路线改门的可见行为超出本卡裁决,同作不过。
3636
- 重叠检查:认领前与每次推前跑 `scripts/pm/overlap-check.mjs`;exit 1 排所列 PR 后,3 补前提重跑。
37-
- 认领照 `execution-duties.md` 派发原子对,同笔加 `lease:<区>`;`Branch:` 照 AGENTS.md 命名。
38-
- 认领后回读标签(SKILL.md 标签写四步):缺 `lease:` 或 `pm:dispatched` 即重挂;首推即开 draft PR。
37+
- 认领照 `execution-duties.md` 派发原子对,`Claim:` 带 `Area: <区>` 行;`Branch:` 照 AGENTS.md 命名。
38+
- 认领后回读(SKILL.md 标签写四步)只查 `pm:dispatched` 与 assignee,缺即重挂;首推即开 draft PR。
3939
- 认领前照 `dispatch-runbook.md` 派发前置核前提;开线程请求交席位攒批(`coordinator.md` 三)。
4040
- 写码与开发期读码全经 `os-dev` 等子代理(一卡或一组耦合卡,文件面不相交)。
4141
- 同系列卡可从前卡分支起步(AGENTS.md §2 主干形,⛔ 不叠 PR);新测试建按卡命名的新文件,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
## 二、跨车道取卡(coordinator 每次唤醒读)
1616

1717
- 取卡面 = 各车道 open 卡:p0/p1 先,再点名 area 或子专题的下一张;判据照 `execution-duties.md`。
18+
- 维护者只说改级 ⇒ 只落级,评论照 `filing-gate.md` 引原话;⛔ 不借此开线程,照取卡全序。
1819
- 每张卡交其车道的席位线程;车道无席位线程而座位贴空着 ⇒ 先开席位线程再交卡。
1920
- 维护者 ⛔ 不逐卡点名车道:车道读卡的 `domain:*`;S/M 分流见 `dispatch-runbook.md` 卡线程节。
2021

@@ -24,6 +25,7 @@
2425
- 席位攒批交候选,一线程一行:卡/PR、标题、级别、effort、汇报区、要读文件、续做分支。
2526
- 派发令全文随行;⛔ 不等自己的槽位;区与卡线程 ⛔ 不直找 coordinator,经席位。
2627
- coordinator 一批开完、一次回全部 id:p0/p1 先,余照点名次序;满即排队,交回或合入即释放。
28+
- 有空槽即开;先后只认卡上 `Blocked-by:` 与席位串行队,⛔ 不自排、不逐张等。
2729
- 槽位只算在建的线程:等人(授权批准、决策卡)或等席位 L1/L2 审核的卡线程不占槽。
2830
- S 卡的席内子代理只计该席 `batch`,不计本上限。
2931

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
- 车队立的卡(席位、代立发现、清单、分诊)建卡带 area、type、级与正文定级行,缺一拒收。
3636
- 维护者或外部人立的卡由分诊首触补齐 area 与 type;人定的级 ⛔ 不改,分诊与各席同此。
3737
- 改级前读现级末次 `labeled` 事件:带 `performed_via_github_app` 或 bot actor 才算车队,余人定。
38+
- 代维护者落的级:同笔评论行首 `Ruling-ref: priority:pN` 引原话才算人定;⛔ 不凭 bot 判车队。
3839
- 对人定的级有异议 ⇒ 只在卡上评论一行理由;级与卡的状态 ⛔ 不动。
3940
- 业务理由:谁受益、什么场景、不做会怎样;③ 以原话代,④ 承父单;分诊 ⛔ 不代写。
4041
- 清楚且合北极星方向 ⇒ 照常定级入队;与「What gets built」不符或无受益者 = 站不住。

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
## 多席分工
2121

2222
- 区是全车道互斥单位:一区一时只归一席;各席租约表住本席座位贴,合即全车道租约。
23-
- 区名全车道唯一,带席号前缀(如 `o2-A3`);`lease:` 标签随区名。
23+
- 区名全车道唯一,带席号前缀(如 `o2-A3`);区名只记租约表与认领评论的 `Area:` 行。
2424
- 开区、拆并或接区前,读本车道各在座席的租约表;路径相交 ⇒ 不开,写信协商。
2525
- 区名与路径根只住租约表;定区同轮写本席表,`Notify: split` 照其模板只列卡号。
2626
- 本车道以区租约代替 `execution-duties.md` 多席奇偶交替;认领戳仲裁不变。

‎packages/formula/src/expression-refusal-codes.test.ts‎

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,26 @@ const PINS: { readonly [C in ExpressionRefusalCode]: readonly [Pin<C>, ...Pin<C>
464464
'`(datetime(b) - datetime(a)).getMinutes()` / `.getHours()`.',
465465
},
466466
],
467+
// [#34660] A flow value envelope: the run fails when the value is computed, and no condition runs there.
468+
'date-text-arithmetic-value-run-may-fail': [
469+
{
470+
produce: () =>
471+
onlyError('value', { dialect: 'cel', source: 'record.end_at - record.start_at' }, {
472+
fieldTypes: { start_at: 'datetime', end_at: 'datetime' },
473+
flowValueEnvelope: true,
474+
}),
475+
params: { operands: 'DateText - DateText', reference: 'record.start_at' },
476+
message:
477+
'date arithmetic `DateText - DateText` — `record.start_at` is a date field, and the runtime holds a date field ' +
478+
'as its text (`YYYY-MM-DD`, or an ISO-8601 instant for a date-time), which CEL can\'t do arithmetic on: ' +
479+
'this faults wherever `record.start_at` holds that text when the value is computed, and ' +
480+
'a flow value that cannot be computed fails the run: the flow stops at this step and the work the flow ' +
481+
'exists to do is not done (it does not read null). ' +
482+
'Use `daysBetween(a, b)` for the span in whole days, and `daysFromNow(n)` / `addDays(d, n)` / `addMonths(d, n)` to shift a date. ' +
483+
'For a span in hours or minutes, wrap each side in `datetime(…)` and read the Duration: ' +
484+
'`(datetime(b) - datetime(a)).getMinutes()` / `.getHours()`.',
485+
},
486+
],
467487
// [#32595] A call handed a date field's text that no overload accepts.
468488
'date-text-call': [
469489
{
@@ -585,6 +605,30 @@ const PINS: { readonly [C in ExpressionRefusalCode]: readonly [Pin<C>, ...Pin<C>
585605
'Parse the text into a timestamp first: `isoDate(date(start_at))`.',
586606
},
587607
],
608+
// [#34660] The same call in a flow value envelope, with the optional `shift` clause.
609+
'date-text-call-value-run-may-fail': [
610+
{
611+
produce: () =>
612+
onlyError('value', { dialect: 'cel', source: "isoDate(timestamp(record.borrow_date) + duration('168h'))" }, {
613+
fieldTypes: { borrow_date: 'date' },
614+
flowValueEnvelope: true,
615+
}),
616+
params: {
617+
call: 'timestamp(record.borrow_date)',
618+
reference: 'record.borrow_date',
619+
rewrite: 'date(record.borrow_date)',
620+
shift: 'isoDate(addDays(record.borrow_date, N))',
621+
},
622+
message:
623+
'`timestamp(record.borrow_date)` — `record.borrow_date` is a date field, and the runtime holds a date field as its text ' +
624+
'(`YYYY-MM-DD`, or an ISO-8601 instant for a date-time), which this call does not accept: ' +
625+
'this faults wherever `record.borrow_date` holds that text when the value is computed, and ' +
626+
'a flow value that cannot be computed fails the run: the flow stops at this step and the work the flow ' +
627+
'exists to do is not done (it does not read null). ' +
628+
'Parse the text into a timestamp first: `date(record.borrow_date)`. ' +
629+
'To shift it by N whole days and keep it a date, write `isoDate(addDays(record.borrow_date, N))`.',
630+
},
631+
],
588632
'date-duration-value': [
589633
{
590634
produce: () =>
@@ -954,6 +998,9 @@ const SWEEP_SCHEMAS: readonly (ExprSchemaHint | undefined)[] = [
954998
// [#29959] A flattened (flow) condition with no declared outcome reaches
955999
// `type-mismatch-run-may-fail`, bare and through `record.`.
9561000
{ scope: 'flattened', objectName: 'deal', fields: ['amount', 'name', 'active'], fieldTypes: { name: 'text', active: 'boolean' } },
1001+
// [#34660] A flow value envelope with a date field reaches the date-text
1002+
// verdicts' `-value-run-may-fail` codes.
1003+
{ fieldTypes: { close_date: 'date' }, flowValueEnvelope: true },
9571004
{ fields: ['status'] },
9581005
{ fieldTypes: { account: 'lookup' }, traversalHydration: true },
9591006
];
@@ -1011,8 +1058,8 @@ function refusalKey(said: ExprValidationError): string {
10111058
}
10121059

10131060
/**
1014-
* The validateExpression sweep's budget. The case is synchronous: 5,760
1015-
* validateExpression calls (3 roles x 128 inputs x 15 schemas), most of the
1061+
* The validateExpression sweep's budget. The case is synchronous: 6,144
1062+
* validateExpression calls (3 roles x 128 inputs x 16 schemas), most of the
10161063
* time in building a typed CEL environment for each call. Its work is the
10171064
* sweep's breadth, which is the claim, so the breadth stays; only re-judging
10181065
* duplicate refusals was cut (see the case). Readings of the case, in ms:
@@ -1025,6 +1072,11 @@ function refusalKey(said: ExprValidationError): string {
10251072
* - Local, 4 vCPU, this file alone: 757 to 830 before the cut, 534 to 645
10261073
* after it. Pinned to one CPU shared with two busy loops: 2542 to 3063
10271074
* before, 1961 to 2137 after.
1075+
* - Local, 4 vCPU, this file alone, when the flow value-envelope schema
1076+
* joined (15 schemas to 16): 192 to 225 with it, 186 to 267 for the 15
1077+
* in the same session. That schema stands down on every source but a
1078+
* date field's value, so the 16th adds nothing measurable and the budget
1079+
* stands.
10281080
*
10291081
* The rule follows `packages/cli/test/hook-timeout-override-refusal.test.ts`:
10301082
* 3x the slowest reading, rounded up to the next second. 3 x 5034 = 15102, so

‎packages/formula/src/expression-refusal.ts‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ export interface ExpressionRefusalParams {
191191
* `reference` is the field as written, when it is known. A flattened (flow)
192192
* condition is `date-text-arithmetic-run-fails` / `-run-may-fail`; a
193193
* fail-closed site is `date-text-arithmetic-fail-closed`, an advisory rule's
194-
* `date-text-arithmetic-fail-open`.
194+
* `date-text-arithmetic-fail-open`, and a flow value envelope's
195+
* `date-text-arithmetic-value-run-may-fail`.
195196
*/
196197
'date-text-arithmetic': { readonly operands: string; readonly reference?: string };
197198
/**
@@ -210,6 +211,16 @@ export interface ExpressionRefusalParams {
210211
'date-text-arithmetic-run-fails': { readonly operands: string; readonly reference?: string };
211212
/** [#30016] ERROR: `date-text-arithmetic`, at a `date-arithmetic-run-may-fail` site. */
212213
'date-text-arithmetic-run-may-fail': { readonly operands: string; readonly reference?: string };
214+
/**
215+
* [#34660] ERROR: `date-text-arithmetic` in a flow VALUE envelope
216+
* (`ExprSchemaHint.flowValueEnvelope`: an `assignment` value, a
217+
* `create_record` / `update_record` `fields.*` value) — it faults, and so
218+
* fails the run at the step, wherever the field holds that text when the
219+
* value is computed. No condition runs at a value slot, so its sentence is
220+
* not `-run-may-fail`'s. The `sweep` precedent names the site before the
221+
* outcome (`type-mismatch-sweep-run-fails`); `value` is this site.
222+
*/
223+
'date-text-arithmetic-value-run-may-fail': { readonly operands: string; readonly reference?: string };
213224
/**
214225
* [#30250] ERROR: `date-arithmetic` at a site that FAILS CLOSED (an `error`
215226
* validation rule, a field write rule, an option `visibleWhen`, a hook
@@ -237,13 +248,16 @@ export interface ExpressionRefusalParams {
237248
* checks clean and faults on the `YYYY-MM-DD` text, `date(…)` in place of the
238249
* call, with the optional `shift` clause. A flattened (flow) condition is
239250
* `date-text-call-run-fails` / `-run-may-fail`; a fail-closed site is
240-
* `date-text-call-fail-closed`, an advisory rule's `date-text-call-fail-open`.
251+
* `date-text-call-fail-closed`, an advisory rule's `date-text-call-fail-open`,
252+
* and a flow value envelope's `date-text-call-value-run-may-fail`.
241253
*/
242254
'date-text-call': DateTextCallParams;
243255
/** [#32595] ERROR: `date-text-call`, at a `date-arithmetic-run-fails` site. */
244256
'date-text-call-run-fails': DateTextCallParams;
245257
/** [#32595] ERROR: `date-text-call`, at a `date-arithmetic-run-may-fail` site. */
246258
'date-text-call-run-may-fail': DateTextCallParams;
259+
/** [#34660] ERROR: `date-text-call`, at a `date-text-arithmetic-value-run-may-fail` site (a flow value envelope). */
260+
'date-text-call-value-run-may-fail': DateTextCallParams;
247261
/** [#32595] ERROR: `date-text-call`, at a `date-arithmetic-fail-closed` site. */
248262
'date-text-call-fail-closed': DateTextCallParams;
249263
/** [#32595] ERROR: `date-text-call`, at a `date-arithmetic-fail-open` site. */
@@ -359,13 +373,15 @@ const CODE_TABLE = {
359373
'date-arithmetic-run-may-fail': true,
360374
'date-text-arithmetic-run-fails': true,
361375
'date-text-arithmetic-run-may-fail': true,
376+
'date-text-arithmetic-value-run-may-fail': true,
362377
'date-arithmetic-fail-closed': true,
363378
'date-text-arithmetic-fail-closed': true,
364379
'date-arithmetic-fail-open': true,
365380
'date-text-arithmetic-fail-open': true,
366381
'date-text-call': true,
367382
'date-text-call-run-fails': true,
368383
'date-text-call-run-may-fail': true,
384+
'date-text-call-value-run-may-fail': true,
369385
'date-text-call-fail-closed': true,
370386
'date-text-call-fail-open': true,
371387
'date-duration-value': true,

0 commit comments

Comments
 (0)