EffectUseModule

PackageAxial.Guardrails
How every raw effect call is judged, the same way in Fast and Full: allowed for a stated reason and counted, or reported for the agent to fix. No file is exempt as a whole. A file that claims a capability (`AxialCapability` metadata on its `Compile` item) may call only that capability's API; every other effect in it is reported like anywhere else.

Contents

Summary

NameSignatureSynopsis
Operations
ownsowns fileName capabilityWhether this file claims the capability.
judgejudge config fileName source line ruleThe verdict for one raw effect call at line.
adviceadvice config fileName ruleThe finding text, written as an instruction to whoever edits the code: what to change and where.
CapabilityGuideCapabilityGuide The finding type of a guide-level capability: reported as information, never baselined or escalated.
toMessagetoMessage config fileName rule rangeNo description available.
recordrecord verdictsThe effectUses record each mode adds to a file's EffectBoundary coverage: how many raw effect calls were allowed, and why, so axial check shows leniency as a number instead of hiding it.

Operations

kind:member

owns

owns fileName capability
Member
Whether this file claims the capability.

Parameters

NameTypeDescription
fileNamestring
capabilityCapability

Returns

bool
kind:member

judge

judge config fileName source line rule
Member
The verdict for one raw effect call at `line`.

Parameters

NameTypeDescription
configConfig
fileNamestring
sourceISourceText
lineint
ruleEffectRule

Returns

Verdict
kind:member

advice

advice config fileName rule
Member
The finding text, written as an instruction to whoever edits the code: what to change and where.

Parameters

NameTypeDescription
configConfig
fileNamestring
ruleEffectRule

Returns

string
kind:member

CapabilityGuide

CapabilityGuide
Member
The finding type of a guide-level capability: reported as information, never baselined or escalated.

Returns

string
kind:member

toMessage

toMessage config fileName rule range
Member

Parameters

NameTypeDescription
configConfig
fileNamestring
ruleEffectRule
rangerange

Returns

Message
kind:member

record

record verdicts
Member
The `effectUses` record each mode adds to a file's EffectBoundary coverage: how many raw effect calls were allowed, and why, so `axial check` shows leniency as a number instead of hiding it.

Parameters

NameTypeDescription
verdictsVerdict list

Returns

XElement