Repository navigation
fix(core): say the multi-tool warning neutralizes every tool (TSK-018) - #23
Merged
Merged
Conversation
The transform neutralizes every M104/M109 after tier 0 whatever its T word, and tier commands reach only the active tool, so a tool heated after tier 0 can print cold. The warning claimed only the active tool's temperature changes. Reword the warning and ADR-0004 to match, and update the multi-tool fixture report snapshot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
🤖 hustle review: approve — Warning text, ADR-0004 and the fixture report snapshot are reworded consistently, the new test matches the new text, and the backlog bookkeeping matches the acceptance criteria. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
TSK-018 (from RPT-011). The transform neutralizes every
M104/M109after the tier 0 command, whatever itsTword. Tier commands carry noTword, so they reach only the active tool. A tool heated after tier 0 can therefore print cold. Themulti-toolwarning said "only the active tool's temperature is changed", which was wrong.Decision: reword, do not change the transform. This is the task's second option, so no new ADR is needed and ADR-0002's neutralize rule stays as it is. Keeping inactive-tool lines would need active-tool tracking plus a new ADR amending ADR-0002. That is too much for a P4 issue that only shows up in a synthetic fixture.
packages/core/src/validation.ts: new warning text is "Multi-tool G-code (tools …): every tool's M104/M109 after tier 0 is neutralized and tier commands reach only the active tool, so a tool heated after tier 0 can print cold."docs/adr/0004-validation-gate-and-change-report.md: the warning list now describes the multi-tool warning the same way, marked "amended by TSK-018".fixtures/prusaslicer/multi-tool.report.json: snapshot updated bypnpm fixture. The golden G-code is unchanged.packages/core/src/validation.test.ts: new test asserts the message no longer says only the active tool changes, and that it mentions every tool and cold printing.Acceptance criteria
validation.tsmatches what the transform does. Evidence: the new test failed against the old text and passes with the new one (pnpm vitest run packages/core/src/validation.test.ts).pnpm fixturechanged onlymulti-tool.report.json, and only its warning message.pnpm testgives 138 passed, 5 skipped (the bgcode reference tests skip withoutBGCODE_REFERENCE_DIR).pnpm typecheckexits 0, andpnpm buildsucceeds.🤖 Generated with Claude Code