claude-code - 💡(How to fix) Fix Claude misclassifies urban vs special waste based on content instead of source (EU Directive 2008/98/CE) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#45261Fetched 2026-04-09 08:09:30
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
labeled ×1

Claude incorrectly classifies waste as "special" (rifiuti speciali) vs "urban" (rifiuti urbani) based on the nature/composition of the waste, when the actual legal criterion across the entire EU (Directive 2008/98/CE, transposed in Italy as D.Lgs. 152/2006 art. 184) is who produces it and where:

  • Urban waste = produced by domestic users (households)
  • Special waste = produced by productive/industrial/commercial activities

Root Cause

This is not an edge case or a matter of interpretation — it's a fundamental principle of EU environmental law. The classification by source (not by content) is the foundation of the entire EU waste management framework (Directive 2008/98/CE, art. 3). Any law student in Europe would know this.

Misclassifying waste this way could lead users to believe they are personally responsible for managing household waste that is actually the municipality's obligation — potentially causing illegal disposal or unnecessary costs.

RAW_BUFFERClick to expand / collapse

Description

Claude incorrectly classifies waste as "special" (rifiuti speciali) vs "urban" (rifiuti urbani) based on the nature/composition of the waste, when the actual legal criterion across the entire EU (Directive 2008/98/CE, transposed in Italy as D.Lgs. 152/2006 art. 184) is who produces it and where:

  • Urban waste = produced by domestic users (households)
  • Special waste = produced by productive/industrial/commercial activities

What happened

When asked about an unusual household waste, Claude suggested it could be classified as "special waste" because of its unusual nature, and told the user they'd need to find an authorized handler themselves. This is wrong — any waste produced at home by a citizen is urban waste, period, regardless of how strange it is. The municipality is responsible for managing it.

Why this matters

This is not an edge case or a matter of interpretation — it's a fundamental principle of EU environmental law. The classification by source (not by content) is the foundation of the entire EU waste management framework (Directive 2008/98/CE, art. 3). Any law student in Europe would know this.

Misclassifying waste this way could lead users to believe they are personally responsible for managing household waste that is actually the municipality's obligation — potentially causing illegal disposal or unnecessary costs.

Expected behavior

When discussing waste classification in an EU context, Claude should always use the source-based criterion: domestic origin → urban waste, productive/industrial origin → special waste. The nature or unusualness of the waste is irrelevant to this classification.

extent analysis

TL;DR

Update Claude's waste classification logic to use the source-based criterion, where waste produced by domestic users is classified as "urban" and waste from productive/industrial activities is classified as "special", regardless of its nature or composition.

Guidance

  • Review and modify the code that determines waste classification to prioritize the source of the waste (domestic vs. productive/industrial) over its composition or nature.
  • Ensure that Claude's training data reflects the correct classification criteria, as outlined in EU Directive 2008/98/CE and Italian law D.Lgs. 152/2006 art. 184.
  • Test Claude's waste classification responses with various scenarios, including unusual household waste, to verify that it consistently applies the source-based criterion.
  • Consider adding a clarification or disclaimer to Claude's responses to emphasize that waste classification is determined by the source of the waste, not its composition or nature.

Notes

The solution may require updates to Claude's underlying knowledge graph, training data, or classification algorithms to ensure accurate and consistent application of the source-based criterion.

Recommendation

Apply workaround: Update Claude's waste classification logic to use the source-based criterion, as this is a fundamental principle of EU environmental law and essential for providing accurate and reliable information to users.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

When discussing waste classification in an EU context, Claude should always use the source-based criterion: domestic origin → urban waste, productive/industrial origin → special waste. The nature or unusualness of the waste is irrelevant to this classification.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING