Skip to content

Commit 588c36d

Browse files
committed
test(runtime): repair object fixtures for the authored-OWD door (#8310)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012MNV7ZSCjNfA38eDCjsXQL
1 parent 30b29a9 commit 588c36d

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

packages/runtime/src/domains/meta-published-runtime-publish.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ function makeProtocol(engine: any, metadata: unknown) {
153153
const RUNTIME_BODY = {
154154
name: 'proj_task',
155155
label: 'Project Task',
156+
// [#8310] The runtime object door requires an authored OWD (the
157+
// draft→active promotion runs the 422 lint gate).
158+
sharingModel: 'private',
156159
fields: {
157160
title: { type: 'text', label: 'Title' },
158161
done: { type: 'boolean', label: 'Done' },

packages/runtime/src/meta-field-overlay-lock.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ import type { HttpDispatcherResult } from './http-dispatcher.js';
115115
const PACKAGED_OBJECT = {
116116
name: 'showcase_task',
117117
label: 'Task',
118+
// [#8310] The runtime object door requires an authored OWD — without it
119+
// the 422 lint door answers first and the NOT_OVERRIDABLE control below
120+
// would be refused for the wrong reason.
121+
sharingModel: 'private',
118122
fields: {
119123
title: { type: 'text', label: 'Title', required: true },
120124
status: { type: 'select', label: 'Status' },
@@ -126,6 +130,8 @@ const PACKAGED_OBJECT = {
126130
const RUNTIME_OBJECT = {
127131
name: 'runtime_thing',
128132
label: 'Runtime Thing',
133+
// [#8310] The runtime object door requires an authored OWD.
134+
sharingModel: 'private',
129135
fields: { note: { type: 'text', label: 'Note' } },
130136
};
131137

packages/runtime/src/meta-write-org-scope.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ describe('#7018 — the registry decides whether a metadata write carries the se
348348
const OBJECT = {
349349
name: 'ticket',
350350
label: 'Ticket',
351+
// [#8310] The runtime object door requires an authored OWD.
352+
sharingModel: 'private',
351353
fields: { subject: { type: 'text', label: 'Subject' } },
352354
};
353355

0 commit comments

Comments
 (0)