Skip to content

Commit d0af72c

Browse files
committed
test(metadata-protocol,lint): the served field schema counts 77 top-level properties; the field-level alias verdict covers settledWhen
protocol.meta-types-degenerate-derivation.test.ts holds the per-type served property counts as a positive control; `field` moves 75 to 77 with the two declared keys, the `picklist` precedent. The #6585 user-alias table over the field-rule slots gains settledWhen, which binds the same roots. Claude-Session: https://claude.ai/code/session_01VZqqwTj2wsihZEbfT6yyYN Co-authored-by: Claude <noreply@anthropic.com>
1 parent 23c192b commit d0af72c

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎packages/lint/src/validate-expressions.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,9 @@ describe('validateStackExpressions (ADR-0032 build-time)', () => {
12151215
* stay accepted.
12161216
*/
12171217
describe('`user` / `ctx.user` aliases at field level (#6585)', () => {
1218-
const slots = ['visibleWhen', 'readonlyWhen', 'requiredWhen'] as const;
1218+
// #22227: a deadline's `settledWhen` is the fourth field-rule slot and
1219+
// binds the same roots, so the alias verdict covers it too.
1220+
const slots = ['visibleWhen', 'readonlyWhen', 'requiredWhen', 'settledWhen'] as const;
12191221

12201222
it.each(slots)('rejects `user` on %s — same object as `current_user`, same unbound surface', (slot) => {
12211223
const issues = validateStackExpressions({

‎packages/metadata-protocol/src/protocol.meta-types-degenerate-derivation.test.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,12 @@ describe('#17501 — /meta/types serves a real schema for `action`, and moves no
307307
* record's picture, beside `nameField`). `page` moved 24 → 25 the same way
308308
* when it gained `print` (#22158, the print-page declaration). `object`
309309
* moved 44 → 45 the same way when it gained `attachedOnRead` (#22386, the
310-
* blocks a service attaches per caller on read).
310+
* blocks a service attaches per caller on read). `field` moved 75 → 77 the
311+
* same way when it gained `dueLike` and `settledWhen` (#22227, a date's
312+
* deadline and when it is settled).
311313
*/
312314
const CARD_PROPERTY_COUNTS: Record<string, number> = {
313-
agent: 26, app: 30, dashboard: 21, dataset: 16, field: 75, flow: 23,
315+
agent: 26, app: 30, dashboard: 21, dataset: 16, field: 77, flow: 23,
314316
hook: 22, object: 45, page: 25, position: 12, report: 21, skill: 17, tool: 14,
315317
};
316318

0 commit comments

Comments
 (0)