DiagnosticsRunner

class VmaxBuilder.diagnostics.runner.DiagnosticsRunner(*args, **kwargs)[source]

Generated: validation needed.

Description:

Execute diagnostics hooks and append emitted records to scaffold diagnostics payload.

Parameters:

None.

Returns:

None.

Raises:

RuntimeError – When emitted diagnostics exceed configured halt severity threshold.

Requires:

None.

Modifies:

None.

Public Methods

run_hooks(…)

Generated: validation needed.

run_hooks(scaffold: Scaffold, *, config: APIConfig, stage_name: StageName, hooks: Sequence[DiagnosticsHookProtocol], method_key: str | None = None) Scaffold[source]

Generated: validation needed.

Description:

Run before-stage and after-stage diagnostics hooks and update scaffold diagnostics.

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

  • config (APIConfig) – Root API configuration.

  • stage_name (StageName) – Current stage name.

  • hooks (Sequence[DiagnosticsHookProtocol]) – Diagnostics hooks to run.

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

Returns:

Scaffold – Updated scaffold with diagnostics records.

Raises:

RuntimeError – When halt threshold is exceeded by emitted records.

Requires:

None.

Modifies:

scaffold[“diagnostics”] – Appends diagnostics records under stage key.

_should_halt(records: Sequence[DiagnosticRecord], *, threshold: DiagnosticSeverity) bool[source]

Generated: validation needed.

Description:

Determine whether diagnostics records breach configured severity threshold.

Parameters:
  • records (Sequence[DiagnosticRecord]) – Emitted diagnostics records.

  • threshold (DiagnosticSeverity) – Halt threshold.

Returns:

bool – True when threshold is met or exceeded.

Raises:

None.

Requires:

None.

Modifies:

None.