From 56d05d606c8fee7c81798f6202a124fe74199857 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 26 Oct 2026 16:07:10 +0000 Subject: [PATCH] test(app-shell): re-point the ObjectSchema corpus guards to 48 after sharing was adopted objectstack 5e113b39 added the top-level `sharing` key to ObjectSchema, so the key-count corpus guard in MetadataService.retiredObjectEnabled.test.ts and MetadataService.specKeyObjectPayload.test.ts read 48 against a pinned 47 and Test UI went red on every merge ref. Measured Object.keys(ObjectSchema.shape) from packages/spec source: fbb75998 (parent) 47 -> 5e113b39 48, gained exactly ['sharing'], lost none; 43b47156 (origin/main) 48, no change since. Membership assertions unchanged. Claude-Session: https://claude.ai/code/session_01SMps7wq7rBTk53e8KTSEup Co-authored-by: Claude --- .../services/MetadataService.retiredObjectEnabled.test.ts | 5 ++++- .../services/MetadataService.specKeyObjectPayload.test.ts | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ui/packages/app-shell/src/services/MetadataService.retiredObjectEnabled.test.ts b/ui/packages/app-shell/src/services/MetadataService.retiredObjectEnabled.test.ts index 99e40b910fe..b371aed8192 100644 --- a/ui/packages/app-shell/src/services/MetadataService.retiredObjectEnabled.test.ts +++ b/ui/packages/app-shell/src/services/MetadataService.retiredObjectEnabled.test.ts @@ -157,8 +157,11 @@ describe('objectui#6238 · the schema oracle — both tombstone keys are refused // (objectstack#25513; measured against the 915e9404 pin: the spec's own // `authorable-surface/data.json` gains exactly `data/Object:membershipKeys` // between the two commits, none lost; objectui#13440). Re-pointed the same way. + // 48 on the objectstack `main` pin after objectstack#26005 (5e113b39), which adopted + // `sharing` (measured against its parent fbb75998: gained set exactly `['sharing']`, + // lost set empty; unchanged at 43b47156). Re-pointed the same way. const accept = new Set(Object.keys(ObjectSchema.shape as Record)); - expect(accept.size).toBe(47); + expect(accept.size).toBe(48); expect(accept.has('enable')).toBe(true); expect(accept.has('enabled')).toBe(false); expect(accept.has('_deleted')).toBe(false); diff --git a/ui/packages/app-shell/src/services/MetadataService.specKeyObjectPayload.test.ts b/ui/packages/app-shell/src/services/MetadataService.specKeyObjectPayload.test.ts index e4058be148e..1e7b199f92c 100644 --- a/ui/packages/app-shell/src/services/MetadataService.specKeyObjectPayload.test.ts +++ b/ui/packages/app-shell/src/services/MetadataService.specKeyObjectPayload.test.ts @@ -171,8 +171,11 @@ describe('the instrument', () => { // (objectstack#25513; measured against the 915e9404 pin: the spec's own // `authorable-surface/data.json` gains exactly `data/Object:membershipKeys` // between the two commits, none lost; objectui#13440). Re-pointed the same way. + // 48 on the objectstack `main` pin after objectstack#26005 (5e113b39), which adopted + // `sharing` (measured against its parent fbb75998: gained set exactly `['sharing']`, + // lost set empty; unchanged at 43b47156). Re-pointed the same way. const accept = new Set(Object.keys(ObjectSchema.shape as Record)); - expect(accept.size).toBe(47); + expect(accept.size).toBe(48); // `fieldGroups` is the only grouping key on the object, and it groups the // FIELDS INSIDE one object — it is not a category for objects themselves, // so `group` has no mapping target here.