Skip to content

fix(core): say the multi-tool warning neutralizes every tool (TSK-018) - #23

Merged
jmlweb merged 1 commit into
mainfrom
hustle/maintainer/task-2026-11-23
Nov 23, 2026
Merged

jmlweb merged 1 commit into
mainfrom
hustle/maintainer/task-2026-11-23

Conversation

@jmlweb

@jmlweb jmlweb commented Nov 23, 2026

Copy link
Copy Markdown
Owner

What changed

TSK-018 (from RPT-011). The transform neutralizes every M104/M109 after the tier 0 command, whatever its T word. Tier commands carry no T word, so they reach only the active tool. A tool heated after tier 0 can therefore print cold. The multi-tool warning 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 by pnpm 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.
  • Backlog: TSK-018 moved to complete; added LRN-007.

Acceptance criteria

  1. Decision recorded: the multi-tool warning and ADR-0004 text now say that every tool is neutralized. Evidence: ADR-0004 diff.
  2. The warning text in validation.ts matches 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).
  3. The multi-tool fixture report now says this can happen. Evidence: pnpm fixture changed only multi-tool.report.json, and only its warning message.
  4. pnpm test gives 138 passed, 5 skipped (the bgcode reference tests skip without BGCODE_REFERENCE_DIR). pnpm typecheck exits 0, and pnpm build succeeds.

🤖 Generated with Claude Code

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>
@jmlweb

jmlweb commented Nov 23, 2026

Copy link
Copy Markdown
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.

@jmlweb
jmlweb merged commit cf89c97 into main Nov 23, 2026
2 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