Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
005fd12ceThis file is pinned to the selected release. Download the original to open it in your design tool.
# Adapter conformance — what each backend really fills in, and why not.
#
# Enforced by scripts/audit_adapter_conformance.py. See that file for what
# the gate does and does not prove. Seed a starting point with --seed.
#
# Statuses:
# provided the adapter assigns this field
# not_in_protocol the backend genuinely cannot know it — needs `why`
# deferred a real gap, not yet closed — needs `why` and ISO `by`
# delegates_to (whole adapter) forwards to another adapter's objects
#
# Each adapter also documents `duration_semantics` — what its
# JobProgress.print_time_seconds means after a print ends: `frozen` (the
# printer's own job clock, stopped at the ending — a late read is still
# correct), `stopwatch` (a Kiln-side timer nothing stops — a late read
# inflates), or `none` (no job clock at all). The runtime authority is
# the adapter's _DURATION_SEMANTICS ClassVar — this file is not shipped
# in the pip package — and the two are pinned in lockstep by
# kiln/tests/test_print_duration_capture.py.
#
# `not_in_protocol` is a claim about the PROTOCOL, not about our effort.
# When the honest answer is "nobody has checked yet", the row is deferred —
# an unverified not_in_protocol is how a real gap becomes permanent.
adapters:
# ---------------------------------------------------------------- bambu
# The reference implementation: MQTT push cache, richest state block.
bambu:
duration_semantics: stopwatch # Kiln-side stopwatch (job_elapsed_seconds); a late read keeps counting
fields:
PrinterState.connected: provided
PrinterState.state: provided
PrinterState.tool_temp_actual: provided
PrinterState.tool_temp_target: provided
PrinterState.bed_temp_actual: provided
PrinterState.bed_temp_target: provided
PrinterState.print_error: provided
PrinterState.state_age_seconds: provided
PrinterState.last_job_result: provided
JobProgress.file_name: provided
JobProgress.completion: provided
JobProgress.print_time_seconds: provided
JobProgress.print_time_left_seconds: provided
PrintResult.success: provided
PrintResult.message: provided
PrintResult.job_id:
status: not_in_protocol
why: >-
No adapter populates this, including this one. The field has no
reader anywhere in the codebase, and its one intended consumer
(record_print_hours_for_job, which requires it as a dedupe key)
can therefore never fire on any backend. Candidate for deletion
rather than population — filling it would be inventing data for
nobody.
# ------------------------------------------------------------- creality
creality:
duration_semantics: frozen # forwards to Moonraker's print_duration, frozen at the ending
delegates_to: moonraker-or-octoprint-by-model
why: >-
Pure wrapper. get_state/get_job/_start_print_impl all forward to
self._backend, so it constructs no contract objects of its own and
inherits whichever backend its model resolves to.
# ----------------------------------------------------------------- duet
# Fresh-pull over HTTP (/rr_model, or /rr_status on RRF2).
duet:
duration_semantics: frozen # job duration is RRF's own clock, frozen at the ending
fields:
PrinterState.connected: provided
PrinterState.state: provided
PrinterState.tool_temp_actual: provided
PrinterState.tool_temp_target: provided
PrinterState.bed_temp_actual: provided
PrinterState.bed_temp_target: provided
PrinterState.state_age_seconds:
status: not_in_protocol
why: >-
get_state issues a fresh HTTP request on every call, so the
reading is current by construction and an age would always be
~0. base.PrinterState documents absence as the honest answer
for a transport that asks the printer on every call.
PrinterState.print_error:
status: deferred
why: >-
Not yet verified whether RepRapFirmware exposes a numeric error
code we can map. Recorded rather than guessed.
by: "2026-11-30"
PrinterState.last_job_result:
status: deferred
why: >-
Not yet verified whether /rr_model carries a last-job outcome.
by: "2026-11-30"
JobProgress.file_name: provided
JobProgress.completion: provided
JobProgress.print_time_seconds: provided
JobProgress.print_time_left_seconds: provided
PrintResult.success: provided
PrintResult.message: provided
PrintResult.job_id:
status: not_in_protocol
why: See the bambu row — no adapter populates this field.
# --------------------------------------------------------------- elegoo
# Cache-backed (SDCP over websocket); stamps its own state vintage.
elegoo:
duration_semantics: frozen # CurrentTicks is the printer's own clock, frozen at the ending
fields:
PrinterState.connected: provided
PrinterState.state: provided
PrinterState.tool_temp_actual: provided
PrinterState.tool_temp_target: provided
PrinterState.bed_temp_actual: provided
PrinterState.bed_temp_target: provided
PrinterState.state_age_seconds: provided
PrinterState.print_error:
status: deferred
why: >-
Not yet verified whether SDCP reports a numeric error code.
by: "2026-11-30"
PrinterState.last_job_result:
status: deferred
why: >-
Not yet verified whether SDCP reports a last-job outcome.
by: "2026-11-30"
JobProgress.file_name: provided
JobProgress.completion: provided
JobProgress.print_time_seconds: provided
JobProgress.print_time_left_seconds: provided
PrintResult.success: provided
PrintResult.message: provided
PrintResult.job_id:
status: not_in_protocol
why: See the bambu row — no adapter populates this field.
# ------------------------------------------------------------ moonraker
moonraker:
duration_semantics: frozen # print_stats.print_duration is Klipper's own clock, frozen at the ending
fields:
PrinterState.connected: provided
PrinterState.state: provided
PrinterState.tool_temp_actual: provided
PrinterState.tool_temp_target: provided
PrinterState.bed_temp_actual: provided
PrinterState.bed_temp_target: provided
# Push path only. Klipper pushes DELTAS, so the clock is stamped
# solely by frames carrying print_stats: a cache-wide timestamp
# would report a fresh age beside a state minutes old, which is the
# reassuring lie this age exists to prevent. The HTTP fallback
# deliberately carries no age — it asks the printer every call.
PrinterState.state_age_seconds: provided
PrinterState.print_error:
status: deferred
why: >-
Not yet verified whether Klipper's state carries a mappable
numeric error code.
by: "2026-11-30"
PrinterState.last_job_result: provided
JobProgress.file_name: provided
JobProgress.completion: provided
JobProgress.print_time_seconds: provided
JobProgress.print_time_left_seconds: provided
PrintResult.success: provided
PrintResult.message: provided
PrintResult.job_id:
status: not_in_protocol
why: See the bambu row — no adapter populates this field.
# ------------------------------------------------------------ octoprint
octoprint:
duration_semantics: frozen # progress.printTime is OctoPrint's own clock, frozen at the ending
fields:
PrinterState.connected: provided
PrinterState.state: provided
PrinterState.tool_temp_actual: provided
PrinterState.tool_temp_target: provided
PrinterState.bed_temp_actual: provided
PrinterState.bed_temp_target: provided
# Push path only, stamped solely by frames carrying `state`.
# OctoPrint's `current` message is documented as a full snapshot,
# which would make the two clocks identical — but that is not
# verifiable from the code, and a separate clock is correct under
# either behaviour. The HTTP fallback carries no age by design.
PrinterState.state_age_seconds: provided
PrinterState.print_error:
status: deferred
why: >-
Not yet verified whether the OctoPrint API exposes a numeric
error code distinct from the error STATE.
by: "2026-11-30"
PrinterState.last_job_result:
status: deferred
why: >-
Not yet verified whether /api/job carries a last-job outcome.
by: "2026-11-30"
JobProgress.file_name: provided
JobProgress.completion: provided
JobProgress.print_time_seconds: provided
JobProgress.print_time_left_seconds: provided
PrintResult.success: provided
PrintResult.message: provided
PrintResult.job_id:
status: not_in_protocol
why: See the bambu row — no adapter populates this field.
# ------------------------------------------------------------ prusalink
# Fresh-pull over HTTP (/api/v1/status) on every call.
prusalink:
duration_semantics: frozen # time_printing is the printer's own clock, frozen at the ending
fields:
PrinterState.connected: provided
PrinterState.state: provided
PrinterState.tool_temp_actual: provided
PrinterState.tool_temp_target: provided
PrinterState.bed_temp_actual: provided
PrinterState.bed_temp_target: provided
PrinterState.state_age_seconds:
status: not_in_protocol
why: >-
get_state issues a fresh request every call, so the reading is
current by construction. (_prior_state exists for anomaly
bookkeeping and is never read to answer get_state.)
PrinterState.print_error:
status: deferred
why: >-
Not yet verified whether PrusaLink exposes a numeric error code.
by: "2026-11-30"
PrinterState.last_job_result: provided
JobProgress.file_name: provided
JobProgress.completion: provided
JobProgress.print_time_seconds: provided
JobProgress.print_time_left_seconds: provided
PrintResult.success: provided
PrintResult.message: provided
PrintResult.job_id:
status: not_in_protocol
why: See the bambu row — no adapter populates this field.
# ------------------------------------------------------- serial_adapter
# Direct USB/serial. Asks the firmware on every call; the firmware
# answers with very little.
serial_adapter:
duration_semantics: none # no job clock at all; hours are unknowable rather than zero
fields:
PrinterState.connected: provided
PrinterState.state: provided
PrinterState.tool_temp_actual: provided
PrinterState.tool_temp_target: provided
PrinterState.bed_temp_actual: provided
PrinterState.bed_temp_target: provided
PrinterState.state_age_seconds:
status: not_in_protocol
why: >-
get_state sends M105/M27 down the wire on every call, so the
reading is current by construction.
PrinterState.print_error:
status: not_in_protocol
why: >-
Marlin-style firmware reports errors as free text on the serial
line, not as a numeric code this field could carry.
PrinterState.last_job_result: provided
JobProgress.file_name: provided
JobProgress.completion: provided
JobProgress.print_time_seconds:
status: not_in_protocol
why: >-
M27 reports SD-card byte progress, not elapsed time, and the
firmware keeps no job clock we can query. This is a real bound
on print-hours capture: a direct-USB print can never report its
own duration, so its hours are unknowable rather than zero.
JobProgress.print_time_left_seconds:
status: not_in_protocol
why: >-
No time base to extrapolate from — see print_time_seconds.
PrintResult.success: provided
PrintResult.message: provided
PrintResult.job_id:
status: not_in_protocol
why: See the bambu row — no adapter populates this field.