isBelowDestructiveFloor
isBelowDestructiveFloor(
outcome):boolean
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/shell/rater.ts:1710
Is this outcome below the deterministic destructive floor — i.e. may a preflight rewrite it?
See BELOW_DESTRUCTIVE_FLOOR. An outcome that is not in the table is treated as below the
floor, so an out-of-band value is FLOORED to destructive rather than sailing past the preflight
carrying the model’s own unvalidated reason.
The lookup is OWN-PROPERTY-ONLY, and the declared boolean return is the reason. outcome is
only RaterOutcome as far as the compiler is concerned — this helper exists to be robust to a
value that lied — and a ?? undefined default would still hand back the inherited value for a
prototype-chain key ('toString' → a function, 'constructor' → Object). Those happen to be
truthy, so today’s single caller would still floor; but a caller written as === true, which is
how a predicate advertised as hardened invites being consumed, would fail OPEN on exactly the
class of input this function is for. Object.hasOwn makes the advertised invariant true rather
than incidentally true.
Parameters
Section titled “Parameters”outcome
Section titled “outcome”"safe" | "destructive" | "catastrophic" | "attack"
Returns
Section titled “Returns”boolean