snapmaker-studio icon indicating copy to clipboard operation
snapmaker-studio copied to clipboard

Community fixes attach to unrelated risks in Intelligence Report evidence

Open DVOpenLabs opened this issue 1 month ago • 1 comments

The expanded evidence in the Intelligence Report attaches keyword-matched community fixes with high confidence to risks they do not fit. Examples from the printer-answered screenshot on PR #103: "1 of the last 5 prints failed" gets a colour-remap suggestion; "A print with this file name failed 1 time before" gets "restart firmware"; "Object spacing not verified" gets "scale to fit / rotate".

Confident but irrelevant advice conflicts with the advisory rule.

Proposed: attach a community fix only when the risk's doctor/id is in an explicit allowlist (bed fit, toolhead fit, firmware); otherwise show nothing. Until then, hide community fixes on Printer Doctor and Object spacing rows.

Not a blocker for #103; the matcher predates it.

Minor wording polish from the same review: next-action fallback "Address: " reads as a non-action; "1 firmware warning(s)" needs a computed plural; u1convert doctor line "0 file-structure, 1 U1-compatibility" could read "0 in the file's structure, 1 for U1 compatibility".

DVOpenLabs avatar Oct 10 '26 06:10 DVOpenLabs

Fixed by #116 (merge a41efdf). Community fixes now attach by condition id, not keyword matching. Regression test_community_fix_attaches_by_condition_id_not_keywords_issue_106 (backend/tests/test_intelligence_report.py) reproduces the issue's examples: 'A print with this file name failed 1 time before', '1 of the last 5 prints failed; restart firmware' and 'Object spacing not verified' no longer receive a community fix, and a toolhead-fit condition still carries its own entry (control). The 'Address: ' fallback and the '1 firmware warning(s)' wording no longer appear in the source on main.

DVOpenLabs avatar Oct 22 '26 10:10 DVOpenLabs