Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Commit 0fa7a9c

Browse files
Sam Altmanclaude
andauthored
test(console): re-point record:activity.types calibration control at '' (objectui#8137) (#8259)
`@objectstack/spec` 17.3.0 made `RecordActivityProps.types` an OPEN vocabulary (`z.array(z.union([FeedItemType, z.string().min(1)]))`) — objectstack#11658 executing the maintainer's 2026-08-24 ruling on objectstack#11507. The member calibration control probed that vocabulary with an unlisted word, `'Account'`, which the widened contract now accepts, so the row asserted something false. Re-pointed at `''`, the one content refusal the widening kept: `''` IS a string, so the only check it fails is `.min(1)` and it raises no `invalid_type` anywhere — right kind, wrong content. That preserves the pair's whole job, which is to separate a CONTENT refusal from the KIND refusal asserted on the `42` line directly below (untouched). The comment above the row is rewritten in the same edit: it stated the retired premise ("a spec enum of strings"), and leaving it under a corrected value would be exactly the stale-restatement defect. Editing a calibration control is on the manual floor. Authorised by the maintainer on 2026-09-07 against the exact diff, scoped to this one row and its comment. Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E Co-authored-by: Claude <noreply@anthropic.com>
1 parent 0758bd8 commit 0fa7a9c

2 files changed

Lines changed: 25 additions & 5 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
---
3+
4+
Re-point the `record:activity.types` member calibration control in
5+
`registry-inputs-spec-parity` from `'Account'` to `''` (objectui#8137).
6+
`@objectstack/spec` 17.3.0 made that vocabulary open —
7+
`z.array(z.union([FeedItemType, z.string().min(1)]))`, objectstack#11658
8+
executing the maintainer's 2026-08-24 ruling on objectstack#11507 — so the old
9+
probe now accepts, while `''` is still refused for its CONTENT via `.min(1)`.
10+
Test only; no package is released by this change.

‎apps/console/src/__tests__/registry-inputs-spec-parity.test.ts‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3144,11 +3144,21 @@ describe('registry `inputs` vs `@objectstack/spec` ComponentPropsMap (repo-wide)
31443144

31453145
// …and the second half of the calibration: a CONTENT refusal at the member
31463146
// position is NOT a kind refusal, so the coarse-kind ceiling survives one
3147-
// level down exactly as it does at the top. `record:activity.types` is a
3148-
// spec enum of strings — a string member is refused as a VALUE, and reading
3149-
// that as "the string member declaration is invented" would condemn a
3150-
// declaration derived from the contract itself.
3151-
expect(specMemberVerdict('record:activity', 'types', 'array', 'Account')).toBe(
3147+
// level down exactly as it does at the top.
3148+
//
3149+
// `record:activity.types` was a CLOSED `z.enum([...])` of strings when this
3150+
// row was written, and it probed that enum with an unlisted word.
3151+
// `@objectstack/spec` 17.3.0 made the vocabulary OPEN —
3152+
// `z.array(z.union([FeedItemType, z.string().min(1)]))`, objectstack#11658
3153+
// executing the maintainer's 2026-08-24 ruling on objectstack#11507 — so no
3154+
// ordinary string is refused there any more and the unlisted word ACCEPTS.
3155+
// The widening kept exactly ONE content refusal, and it is the one this
3156+
// control needs: `''` IS a string, so the only check it fails is `.min(1)`
3157+
// and it raises no `invalid_type` anywhere — right KIND, wrong CONTENT.
3158+
// That is exactly the distinction from the `42` line below, which is
3159+
// refused for its KIND, and it is why the pair still discriminates.
3160+
// Re-pointed under the maintainer 2026-09-07 authorisation on objectui#8137.
3161+
expect(specMemberVerdict('record:activity', 'types', 'array', '')).toBe(
31523162
'refuses-content',
31533163
);
31543164
expect(specMemberVerdict('record:activity', 'types', 'array', 42)).toBe('refuses-kind');

0 commit comments

Comments
 (0)