Skip to content

effectiveGovernance()

PromptScript API


effectiveGovernance(entry, defaults): GovernanceMeta

Defined in: core/src/prompt-definitions.ts:508

Effective governance of a prompt: risk, owner and domain from the entry, else the @meta default; dataClasses joined; entry reviewers replace the default. Lists are sorted and deduplicated. This is the value a prompt bundle carries.

Parameters

entry

GovernanceMeta

Governance authored on the entry

defaults

GovernanceMeta

Governance defaults of @meta

Returns

GovernanceMeta

The effective governance, without unset fields