autointent.advisor.PreflightReport#
- class autointent.advisor.PreflightReport#
One report covering all three phases.
- resource: ResourceEstimate#
- add(phase, severity, message, metric=None)#
Append a
Findingto this report.- Parameters:
phase (Phase) – which check produced it —
"resource","data"or"config".severity (Severity) – headroom level; a single
OVERmakes the report infeasible.message (str) – one-line human-readable explanation, shown as-is in reports.
metric (str | None) – short budget name the finding is about (
"vram","ram","disk","time"), orNonefor findings not tied to a budget.
- Return type:
None
- property headroom: Severity#
Worst headroom level across all findings — the column shown in CLI reports.
- Return type:
- property is_feasible: bool#
True unless some finding is OVER.
- Type:
Whether the run is expected to fit
- Return type:
- to_dict()#
Render the report as JSON-serializable data.
Severities become their string values, and the derived
headroomandis_feasibleproperties are included as keys. This is what the CLI’s--jsonoutput emits.