Skip to content

commandCarriesUserProvenance

commandCarriesUserProvenance(command): boolean

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/config/shell-policy.ts:887

COMMAND_CARRIES_USER_PROVENANCE as a predicate — and it fails closed: anything not positively established as the user’s own words answers false, undefined included.

The ?? false coalesce and the undefined arm are the fail-closed half, not defensive noise. undefined is a runner initialized without a command — today the gth pr change-requirements discovery agent, which passes owningCommand: 'pr' for its label and deliberately no command at all — and a lookup outside GthCommand can only reach here from an untyped consumer of the published barrel. Both must answer “not the user’s words”, because a carve-out granted by default is a carve-out nobody chose.

Callers pass command ?? owningCommand, so a command-less helper agent is classified by the verb it serves rather than by the absence of a verb.

GthCommand | undefined

boolean