EffectCatalogModule

PackageAxial.Guardrails
The table of ambient .NET effects that Axial's packages ask callers not to use directly. Each rule belongs to a guardrail, named after the package whose service replaces the effect (`Axial.HttpClient` for `new HttpClient`). A rule names the capability that owns the API (if one does), a symbol match, where the match applies, a human message, and the explicit replacement. Which guardrails run, and at which severity, comes from `GuardrailConfig`.

Summary

NameSignatureSynopsis
Operations
CoreGuardrailCoreGuardrail The guardrail that carries Axial's own conventions: the structural analyzers (raise in flow, fixtures, discarded cancellation, reflection formatting, suppression integrity) and the effects the core runtime replaces.
builtInCapabilitiesbuiltInCapabilities Axial's own capabilities.
builtInRulesbuiltInRules No description available.
builtInGuardrailsbuiltInGuardrails Every guardrail that Axial.Guardrails ships rules for.
parseMatchparseMatch textParses a symbol match written in a rules file: ctor:Type, member:Type::A,B, or any:Type.
parseDefinitionparseDefinition textParses a capability definition file (<name>.capability.toml) into the capability and the rules derived from its replaces list.
ruleTargetruleTarget ruleWhat a rule matches, for listings: a type, or a type's named members.
matchedTypematchedType _arg1The type a match targets, for overlap checks.
formatMatchformatMatch _arg1A match in the rules-file grammar that parseMatch reads.

Operations

kind:member

CoreGuardrail

CoreGuardrail
Member
The guardrail that carries Axial's own conventions: the structural analyzers (raise in flow, fixtures, discarded cancellation, reflection formatting, suppression integrity) and the effects the core runtime replaces.

Returns

string
kind:member

builtInCapabilities

builtInCapabilities
Member
Axial's own capabilities. Platform services come from the runtime; the others travel in `'env`.

Returns

Capability list
kind:member

builtInRules

builtInRules
Member

Returns

EffectRule list
kind:member

builtInGuardrails

builtInGuardrails
Member
Every guardrail that Axial.Guardrails ships rules for.

Returns

Set<string>
kind:member

parseMatch

parseMatch text
Member
Parses a symbol match written in a rules file: `ctor:Type`, `member:Type::A,B`, or `any:Type`.

Parameters

NameTypeDescription
textstring

Returns

SymbolMatch option
kind:member

parseDefinition

parseDefinition text
Member
Parses a capability definition file (`<name>.capability.toml`) into the capability and the rules derived from its `replaces` list. Defaults: `env` is `IHas<Name>`, `field` is `<Name>: <Service>` where `<Name>` is the service without a leading `I`, the level is `enforce`, and the guardrail is the capability's name. Files claim it with `AxialCapability` metadata on their `Compile` item.

Parameters

NameTypeDescription
textstring

Returns

Result<(Capability * EffectRule list), string>
kind:member

ruleTarget

ruleTarget rule
Member
What a rule matches, for listings: a type, or a type's named members.

Parameters

NameTypeDescription
ruleEffectRule

Returns

string
kind:member

matchedType

matchedType _arg1
Member
The type a match targets, for overlap checks.

Parameters

NameTypeDescription
_arg1SymbolMatch

Returns

string
kind:member

formatMatch

formatMatch _arg1
Member
A match in the rules-file grammar that `parseMatch` reads.

Parameters

NameTypeDescription
_arg1SymbolMatch

Returns

string