TaskSurfaceSyntaxModule
PackageAxial.Guardrails
AXG014 TaskSurface, shared by Fast and Full: where raw `task { }` and Task-returning signatures are reported, how
a computation expression composes, and the guidance text. AXG014 is a guide: findings are Info, never block a
build (not even under warnings-as-errors) and accept `// axial-note task-surface: <reason>` acknowledgements.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| Code | Code | No description available. |
| tier | tier config fileName | Domain and service code is strict; capability and host files may bridge. |
| expressions | expressions nodes | Every computation-expression application in parse order, from ParsedInput.fold nodes (nearest parent first). |
| builderName | builderName _arg1 | The spelling of a builder expression: task, backgroundTask, t. |
| signatures | signatures nodes | Public module-level and member bindings with a return annotation, and public abstract slots. |
| expressionMessage | expressionMessage builder | Strict-tier message for a task expression. |
| bridgeMessage | bridgeMessage builder expression | Bridge-tier message for a task expression that composes. |
| signatureMessage | signatureMessage name taskType | Strict-tier message for a public Task/ValueTask-returning signature. |
| acknowledgement | acknowledgement source range | The reason of a valid axial-note task-surface on the finding's line or the line above. |
| finding | finding source kind range text | A guide finding; a valid note keeps it visible as acknowledged. |
Operations
kind:member
Domain and service code is strict; capability and host files may bridge. Files that claim the concurrency
capability implement Flow on raw tasks and are exempt. Test-role files run only with AxialGuardrailsInTests=all, and then as bridges: test
frameworks require Task-returning tests.
Parameters
| Name | Type | Description |
|---|---|---|
| config | Config | |
| fileName | string |
Returns
Tier
kind:member
Every computation-expression application in parse order, from ParsedInput.fold nodes (nearest parent first).
Branching is composition only when it decides what to await: an `if`/`match` that contains an await, or precedes
the first one. An `if` without `else` and without an await (argument validation) never does. Translating the one awaited result (a `match` on it, `try/with` mapping its exceptions) is what a
bridge is for, so `try/with` never counts as branching, though awaits in its handlers still count as awaits.
Parameters
| Name | Type | Description |
|---|---|---|
| nodes | (SyntaxNode list * SyntaxNode) list |
Returns
Expression list
kind:member
kind:member
Public module-level and member bindings with a return annotation, and public abstract slots. Class `let` bindings
are private to the type and never part of its surface. Overrides, interface
implementations, object expressions and anything inside a private or internal module or type are skipped: their
signature is not this file's public surface. Return types are syntax; the caller decides what they name.
Parameters
| Name | Type | Description |
|---|---|---|
| nodes | (SyntaxNode list * SyntaxNode) list |
Returns
Signature list
kind:member
kind:member
kind:member
kind:member

