Skip to content

Accept checked filament remaining estimates - #13

Merged
voska merged 6 commits into
mainfrom
fix/filament-remaining
Nov 5, 2026
Merged

voska merged 6 commits into
mainfrom
fix/filament-remaining

Conversation

@voska

@voska voska commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

AMS remaining telemetry can report 0 g on a spool that still has filament. Add repeatable --filament-remaining A2=50g to preflight and print send so a checked amount can be used for that invocation.

The amount must still cover the job plus the existing 15% and 5 g reserve. A sufficient estimate reports WARN with the stated amount and original AMS reading; an insufficient estimate stays FAIL. Slot mapping, material, printer readiness, confirmation and dry-run behavior remain enforced. JSON includes the estimate, raw telemetry and required grams. The bundled agent skill and flag reference document using a physically checked amount reported by a person.

Validation: GOTOOLCHAIN=go1.26.10 make ci passed, including race tests. Regression tests cover strict mode, unknown telemetry, reserve boundaries, malformed job usage, slot validation, multiple filaments and confirmed sends through fakes. Read-only hardware dry-runs confirmed the amount warning while a busy printer continued to fail the idle gate.

Review gate: independent code and CLI API review approved with nits; help text, recovery hints and required-amount precision addressed. Independent review also approved the fix that preserves amount failures for nonfinite job usage.

@voska
voska merged commit 19a5d6c into main Nov 5, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant