Skip to content

Commit 1bb247c

Browse files
committed
test(runtime): the org-scope pin reads the caller context the probes now carry
Claude-Session: https://claude.ai/code/session_01CxBKycaiUpA1yGx1XyoGqX Co-authored-by: Claude <noreply@anthropic.com>
1 parent bb15e5f commit 1bb247c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎packages/runtime/src/domains/packages-seed-apply-org-scope.test.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,12 @@ describe('#15068 · 0 · the publish-then-read path really runs', () => {
390390
const { publishRequest } = await publishThenRead({ activeOrganizationId: ORG });
391391

392392
// The door threads no organization into `publishPackageDrafts` (nor
393-
// into `applyPublishedSeeds`), even with one active.
394-
expect(publishRequest()).toEqual({ packageId: PKG });
393+
// into `applyPublishedSeeds`), even with one active. [#25484] The
394+
// caller's execution context does ride along, verbatim: the build
395+
// probes read a widget's dataset AS that caller (the renderer's path),
396+
// and nothing in the publish derives a write scope from it.
397+
const caller = PKG_ADMIN(ORG).executionContext;
398+
expect(publishRequest()).toEqual({ packageId: PKG, context: caller });
395399
expect(publishRequest()).not.toHaveProperty('organizationId');
396400
});
397401
});

0 commit comments

Comments
 (0)