DiagnosticsHookProtocol

class VmaxBuilder.core.protocols.DiagnosticsHookProtocol(*args, **kwargs)[source]

Generated: validation needed.

Description:

Protocol for diagnostics hook attached to stage or strategy execution.

Requires:
  • stage (StageName) – Stage this hook targets.

  • name (str) – Hook name.

Public Methods

after_stage(…)

Generated: validation needed.

before_stage(…)

Generated: validation needed.

before_stage(scaffold: Scaffold, *, config: APIConfig, method_key: str | None = None) Sequence[DiagnosticRecord][source]

Generated: validation needed.

Description:

Inspect scaffold before stage execution.

Parameters:
  • scaffold (Scaffold) – Shared pipeline scaffold.

  • config (APIConfig) – Root API configuration.

  • method_key (str | None) – Optional strategy key.

Returns:

Sequence[DiagnosticRecord] – Diagnostics emitted before stage execution.

after_stage(scaffold: Scaffold, *, config: APIConfig, method_key: str | None = None) Sequence[DiagnosticRecord][source]

Generated: validation needed.

Description:

Inspect scaffold after stage execution.

Parameters:
  • scaffold (Scaffold) – Shared pipeline scaffold.

  • config (APIConfig) – Root API configuration.

  • method_key (str | None) – Optional strategy key.

Returns:

Sequence[DiagnosticRecord] – Diagnostics emitted after stage execution.