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
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| CoreGuardrail | CoreGuardrail | 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. |
| builtInCapabilities | builtInCapabilities | Axial's own capabilities. |
| builtInRules | builtInRules | No description available. |
| builtInGuardrails | builtInGuardrails | Every guardrail that Axial.Guardrails ships rules for. |
| parseMatch | parseMatch text | Parses a symbol match written in a rules file: ctor:Type, member:Type::A,B, or any:Type. |
| parseDefinition | parseDefinition text | Parses a capability definition file (<name>.capability.toml) into the capability and the rules derived from its replaces list. |
| ruleTarget | ruleTarget rule | What a rule matches, for listings: a type, or a type's named members. |
| matchedType | matchedType _arg1 | The type a match targets, for overlap checks. |
| formatMatch | formatMatch _arg1 | A match in the rules-file grammar that parseMatch reads. |
Operations
kind:member
kind:member
kind:member
kind:member
kind: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
| Name | Type | Description |
|---|---|---|
| text | string |
Returns
Result<(Capability * EffectRule list), string>
kind:member
kind:member

