Prompt Governance

Policies and guardrails

Organization and workspace policies—sharing, export, playground, publish restrictions, and enforcement.

9 min read

Especially for

adminownerorg admin

Typically requires permissions

org:settings:manage

Policies are stored as OrganizationPolicy and WorkspacePolicy documents sharing fields from policyFields.js.

Common controls:

AreaExamples
SharingDisable community browsing/import, share links
ExportDisable JSON/Markdown export
Playground / RefinedisablePlaygroundForRoles, disableRefineAgentForRoles
PublishrestrictPublishTo, requireScanBeforePublish
CreationrestrictOfficialCreationTo, requireMetadataFields
Approved promptslockApprovedPrompts — prevent edits after approval
RetentionDays for prompts, runs, audit logs; legal hold

Effective policy = merge(org, workspace). APIs use enforcePolicy middleware on create, update, publish, export, run, refine.

Dashboard governance API also exposes read/update for org and workspace policy from the governance UI.

Related articles